darwin-protos.h (machopic_select_rtx_section): Move to inside RTX_CODE ifdef.
[gcc.git] / gcc / ChangeLog
1 2011-06-16 Iain Sandoe <iains@gcc.gnu.org>
2
3 * config/darwin-protos.h (machopic_select_rtx_section): Move to
4 inside RTX_CODE ifdef.
5
6 2011-06-16 Tom de Vries <tom@codesourcery.com>
7
8 PR target/45098
9 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): Disallow
10 NULL pointer for pointer arithmetic.
11
12 2011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13
14 PR target/49398
15 Revert.
16 2011-06-10 Wei Guozhi <carrot@google.com>
17
18 PR target/45335
19 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
20 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
21 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
22 related peephole2.
23 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
24 related peephole2.
25 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
26 (arm_legitimate_ldrd_p): New prototype.
27 (arm_output_ldrd): New prototype.
28 * config/arm/arm.c (arm_check_ldrd_operands): New function.
29 (arm_legitimate_ldrd_p): New function.
30 (arm_output_ldrd): New function.
31
32 2010-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
33
34 PR middle-end/46500
35 * doc/tm.texi.in: Update Copyright date.
36 * doc/tm.texi: Regenerate.
37 * targhooks.c (default_setup_incoming_varargs): Replace
38 CUMULATIVE_ARGS* argument type with cumulative_args_t.
39 (default_pretend_outgoing_varargs_named): Likewise.
40 (hook_pass_by_reference_must_pass_in_stack): Likewise.
41 (hook_callee_copies_named): Likewise.
42 (default_function_arg_advance): Likewise.
43 (default_function_arg): Likewise.
44 (default_function_incoming_arg): Likewise.
45 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
46 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
47 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
48 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
49 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
50 * targhooks.h (default_setup_incoming_varargs): Likewise.
51 (default_pretend_outgoing_varargs_named): Likewise.
52 (hook_pass_by_reference_must_pass_in_stack): Likewise.
53 (hook_callee_copies_named): Likewise.
54 (default_function_arg_advance): Likewise.
55 (default_function_arg): Likewise.
56 (default_function_incoming_arg): Likewise.
57 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
58 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
59 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
60 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
61 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
62 * target.def (pass_by_reference): Likewise.
63 (setup_incoming_varargs, strict_argument_naming): Likewise.
64 (pretend_outgoing_varargs_named, callee_copies): Likewise.
65 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
66 (function_incoming_arg): Likewise.
67 * target.h: Don't include "tm.h" .
68 (cumulative_args_t): New typedef.
69 [GCC_TM_H] (get_cumulative_args): New static inline function.
70 [GCC_TM_H] (pack_cumulative_args): Likewise.
71 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
72 argument type with cumulative_args_t.
73 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
74 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
75 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
76 (frv_arg_partial_bytes, frv_function_arg): Likewise.
77 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
78 (frv_function_arg_1): Likewise.
79 * config/s390/s390.c (s390_pass_by_reference): Likewise.
80 (s390_function_arg_advance, s390_function_arg): Likewise.
81 * config/m32c/m32c.c (m32c_function_arg): Likewise.
82 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
83 (m32c_strict_argument_naming): Likewise.
84 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
85 (spu_function_arg_advance): Likewise.
86 (spu_setup_incoming_varargs): Likewise. Make static.
87 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
88 Remove prototype.
89 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
90 CUMULATIVE_ARGS* argument type with cumulative_args_t.
91 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
92 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
93 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
94 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
95 (mep_pass_by_reference, mep_function_arg): Likewise.
96 (mep_function_arg_advance): Likewise.
97 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
98 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
99 (m32r_function_arg, m32r_function_arg_advance): Likewise.
100 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
101 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
102 (ix86_function_arg, ix86_pass_by_reference): Likewise.
103 (ix86_setup_incoming_varargs): Likewise.
104 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
105 (sh_strict_argument_naming): Likewise.
106 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
107 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
108 (sh_function_arg_advance, sh_function_arg): Likewise.
109 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
110 (pdp11_function_arg_advance): Likewise.
111 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
112 Likewise.
113 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
114 * config/avr/avr.c (avr_function_arg): Likewise.
115 (avr_function_arg_advance): Likewise.
116 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
117 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
118 (xtensa_function_arg_1): Likewise.
119 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Likewise.
120 (xstormy16_function_arg): Likewise.
121 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
122 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
123 (fr30_function_arg_advance): Likewise.
124 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
125 (lm32_function_arg, lm32_function_arg_advance): Likewise.
126 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
127 (moxie_function_arg, moxie_function_arg_advance): Likewise.
128 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
129 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
130 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
131 (cris_function_arg, cris_function_incoming_arg): Likewise.
132 (cris_function_arg_advance, cris_function_arg_1): Likewise.
133 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
134 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
135 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
136 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
137 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
138 (mn10300_arg_partial_bytes): Likewise.
139 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
140 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
141 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
142 (ia64_function_arg_1): Likewise.
143 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
144 (m68k_function_arg): Likewise.
145 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
146 (rs6000_function_arg, setup_incoming_varargs): Likewise.
147 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
148 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
149 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
150 (picochip_arg_advance): Likewise.
151 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
152 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
153 (mcore_function_arg_advance): Likewise.
154 * config/score/score.c (score_pass_by_reference): Likewise.
155 (score_function_arg_advance): Likewise.
156 (score_arg_partial_bytes): Likewise. Make static.
157 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
158 * config/arm/arm.c (arm_arg_partial_bytes): Replace
159 CUMULATIVE_ARGS* argument type with cumulative_args_t.
160 (arm_function_arg, arm_function_arg_advance): Likewise.
161 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
162 * config/pa/pa.c (pa_pass_by_reference): Likewise.
163 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
164 (pa_function_arg): Likewise.
165 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
166 (mips_function_arg, mips_function_arg_advance): Likewise.
167 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
168 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
169 * config/vax/vax.c (vax_function_arg): Likewise.
170 (vax_function_arg_advance): Likewise.
171 * config/h8300/h8300.c (h8300_function_arg): Likewise.
172 (h8300_function_arg_advance): Likewise.
173 * config/v850/v850.c (v850_pass_by_reference): Likewise.
174 (v850_strict_argument_naming, v850_function_arg): Likewise.
175 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
176 (v850_setup_incoming_varargs): Likewise.
177 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
178 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
179 (mmix_function_arg, mmix_pass_by_reference): Likewise.
180 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
181 with const void *.
182 * config/bfin/bfin.c (setup_incoming_varargs): Replace
183 CUMULATIVE_ARGS* argument type with cumulative_args_t.
184 (bfin_function_arg_advance, bfin_function_arg): Likewise.
185 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
186 * calls.c (emit_call_1): Change type of args_so_far to
187 cumulative_args_t. Changed all callers.
188 (initialize_argument_information): Likewise.
189 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
190 * dse.c (get_call_args): Likewise.
191 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
192 * function.c (pass_by_reference, reference_callee_copied): Likewise.
193 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
194 New member args_so_far_v. Changed all users.
195 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
196 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
197 * config/mips/mips.c (mips_output_args_xfer): Likewise.
198 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
199 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
200 * config/microblaze/microblaze.c (microblaze_expand_prologue): Likewise.
201 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
202 m32r_pass_by_reference.
203
204 2011-06-16 Ira Rosen <ira.rosen@linaro.org>
205
206 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
207 argument to be a VEC of statements.
208 * tree-vect-loop.c (vect_determine_vectorization_factor):
209 Remove the assert that pattern statements have to have their
210 vector type set.
211 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
212 Change the first argument to be a VEC of statements. Update
213 documentation.
214 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
215 (vect_handle_widen_mult_by_const): New function.
216 (vect_recog_widen_mult_pattern): Change the first argument to
217 be a VEC of statements. Update documentation. Check that the
218 constant is INTEGER_CST. Support multiplication by a constant
219 that fits an intermediate type - call
220 vect_handle_widen_mult_by_const.
221 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
222 call. Handle additional pattern statements if necessary.
223
224 2011-06-16 Nick Clifton <nickc@redhat.com>
225
226 PR target/49427
227 * config.gcc: Set cpu_type to v850 for any V850 architecture.
228 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
229 md_file, extra_modes, out_file and extra_options are these are all
230 deduced from cpu_type.
231
232 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
233
234 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
235 truncation mask to 63.
236
237 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
238
239 PR target/49313
240 PR target/29524
241 * longlong.h: Add AVR support:
242 (count_leading_zeros): New macro.
243 (count_trailing_zeros): New macro.
244 (COUNT_LEADING_ZEROS_0): New macro.
245 * config/avr/t-avr (LIB1ASMFUNCS): Add
246 _ffssi2, _ffshi2, _loop_ffsqi2,
247 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2,
248 _paritydi2, _paritysi2, _parityhi2,
249 _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
250 _bswapsi2, _bswapdi2,
251 _ashldi3, _ashrdi3, _lshrdi3
252 (LIB2FUNCS_EXCLUDE): Add _clz.
253 * config/avr/libgcc.S (XCALL): Move up in file.
254 (XJMP): New C Macro.
255 (DEFUN): New asm macro.
256 (ENDF): New asm macro.
257 (__ffssi2): New function.
258 (__ffshi2): New function.
259 (__loop_ffsqi2): New function.
260 (__ctzsi2): New function.
261 (__ctzhi2): New function.
262 (__clzdi2): New function.
263 (__clzsi2): New function.
264 (__clzhi2): New function.
265 (__paritydi2): New function.
266 (__paritysi2): New function.
267 (__parityhi2): New function.
268 (__parityqi2): New function.
269 (__popcounthi2): New function.
270 (__popcountsi2): New function.
271 (__popcountdi2): New function.
272 (__popcountqi2): New function.
273 (__bswapsi2): New function.
274 (__bswapdi2): New function.
275 (__ashldi3): New function.
276 (__ashrdi3): New function.
277 (__lshrdi3): New function.
278 Fix suspicous lines.
279
280 2011-06-16 Richard Guenther <rguenther@suse.de>
281
282 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
283 the same as x != 0.
284 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0 to
285 (bool) X & 1.
286 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
287 equality compares against zero for the lower bit.
288
289 2011-06-16 Jakub Jelinek <jakub@redhat.com>
290
291 PR tree-optimization/49419
292 * tree-vrp.c (execute_vrp): Call init_range_assertions
293 before estimate_numbers_of_iterations, call
294 free_number_of_iterations_estimates before calling
295 remove_range_assertions.
296
297 2011-06-16 Revital Eres <revital.eres@linaro.org>
298
299 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
300 (struct partial_schedule): Add rows_length field.
301 (verify_partial_schedule): Check rows_length.
302 (ps_insert_empty_row): Handle rows_length.
303 (create_partial_schedule): Likewise.
304 (free_partial_schedule): Likewise.
305 (reset_partial_schedule): Likewise.
306 (create_ps_insn): Remove rest_count argument.
307 (remove_node_from_ps): Update rows_length.
308 (add_node_to_ps): Update rows_length and call create_ps_insn
309 without passing row_rest_count.
310 (rotate_partial_schedule): Update rows_length.
311
312 2011-06-16 Revital Eres <revital.eres@linaro.org>
313
314 * ddg.c (add_intra_loop_mem_dep): New function.
315 (build_intra_loop_deps): Call it.
316
317 2011-05-06 Jeff Law <law@redhat.com>
318
319 * df-problems.c (df_lr_local_compute): Manually CSE
320 PIC_OFFSET_TABLE_REGNUM.
321 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
322 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
323
324 2011-06-13 Jan Hubicka <jh@suse.cz>
325
326 * cgraphunit.c (handle_alias_pairs): New function.
327 (cgraph_finalize_compilation_unit): Use it.
328 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
329 as externally visible.
330
331 2011-06-15 Richard Guenther <rguenther@suse.de>
332
333 * expr.c (expand_expr_real_2): Reduce all integral types to
334 bitfield precision.
335 (expand_expr_real_1): Likewise.
336
337 2011-06-15 Martin Jambor <mjambor@suse.cz>
338
339 PR tree-optimization/48613
340 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
341 ipa_node_params_vector is NULL.
342
343 2011-06-15 Jakub Jelinek <jakub@redhat.com>
344
345 PR debug/49382
346 * dwarf2out.c (dw_loc_list_node): Add force field.
347 (add_var_loc_to_decl): For PARM_DECL, attempt to keep
348 the incoming location in the list, even if it is modified
349 before first real insn.
350 (output_loc_list): Emit empty ranges with force flag set.
351 (dw_loc_list): If first range of a PARM_DECL is empty,
352 set force flag.
353
354 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
355
356 PR target/49349
357 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
358 (fence_to_rewind). Use it to notice when bookkeeping will be placed
359 above a fence. Update comments.
360 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
361 placed just above it. Do not allow NULL place_to_insert.
362
363 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
364
365 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
366 (slpeel_tree_peel_loop_to_edge): Don't call
367 remove_dead_stmts_from_loop.
368 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
369 remove irrelevant pattern statements. For irrelevant statements
370 check if it is the last statement of a detected pattern, use
371 corresponding pattern statement instead.
372 (destroy_loop_vec_info): No need to remove pattern statements,
373 only free stmt_vec_info.
374 (vect_transform_loop): For irrelevant statements check if it is
375 the last statement of a detected pattern, use corresponding
376 pattern statement instead.
377 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
378 pattern statements. Set basic block for the new statement.
379 (vect_pattern_recog): Update documentation.
380 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
381 operands of pattern statements.
382 (vectorizable_call): Fix printing. In case of a pattern statement
383 use the lhs of the original statement when creating a dummy
384 statement to replace the original call.
385 (vect_analyze_stmt): For irrelevant statements check if it is
386 the last statement of a detected pattern, use corresponding
387 pattern statement instead.
388 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
389 statements use gsi of the original statement.
390
391 2011-06-14 Joseph Myers <joseph@codesourcery.com>
392
393 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
394 common/common-target-def.h.
395 * target.def (default_target_flags, handle_option,
396 supports_split_stack, optimization_table, init_struct,
397 except_unwind_info, unwind_tables_default, have_named_sections):
398 Move to common/common-target.def.
399 * target.h (enum opt_levels, struct default_options): Move to
400 common/common-target.h.
401 * targhooks.c (default_except_unwind_info,
402 dwarf2_except_unwind_info, sjlj_except_unwind_info,
403 default_target_handle_option, empty_optimization_table): Move to
404 common/common-targhooks.c.
405 * targhooks.h (default_except_unwind_info,
406 dwarf2_except_unwind_info, sjlj_except_unwind_info,
407 default_target_handle_option, empty_optimization_table): Move to
408 common/common-targhooks.h.
409 * common/common-target-def.h: Include common/common-targhooks.h.
410 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
411 defined.
412 * common/common-target.def (handle_option, option_init_struct,
413 option_optimization_table, default_target_flags,
414 except_unwind_info, supports_split_stack, unwind_tables_default,
415 have_named_sections): Move from target.def.
416 (HOOK_PREFIX): Undefine at end of file.
417 * common/common-target.h: Include input.h.
418 (enum opt_levels, struct default_options): Move from target.h.
419 * common/common-targhooks.c, common/common-targhooks.h: New.
420 * config.gcc (target_has_targetm_common): Default to yes.
421 (moxie*): Set target_has_targetm_common=no.
422 (hppa*-*-*): Don't set target_has_targetm_common=yes.
423 * doc/tm.texi: Regenerate.
424 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
425 (C_TARGET_DEF_H): Add common/common-targhooks.h.
426 (GCC_OBJS): Remove vec.o.
427 (OBJS): Remove hooks.o and vec.o.
428 (OBJS-libcommon-target): Add vec.o, hooks.o and
429 common/common-targhooks.o.
430 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
431 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
432 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
433 cfglayout.o, $(out_object_file), $(common_out_object_file)):
434 Update dependencies.
435 (common/common-targhooks.o): New.
436 * common/config/default-common.c: Include tm.h. Add FIXME
437 comment.
438 * common/config/pa/pa-common.c: Include more headers. Take
439 copyright dates from pa.c.
440 (pa_option_optimization_table, pa_handle_option,
441 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
442 TARGET_HANDLE_OPTION): Move from pa.c.
443 * common/config/alpha/alpha-common.c,
444 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
445 common/config/bfin/bfin-common.c,
446 common/config/cris/cris-common.c,
447 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
448 common/config/h8300/h8300-common.c,
449 common/config/i386/i386-common.c,
450 common/config/ia64/ia64-common.c,
451 common/config/iq2000/iq2000-common.c,
452 common/config/lm32/lm32-common.c,
453 common/config/m32c/m32c-common.c,
454 common/config/m32r/m32r-common.c,
455 common/config/m68k/m68k-common.c,
456 common/config/mcore/mcore-common.c,
457 common/config/mep/mep-common.c,
458 common/config/microblaze/microblaze-common.c,
459 common/config/mips/mips-common.c,
460 common/config/mmix/mmix-common.c,
461 common/config/mn10300/mn10300-common.c,
462 common/config/pdp11/pdp11-common.c,
463 common/config/picochip/picochip-common.c,
464 common/config/rs6000/rs6000-common.c,
465 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
466 common/config/score/score-common.c, common/config/sh/sh-common.c,
467 common/config/sparc/sparc-common.c,
468 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
469 common/config/vax/vax-common.c,
470 common/config/xstormy16/xstormy16-common.c,
471 common/config/xtensa/xtensa-common.c: New.
472 * config/alpha/alpha.c: Include common/common-target.h.
473 (alpha_option_optimization_table, alpha_handle_option,
474 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
475 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
476 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
477 * config/arm/arm.c (arm_option_optimization_table,
478 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
479 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
480 arm-common.c.
481 * config/avr/avr.c (avr_option_optimization_table,
482 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
483 to avr-common.c.
484 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
485 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
486 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
487 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
488 * config/cris/cris.c (cris_option_optimization_table,
489 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
490 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
491 cris-common.c.
492 * config/fr30/fr30.c (fr30_option_optimization_table,
493 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
494 to fr30-common.c.
495 * config/frv/frv.c (frv_option_optimization_table,
496 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
497 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
498 * config/h8300/h8300.c (h8300_option_optimization_table,
499 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
500 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
501 * config/i386/i386-protos.h (ix86_handle_option): Declare.
502 * config/i386/i386.c: Include common/common-target.h.
503 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
504 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
505 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
506 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
507 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
508 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
509 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
510 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
511 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
512 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
513 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
514 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
515 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
516 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
517 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
518 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
519 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
520 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
521 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
522 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
523 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
524 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
525 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
526 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
527 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
528 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
529 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
530 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
531 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
532 ix86_option_optimization_table, ix86_option_init_struct,
533 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
534 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
535 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
536 i386-common.c.
537 * config/i386/t-i386 (i386.o): Update dependencies.
538 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
539 * config/ia64/ia64.c (ia64_option_optimization_table,
540 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
541 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
542 ia64_handle_option): Move to ia64-common.c.
543 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
544 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
545 * config/lm32/lm32.c (lm32_option_optimization_table,
546 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
547 to lm32-common.c.
548 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
549 m32c-common.c.
550 * config/m32r/m32r.c (m32r_option_optimization_table,
551 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
552 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
553 m32r_handle_option): Move to m32r-common.c.
554 (m32r_memory_move_cost): Remove comment referring to
555 TARGET_HANDLE_OPTION.
556 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
557 Move to m68k-common.c.
558 * config/mcore/mcore.c (mcore_option_optimization_table,
559 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
560 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
561 * config/mep/mep.c (mep_option_optimization_table,
562 mep_handle_option, TARGET_HANDLE_OPTION,
563 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
564 Move to mep-common.c.
565 * config/microblaze/microblaze.c
566 (microblaze_option_optimization_table,
567 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
568 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
569 * config/mips/mips.c (mips_handle_option,
570 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
571 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
572 mips-common.c.
573 * config/mmix/mmix.c (mmix_option_optimization_table,
574 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
575 Move to mmix-common.c.
576 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
577 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
578 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
579 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
580 * config/pa/pa.c: Include common/common-target.h.
581 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
582 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
583 pa_handle_option): Move to pa-common.c.
584 (pa_option_override): Use targetm_common.except_unwind_info.
585 (pa_asm_output_mi_thunk, pa_function_section): Use
586 targetm_common.have_named_sections.
587 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
588 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
589 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
590 pdp11_handle_option, pdp11_option_init_struct): Move to
591 pdp11-common.c.
592 * config/picochip/picochip.c (picochip_option_optimization_table,
593 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
594 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
595 * config/rs6000/rs6000.c: Include common/common-target.h.
596 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
597 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
598 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
599 rs6000_handle_option): Move to rs6000-common.c.
600 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
601 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
602 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
603 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
604 * config/s390/s390.c (processor_flags_table,
605 s390_option_optimization_table, s390_option_init_struct,
606 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
607 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
608 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
609 * config/s390/s390.h (processor_flags_table): Declare.
610 * config/score/score.c (score_option_optimization_table,
611 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
612 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
613 score_handle_option): Move to score-common.c.
614 * config/sh/sh.c (sh_option_optimization_table,
615 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
616 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
617 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
618 * config/sparc/sparc.c: Include common/common-target.h.
619 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
620 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
621 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
622 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
623 spu_option_init_struct): Move to spu-common.c.
624 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
625 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
626 * config/v850/v850.c (small_memory_physical_max,
627 v850_handle_memory_optionn v850_handle_option,
628 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
629 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
630 v850-common.c.
631 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to
632 vax-common.c.
633 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
634 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
635 Move to xtensa-common.c.
636 * cfglayout.c: Include common/common-target.h.
637 (fixup_reorder_chain): Use targetm_common.have_named_sections.
638 * cfgrtl.c: Include common/common-target.h.
639 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
640 targetm_common.have_named_sections.
641 * dbxout.c: Include common/common-target.h.
642 (dbxout_function_end): Use targetm_common.have_named_sections.
643 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
644 targetm_common.except_unwind_info.
645 * dwarf2out.c: Include common/common-target.h.
646 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
647 dwarf2out_begin_prologue, dwarf2out_frame_init,
648 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
649 targetm_common.except_unwind_info.
650 * except.c: Include common/common-target.h.
651 (init_eh, finish_eh_generation,
652 output_one_function_exception_table): Use
653 targetm_common.except_unwind_info.
654 (switch_to_exception_section): Use
655 targetm_common.have_named_sections.
656 * explow.c: Include common/common-target.h.
657 * expr.c: Include common/common-target.h.
658 (build_personality_function): Use
659 targetm_common.except_unwind_info.
660 * function.c: Include common/common-target.h.
661 (expand_function_end): Use targetm_common.except_unwind_info.
662 * haifa-sched.c: Include common/common-target.h.
663 (sched_create_recovery_edges): Use
664 targetm_common.have_named_sections.
665 * lto-opts.c: Include common/common-target.h instead of target.h.
666 (lto_reissue_options): Use targetm_common.handle_option.
667 * opts.c: Include common/common-target.h.
668 (target_handle_option): Use targetm_common.handle_option.
669 (init_options_struct): Update comment referring to
670 targetm.target_option.optimization. Use
671 targetm_common.default_target_flags,
672 targetm_common.unwind_tables_default and
673 targetm_common.option_init_struct.
674 (default_options_optimization): Use
675 targetm_common.option_optimization_table.
676 (finish_options): Use targetm_common.except_unwind_info,
677 targetm_common.unwind_tables_default,
678 targetm_common.have_named_sections and
679 targetm_common.supports_split_stack.
680 * toplev.c: Include common/common-target.h.
681 (process_options): Use targetm_common.have_named_sections.
682 * tree-tailcall.c: Include common/common-target.h.
683 (suitable_for_tail_call_opt_p): Use
684 targetm_common.except_unwind_info.
685 * tree.c: Include common/common-target.h.
686 (build_common_builtin_nodes): Use
687 targetm_common.except_unwind_info.
688 * varasm.c: Include common/common-target.h.
689 (resolve_unique_section, hot_function_section,
690 default_function_section): Use targetm_common.have_named_sections.
691
692 2011-06-14 Easwaran Raman <eraman@google.com>
693
694 PR rtl-optimization/44194
695 * dse.c: Include tree-flow.h
696 (insn_info): Add new field non_frame_wild_read.
697 (group_info): Add new fields escaped_n and escaped_p.
698 (kill_on_calls): New variable.
699 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
700 (dse_step0): Initialize kill_on_calls.
701 (can_escape): New function.
702 (set_usage_bits): Add additional parameter; record information
703 about escaped locations.
704 (record_store): Pass EXPR corresponding to MEM to
705 set_usage_bits.
706 (dse_step2_nospill): Set kill_on_calls based on
707 group->escaped_n and group->escaped_n.
708 (add_wild_read): Refactor into...
709 (reset_active_stores): ... New function, and
710 (free_read_records): ... New function.
711 (add_non_frame_wild_read): New function.
712 (scan_insn): Call add_non_frame_wild_read on non-const calls.
713 (scan_reads_nospill): Handle instructions with
714 non_frame_wild_read.
715 (dse_step5_nospill): Call scan_reads_nospill for instructions
716 marked as non_frame_wild_read.
717 (dse_step7): Free escaped_n, escaped_p and kill_on_calls
718 bitmaps.
719
720 2011-06-14 Joseph Myers <joseph@codesourcery.com>
721
722 * common/common-target-def.h, common/common-target.def,
723 common/common-target.h, common/config/default-common.c,
724 common/config/pa/pa-common.c: New files.
725 * Makefile.in (common_out_file, common_out_object_file,
726 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
727 (OBJS-libcommon-target): Include $(common_out_object_file).
728 (prefix.o): Update dependencies.
729 ($(common_out_object_file), common/common-target-hooks-def.h,
730 s-common-target-hooks-def-h): New.
731 (s-tm-texi): Also check timestamp on common-target.def.
732 (build/genhooks.o): Update dependencies.
733 * config.gcc (common_out_file, target_has_targetm_common): Define.
734 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
735 TARGET_ALWAYS_STRIP_DOTDOT.
736 * configure.ac (common_out_object_file): Define.
737 (common_out_file, common_out_object_file): Substitute.
738 (common): Create directory.
739 * configure: Regenerate.
740 * doc/tm.texi.in (targetm_common): Document.
741 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
742 * doc/tm.texi: Regenerate.
743 * genhooks.c (hook_array): Also include common/common-target.def.
744 * prefix.c (tm.h): Don't include.
745 (common/common-target.h): Include.
746 (ALWAYS_STRIP_DOTDOT): Don't define.
747 (update_path): Use targetm_common.always_strip_dotdot instead of
748 ALWAYS_STRIP_DOTDOT.
749 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
750
751 2011-06-14 David Li <davidxl@google.com>
752
753 * passes.c (execute_function_todo): Remove TODO_dump_func.
754 (execute_one_pass): Remove TODO_dump_func.
755 (execute_function_dump): New function.
756 * tree-vrp.c: Remove TODO_dump_func.
757 * regrename.c: Remove TODO_dump_func.
758 * fwprop.c: Remove TODO_dump_func.
759 * tree-into-ssa.c: Remove TODO_dump_func.
760 * tree-complex.c: Remove TODO_dump_func.
761 * tracer.c: Remove TODO_dump_func.
762 * tree-loop-distribution.c: Remove TODO_dump_func.
763 * postreload-gcse.c: Remove TODO_dump_func.
764 * postreload.c: Remove TODO_dump_func.
765 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
766 * tree-tailcall.c: Remove TODO_dump_func.
767 * ipa-cp.c: Remove TODO_dump_func.
768 * final.c: Remove TODO_dump_func.
769 * tree-emutls.c: Remove TODO_dump_func.
770 * omp-low.c: Remove TODO_dump_func.
771 * tree-ssa-dse.c: Remove TODO_dump_func.
772 * tree-ssa-uncprop.c: Remove TODO_dump_func.
773 * auto-inc-dec.c: Remove TODO_dump_func.
774 * reorg.c: Remove TODO_dump_func.
775 * tree-ssa-copyrename.c: Remove TODO_dump_func.
776 * tree-ssa-ccp.c: Remove TODO_dump_func.
777 * compare-elim.c: Remove TODO_dump_func.
778 * mode-switching.c: Remove TODO_dump_func.
779 * modulo-sched.c: Remove TODO_dump_func.
780 * tree-call-cdce.c: Remove TODO_dump_func.
781 * cse.c: Remove TODO_dump_func.
782 * web.c: Remove TODO_dump_func.
783 * tree-stdarg.c: Remove TODO_dump_func.
784 * lto-streamer-out.c: Remove TODO_dump_func.
785 * tree-ssa-math-opts.c: Remove TODO_dump_func.
786 * tree-ssa-dom.c: Remove TODO_dump_func.
787 * tree-nrv.c: Remove TODO_dump_func.
788 * loop-init.c: Remove TODO_dump_func.
789 * gimple-low.c: Remove TODO_dump_func.
790 * ipa-inline.c: Remove TODO_dump_func.
791 * tree-ssa-sink.c: Remove TODO_dump_func.
792 * jump.c: Remove TODO_dump_func.
793 * ifcvt.c: Remove TODO_dump_func.
794 * tree-ssa-loop.c: Remove TODO_dump_func.
795 * recog.c: Remove TODO_dump_func.
796 * dse.c: Remove TODO_dump_func.
797 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
798 * matrix-reorg.c: Remove TODO_dump_func.
799 * tree-eh.c: Remove TODO_dump_func.
800 * regmove.c: Remove TODO_dump_func.
801 * function.c: Remove TODO_dump_func.
802 * tree-vectorizer.c: Remove TODO_dump_func.
803 * ipa-split.c: Remove TODO_dump_func.
804 * gcse.c: Remove TODO_dump_func.
805 * tree-if-conv.c: Remove TODO_dump_func.
806 * init-regs.c: Remove TODO_dump_func.
807 * tree-ssa-phiopt.c: Remove TODO_dump_func.
808 * implicit-zee.c: Remove TODO_dump_func.
809 * lower-subreg.c: Remove TODO_dump_func.
810 * bt-load.c: Remove TODO_dump_func.
811 * tree-dfa.c: Remove TODO_dump_func.
812 * except.c: Remove TODO_dump_func.
813 * emit-rtl.c: Remove TODO_dump_func.
814 * store-motion.c: Remove TODO_dump_func.
815 * cfgexpand.c: Remove TODO_dump_func.
816 * tree-cfgcleanup.c: Remove TODO_dump_func.
817 * cfgcleanup.c: Remove TODO_dump_func.
818 * tree-ssa-pre.c: Remove TODO_dump_func.
819 * tree-sra.c: Remove TODO_dump_func.
820 * tree-mudflap.c: Remove TODO_dump_func.
821 * tree-ssa-copy.c: Remove TODO_dump_func.
822 * cfglayout.c: Remove TODO_dump_func.
823 * tree-ssa-forwprop.c: Remove TODO_dump_func.
824 * tree-ssa-dce.c: Remove TODO_dump_func.
825 * ira.c: Remove TODO_dump_func.
826 * tree-ssa.c: Remove TODO_dump_func.
827 * integrate.c: Remove TODO_dump_func.
828 * tree-optimize.c: Remove TODO_dump_func.
829 * tree-ssa-phiprop.c: Remove TODO_dump_func.
830 * tree-object-size.c: Remove TODO_dump_func.
831 * combine.c: Remove TODO_dump_func.
832 * bb-reorder.c: Remove TODO_dump_func.
833 * cprop.c: Remove TODO_dump_func.
834 * var-tracking.c: Remove TODO_dump_func.
835 * tree-profile.c: Remove TODO_dump_func.
836 * tree-vect-generic.c: Remove TODO_dump_func.
837 * reg-stack.c: Remove TODO_dump_func.
838 * sched-rgn.c: Remove TODO_dump_func.
839 * tree-ssa-structalias.c: Remove TODO_dump_func.
840 * tree-switch-conversion.c: Remove TODO_dump_func.
841 * tree-cfg.c: Remove TODO_dump_func.
842 * tree-ssa-reassoc.c: Remove TODO_dump_func.
843 * combine-stack-adj.c: Remove TODO_dump_func.
844 * dce.c: Remove TODO_dump_func.
845 * tree-ssanames.c: Remove TODO_dump_func.
846 * regcprop.c: Remove TODO_dump_func.
847
848 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
849
850 PR middle-end/47364
851 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
852 and properly handle result not in Pmode.
853
854 2011-06-14 Robert Millan <rmh@gnu.org>
855
856 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
857 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
858 `config/linux.h'.
859
860 * config/i386/kfreebsd-gnu64.h: New file.
861 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
862 with `i386/kfreebsd-gnu64.h'.
863
864 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
865 (GNU_USER_LINK_EMULATION64): New macros.
866 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
867 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
868 of hardcoding `elf_i386' and `elf_x86_64'.
869
870 2011-06-14 Nick Clifton <nickc@redhat.com>
871
872 PR target/49403
873 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
874
875 PR target/49402
876 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
877
878 2011-06-14 Jakub Jelinek <jakub@redhat.com>
879
880 PR fortran/49103
881 * tree.h (DECL_NONSHAREABLE): Define.
882 (struct tree_decl_common): Change decl_common_unused to
883 decl_nonshareable_flag.
884 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
885 Ignore vars with DECL_NONSHAREABLE bit set.
886 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
887 on stores to automatic aggregate vars.
888
889 PR rtl-optimization/49390
890 Revert:
891 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
892
893 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
894 MEM_ALIAS_SET.
895
896 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
897 Tom de Vries <tom@codesourcery.com>
898
899 PR target/45098
900 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
901 Document changed semantics.
902 (max_stmt_executions, max_stmt_executions_int): Declare.
903 * tree-data-ref.c (estimated_loop_iterations)
904 (estimated_loop_iterations_int): Move functions...
905 * tree-ssa-loop-niter.c (estimated_loop_iterations)
906 (estimated_loop_iterations_int): here.
907 (record_estimate): Change nb_iterations_upper_bound and
908 nb_iterations_estimate semantics.
909 (max_stmt_executions, max_stmt_executions_int): New function.
910 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
911 (max_stmt_executions_tree): this.
912 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
913 estimated_loop_iterations_tree.
914 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
915 max_stmt_executions_int instead of estimated_loop_iterations_int.
916 * predict.c (predict_loops): Idem.
917 * tree-parloops.c (parallelize_loops): Idem.
918 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
919 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
920 (init_omega_for_ddr_1): Idem.
921 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
922 (loop_prefetch_arrays): Idem
923 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
924 max_stmt_executions instead of estimated_loop_iterations.
925 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
926 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
927 instead of nb_iterations_upper_bound.
928
929 2011-06-13 Jan Hubicka <jh@suse.cz>
930
931 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
932
933 2011-06-14 Richard Henderson <rth@redhat.com>
934
935 PR debug/48459
936 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
937 (based_loc_descr): Assert it's true.
938 (compute_frame_pointer_to_fb_displacement): Set it, rather than
939 aborting immediately.
940
941 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
942 Mingfeng Wu <mingfeng@faraday-tech.com>
943
944 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
945
946 2011-06-13 Jan Hubicka <jh@suse.cz>
947
948 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
949
950 2011-06-13 Jan Hubicka <jh@suse.cz>
951
952 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
953 similarly to DECL_COMDAT.
954 * cgraphunit.c (cgraph_analyze_function): Likewise.
955 * ipa.c (function_and_variable_visibility): Likewise.
956
957 2011-06-13 Jan Hubicka <jh@suse.cz>
958
959 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
960 BINFO_VIRTUALS when streaming for ltrans unit.
961
962 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
963
964 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
965 (movdi_internal64): Same.
966
967 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
968
969 PR target/44618
970 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
971 a set of similar patterns, where the MATCH_OPERAND for the function
972 argument is replaced with individual references to hardware registers.
973 (save_fpregs_<mode>): Ditto
974 (restore_gpregs_<mode>): Ditto
975 (return_and_restore_gpregs_<mode>): Ditto
976 (return_and_restore_fpregs_<mode>): Ditto
977 (return_and_restore_fpregs_aix_<mode>): Ditto
978
979 2011-06-13 Jan Hubicka <jh@suse.cz>
980
981 * ipa-utils.c (postorder_stack): New structure.
982 (ipa_reverse_postorder): Handle aliases.
983
984 2011-06-13 Jan Hubicka <jh@suse.cz>
985
986 * ipa-inline.c (reset_edge_caches): Walk aliases.
987 (update_caller_keys): Do not test inlinability of aliases.
988 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
989 (do_estimate_growth): Fix typo.
990
991 2011-06-13 Jan Hubicka <jh@suse.cz>
992
993 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
994 (can_remove_node_now_p): ... here; handle same comdat groups.
995 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
996 (inline_call): Update use of can_remove_node_now_p.
997
998 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
999
1000 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
1001 condition to disallow non-identical memory locations.
1002 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
1003 preference to bit manipulation instructions.
1004
1005 2011-06-13 Jan Hubicka <jh@suse.cz>
1006
1007 * cgraph.c (cgraph_for_node_thunks_and_aliases,
1008 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
1009 (nonremovable_p): New function.
1010 (cgraph_can_remove_if_no_direct_calls_p): New function.
1011 (used_from_object_file_p): New functoin.
1012 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
1013 references from aliases.
1014 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
1015 * ipa-inline.c (check_caller_edge): New function.
1016 (want_inline_function_called_once_p): Use it; accept aliases called
1017 once, too.
1018 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
1019
1020 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1021
1022 PR target/48454
1023 * config/arm/neon.md (vec_pack_trunc): Set the lengths
1024 correctly for the case with Quad vectors.
1025
1026 2011-06-13 Jakub Jelinek <jakub@redhat.com>
1027 Ira Rosen <ira.rosen@linaro.org>
1028
1029 PR tree-optimization/49352
1030 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
1031 all, make sure loop_use_stmt after the loop is a def stmt of a used
1032 SSA_NAME that is the only one defined inside of the loop. Don't
1033 check for COND_EXPR and GIMPLE_BINARY_RHS.
1034 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
1035 check_reduction is true.
1036
1037 2011-06-11 Jan Hubicka <jh@suse.cz>
1038
1039 PR middle-end/49373
1040 * ipa.c (cgraph_externally_visible_p): Check resolution info.
1041
1042 2011-06-11 Jan Hubicka <jh@suse.cz>
1043
1044 PR middle-end/48836
1045 * ipa-inline-transform.c: Include tree-pass.h
1046 (inline_transform): Set TODO_update_ssa_only_virtuals.
1047 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
1048
1049 2011-06-11 Jan Hubicka <jh@suse.cz>
1050
1051 PR middle-end/49378
1052 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
1053 aliases and thunks.
1054
1055 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
1056
1057 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
1058 Take number of iterations to peel into account for equally frequent
1059 misalignment values.
1060
1061 2011-06-11 Jan Hubicka <jh@suse.cz>
1062
1063 * lto-streamer-out.c (produce_symtab): Stream out the newly represented
1064 aliases.
1065
1066 2011-06-11 Jan Hubicka <jh@suse.cz>
1067
1068 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting varying
1069 args.
1070 (ipa_update_after_lto_read): Likewise.
1071 (ipa_write_node_info): Do not sream call_with_var_arguments.
1072 (ipa_read_node_info): Likewise.
1073
1074 2011-06-11 Jan Hubicka <jh@suse.cz>
1075
1076 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
1077
1078 2011-06-11 Jan Hubicka <jh@suse.cz>
1079
1080 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
1081 (lto_symtab_resolve_can_prevail_p): Likewise.
1082 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
1083 * cgraph.c (same_body_aliases_done): New global var.
1084 (cgraph_same_body_alias_1): Rename to ...
1085 (cgraph_create_function_alias): ... this one; reorg to new
1086 representation.
1087 (cgraph_same_body_alias): Use cgraph_create_function_alias;
1088 record references when asked to.
1089 (cgraph_add_thunk): Fix formating.
1090 (cgraph_get_node): Kill same body alias code.
1091 (cgraph_node_for_asm): Likewise.
1092 (cgraph_remove_same_body_alias): Remove.
1093 (cgraph_remove_node): Kill same body alias code.
1094 (cgraph_mark_address_taken_node): Mark also the aliased function
1095 as having address taken.
1096 (dump_cgraph_node): Dump same body aliases.
1097 (cgraph_for_node_thunks_and_aliases): Update for new alias
1098 representation.
1099 (cgraph_for_node_and_aliases): Likewise.
1100 * cgraph.h (same_body): Kll pointer.
1101 (same_body_alias): Update comment.
1102 (same_body_aliases_done): Declare.
1103 (cgraph_remove_same_body_alias): Remove declaration.
1104 (cgraph_create_function_alias): Declare.
1105 (cgraph_process_same_body_aliases): Declare.
1106 (cgraph_function_with_gimple_body_p): Check for alias.
1107 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
1108 (cgraph_alias_aliased_node): New function.
1109 (cgraph_function_node): Update for new aliases.
1110 (cgraph_function_or_thunk_node): Likewise.
1111 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
1112 (inline_call): Remove dead aliases.
1113 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
1114 name hack for same body aliases.
1115 (clone_of_p): Look through aliases.
1116 (verify_cgraph_node): Verify aliases.
1117 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
1118 (cgraph_process_same_body_aliases): New function.
1119 (process_function_and_variable_attributes): Disable weakref warning on
1120 alias.
1121 (cgraph_analyze_functions): Handle aliases.
1122 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
1123 (assemble_thunks): Rename to ...
1124 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
1125 (cgraph_expand_function): Remove alias output code.
1126 (cgraph_output_in_order): Skip aliases.
1127 (cgraph_preserve_function_body_p): Aliases don't need preserving.
1128 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
1129 (ipa_record_reference): Do not assert on alias references.
1130 (ipa_ref_has_aliases_p): New function.
1131 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
1132 (ipa_ref_has_aliases_p): Declare.
1133 * lto-cgraph.c (lto_output_node): Handle aliases.
1134 (input_node): Likewise.
1135 * lto-streamer-out.c (lto_output): Skip aliases.
1136 (produce_symtab): Kill same_body_alias code.
1137 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
1138 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
1139 * ipa-inline.c (update_caller_keys): Walk aliases.
1140 (inline_small_functions): Fix thinko in previous patch.
1141 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
1142 (function_and_variable_visibility): Do not walk same body aliases.
1143 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
1144 (ipa_pta_execute): Use it.
1145
1146 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
1147
1148 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
1149 (*vec_dupv2df): Rename from vec_dupv2df.
1150 (vec_dupv2df): New expander.
1151
1152 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
1153
1154 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
1155
1156 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
1157
1158 * config/i386/i386.md: Use default value in "isa" attribute.
1159 * config/i386/sse.md: Ditto.
1160 * config/i386/mmx.md: Ditto.
1161
1162 2011-06-10 Wei Guozhi <carrot@google.com>
1163
1164 PR target/45335
1165 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
1166 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
1167 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
1168 related peephole2.
1169 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
1170 related peephole2.
1171 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
1172 (arm_legitimate_ldrd_p): New prototype.
1173 (arm_output_ldrd): New prototype.
1174 * config/arm/arm.c (arm_check_ldrd_operands): New function.
1175 (arm_legitimate_ldrd_p): New function.
1176 (arm_output_ldrd): New function.
1177
1178 2011-06-10 David Li <davidxl@google.com>
1179
1180 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
1181 * passes.c (passr_eq): New function.
1182 (create_pass_tab): New function.
1183 (pass_traverse): New function.
1184 (dump_one_pass): New function.
1185 (dump_pass_list): New function.
1186 (dump_passes): New function.
1187
1188 2011-06-10 Jan Hubicka <jh@suse.cz>
1189
1190 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
1191 setting the nothrow flag.
1192 * ipa-reference.c (propagate): Skip aliases.
1193 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
1194 (propagate_nothrow): Skip aliases; do not update cgraph.
1195 (local_pure_const): Do not update cgraph.
1196 * tree-profile.c (tree_profiling): Do fixup_cfg.
1197
1198 2011-06-10 Jan Hubicka <jh@suse.cz>
1199
1200 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
1201 (cgraph_local_node_p): ... here; handle aliases.
1202 (has_addr_references_p): Break out from ...;
1203 (cgraph_remove_unreachable_nodes) ... here.
1204
1205 2011-06-10 Jan Hubicka <jh@suse.cz>
1206
1207 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
1208 * common.opt (flag_inline_functions_called_once): Do not
1209 initialize to 1.
1210
1211 2011-06-10 Jan Hubicka <jh@suse.cz>
1212
1213 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
1214 (ipcp_initialize_node_lattices): Do not deal with aliases;
1215 Do not try to propagate through thunks.
1216 (ipcp_change_tops_to_bottom): Do not deal with aliases.
1217
1218 2011-06-10 Jan Hubicka <jh@suse.cz>
1219
1220 * ipa-prop.c (ipa_write_node_info): Stream jump functions
1221 for indirect calls.
1222 (ipa_read_node_info): Likewise.
1223
1224 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1225
1226 PR lto/49302
1227 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
1228 (build_and_insert_call): Likewise.
1229 (build_and_insert_ref): New.
1230 (gimple_expand_builtin_pow): Minor cleanup.
1231 (gimple_expand_builtin_cabs): New.
1232 (execute_cse_sincos): Add case for BUILT_IN_CABS.
1233
1234 2011-06-10 Jan Hubicka <jh@suse.cz>
1235
1236 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
1237 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
1238 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
1239 (ipcp_propagate_stage): Skip aliases when propagating.
1240 (ipcp_need_redirect_p): Skip aliases.
1241 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
1242 collect_callers_of_node.
1243 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
1244 for aliases.
1245 (ipa_compute_jump_functions): Look through aliases.
1246
1247 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1248
1249 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
1250
1251 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
1252
1253 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
1254 Adjust comments.
1255 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
1256
1257 2011-06-10 Jan Hubicka <jh@suse.cz>
1258
1259 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
1260 Update call of gimple_get_virt_method_for_binfo.
1261 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
1262 refuse_thunks parameter.
1263 (gimple_fold_call): Update.
1264 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
1265
1266 2011-06-10 Jan Hubicka <jh@suse.cz>
1267
1268 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
1269 (not_all_callers_have_enough_arguments_p): ... this one; turn into
1270 worker for cgraph_for_node_and_aliases.
1271 (convert_callers_for_node): Break out from ...
1272 (convert_callers): ... here.
1273 (modify_function): Use collect_callers_of_node.
1274 (ipa_early_sra): Use cgraph_for_node_and_aliases.
1275
1276 2011-06-10 Richard Guenther <rguenther@suse.de>
1277
1278 PR tree-optimization/49361
1279 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
1280 when not already in gimple form.
1281
1282 2011-06-10 Richard Guenther <rguenther@suse.de>
1283
1284 PR bootstrap/49344
1285 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
1286 FOR_EACH_PHI_OR_STMT_USE.
1287
1288 2011-06-10 Jan Hubicka <jh@suse.cz>
1289
1290 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
1291 (clone_inlined_nodes): ... here.
1292 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
1293 to real destination prior inlining.
1294 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
1295 can_early_inline_edge_p, want_early_inline_function_p,
1296 want_early_inline_function_p, want_inline_small_function_p,
1297 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
1298 edge_badness, update_all_callee_keys, lookup_recursive_calls,
1299 add_new_edges_to_heap, inline_small_functions, flatten_function,
1300 inline_always_inline_functions, early_inline_small_functions): Use
1301 cgraph_function_or_thunk_node.
1302 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
1303 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
1304 (do_estimate_edge_growth_1): Break out from ...
1305 (do_estimate_growth) ... here; walk aliases.
1306 (inline_generate_summary): Skip aliases.
1307
1308 2011-06-10 Richard Guenther <rguenther@suse.de>
1309
1310 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
1311 forward when combining, visit inserted stmts when a stmt was changed.
1312
1313 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
1314
1315 * tree.h (error_operand_p): Add.
1316 * dbxout.c (dbxout_type_fields): Use the latter.
1317 * c-decl.c (add_stmt): Likewise.
1318 * gimplify.c (omp_add_variable, omp_notice_variable,
1319 gimplify_scan_omp_clauses): Likewise.
1320
1321 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
1322
1323 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
1324 when a value is actually passed in regs.
1325
1326 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
1327 Laurent Rougé <laurent.rouge@menta.fr>
1328
1329 * doc/invoke.texi (SPARC options): Add -mflat.
1330 * config/sparc/sparc.opt: Likewise.
1331 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
1332 (sparc_flat_expand_prologue): Declare.
1333 (sparc_flat_expand_epilogue): Likewise.
1334 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
1335 (CPP_ENDIAN_SPEC): Replace with...
1336 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
1337 (CPP_SPEC): Adjust to above change.
1338 (EXTRA_SPECS): Likewise.
1339 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
1340 (INCOMING_REGNO): Likewise.
1341 (OUTGOING_REGNO): Likewise.
1342 (LOCAL_REGNO): Likewise.
1343 (SETUP_FRAME_ADDRESSES): Likewise.
1344 (FIXED_REGISTERS): Set 0 for %fp.
1345 (CALL_USED_REGISTERS): Likewise.
1346 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
1347 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
1348 (RETURN_ADDR_REGNUM): Define.
1349 (RETURN_ADDR_RTX): Use it.
1350 (INCOMING_RETURN_ADDR_REGNUM): Define.
1351 (INCOMING_RETURN_ADDR_RTX): Use it.
1352 (DWARF_FRAME_RETURN_COLUMN): Likewise.
1353 (EH_RETURN_REGNUM): Define.
1354 (EH_RETURN_STACKADJ_RTX): Use it.
1355 (EH_RETURN_HANDLER_RTX): Delete.
1356 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
1357 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
1358 Delete.
1359 (struct machine_function): Add frame_size, apparent_frame_size,
1360 frame_base_reg, frame_base_offset, n_global_fp_regs and
1361 save_local_in_regs_p fields.
1362 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
1363 sparc_frame_base_offset, sparc_n_global_fp_regs,
1364 sparc_save_local_in_regs_p): New macros.
1365 (sparc_option_override): Error out if -fcall-saved-REG is specified
1366 for Out registers.
1367 (eligible_for_restore_insn): Fix formatting.
1368 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
1369 (eligible_for_sibcall_delay): Likewise.
1370 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
1371 (sparc_legitimate_address_p): Adjust to above change.
1372 (save_global_or_fp_reg_p): New predicate.
1373 (return_addr_reg_needed_p): Likewise.
1374 (save_local_or_in_reg_p): Likewise.
1375 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
1376 (SORR_SAVE, SORR_RESTORE): Delete.
1377 (sorr_pred_t): New typedef.
1378 (sorr_act_t): New enum.
1379 (save_or_restore_regs): Rename to...
1380 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
1381 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
1382 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
1383 mechanism. Add CFI information for double-word saves in 32-bit mode.
1384 (emit_adjust_base_to_offset): New function extracted from...
1385 (emit_save_or_restore_regs): ...this. Rename the rest to...
1386 (emit_save_or_restore_regs_global_fp_regs): ...this.
1387 (emit_save_or_restore_regs_local_in_regs): New function.
1388 (gen_create_flat_frame_[123]): New functions.
1389 (sparc_expand_prologue): Use SIZE local variable. Adjust.
1390 (sparc_flat_expand_prologue): New function.
1391 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
1392 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
1393 (sparc_flat_expand_epilogue): New function.
1394 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
1395 (output_return): Likewise.
1396 (output_sibcall): Likewise.
1397 (sparc_output_mi_thunk): Likewise.
1398 (sparc_frame_pointer_required): Likewise.
1399 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
1400 function optimization.
1401 * config/sparc/sparc.md (flat): New attribute.
1402 (prologue): Add TARGET_FLAT handling.
1403 (save_register_window): Disable if TARGET_FLAT.
1404 (create_flat_frame_[123]): New patterns.
1405 (epilogue): Add TARGET_FLAT handling.
1406 (sibcall_epilogue): Likewise.
1407 (eh_return): New expander.
1408 (eh_return_internal): New insn and splitter.
1409 (return_internal): Add TARGET_FLAT handling.
1410 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
1411 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
1412 (nonlocal_goto): Add TARGET_FLAT handling.
1413 * config/sparc/t-elf: Add -mflat multilib.
1414 * config/sparc/t-leon: Likewise.
1415
1416 2011-06-10 Jan Hubicka <jh@suse.cz>
1417
1418 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
1419 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
1420 (self_recursive_p): Use cgraph_function_node.
1421 (propagate_pure_const): Likewise.
1422 (propagate_nothrow): Likewise.
1423 * ipa-reference.c (ipa_reference_get_not_read_global): Use
1424 cgraph_function_node.
1425 (propagate_bits): Likewise.
1426 (propagate): Likewise.
1427
1428 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1429 Richard Earnshaw <rearnsha@arm.com>
1430
1431 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
1432 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
1433 (*thumb2_movdi_vfp): Delete.
1434 (*arm_movdi_vfp_cortexa8): Delete.
1435 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
1436 (*movdi_vfp_cortexa8): Likewise.
1437
1438 2011-06-10 Richard Guenther <rguenther@suse.de>
1439
1440 * stor-layout.c (initialize_sizetypes): Give names to all
1441 sizetype kinds.
1442
1443 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
1444
1445 PR tree-optimization/49318
1446 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
1447 irrelevant pattern statements.
1448
1449 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
1450
1451 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
1452
1453 PR bootstrap/49354
1454 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
1455 to last assignment.
1456
1457 2011-06-09 Jan Hubicka <jh@suse.cz>
1458
1459 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
1460 do not recompute reachable flag.
1461 (cgraph_finalize_function, cgraph_analyze_functions): Set
1462 redefined_extern_inline here.
1463
1464 2011-06-09 Jan Hubicka <jh@suse.cz>
1465
1466 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
1467 (cgraph_only_called_directly_p): ... this one; bring offline.
1468 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
1469 varpool_used_from_object_file_p): Drop names from the declaratoin.
1470 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
1471 collect_callers_of_node): New.
1472 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
1473 (cgraph_edge_recursive_p): Use cgraph_function_node.
1474 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
1475 (cgraph_node_cannot_be_local_p_1): Break out from ...
1476 (cgraph_node_can_be_local_p): ... here; walk aliases.
1477 (cgraph_for_node_thunks_and_aliases): New function.
1478 (cgraph_for_node_and_aliases): New function.
1479 (cgraph_make_node_local_1): Break out from ...
1480 (cgraph_make_node_local) ... here; use
1481 cgraph_for_node_thunks_and_aliases.
1482 (cgraph_set_nothrow_flag_1): Break out from ...
1483 (cgraph_set_nothrow_flag) ... here;
1484 use cgraph_for_node_thunks_and_aliases.
1485 (cgraph_set_const_flag_1): Break out from ...
1486 (cgraph_set_const_flag) ... here;
1487 use cgraph_for_node_thunks_and_aliases.
1488 (cgraph_set_pure_flag_1): Break out from ...
1489 (cgraph_set_pure_flag) ... here;
1490 use cgraph_for_node_thunks_and_aliases.
1491 (cgraph_propagate_frequency_1): Break out from ...
1492 (cgraph_propagate_frequency) ... here; use
1493 cgraph_for_node_thunks_and_aliases.
1494 (cgraph_used_from_object_file_p): Do not care about aliases.
1495 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
1496 New functions.
1497 (collect_callers_of_node_1, collect_callers_of_node): New functions.
1498
1499 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
1500
1501 PR rtl-optimization/49154
1502 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
1503 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
1504 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
1505 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
1506 * config/cris/cris.h (cris_register_move_cost): Remove
1507 !TARGET_V32 code. Tweak comments.
1508
1509 2011-06-09 Jan Hubicka <jh@suse.cz>
1510
1511 * cgraphbuild.c (record_eh_tables): Mark personality function as having
1512 address taken.
1513
1514 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
1515
1516 PR rtl-optimization/49154
1517 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
1518 is a matching slot in the hashtable, assign it to classes_ptr.
1519
1520 PR rtl-optimization/49154
1521 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
1522 register classes.
1523 * doc/tm.texi: Regenerate.
1524
1525 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
1526
1527 PR target/49307
1528 * config/sh/sh.md (UNSPEC_CHKADD): New.
1529 (chk_guard_add): New define_insn_and_split.
1530 (symGOT_load): Use chk_guard_add instead of blockage.
1531
1532 2011-06-09 Kai Tietz <ktietz@redhat.com>
1533
1534 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
1535
1536 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
1537
1538 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
1539
1540 2011-06-09 Wei Guozhi <carrot@google.com>
1541
1542 PR target/46975
1543 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
1544 (peephole2 for conditional move): Generate 16 bit instructions.
1545
1546 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
1547
1548 * config/i386/i386.md (*movdi_internal_rex64): Merge
1549 alternatives 6 and 8.
1550
1551 2011-06-09 David Li <davidxl@google.com>
1552
1553 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
1554 * passes.c (passr_eq): New function.
1555 (create_pass_tab): New function.
1556 (pass_traverse): New function.
1557 (dump_one_pass): New function.
1558 (dump_pass_list): New function.
1559 (dump_passes): New function.
1560
1561 2011-06-09 David Li <davidxl@google.com>
1562
1563 * tree-complex.c (tree_lower_complex): Gate cleanup.
1564 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
1565 (execute_optimize_stdarg): Ditto.
1566 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
1567 (execute_cleanup_eh_1): Ditto.
1568 (execute_cleanup_eh): Ditto.
1569 * gcse.c (gate_rtl_pre): Ditto.
1570 (execute_rtl_pre): Ditto.
1571 * except.c (finish_eh_generation): Ditto.
1572 (convert_to_eh_region_ranges): Ditto.
1573 * cprop.c (one_cprop_pass): Ditto.
1574
1575 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
1576
1577 PR target/48673
1578 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
1579 in all basic blocks.
1580
1581 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1582
1583 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
1584 (HAVE_ENABLE_EXECUTE_STACK): Define.
1585 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
1586 (HAVE_ENABLE_EXECUTE_STACK): Define.
1587 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
1588 (HAVE_ENABLE_EXECUTE_STACK): Define.
1589 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
1590 (ENABLE_EXECUTE_STACK): Remove.
1591 (HAVE_ENABLE_EXECUTE_STACK): Define.
1592 [IN_LIBGCC2]: Don't include <windows.h>.
1593 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
1594 (HAVE_ENABLE_EXECUTE_STACK): Define.
1595 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
1596 (HAVE_ENABLE_EXECUTE_STACK): Define.
1597 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
1598 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
1599 (HAVE_ENABLE_EXECUTE_STACK): Define.
1600 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
1601 (HAVE_ENABLE_EXECUTE_STACK): Define.
1602 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
1603 (HAVE_ENABLE_EXECUTE_STACK): Define.
1604 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
1605 (HAVE_ENABLE_EXECUTE_STACK): Define.
1606 * config/alpha/alpha.c (alpha_trampoline_init): Test
1607 HAVE_ENABLE_EXECUTE_STACK.
1608 * config/i386/i386.c (ix86_trampoline_init): Likewise.
1609 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
1610 (sparc64_initialize_trampoline): Likewise.
1611 * libgcc2.c [L_enable_execute_stack]: Remove.
1612 * system.h (ENABLE_EXECUTE_STACK): Poison.
1613 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
1614 * doc/tm.texi: Regenerate.
1615 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
1616
1617 2011-06-09 Jakub Jelinek <jakub@redhat.com>
1618
1619 PR middle-end/49308
1620 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
1621 variable. After resetting and rescanning insn continue with previous
1622 statement.
1623
1624 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1625
1626 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
1627 (gcc_cv_ld_hidden): Likewise.
1628 * configure: Regenerate.
1629 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
1630 (ix86_stack_protect_fail): Mark unused.
1631 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
1632 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
1633 [TARGET_MACHO]: Don't define.
1634 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
1635 (TARGET_STACK_PROTECT_FAIL): Likewise.
1636 (rs6000_stack_protect_fail): Mark unused.
1637 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
1638 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
1639
1640 2011-06-08 Andi Kleen <ak@linux.intel.com>
1641
1642 * varasm.c (get_section): Print location of other conflict
1643 for section conflicts.
1644
1645 2011-06-08 Andi Kleen <ak@linux.intel.com>
1646
1647 * config/i386/driver-i386.c (host_detect_local_cpu):
1648 Add model 0x2d Intel CPU.
1649
1650 2011-06-08 Andi Kleen <ak@linux.intel.com>
1651
1652 * reginfo.c (global_regs_decl): Add.
1653 (globalize_reg): Add decl parameter. Compute location. Pass location
1654 to warnings and add inform. Store decl in global_regs_decl.
1655 * rtl.h (globalize_reg): Update prototype.
1656 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
1657
1658 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
1659
1660 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
1661
1662 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
1663
1664 PR target/49305
1665 * config/sh/predicates.md (general_movsrc_operand): Check
1666 mode for memory with indexed address for QI and HImode.
1667 (general_movdst_operand): Likewise.
1668
1669 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
1670
1671 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
1672
1673 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
1674
1675 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
1676 (num_ssa_operands): Likewise.
1677 (op_iter_init_phiuse): Forward-declare.
1678 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
1679
1680 2011-06-08 Nick Clifton <nickc@redhat.com>
1681
1682 * doc/invoke.texi (ARM Options): Update description of
1683 -mthumb-interwork.
1684
1685 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
1686
1687 * config/i386/driver-i386.c (host_detect_local_cpu): Support
1688 unknown Intel family 0x6 CPUs.
1689
1690 2011-06-08 Martin Jambor <mjambor@suse.cz>
1691
1692 * tree-sra.c (mark_rw_status): Removed.
1693 (analyze_access_subtree): New parameter parent instead of
1694 mark_read and mark_write, propagate from that.
1695
1696 2011-06-08 Julian Brown <julian@codesourcery.com>
1697
1698 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
1699 for double-precision helper functions in hard-float mode if only
1700 single-precision arithmetic is supported in hardware.
1701
1702 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
1703
1704 PR rtl-optimization/49303
1705 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
1706 code_motion_path_driver returned 0 or 1.
1707 (sel_region_finish): Clear h_d_i_d.
1708
1709 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
1710
1711 * config/sh/sh.c (prepare_move_operands): Set pic register
1712 appropriately for global and local dynamic tls models even
1713 if flag_pic is unset.
1714
1715 2011-06-07 Jason Merrill <jason@redhat.com>
1716
1717 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
1718
1719 2011-06-07 Xinliang David Li <davidxl@google.com>
1720 * passes.c (enable_disable_pass): Handle assembler name.
1721 (is_pass_explicitly_enabled_or_disabled): Ditto.
1722
1723 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1724
1725 PR tree-optimization/48497
1726 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
1727
1728 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1729
1730 PR tree-optimization/46728
1731 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
1732 to use gimple_val_nonnegative_real_p.
1733 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
1734 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
1735
1736 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
1737
1738 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
1739
1740 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
1741
1742 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
1743 constant vectors.
1744
1745 2011-06-07 Richard Guenther <rguenther@suse.de>
1746
1747 * stor-layout.c (initialize_sizetypes): Initialize all
1748 sizetypes based on target definitions.
1749 (set_sizetype): Remove.
1750 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
1751 * tree.h (set_sizetype): Remove.
1752
1753 2011-06-07 Nick Clifton <nickc@redhat.com>
1754
1755 * config.gcc: Unify V850 architecture options and add support for
1756 newer V850 architectures.
1757 * config/v850/t-v850e: Delete.
1758
1759 2011-06-07 Richard Guenther <rguenther@suse.de>
1760
1761 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
1762 Call set_sizetype from here.
1763
1764 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
1765
1766 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
1767 (*maddhisi4tb, *maddhisi4tt): New define_insns.
1768
1769 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
1770 Andrew Stubbs <ams@codesourcery.com>
1771
1772 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
1773 multiplies.
1774 * doc/md.texi (Canonicalization of Instructions): Document widening
1775 multiply canonicalization.
1776
1777 2011-06-07 Jakub Jelinek <jakub@redhat.com>
1778
1779 PR gcov-profile/49299
1780 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
1781
1782 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
1783
1784 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
1785 a pointer.
1786 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
1787 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
1788 vect_recog_pow_pattern): Likewise.
1789 (vect_pattern_recog_1): Remove declaration.
1790 (widened_name_p): Remove declaration. Add new argument to specify
1791 whether to check that both types are either signed or unsigned.
1792 (vect_recog_widen_mult_pattern): Update documentation. Handle
1793 unsigned patterns and multiplication by constants.
1794 (vect_pattern_recog_1): Update vect_recog_func references. Use
1795 statement information from the statement returned from pattern
1796 detection functions.
1797 (vect_pattern_recog): Update vect_recog_func reference.
1798 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
1799 multiplication by a constant use the type of the other operand.
1800
1801 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
1802
1803 PR rtl-optimization/49145
1804 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
1805
1806 2011-06-06 Jakub Jelinek <jakub@redhat.com>
1807
1808 PR debug/49262
1809 * dwarf2out.c (native_encode_initializer): Decrement count in each
1810 iteration.
1811
1812 PR debug/49294
1813 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
1814 non-MODE_INT modes.
1815
1816 PR c++/49264
1817 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
1818 if stmt folded into nothing.
1819 * tree-inline.c (fold_marked_statements): If a builtin at the end of
1820 a bb folded into nothing, just update cgraph edges and move to next bb.
1821 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
1822 to be NULL. Don't compute count and frequency if new_call is NULL.
1823
1824 2011-06-04 Diego Novillo <dnovillo@google.com>
1825
1826 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
1827 (cgraph.o): Likewise.
1828 (cgraphunit.o): Likewise.
1829 * cgraphunit.c: Include lto-streamer.h
1830 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
1831 if LTO is enabled.
1832 * lto-streamer-in.c (unpack_value_fields): Call
1833 streamer_hooks.unpack_value_fields if set.
1834 (lto_materialize_tree): For unhandled nodes, first try to
1835 call lto_streamer_hooks.alloc_tree, if it exists.
1836 (lto_input_ts_decl_common_tree_pointers): Move reading of
1837 DECL_INITIAL to lto_streamer_read_tree.
1838 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
1839 (lto_streamer_read_tree): New.
1840 (lto_reader_init): Rename from lto_init_reader.
1841 Move initialization code to lto/lto.c.
1842 * lto-streamer-out.c (pack_value_fields): Call
1843 streamer_hooks.pack_value_fields if set.
1844 (lto_output_tree_ref): For tree nodes that are not normally indexable,
1845 call streamer_hooks.indexable_with_decls_p before giving up.
1846 (lto_output_ts_decl_common_tree_pointers): Move handling
1847 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
1848 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
1849 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
1850 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
1851 (lto_streamer_write_tree): New.
1852 (lto_output): Call lto_streamer_init directly.
1853 (lto_writer_init): Remove.
1854 * lto-streamer.c (streamer_hooks): New.
1855 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
1856 instead of lto_preload_common_nodes.
1857 (lto_is_streamable): Move from lto-streamer.h
1858 (lto_streamer_hooks_init): New.
1859 (streamer_hooks): New.
1860 (streamer_hooks_init): New.
1861 * lto-streamer.h (struct output_block): Forward declare.
1862 (struct lto_input_block): Likewise.
1863 (struct data_in): Likewise.
1864 (struct bitpack_d): Likewise.
1865 (struct streamer_hooks): Declare.
1866 (streamer_hooks): Declare.
1867 (lto_streamer_hooks_init): Declare.
1868 (lto_streamer_write_tree): Declare.
1869 (lto_streamer_read_tree): Declare.
1870 (streamer_hooks_init): Declare.
1871 (lto_is_streamable): Move to lto-streamer.c
1872
1873 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1874
1875 * longlong.h (smul_ppmm): The resulting register pair contains the
1876 higher order word first.
1877
1878 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1879
1880 PR tree-optimization/46728
1881 * builtins.c (powi_table): Remove.
1882 (powi_lookup_cost): Remove.
1883 (powi_cost): Remove.
1884 (expand_powi_1): Remove.
1885 (expand_powi): Remove.
1886 (expand_builtin_pow_root): Remove.
1887 (expand_builtin_pow): Remove.
1888 (expand_builtin_powi): Eliminate handling of constant exponent.
1889 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
1890
1891 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
1892
1893 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
1894
1895 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
1896
1897 * dce.c (reset_unmarked_insns_debug_uses): New.
1898 (delete_unmarked_insns): Skip debug insns.
1899 (prescan_insns_for_dce): Likewise.
1900 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
1901 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
1902 active reg can be found.
1903 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
1904 (convert_regs_1): Use it.
1905
1906 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
1907
1908 * tree-pretty-print.c (dump_function_header): Add flags.
1909 Don't dump decl_uid with nouid.
1910 * tree-pretty-print.h (dump_function_header): Adjust.
1911 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
1912 * passes.c (pass_init_dump_file): Pass dump_flags on.
1913 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
1914
1915 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
1916
1917 PR bootstrap/49270
1918 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
1919
1920 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
1921
1922 PR tree-optimization/49243
1923 * calls.c (setjmp_call_p): Also check if fndecl has the
1924 returns_twice attribute.
1925
1926 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1927
1928 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
1929 -ffast-math etc.
1930
1931 2011-06-06 Richard Henderson <rth@redhat.com>
1932 Georg-Johann Lay <avr@gjlay.de>
1933
1934 PR target/42210
1935 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
1936 New predicates.
1937 * config/avr/avr.md ("insv"): New insn expander.
1938 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
1939 "*insv.not.io", "*insv.reg"): New insns.
1940
1941 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
1942
1943 PR target/49285
1944 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
1945 to nonimmediate_operand from memory_operand for the operand that is to
1946 be forced to memory by the expander. Lose the constraints.
1947
1948 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
1949
1950 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
1951 EH return when delayed branches are disabled.
1952
1953 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
1954
1955 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
1956 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
1957 calculation.
1958 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
1959 Simplify MODE_V1DF and MODE_V2SF handling.
1960 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
1961 Simplify MODE_SF handling.
1962
1963 2011-06-04 Jan Hubicka <jh@suse.cz>
1964
1965 PR tree-optimization/48893
1966 PR tree-optimization/49091
1967 PR tree-optimization/49179
1968 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
1969 Bounds check.
1970
1971 2011-06-04 Jan Hubicka <jh@suse.cz>
1972
1973 PR lto/48954
1974 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
1975 bitmaps.
1976
1977 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
1978
1979 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
1980
1981 2011-06-04 Jakub Jelinek <jakub@redhat.com>
1982
1983 PR target/49281
1984 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
1985 to be strictly smaller than 1 << shiftcount.
1986
1987 2011-06-04 Jan Hubicka <jh@suse.cz>
1988
1989 PR tree-optimize/48929
1990 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
1991 of empty predicate.
1992
1993 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
1994
1995 PR debug/48333
1996 * calls.c (emit_call_1): Prefer the __builtin declaration of
1997 builtin functions.
1998
1999 2011-06-03 Diego Novillo <dnovillo@google.com>
2000
2001 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
2002 (lto_input_tree_pointers): Likewise.
2003 * lto-streamer-out.c (pack_value_fields): Likewise.
2004 (lto_output_tree_pointers): Likewise.
2005 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
2006 and OPTIMIZATION_NODE.
2007
2008 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2009
2010 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
2011 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
2012 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
2013 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
2014 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
2015 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
2016 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
2017 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
2018 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
2019 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
2020 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
2021 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
2022 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
2023 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
2024 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
2025 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
2026 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
2027 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
2028 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
2029 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
2030 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
2031 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
2032 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
2033 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
2034 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
2035 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
2036 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
2037 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
2038 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
2039 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
2040 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
2041 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
2042 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
2043 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
2044 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
2045 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
2046 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
2047 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
2048 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
2049 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
2050 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
2051 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
2052 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
2053 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
2054 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
2055 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
2056 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
2057 * system.h (MD_UNWIND_SUPPORT): Poison.
2058 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
2059 * doc/tm.texi: Regenerate.
2060 * unwind-dw2.c: Include md-unwind-support.h instead of
2061 MD_UNWIND_SUPPORT.
2062 * config/ia64/unwind-ia64.c: Likewise.
2063 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
2064
2065 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
2066
2067 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
2068
2069 2011-06-03 Richard Henderson <rth@redhat.com>
2070 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2071
2072 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
2073 (sigill_hdlr): Correct insn, insn size.
2074 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
2075
2076 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2077
2078 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
2079 t-slibgcc-dummy.
2080 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
2081 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
2082 * config/mips/t-iris: Remove.
2083 * config/mips/t-irix6: New file.
2084 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
2085
2086 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2087
2088 * Makefile.in (LIB2ADDEHDEP): Remove.
2089 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
2090 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
2091 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
2092 * config/t-darwin (LIB2ADDEHDEP): Remove.
2093 * config/t-freebsd (LIB2ADDEHDEP): Remove.
2094 * config/t-linux (LIB2ADDEHDEP): Remove.
2095
2096 2011-06-03 Diego Novillo <dnovillo@google.com>
2097
2098 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
2099 (lto_register_var_decl_in_symtab): Likewise.
2100 (lto_register_function_decl_in_symtab): Likewise.
2101 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
2102 logic to uniquify_nodes.
2103
2104 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2105
2106 * config/alpha/t-osf5: Remove.
2107 * config/alpha/t-osf-pthread: Remove.
2108 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
2109 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
2110
2111 2011-06-03 Julian Brown <julian@codesourcery.com>
2112
2113 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
2114 (strongarm1110): Use strongarm tuning.
2115 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
2116 * config/arm/arm.c (arm_strongarm_tune): New.
2117 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
2118 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
2119 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
2120 setting, using previous defaults or 1 for Cortex-A5.
2121 (arm_option_override): Set max_insns_skipped from current tuning.
2122
2123 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
2124
2125 * doc/install.texi (Options specification): Document --with-specs.
2126
2127 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2128
2129 * config/arm/neon.md (orndi3_neon): Actually split it.
2130
2131 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
2132
2133 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
2134 * var-tracking.c (reverse_op): Limite recurse depth to 5.
2135
2136 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
2137
2138 PR debug/47590
2139 * target.def (delay_sched2, delay_vartrack): New.
2140 * doc/tm.texi.in: Update.
2141 * doc/tm.texi: Rebuild.
2142 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
2143 * var-tracking.c (gate_handle_var_tracking): Likewise.
2144 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
2145 (bfin_flag_var_tracking): Drop.
2146 (output_file_start): Don't save and override flag_var_tracking.
2147 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
2148 (bfin_reorg): Test original variables.
2149 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
2150 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
2151 (ia64_flag_var_tracking): Drop.
2152 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
2153 (ia64_file_start): Don't save and override flag_var_tracking.
2154 (ia64_override_options_after_change): Ditto
2155 flag_schedule_insns_after_reload.
2156 (ia64_reorg): Test original variables.
2157 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
2158 (picochip_flag_var_tracking): Drop.
2159 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
2160 (picochip_option_override): Don't save and override
2161 flag_schedule_insns_after_reload.
2162 (picochip_asm_file_start): Ditto flag_var_tracking.
2163 (picochip_reorg): Test original variables.
2164 * config/spu/spu.c (spu_flag_var_tracking): Drop.
2165 (TARGET_DELAY_VARTRACK): Define.
2166 (spu_var_tracking): New.
2167 (spu_machine_dependent_reorg): Call it.
2168 (asm_file_start): Don't save and override flag_var_tracking.
2169
2170 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
2171
2172 PR target/49163
2173 * config/sh/predicates.md (general_movsrc_operand): Return 0
2174 for memory and memory subreg of which address is an invalid
2175 indexed address for QI and HImode.
2176 (general_movdst_operand): Likewise.
2177
2178 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
2179
2180 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
2181 edges only, when there is a non-local label in the function.
2182 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
2183
2184 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
2185
2186 * config/i386/constraints.md (Y3): New register constraint.
2187 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
2188 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
2189 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
2190 *sse2_interleave_lowv2df.
2191
2192 2011-06-02 Julian Brown <julian@codesourcery.com>
2193
2194 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
2195 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
2196 (arm_cortex_a5_tune): New.
2197
2198 2011-06-02 Julian Brown <julian@codesourcery.com>
2199
2200 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
2201 * config/arm/arm.c (arm_default_branch_cost): New.
2202 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
2203 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
2204 (arm_fa726_tune): Set branch_cost field using
2205 arm_default_branch_cost.
2206 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
2207 current_tune structure.
2208 * dojump.c (tm_p.h): Include file.
2209
2210 2011-06-02 Julian Brown <julian@codesourcery.com>
2211
2212 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
2213 tuning.
2214 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
2215 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
2216 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
2217 field.
2218 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
2219 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
2220 (arm_fa726te_tune): Add prefer_constant_pool setting.
2221 (arm_v6t2_tune, arm_cortex_tune): New.
2222 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
2223 prefer_constant_pool setting.
2224
2225 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
2226
2227 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
2228 switch statement.
2229 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
2230 (*movdf_internal) <case 6,7,8>: Ditto.
2231
2232 * config/i386/constraints.md (Y4): New register constraint.
2233 * config/i386/sse.md (vec_set<mode>_0): Merge with
2234 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
2235 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
2236 *vec_extractv2di_1_sse.
2237 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
2238 and *vec_concatv2di_rex64_sse.
2239
2240 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
2241
2242 PR target/48807
2243 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
2244 of cgraph_local_info for null before attempting to use it.
2245
2246 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
2247
2248 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
2249 (current_function_dynamic_alloc_count): Delete.
2250 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
2251 (expand_builtin_nonlocal_goto): Remove obsolete comment.
2252 (expand_builtin_update_setjmp_buf): Remove dead code.
2253 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
2254 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
2255 support.
2256 * function.c (instantiate_virtual_regs): Likewise.
2257 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
2258 for a block with a single abnormal incoming edge.
2259 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
2260 (SETJMP_VIA_SAVE_AREA): Delete.
2261 * config/sparc/sparc-protos.h (load_got_register): Declare.
2262 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
2263 (load_got_register): Make global.
2264 (sparc_frame_pointer_required): Add 'static'.
2265 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
2266 (sparc_builtin_setjmp_frame_value): New function.
2267 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
2268 (save_stack_nonlocal): New expander.
2269 (restore_stack_nonlocal): Likewise.
2270 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
2271 (nonlocal_goto_internal): New insn.
2272 (goto_handler_and_restore): Delete.
2273 (builtin_setjmp_setup): Likewise.
2274 (do_builtin_setjmp_setup): Likewise.
2275 (setjmp): Likewise.
2276 (builtin_setjmp_receiver): New expander.
2277
2278 2011-06-01 David Li <davidxl@google.com>
2279
2280 PR middle-end/49261
2281 * tree-pretty-print.c (dump_function_header): Format cleanup.
2282
2283 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
2284
2285 PR target/49238
2286 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
2287 needed when original operands are used for msw_skip comparison.
2288
2289 2011-06-01 Jakub Jelinek <jakub@redhat.com>
2290
2291 PR debug/49250
2292 * var-tracking.c (add_uses, add_stores): Don't call
2293 cselib_subst_to_values on ENTRY_VALUE.
2294
2295 2011-06-01 Diego Novillo <dnovillo@google.com>
2296
2297 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
2298 output_record_start with LTO_null instead of output_zero.
2299 (lto_output_ts_binfo_tree_pointers): Likewise.
2300 (lto_output_tree): Likewise.
2301 (output_eh_try_list): Likewise.
2302 (output_eh_region): Likewise.
2303 (output_eh_lp): Likewise.
2304 (output_eh_regions): Likewise.
2305 (output_bb): Likewise.
2306 (output_function): Likewise.
2307 (output_unreferenced_globals): Likewise.
2308 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
2309 instead of NUM_TREE_CODES.
2310 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
2311 (lto_output_int_in_range): Change << to >> when shifting VAL.
2312
2313 2011-06-01 Diego Novillo <dnovillo@google.com>
2314
2315 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
2316 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
2317
2318 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
2319
2320 PR target/45074
2321 * optabs.h (valid_multiword_target_p): Declare.
2322 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
2323 doing multi-word operations.
2324 * optabs.c (expand_binop): Likewise.
2325 (expand_doubleword_bswap): Likewise.
2326 (expand_absneg_bit): Likewise.
2327 (expand_unop): Likewise.
2328 (expand_copysign_bit): Likewise.
2329 (multiword_target_p): New function.
2330
2331 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
2332
2333 PR rtl-optimization/48830
2334 PR rtl-optimization/48808
2335 PR rtl-optimization/48792
2336 * reload.c (push_reload): Check contains_reg_of_mode.
2337 * reload1.c (strip_paradoxical_subreg): New function.
2338 (gen_reload_chain_without_interm_reg_p): Use it to handle
2339 paradoxical subregs.
2340 (emit_output_reload_insns, gen_reload): Likewise.
2341
2342 2011-06-01 David Li <davidxl@google.com>
2343
2344 * predict.c : Change pass name
2345 * ipa.c: Ditto.
2346 * dce.c: Ditto.
2347 * tree-profile.c: Ditto.
2348 * except.c: Ditto.
2349
2350 2011-06-01 David Li <davidxl@google.com>
2351
2352 * tree-pretty-print.c (dump_function_header): New function.
2353 * final.c (rest_of_clean_state): Use header dumper.
2354 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
2355 * passes.c (pass_init_dump_file): Use header dumper.
2356
2357 2011-06-01 Jakub Jelinek <jakub@redhat.com>
2358
2359 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
2360 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
2361 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
2362 New functions.
2363 (mem_loc_descriptor): Use them.
2364
2365 * var-tracking.c (create_entry_value): New function.
2366 (vt_add_function_parameter): Use it.
2367
2368 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2369
2370 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
2371 Include <signal.h>, <ucontext.h>.
2372 (sigill_caught): Define.
2373 (sigill_hdlr): New function.
2374 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
2375 insns can be executed.
2376 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
2377 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
2378
2379 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2380
2381 * config/t-slibgcc-darwin: Move to ...
2382 * config/t-slibgcc-dummy: ... this. Clarify comments.
2383 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
2384 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
2385 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
2386 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
2387 Remove i386/t-crtstuff from tmake_file.
2388 (i[34567]86-*-solaris2*): Remove t-svr4,
2389 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
2390 t-slibgcc-dummy.
2391 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
2392 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
2393 sparc/t-crtfm from tmake_file.
2394 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
2395 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
2396 Remove extra_parts.
2397 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
2398 * config/i386/t-nwld (SHLIB_LINK): Remove.
2399 * config/i386/t-rtems-i386: Rename to ...
2400 * config/i386/t-rtems: ... this.
2401 ($(T)crti.o, $(T)crtn.o): Remove.
2402 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
2403 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
2404 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
2405 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
2406 EXTRA_MULTILIB_PARTS): Remove.
2407 * config/sparc/t-sol2-64: Likewise.
2408 * config/sparc/t-sol2: Remove.
2409 * config/sparc/t-crtin: Remove.
2410 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
2411 * config/i386/gmon-sol2.c: Remove.
2412 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
2413 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
2414 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
2415 * config/i386/sol2-gc1.asm: Remove.
2416 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
2417 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
2418 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
2419 * config/t-slibgcc-sld: Remove.
2420
2421 2011-06-01 Jakub Jelinek <jakub@redhat.com>
2422
2423 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
2424 base_type_for_mode with op_mode instead of mode.
2425
2426 2011-06-01 Paul Brook <paul@cpodesourcery.com>
2427
2428 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
2429 Cortex-A15.
2430 * config/arm/arm-tune.md: Regenerate.
2431 * config/arm/arm-tables.opt: Regenerate.
2432 * config/arm/arm.c (FL_DIV): Rename...
2433 (FL_THUMB_DIV): ... to this.
2434 (FL_ARM_DIV): Define.
2435 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
2436 (arm_arch_hwdiv): Remove.
2437 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
2438 (arm_issue_rate): Add cortexr5.
2439 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
2440 __ARM_ARCH_EXT_IDIV__.
2441 (TARGET_IDIV): Define.
2442 (arm_arch_hwdiv): Remove.
2443 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
2444 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
2445 (divsi3, udivsi3): New patterns.
2446 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
2447 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
2448
2449 2011-06-01 Martin Jambor <mjambor@suse.cz>
2450
2451 * ipa-utils.c (ipa_dfs_info): New field scc_no.
2452 * ipa-utils.c (searchc): Set scc_no.
2453
2454 2011-06-01 Martin Jambor <mjambor@suse.cz>
2455
2456 * ipa-utils.c (searchc_env): New field allow_overwritable.
2457 (searchc): do not ignore edges to overwritable nodes if indicated
2458 by env->allow_overwritable.
2459 (ipa_reduced_postorder): Set env.allow_overwritable.
2460
2461 2011-06-01 Richard Guenther <rguenther@suse.de>
2462
2463 * tree.c (free_lang_data): Do not reset boolean_type_node nor
2464 char_type_node.
2465 * lto-streamer.c (lto_record_common_node): Take node pointer,
2466 do not register types.
2467 (lto_preload_common_nodes): Explicitly skip preloading nodes
2468 that differ between frontends.
2469
2470 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
2471
2472 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
2473 NON_FLOAT_REGS.
2474
2475 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
2476
2477 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
2478 parameter value for dump. Dump cost on outermost call only.
2479 (rs6000_memory_move_cost): Dump cost on outermost call only.
2480
2481 2011-05-31 Jakub Jelinek <jakub@redhat.com>
2482
2483 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
2484 DW_OP_GNU_convert ops.
2485
2486 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
2487 cselib_preserve_constants.
2488 (cselib_lookup_1): If cselib_preserve_constants,
2489 a new VALUE is being created for REG and there is a VALUE for the
2490 same register in wider mode, add another loc with lowpart SUBREG of
2491 the wider VALUE.
2492 (cselib_subst_to_values): Handle ENTRY_VALUE.
2493 * var-tracking.c (replace_expr_with_values): Return NULL for
2494 ENTRY_VALUE too.
2495 * dwarf2out.c (convert_descriptor_to_signed): New function.
2496 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
2497 instead of two shifts.
2498 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
2499 the right mode if needed.
2500 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
2501 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
2502 convert_descriptor_to_signed.
2503 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
2504 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
2505
2506 PR target/48688
2507 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
2508
2509 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
2510
2511 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
2512 of X87MODEI12 and SWI48x instead of SSEMODEI24.
2513 (SWI248x): New mode iterator, rename from X87MODEI.
2514 (X87MODEI): Remove mode iterator.
2515 (X87MODEI12): Ditto.
2516 (SSEMODEI24): Ditto.
2517
2518 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
2519
2520 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
2521 * doc/invoke.texi: Document max-vartrack-expr-depth.
2522 * var-tracking.c (EXPR_DEPTH): New.
2523 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
2524
2525 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
2526
2527 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
2528 * config/i386/sse.md: Add n to negated FMA pattern names.
2529
2530 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
2531
2532 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
2533
2534 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
2535
2536 * gengtype-state.c (read_state_params_structs): Initialize previous.
2537
2538 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
2539
2540 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
2541 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
2542
2543 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
2544
2545 * config/i386/i386.md (*movtf_internal): Avoid allocating general
2546 registers. Penalize F*r->o alternative to prevent partial memory
2547 stalls. Slightly penalize *roF->*r alternative. Generate SSE
2548 CONST_DOUBLE immediates when optimizing function for size. Do not move
2549 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
2550 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
2551 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
2552 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
2553 alternatives.
2554 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
2555
2556 (fp_register_operand splitters): Use fp_register_operand
2557 constraint. Do not use FP_REG_P in insn condition.
2558 (any_fp_register_operand splitters): Use any_fp_register_operand
2559 constraint. Do not use ANY_FP_REG_P in insn condition.
2560
2561 2011-05-31 Jan Hubicka <jh@suse.cz>
2562
2563 * cgraph.h (cgraph_inline_failed_t): Give enum a name
2564 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
2565 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
2566 (lto_output_edge): Use output_enum and var_len_unsigned.
2567 (lto_output_varpool_node): Likewise.
2568 (input_overwrite_node): Do not take resolution parameter;
2569 extract it from a bitpack.
2570 (input_node): Do not read resolution; use input_enum and
2571 var_len_unsigned.
2572 (input_varpool_node): Likewise.
2573 (input_edge): Likewise.
2574 (input_cgraph_1): Likewise.
2575
2576 2011-05-31 Richard Guenther <rguenther@suse.de>
2577
2578 * gimple.c (gimple_register_canonical_type): Do not register
2579 any types via gimple_register_type.
2580
2581 2011-05-31 Jan Hubicka <jh@suse.cz>
2582
2583 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
2584 of thunks.
2585
2586 2011-05-31 Jakub Jelinek <jakub@redhat.com>
2587
2588 PR rtl-optimization/49235
2589 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
2590 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
2591
2592 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
2593
2594 PR tree-optimization/49093
2595 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
2596 data references.
2597
2598 2011-05-31 Dodji Seketeli <dodji@redhat.com>
2599
2600 PR debug/49047
2601 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
2602 for concrete functions containing the code of cloned functions.
2603
2604 2011-05-31 Richard Guenther <rguenther@suse.de>
2605
2606 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
2607 to ...
2608 (forward_propagate_into_comparison_1): ... this.
2609 (forward_propagate_comparison): Rename to ...
2610 (forward_propagate_into_comparison): ... this. Split out
2611 real forward propagation code to ...
2612 (forward_propagate_comparison): ... this.
2613 (forward_propagate_into_gimple_cond): Remove looping.
2614 (forward_propagate_into_cond): Likewise.
2615 (simplify_not_neg_expr): Return whether we have done something.
2616 (simplify_gimple_switch): Likewise.
2617 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
2618 (ssa_forward_propagate_and_combine): ... this. Re-structure
2619 to do a forward forward-propagation walk on BBs and a backward
2620 stmt combining walk on BBs. Consistently re-scan changed statements.
2621 (pass_forwprop): Adjust.
2622
2623 2011-05-30 Ian Lance Taylor <iant@google.com>
2624
2625 * godump.c (go_format_type): Correct length of name added to
2626 obstack for anonymous field.
2627
2628 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
2629
2630 PR target/49186
2631 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
2632 part of the second operand is 0.
2633
2634 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
2635
2636 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
2637 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
2638 to memory for !TARGET_MEMORY_MISMATCH_STALL.
2639 (*movdf_internal_rex64): Do not penalize F->r alternative.
2640 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
2641 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
2642 when optimizing function for size. Do not move CONST_DOUBLEs
2643 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
2644 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
2645 SUBREGs. Do not check for MEM_P operands in the insn condition,
2646 check for ANY_FP_REGNO_P instead.
2647 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
2648 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
2649 function for speed.
2650 * config/i386/i386.c (ix86_option_override_internal): Do not
2651 set TARGET_INTEGER_DFMODE_MOVES here.
2652
2653 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
2654
2655 PR target/49168
2656 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
2657
2658 2011-05-30 Jakub Jelinek <jakub@redhat.com>
2659
2660 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
2661 DW_TAG_rvalue_reference_type even for
2662 -gdwarf-4 -fno-debug-types-section.
2663
2664 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2665
2666 PR tree-optimization/46728
2667 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
2668 (build_and_insert_binop): New.
2669 (gimple_expand_builtin_pow): Reorder args for
2670 build_and_insert_call; use build_and_insert_binop; add more
2671 optimizations for fractional exponents.
2672
2673 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
2674
2675 PR bootstrap/49190
2676
2677 Revert:
2678 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2679
2680 * tree.h (struct tree_identifier): Inherit from tree_typed, not
2681 tree_common.
2682 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
2683 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
2684 TS_BASE instead of TS_COMMON.
2685 * varasm.c (assemble_name): Remove assert.
2686
2687 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
2688
2689 * config.gcc: Keep obselete list sorted.
2690
2691 2011-05-30 Jakub Jelinek <jakub@redhat.com>
2692 Eric Botcazou <ebotcazou@adacore.com>
2693
2694 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
2695 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
2696 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
2697 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
2698 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
2699
2700 2011-05-30 Richard Guenther <rguenther@suse.de>
2701
2702 * gimple.c (gimple_types_compatible_p_1): Compare record
2703 and union type members properly.
2704
2705 2011-05-30 Richard Guenther <rguenther@suse.de>
2706
2707 PR tree-optimization/49210
2708 * ipa-split.c (split_function): Care for the case where the call
2709 result is not trivially convertible to the result holding variable.
2710
2711 2011-05-30 Richard Guenther <rguenther@suse.de>
2712
2713 PR tree-optimization/49218
2714 * tree-vrp.c (adjust_range_with_scev): Properly check whether
2715 overflow occured.
2716
2717 2011-05-30 Richard Guenther <rguenther@suse.de>
2718
2719 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
2720 New function split out from ...
2721 (forward_propagate_into_gimple_cond): ... here. Adjust.
2722 (forward_propagate_into_cond): Likewise.
2723 (forward_propagate_comparison): Also propagate into
2724 comparisons on assignment RHS. Change return value to
2725 behave similar to forward_propagate_into_cond.
2726 (tree_ssa_forward_propagate_single_use_vars): Handle
2727 strict-overflow warnings properly for forward_propagate_comparison.
2728
2729 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2730
2731 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
2732 from plugin linker.
2733 * configure: Regenerate.
2734
2735 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
2736
2737 PR tree-optimization/49199
2738 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
2739 non-reduction operands are either defined in the loop or by induction.
2740
2741 2011-05-29 Xinliang David Li <davidxl@google.com>
2742
2743 * opts-global.c (handle_common_deferred_options): Handle new options.
2744 * passes.c (register_one_dump_file): Call register_pass_name.
2745 (execute_one_pass): Check explicit enable/disable flag.
2746 (passr_hash): New function.
2747 (passr_eq): Ditto.
2748 (register_pass_name): Ditto.
2749 (get_pass_by_name): Ditto.
2750 (pass_hash): Ditto.
2751 (pass_eq): Ditto.
2752 (enable_pass): Ditto.
2753 (disable_pass): Ditto.
2754 (is_pass_explicitly_enabled_or_disabled): Ditto.
2755
2756 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
2757
2758 * config/i386/i386.md (*movoi_internal_avx): Use
2759 standard_sse_constant_opcode for alternative 0.
2760 (*movti_internal_sse): Ditto.
2761 (*movti_internal_rex64): Use standard_sse_constant_opcode for
2762 alternative 2.
2763 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
2764 sselog1 type moves.
2765 (*movsi_internal): Ditto.
2766 (*movdi_internal): Ditto. Add ssecvt type moves.
2767
2768 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
2769
2770 PR target/48830
2771 * rtlanal.c (simplify_subreg_regno): Adjust comment.
2772
2773 2011-05-29 Jakub Jelinek <jakub@redhat.com>
2774
2775 PR rtl-optimization/49095
2776 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
2777 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
2778
2779 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
2780
2781 PR target/43995
2782 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
2783 recurse_p argument. Only follow register copies if it is set,
2784 and prevent mips_find_pic_call_symbol from recursing.
2785 (mips_find_pic_call_symbol): Add a recurse_p argument.
2786 Pass it to mips_pic_call_symbol_from_set.
2787 (mips_annotate_pic_calls): Update accordingly.
2788
2789 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
2790
2791 * emit-rtl.c (try_split): Use a loop to search for
2792 NOTE_INSN_CALL_ARG_LOCATIONs.
2793
2794 2011-05-29 Richard Guenther <rguenther@suse.de>
2795
2796 PR tree-optimization/49217
2797 * ipa-pure-const.c (propagate_pure_const): Fix typos.
2798
2799 2011-05-28 Jan Hubicka <jh@suse.cz>
2800
2801 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
2802 length.
2803 (string_slot_free): Remove
2804 (create_output_block): Initialize obstack.
2805 (destroy_output_block): Free obstack.
2806 (lto_string_index): Add PERSISTENT parameter; do not duplicate
2807 the string unless it needs to be added into the hash.
2808 (lto_output_string_with_length): Add persistent attribute;
2809 handle NULL strings.
2810 (lto_output_string): Add PERSISTENT parameter.
2811 (output_string_cst, output_identifier): Simplify.
2812 (lto_output_location_bitpack): Update.
2813 (lto_output_builtin_tree): Update.
2814 * lto-streamer.h (struct output_block): Add obstack.
2815 (lto_output_string, lto_output_string_with_length): Remove
2816 declarations; functions are static now.
2817
2818 2011-05-28 Jan Hubicka <jh@suse.cz>
2819
2820 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
2821 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
2822 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
2823 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
2824 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
2825 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
2826 unpack_ts_decl_with_vis_value_fields,
2827 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
2828 lto_get_builtin_tree): Use enum and variable length i/o.
2829 * basic-block.h (profile_status_d): Add PROFILE_LAST.
2830 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
2831 New functions.
2832 (bp_pack_enum, bp_unpack_enum): New macros.
2833
2834 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
2835
2836 * genrecog.c: Remove redundant forward declarations.
2837
2838 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
2839
2840 * config.gcc: Deprecate mips*-*-openbsd*.
2841
2842 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
2843
2844 PR bootstrap/49195
2845 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
2846 for match_op_dup.
2847
2848 2011-05-27 Andrew Pinski <pinskia@gmail.com>
2849
2850 PR middle-end/48981
2851 * gengtype.c (vec_prefix_type): New function.
2852 (note_def_vec): Use vec_prefix_type and change the length
2853 attribute to be based on the prefix.
2854 * vec.c: Include coretypes.h before vec.h.
2855 (struct vec_prefix): Remove.
2856 (vec_gc_p_reserve): Change the offsetof to sizeof.
2857 (vec_gc_p_reserve_exact): Likewise.
2858 (vec_heap_p_reserve): Likewise.
2859 (vec_heap_p_reserve_exact): Likewise.
2860 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
2861 (vec_stack_p_reserve): Change the offsetof to sizeof.
2862 (vec_stack_p_reserve_exact): Likewise.
2863 * vec.h (struct vec_prefix): New struct definition.
2864 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
2865 (VEC_T_GTY(T,B)): Likewise.
2866 (DEF_VEC_FUNC_P(T)): Use prefix field.
2867 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
2868 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
2869
2870 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2871
2872 PR tree-optimization/46728
2873 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
2874 (powi_as_mults): Add gimple_set_location.
2875 (build_and_insert_call): New.
2876 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
2877 0.5, 0.25, 0.75, 1./3., or 1./6.
2878
2879 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
2880
2881 * doc/contrib.texi: Update copyright years.
2882 (Contributors): Add Zdenek Sojka.
2883
2884 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
2885
2886 * c-decl.c (c_push_function_context): Copy the current statement
2887 list stack.
2888 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
2889 (finish_struct): Call building_stmt_list_p instead of checking
2890 cur_stmt_list.
2891 * c-parser.c (c_parser_postfix_expression): Likewise.
2892 * c-typeck.c (c_end_compound_stmt): Likewise.
2893 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
2894 * tree-iterator.c (stmt_list_cache): Change to a VEC.
2895 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
2896 (free_stmt_list): Likewise.
2897 * tree.h (struct tree_statement_list): Include typed_tree instead
2898 of tree_common.
2899 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
2900 as TS_TYPED instead of TS_COMMON.
2901
2902 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2903 Uros Bizjak <ubizjak@gmail.com>
2904
2905 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
2906 (HAVE_AS_IX86_TLSGDPTL): Define.
2907 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
2908 (HAVE_AS_IX86_TLSLDMPLT): Define.
2909 * configure: Regenerate.
2910 * config.in: Regenerate.
2911 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
2912 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
2913 TARGET_SUN_TLS, use @tlsgdplt or @plt.
2914 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
2915 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
2916 @tlsldmplt or @plt.
2917 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
2918
2919 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
2920
2921 * sched-int.h (struct _haifa_deps_insn_data): New members cond
2922 and reverse_cond.
2923 (INSN_COND, INSN_REVERSE_COND): New macros.
2924 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
2925 once.
2926 (sched_get_condition_with_rev): Cache the results, and look them up
2927 if possible.
2928 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
2929 are clobbered by the current insn.
2930 * target.def (exposed_pipline): New sched data hook.
2931 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
2932 * doc/tm.texi: Regenerate.
2933
2934 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2935
2936 PR tree-optimization/49170
2937 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
2938 sincos or cexp.
2939
2940 2011-05-27 Richard Guenther <rguenther@suse.de>
2941
2942 PR middle-end/49189
2943 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
2944 of comparisons.
2945
2946 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
2947
2948 * haifa-sched.c (sched_scan_info): Remove.
2949 (schedule_block): Call sched_extend_luids rather than sched_init_luids
2950 with NULL args.
2951 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
2952 Remove functions.
2953 (sched_scan): Remove.
2954 (sched_extend_luids): Renamed from luids_extend_insn and no longer
2955 static. All callers changed.
2956 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
2957 static. All callers changed.
2958 (sched_init_luids): Remove all arguments except the first. All
2959 callers changed. Don't use sched_scan.
2960 (haifa_init_h_i_d): Likewise.
2961 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
2962 manually rather than using sched_init_luids. Likewise with
2963 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
2964 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
2965 rather than sched_init_luids with NULL args.
2966 * sel-sched-ir.c (new_insns): Remove variable.
2967 (sched_scan): New static function, previously in haifa-sched.c. Remove
2968 all arguments but the first two; all callers changed.
2969 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
2970 rather than sched_init_luids.
2971 (sel_init_bbs): Remove second argument. All callers changed.
2972 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
2973 with NULL arguments.
2974 (create_insn_rtx_from_pattern): Likewise.
2975 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
2976 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
2977 (sched_init_insn_luid, sched_extend_luids): Declare.
2978 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
2979 declarations.
2980
2981 2011-05-27 Richard Guenther <rguenther@suse.de>
2982
2983 PR middle-end/49177
2984 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
2985 A CMP B ? (T) true : (T) false for non-integral types T again.
2986
2987 2011-05-27 Jan Hubicka <jh@suse.cz>
2988
2989 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
2990 so 0 means NULL string.
2991 (lto_output_string_with_length): ... here.
2992 (lto_output_string, output_string_cst, output_identifier): Update
2993 handling of NULL strings.
2994 (lto_output_location_bitpack): New function.
2995 (lto_output_location): Use it.
2996 (lto_output_tree_ref): Use output_record_start.
2997 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
2998 len values.
2999 * lto-streamer-in.c (string_for_index): Break out from ...; offset
3000 values by 1.
3001 (input_string_internal): ... here;
3002 (input_string_cst, input_identifier, lto_input_string): Update handling
3003 of NULL strings.
3004 (lto_input_location_bitpack): New function
3005 (lto_input_location): Use it.
3006 (unpack_ts_type_common_value_fields): Pack align & alias in var len
3007 values.
3008 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
3009 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
3010 (bp_pack_value): Sanity check the value range.
3011 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
3012 New functions.
3013 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
3014 New functions.
3015
3016 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
3017
3018 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
3019 call_arg_location instructions down the floor.
3020
3021 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
3022
3023 PR rtl-optimization/49154
3024 * ira.c (setup_pressure_classes): Process class without sublcasses
3025 as a candidate for pressure classes.
3026
3027 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
3028
3029 PR rtl-optimization/48575
3030 * genrecog.c (position_type): New enum.
3031 (position): New structure.
3032 (decision): Use position structure instead of a string.
3033 (root_pos, peep2_insn_pos_list): New variables.
3034 (next_position, compare_positions): New functions.
3035 (new_decision): Use position structures instead of strings.
3036 (maybe_both_true): Likewise.
3037 (change_state): Likewise.
3038 (write_tree): Likewise.
3039 (make_insn_sequence): Likewise.
3040
3041 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3042
3043 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
3044 TS_BASE instead of TS_COMMON.
3045 (find_decls_types_r): Check for TS_TYPED structure before looking at
3046 TREE_TYPE.
3047 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
3048 Add chain field.
3049 (BLOCK_CHAIN): Use new chain field.
3050
3051 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
3052
3053 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
3054 moves expensive on Power7 also.
3055
3056 2011-05-26 Richard Guenther <rguenther@suse.de>
3057
3058 * fold-const.c (fold_unary_loc): Remove bogus code.
3059
3060 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3061
3062 * tree.h (struct tree_identifier): Inherit from tree_typed, not
3063 tree_common.
3064 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
3065 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
3066 TS_BASE instead of TS_COMMON.
3067 * varasm.c (assemble_name): Remove assert.
3068
3069 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
3070
3071 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
3072 substituted first.
3073 * libgcc-std.ver: Delete file.
3074
3075 2011-05-26 Richard Guenther <rguenther@suse.de>
3076
3077 PR tree-optimization/48702
3078 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
3079 only when we know the base address is within bounds.
3080 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
3081 assume the base address of TARGET_MEM_REFs is in bounds.
3082
3083 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3084
3085 PR target/49099
3086 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
3087 declaration in TARGET_SOLARIS.
3088
3089 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
3090
3091 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
3092 The instruction is then expanded explicitly.
3093 (supported_compare): Callable instruction.
3094 (compare): Likewise.
3095
3096 2011-05-26 Jakub Jelinek <jakub@redhat.com>
3097
3098 PR c++/49165
3099 * gimplify.c (shortcut_cond_r): Don't special case
3100 COND_EXPRs if they have void type on one of their arms.
3101
3102 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
3103
3104 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
3105 to reduce duplication, and to achieve a slightly more logical order
3106 of operations.
3107
3108 2011-05-26 Jakub Jelinek <jakub@redhat.com>
3109
3110 PR tree-optimization/49161
3111 * tree-vrp.c (struct case_info): New type.
3112 (compare_case_labels): Sort case_info structs instead of
3113 trees, and not primarily by CASE_LABEL uids but by
3114 label_for_block indexes.
3115 (find_switch_asserts): Put case labels into struct case_info
3116 array instead of TREE_VEC, adjust sorting, compare label_for_block
3117 values instead of CASE_LABELs.
3118
3119 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3120
3121 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
3122 ("orndi3_neon"): Likewise.
3123 ("bic<mode>3_neon"): Likewise.
3124
3125 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
3126
3127 PR tree-optimization/49038
3128 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
3129 Ensure at least one epilogue iteration if required by data
3130 accesses with gaps.
3131 * tree-vectorizer.h (struct _loop_vec_info): Add new field
3132 to mark loops that require peeling for gaps.
3133 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
3134 (vect_get_known_peeling_cost): Take peeling for gaps into
3135 account.
3136 (vect_transform_loop): Generate epilogue if required by data
3137 access with gaps.
3138 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
3139 loop as requiring an epilogue if there are gaps in the end of
3140 the strided group.
3141
3142 2011-05-25 Ian Lance Taylor <iant@google.com>
3143
3144 * godump.c (go_format_type): Output the first field with a usable
3145 Go type, if any.
3146
3147 2011-05-25 Ian Lance Taylor <iant@google.com>
3148
3149 * godump.c (go_format_type): Check for invalid type names, pointer
3150 target types, and struct field types.
3151
3152 2011-05-25 Jason Merrill <jason@redhat.com>
3153
3154 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
3155
3156 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
3157
3158 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
3159
3160 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
3161
3162 * config/i386/i386.md (*movqi_extv_1)): Put back
3163 "register_operand" check in "type" calculation.
3164 (*movqi_extzv_2): Likewise.
3165
3166 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
3167
3168 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
3169
3170 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
3171
3172 PR bootstrap/49160
3173 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
3174 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
3175 __divxc3, __divtc3): Wrap definitions in #ifndef.
3176
3177 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
3178
3179 PR target/49142
3180 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
3181 "register_operand" check and replace q_regs_operand with
3182 QIreg_operand in "type" calculation.
3183 (*movqi_extv_1): Likewise.
3184 (*movqi_extzv_2_rex64): Likewise.
3185 (*movqi_extzv_2): Likewise.
3186
3187 * config/i386/predicates.md (QIreg_operand): New.
3188
3189 2011-05-25 Richard Guenther <rguenther@suse.de>
3190
3191 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
3192 type-based offset disambiguation, streamline MEM_REF and
3193 TARGET_MEM_REF handling.
3194
3195 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
3196
3197 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
3198 (bdesc_special_args): Add pause intrinsic.
3199
3200 * config/i386/i386.md (UNSPEC_PAUSE): New.
3201 (pause): Likewise.
3202 (*pause): Likewise.
3203 * config/i386/ia32intrin.h (__pause): Likewise.
3204
3205 * doc/extend.texi (X86 Built-in Functions): Add documentation for
3206 pause intrinsic.
3207
3208 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3209
3210 PR tree-optimization/46728
3211 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
3212 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
3213
3214 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
3215
3216 * tree.h (struct tree_exp): Inherit from struct tree_typed.
3217 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
3218 instead of TS_COMMON.
3219
3220 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
3221
3222 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
3223 LIBGCC2_GNU_PREFIX is defined.
3224 (__N): New macro.
3225 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
3226 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
3227 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
3228 __clz_tab): Define using __N.
3229 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
3230 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
3231 * target.def (libfunc_gnu_prefix): New hook.
3232 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
3233 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
3234 * doc/tm.texi: Regenerate.
3235 * system.h (LIBGCC2_GNU_PREFIX): Poison.
3236 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
3237 account.
3238 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
3239 (init_optabs): Likewise for the bswap libfuncs.
3240 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
3241 and divide.
3242 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
3243 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
3244 * libgcc-std.ver: Remove.
3245 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
3246 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
3247 libgcc-std.ver.
3248 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
3249 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
3250 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
3251 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
3252 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
3253 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
3254 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
3255 * config/fixed-bit.h (FIXED_OP): Define differently depending on
3256 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
3257 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
3258
3259 2011-05-25 Jan Hubicka <jh@suse.cz>
3260
3261 * lto-streamer-out.c (output_record_start): Use lto_output_enum
3262 (lto_output_tree): Use output_record_start.
3263 * lto-streamer-in.c (input_record_start): Use lto_input_enum
3264 (lto_get_pickled_tree): Use input_record_start.
3265 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
3266 (lto_value_range_error): New function.
3267 * lto-streamer.h (lto_value_range_error): Declare.
3268 (lto_output_int_in_range, lto_input_int_in_range): New functions.
3269 (lto_output_enum, lto_input_enum): New macros.
3270
3271 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
3272
3273 * common.opt (flag_stack_usage_info): New variable.
3274 (-Wstack-usage): New option.
3275 * doc/invoke.texi (Warning options): Document -Wstack-usage.
3276 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
3277 <OPT_fstack_usage>: Likewise.
3278 * toplev.c (output_stack_usage): Handle -Wstack-usage.
3279 * calls.c (expand_call): Test flag_stack_usage_info variable instead
3280 of flag_stack_usage.
3281 (emit_library_call_value_1): Likewise.
3282 * explow.c (allocate_dynamic_stack_space): Likewise.
3283 * function.c (instantiate_virtual_regs ): Likewise.
3284 (prepare_function_start): Likewise.
3285 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
3286 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
3287 * config/arm/arm.c (arm_expand_prologue): Likewise.
3288 (thumb1_expand_prologue): Likewise.
3289 * config/avr/avr.c (expand_prologue): Likewise.
3290 * config/i386/i386.c (ix86_expand_prologue): Likewise.
3291 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
3292 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
3293 * config/mips/mips.c (mips_expand_prologue): Likewise.
3294 * config/pa/pa.c (hppa_expand_prologue): Likewise.
3295 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
3296 * config/s390/s390.c (s390_emit_prologue): Likewise.
3297 * config/sh/sh.c (sh_expand_prologue): Likewise.
3298 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
3299 * config/spu/spu.c (spu_expand_prologue): Likewise.
3300
3301 2011-05-25 Richard Guenther <rguenther@suse.de>
3302
3303 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
3304 (gimple_canonical_types_compatible_p): Likewise.
3305
3306 2011-05-25 Jan Hubicka <jh@suse.cz>
3307
3308 PR middle-end/49062
3309 * ipa.c (function_and_variable_visibility): Only add to same
3310 comdat group list if DECL_ONE_ONLY.
3311
3312 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
3313
3314 PR rtl-optimization/49014
3315 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
3316
3317 2011-05-25 Jakub Jelinek <jakub@redhat.com>
3318
3319 PR target/49128
3320 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
3321
3322 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
3323
3324 PR rtl-optimization/48757
3325 * ira-build.c (loop_with_eh_edge_p): Rename to
3326 loop_with_complex_edge_p, check edges on complexity, make function
3327 conditional.
3328 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
3329 conditional.
3330
3331 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
3332
3333 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
3334 force flag_ira_share_save_slots to 0.
3335
3336 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
3337
3338 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
3339 (vt_initialize): Set PROLOGUE_BB unconditionally.
3340 Add block comment about CFA_BASE_RTX machinery.
3341 Reset FP_CFA_OFFSET to -1 on all invalid paths.
3342 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
3343
3344 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
3345
3346 PR objc/48187
3347 * c-parser.c (c_parser_objc_class_instance_variables): More robust
3348 parsing of syntax error in ObjC instance variable lists. In
3349 particular, avoid an infinite loop if there is a stray ']'.
3350 Updated error message.
3351
3352 2011-05-24 Ian Lance Taylor <iant@google.com>
3353
3354 * godump.c (go_define): Don't accept a string immediately after
3355 another operand.
3356
3357 2011-05-24 Ian Lance Taylor <iant@google.com>
3358
3359 * godump.c (struct godump_container): Add invalid_hash field.
3360 (go_format_type): Return false if type is found in invalid_hash.
3361 (go_output_typedef): Add invalid type to invalid_hash.
3362 (go_finish): Create and delete invalid_hash.
3363
3364 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3365
3366 PR tree-optimization/46728
3367 * tree-ssa-math-opts.c (powi_table): New.
3368 (powi_lookup_cost): New.
3369 (powi_cost): New.
3370 (powi_as_mults_1): New.
3371 (powi_as_mults): New.
3372 (gimple_expand_builtin_powi): New.
3373 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
3374 (gate_cse_sincos): Remove sincos/cexp restriction.
3375
3376 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3377
3378 PR target/3746
3379 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
3380 mips-tdump native.
3381 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
3382 * mips-tdump.c: Likewise.
3383
3384 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
3385
3386 PR target/49128
3387 * config/i386/driver-i386.c (host_detect_local_cpu): Always
3388 add -mno-XXX. Handle FMA.
3389
3390 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
3391
3392 PR rtl-optimization/48633
3393 * ira-build.c (loop_with_eh_edge_p): New function.
3394 (mark_loops_for_removal): Use it.
3395
3396 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
3397
3398 PR rtl-optimization/48971
3399 * ira.c (setup_pressure_classes): Don't check register move cost
3400 for classes with one registers. Don't add pressure class if there
3401 is a pressure class with the same available hard registers.
3402 Check contains_reg_of_mode. Fix a typo in collecting
3403 temp_hard_regset. Ignore hard registers not belonging to a class.
3404
3405 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
3406
3407 PR target/49133
3408 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
3409
3410 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
3411 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3412
3413 PR gcov-profile/48845
3414 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
3415
3416 2011-05-24 Richard Guenther <rguenther@suse.de>
3417
3418 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
3419 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
3420 (gimple_types_compatible_p_1): Adjust.
3421 (iterative_hash_canonical_type): Do not bother about complete vs.
3422 incomplete types.
3423 (gimple_canonical_types_compatible_p): Likewise.
3424
3425 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3426
3427 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
3428
3429 2011-05-24 Richard Guenther <rguenther@suse.de>
3430
3431 PR bootstrap/49078
3432 * gimple.c (gimple_register_canonical_type): Revert
3433 previous change.
3434 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
3435 does not for a tree for the case where it matters. Cache
3436 pointer-type alias-sets.
3437
3438 2011-05-24 Joseph Myers <joseph@codesourcery.com>
3439
3440 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
3441 (OBJS): Remove options.o, opts-common.o and prefix.o.
3442 (OBJS-libcommon-target): New.
3443 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
3444 (BACKEND): Include libcommon-target.a.
3445 (MOSTLYCLEANFILES): Include libcommon-target.a.
3446 (libcommon-target.a): New.
3447 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
3448 prefix.o.
3449
3450 2011-05-23 Joseph Myers <joseph@codesourcery.com>
3451
3452 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
3453 parts of output shared with the driver.
3454 * optc-gen.awk: Don't generate parts of output not shared with the
3455 driver.
3456 * opth-gen.awk: Remove GCC_DRIVER conditionals.
3457 * doc/options.texi (SourcerInclude): Mention options-save.c.
3458 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
3459 (OBJS): Add options-save.o.
3460 (options-save.c, options-save.o): New.
3461 (options.o): Update dependencies.
3462 (gcc-options.o): Remove.
3463 (mostlyclean): Remove options-save.c.
3464
3465 2011-05-23 Jakub Jelinek <jakub@redhat.com>
3466
3467 PR debug/49032
3468 * dbxout.c: Include cgraph.h.
3469 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
3470 and without value expr, return NULL if no varpool node exists for
3471 it or if it is not needed.
3472 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
3473
3474 PR c/49120
3475 * c-decl.c (start_decl): Convert expr to void_type_node.
3476
3477 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
3478
3479 PR rtl-optimization/48826
3480 * emit-rtl.c (try_split): When splitting a call that is followed
3481 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
3482
3483 2011-05-23 Jakub Jelinek <jakub@redhat.com>
3484
3485 * cfgexpand.c (expand_debug_expr): For unused non-addressable
3486 parameters passed in memory prefer using DECL_INCOMING_RTL over
3487 the pseudos it will be copied into.
3488
3489 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
3490
3491 PR target/47315
3492 * config/i386/i386.c (ix86_option_override_internal): Save the
3493 initial options after checking vzeroupper.
3494
3495 2011-05-23 David Li <davidxl@google.com>
3496
3497 PR tree-optimization/48988
3498 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
3499 Initialize has_valid_pred for each pred chain.
3500
3501 2011-05-23 Richard Guenther <rguenther@suse.de>
3502
3503 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
3504 (iterative_hash_gimple_type): Always hash type names.
3505
3506 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
3507
3508 * c-typeck.c (build_function_call_vec): Tweak call to
3509 check_function_arguments.
3510
3511 2011-05-23 Richard Guenther <rguenther@suse.de>
3512
3513 PR tree-optimization/49115
3514 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
3515 is not necessarily carried out, do not claim it kills the ref.
3516 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
3517
3518 2011-05-23 Richard Guenther <rguenther@suse.de>
3519
3520 PR middle-end/15419
3521 * builtins.c (fold_builtin_memory_op): Be less restrictive about
3522 what pointer types we accept for folding.
3523
3524 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3525
3526 * gthr-gnat.c: Remove.
3527 * gthr-gnat.h: Remove.
3528 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
3529 * config/t-freebsd (LIB2ADDEH): Likewise.
3530 * config/t-linux (LIB2ADDEH): Likewise.
3531 * config/t-sol2 (LIB2ADDEH): Likewise.
3532 * config/ia64/t-vms (LIB2ADDEH): Likewise.
3533 * configure.ac (target_thread_file): Remove gnat handling.
3534 * configure: Regenerate.
3535 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
3536
3537 2011-05-23 Tristan Gingold <gingold@adacore.com>
3538 Eric Botcazou <ebotcazou@adacore.com>
3539
3540 * gcov.c (create_file_names): If no object directory is specified,
3541 keep the directory of the file.
3542
3543 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3544
3545 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
3546 * configure: Regenerate.
3547
3548 2011-05-23 Jakub Jelinek <jakub@redhat.com>
3549
3550 PR middle-end/48973
3551 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
3552 failed and the comparison has a single bit signed type, use
3553 constm1_rtx instead of const1_rtx for true value.
3554 (do_store_flag): If ops->type is single bit signed type, disable
3555 signel bit test optimization and pass -1 instead of 1 as last
3556 parameter to emit_store_flag_force.
3557
3558 2011-05-23 Tom de Vries <tom@codesourcery.com>
3559
3560 PR target/45098
3561 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
3562 function.
3563 (infer_loop_bounds_from_undefined): Use new function.
3564
3565 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
3566
3567 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
3568 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
3569 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
3570 and -O0 otherwise.
3571 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
3572
3573 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
3574
3575 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
3576 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
3577 returns true.
3578
3579 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
3580
3581 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
3582
3583 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
3584
3585 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
3586 UNSPEC_MOVE_PIC pattern.
3587
3588 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
3589
3590 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
3591 (sparc-*-rtems*): Likewise.
3592 (sparc64-*-elf*): Likewise.
3593 (sparc64-*-rtems*): Likewise.
3594 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
3595 * config/sparc/t-crtin: New file.
3596 * config/sparc/t-sol2 (crti.o): Delete rule.
3597 (crtn.o): Likewise.
3598 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
3599 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
3600 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
3601 (ENDFILE_SPEC): Add crtn.o.
3602
3603 2011-05-22 Tom de Vries <tom@codesourcery.com>
3604
3605 PR middle-end/48689
3606 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
3607 CODE_CONTAINS_STRUCT (TS_COMMON).
3608
3609 2011-05-22 Jakub Jelinek <jakub@redhat.com>
3610
3611 PR middle-end/49029
3612 * expmed.c (extract_fixed_bit_field): Test whether target can be used
3613 only after deciding which mode to use.
3614
3615 2011-05-22 Tom de Vries <tom@codesourcery.com>
3616
3617 PR target/45098
3618 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
3619 for call to get_shiftadd_cost.
3620
3621 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
3622
3623 PR target/49104
3624 * config/i386/cpuid.h (bit_MMXEXT): New define.
3625
3626 2011-05-22 Nick Clifton <nickc@redhat.com>
3627
3628 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
3629 initialisation of non-existant args[2] element. Use args[] array
3630 not arg[] array to pass arguments to build_function_type_list.
3631
3632 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
3633
3634 PR tree-optimization/49087
3635 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
3636
3637 2011-05-21 Jason Merrill <jason@redhat.com>
3638
3639 PR c++/49092
3640 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
3641 static storage duration.
3642
3643 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
3644
3645 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
3646 frame pointer.
3647
3648 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
3649
3650 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
3651 false if there are call-saved registers here...
3652 (sparc_can_use_return_insn_p): ...but here instead.
3653 (save_or_restore_regs): Fix thinko.
3654 (sparc_expand_prologue): Use current_function_is_leaf.
3655 (sparc_frame_pointer_required): Likewise.
3656
3657 2011-05-21 Nick Clifton <nickc@redhat.com>
3658
3659 PR target/49098
3660 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
3661
3662 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
3663
3664 * gengtype.c (walk_type): Implemented "atomic" GTY option.
3665 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
3666
3667 2011-05-21 Joseph Myers <joseph@codesourcery.com>
3668
3669 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
3670 * optc-gen.awk: Move common code to opt-read.awk.
3671 * opth-gen.awk: Likewise.
3672 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
3673
3674 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
3675
3676 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
3677
3678 2011-05-20 Tom de Vries <tom@codesourcery.com>
3679
3680 PR target/45098
3681 * tree-ssa-loop-ivopts.c: Include expmed.h.
3682 (get_shiftadd_cost): New function.
3683 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
3684
3685 2011-05-20 Jakub Jelinek <jakub@redhat.com>
3686
3687 PR bootstrap/49086
3688 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
3689 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
3690
3691 2011-05-20 Joseph Myers <joseph@codesourcery.com>
3692
3693 * Makefile.in: Update comment referring to $(OBJS-common).
3694
3695 2011-05-20 Ian Lance Taylor <iant@google.com>
3696
3697 * godump.c (go_output_typedef): Put enum constants in the macro
3698 hash table to avoid duplicate Go const definitions.
3699
3700 2011-05-20 Joseph Myers <joseph@codesourcery.com>
3701
3702 * Makefile.in (LIBDEPS): Add libcommon.a.
3703 (LIBS): Likewise.
3704 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
3705 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
3706 pretty-print.o and version.o.
3707 (OBJS-libcommon): New.
3708 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
3709 (BACKEND): Add libcommon.a.
3710 (MOSTLYCLEANFILES): Likewise.
3711 (libcommon.a): New.
3712 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
3713 (cpp$(exeext)): Likewise.
3714 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
3715 pretty-print.o and input.o.
3716 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
3717 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
3718 (errors.o): Remove.
3719 (mips-tfile): Don't explicitly use version.o.
3720 (mips-tdump): Likewise.
3721 (gcov.o): Depend on $(DIAGNOSTIC_H).
3722 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
3723 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
3724 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
3725 * gcov-dump.c: Include intl.h and diagnostic.h.
3726 (main): Initialize diagnostics.
3727 * gcov.c: Include diagnostic.h.
3728 (fnotice): Remove.
3729 (main): Initialize diagnostics.
3730 * lto-wrapper.c: Include diagnostic.h.
3731 (main): Initialize diagnostics.
3732
3733 2011-05-20 Michael Matz <matz@suse.de>
3734
3735 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
3736
3737 2011-05-20 Michael Matz <matz@suse.de>
3738 Richard Guenther <rguenther@suse.de>
3739
3740 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
3741 use lto_streamer_cache_append directly instead of returning a VEC.
3742 (preload_common_node): Remove.
3743 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
3744 track seen nodes.
3745 (lto_streamer_cache_create): Call lto_preload_common_nodes.
3746
3747 2011-05-20 Richard Guenther <rguenther@suse.de>
3748
3749 PR tree-optimization/49079
3750 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
3751 MEM_REFs correctly for the trailing array access detection.
3752 Special case constants the same way as decls for overall size
3753 constraining.
3754
3755 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
3756
3757 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
3758 argument expansion.
3759
3760 2011-05-20 Jakub Jelinek <jakub@redhat.com>
3761
3762 PR tree-optimization/49073
3763 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
3764 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
3765 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
3766
3767 2011-05-20 Richard Guenther <rguenther@suse.de>
3768
3769 PR middle-end/48849
3770 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
3771 of pointer types the same way the middle-end does.
3772
3773 2011-05-20 Richard Guenther <rguenther@suse.de>
3774
3775 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
3776 or pointer-to chains. Delay all fixup to uniquify_nodes.
3777
3778 2011-05-19 Quentin Neill <quentin.neill@amd.com>
3779
3780 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
3781 (fma4_fmaddsub): Likewise
3782
3783 2011-05-19 Jan Hubicka <jh@suse.cz>
3784
3785 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
3786 (GIMPLE_TYPE_PAIR_SIZE): New macro.
3787 (type_pair_cache): New static var.
3788 (lookup_type_pair): Use fixed sized custom hash; make inline.
3789 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
3790 calls of lookup_type_pair.
3791 (print_gimple_types_stats): Remove cache stats.
3792 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
3793 and gtc_ob.
3794
3795 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
3796
3797 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
3798 when TARGET_RDRND is active.
3799 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
3800 Generate dummy SImode target register when target is NULL.
3801
3802 2011-05-19 Joseph Myers <joseph@codesourcery.com>
3803
3804 * config/arm/arm-fpus.def: New.
3805 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
3806 arm-fpus.def.
3807 * config/arm/arm-tables.opt: Regenerate.
3808 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
3809 (arm_option_override): Don't decode FPU name to string here.
3810 * config/arm/arm.opt (mfpu=): Use Enum.
3811 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
3812 Update dependencies.
3813
3814 2011-05-19 Joseph Myers <joseph@codesourcery.com>
3815
3816 * collect2.c: Include diagnostic.h.
3817 (fatal_perror, fatal, error, fancy_abort): Remove.
3818 (main): Set progname. Call xmalloc_set_program_name and
3819 diagnostic_initialize.
3820 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
3821 scan_libraries, resolve_lib_name): Call fatal_error instead of
3822 fatal and fatal_perror.
3823 * collect2.h (error, fatal, fatal_perror): Don't declare.
3824 * tlink.c: Include diagnostic-core.h.
3825 (recompile_files): Call fatal_error instead of fatal_perror.
3826 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
3827 pretty-print.o and input.o.
3828 (collect2.o, tlink.o): Update dependencies.
3829
3830 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3831
3832 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
3833
3834 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3835
3836 PR target/40483
3837 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
3838 COMDAT group syntax, both SPARC and x86 variants.
3839 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
3840 * configure: Regenerate.
3841 * config/sol2.h (TARGET_SOLARIS): Define.
3842 (PUSHSECTION_FORMAT): Remove.
3843 (SECTION_NAME_FORMAT): Define.
3844 * config/sol2.c: Include hashtab.h.
3845 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
3846 expansion, using SECTION_NAME_FORMAT.
3847 (solaris_comdat_htab): New variable.
3848 (struct comdat_entry): Define.
3849 (comdat_hash): New function.
3850 (comdat_eq): New function.
3851 (solaris_elf_asm_comdat_section): New function.
3852 (solaris_define_comdat_signature): New function.
3853 (solaris_code_end): New function.
3854 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
3855 (solaris_code_end): Declare.
3856 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
3857 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
3858 solaris_code_end.
3859 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
3860 Remove ATTRIBUTE_UNUSED.
3861 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
3862 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
3863 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
3864 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
3865 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
3866 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
3867 (PUSHSECTION_FORMAT): Remove.
3868 (SECTION_NAME_FORMAT): Redefine.
3869
3870 2011-05-19 Kai Tietz <ktietz@redhat.com>
3871
3872 * tree-cfg.c (verify_gimple_assign_binary): Barf on
3873 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
3874 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
3875
3876 2011-05-19 Anatoly Sokolov <aesok@post.ru>
3877 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3878
3879 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
3880
3881 2011-05-19 Richard Guenther <rguenther@suse.de>
3882
3883 PR middle-end/48985
3884 * tree-object-size.c (addr_object_size): If the pointed-to
3885 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
3886
3887 2011-05-19 Richard Guenther <rguenther@suse.de>
3888
3889 * gimple.c (gimple_types_compatible_p_1): Compare names of
3890 the types themselves.
3891 (iterative_hash_gimple_type): And hash them that way.
3892 (gimple_register_type_1): If we register a main variant properly
3893 initialize the leader to ourselves.
3894
3895 2011-05-19 Tom de Vries <tom@codesourcery.com>
3896
3897 PR target/45098
3898 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
3899 get_loop_invariant_expr_id.
3900 (get_loop_invariant_expr_id): Use get_expr_id.
3901 (parm_decl_cost): New function.
3902 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
3903 Improve bound cost estimation. Use different inv_expr_id for elim and
3904 express cases.
3905
3906 2011-05-19 Tom de Vries <tom@codesourcery.com>
3907
3908 PR target/45098
3909 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
3910 cost_base.cost == 0.
3911
3912 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
3913
3914 PR target/49002
3915 * config/i386/sse.md
3916 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
3917 load cast.
3918
3919 2011-05-18 Jakub Jelinek <jakub@redhat.com>
3920
3921 PR tree-optimization/49039
3922 * tree-vrp.c (extract_range_from_binary_expr): For
3923 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
3924 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
3925
3926 2011-05-18 Tom de Vries <tom@codesourcery.com>
3927
3928 PR target/45098
3929 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
3930
3931 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
3932
3933 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
3934 (*tls_global_dynamic_64): Ditto.
3935 (*tls_local_dynamic_base_32_gnu): Ditto.
3936 (*tls_local_dynamic_base_64): Ditto.
3937 (tls_initial_exec_64_sun): Ditto.
3938
3939 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
3940
3941 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
3942 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
3943 bf592-none.
3944 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
3945 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
3946 * config/bfin/bfin.c (bfin_cpus): Add bf592.
3947 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
3948 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
3949 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
3950 * config/bfin/elf.h (LIB_SPEC): Add bf592.
3951
3952 2011-05-18 Joseph Myers <joseph@codesourcery.com>
3953
3954 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
3955 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
3956 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
3957 target_thread_pointer, arm_structure_size_boundary, struct
3958 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
3959 struct abi_name, arm_all_abis): Remove.
3960 (arm_option_override) Don't process most enumerated option values here.
3961 Don't process target_fpe_name here. Work with integer not string for
3962 structure size boundary; use separate diagnostics for each case.
3963 * config/arm/arm.h (enum float_abi_type, enum
3964 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
3965 to arm-opts.h.
3966 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
3967 arm_structure_size_boundary): Remove.
3968 * config/arm/arm.opt (mabi=): Use Enum and Init.
3969 (arm_abi_type): New Enum and EnumValue entries.
3970 (mfloat-abi=): Use Enum and Init.
3971 (float_abi_type): New Enum and EnumValue entries.
3972 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
3973 (mfp16-format=): Use Enum and Init.
3974 (arm_fp16_format_type): New Enum and EnumValue entries.
3975 (mstructure-size-boundary=): Use UInteger and Init.
3976 (mtp=): Use Enum and Init.
3977 (arm_tp_type): New Enum and EnumValue entries.
3978
3979 2011-05-18 Richard Guenther <rguenther@suse.de>
3980
3981 PR tree-optimization/49018
3982 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
3983 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
3984 gimple_has_side_effects.
3985
3986 2011-05-18 Richard Guenther <rguenther@suse.de>
3987
3988 * gimple.c (gimple_register_type_1): New function, split out from ...
3989 (gimple_register_type): ... here. Avoid infinite recursion.
3990
3991 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
3992
3993 PR tree-optimization/41881
3994 * tree-vectorizer.h (struct _loop_vec_info): Add new field
3995 reduction_chains along with a macro for its access.
3996 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
3997 (destroy_loop_vec_info): Free reduction chains.
3998 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
3999 (vect_is_slp_reduction): New function.
4000 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
4001 (vect_create_epilog_for_reduction): Support SLP reduction chains.
4002 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
4003 definition types for reduction chains.
4004 (vect_supported_load_permutation_p): Don't allow permutations for
4005 reduction chains.
4006 (vect_analyze_slp_instance): Support reduction chains.
4007 (vect_analyze_slp): Try to build SLP instance from reduction chains.
4008 (vect_get_constant_vectors): Handle reduction chains.
4009 (vect_schedule_slp_instance): Mark the first statement of the
4010 reduction chain as reduction.
4011
4012 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
4013
4014 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
4015 names for group elements access.
4016 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
4017 reduction chains as well. Remove data reference and interleaving
4018 related words from the fields names.
4019 * tree-vect-loop.c (vect_transform_loop): Use new names for group
4020 elements access.
4021 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
4022 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
4023 vect_update_interleaving_chain, vect_same_range_drs,
4024 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
4025 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
4026 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
4027 vect_analyze_group_access, vect_analyze_data_ref_access,
4028 vect_create_data_ref_ptr, vect_transform_strided_load,
4029 vect_record_strided_load_vectors): Likewise.
4030 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
4031 vect_model_load_cost, vectorizable_store, vectorizable_load,
4032 vect_remove_stores, new_stmt_vec_info): Likewise.
4033 * tree-vect-slp.c (vect_build_slp_tree,
4034 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
4035
4036 2011-05-18 Richard Guenther <rguenther@suse.de>
4037
4038 PR middle-end/48989
4039 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
4040 operand verification.
4041 (verify_gimple_assign_binary): Likewise.
4042 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
4043 to non-1-precision BOOLEAN_TYPEs.
4044
4045 2011-05-18 Tom de Vries <tom@codesourcery.com>
4046
4047 PR target/45098
4048 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
4049
4050 2011-05-18 Jakub Jelinek <jakub@redhat.com>
4051
4052 PR tree-optimization/49000
4053 * tree-ssa.c (execute_update_addresses_taken): Call
4054 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
4055 be rewritten and decl has been marked for renaming, reset
4056 the debug stmt.
4057
4058 2011-05-17 Joseph Myers <joseph@codesourcery.com>
4059
4060 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
4061 enum_opts_set when testing if attributes have set -mfpmath=.
4062
4063 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
4064
4065 * config/mips/mips.c (mips_handle_option): Remove unused variable.
4066
4067 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
4068
4069 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
4070 info->entry with 0
4071 * tree-inline.c (maybe_inline_call_in_expr): Initialize
4072 id.transform_lang_insert_block with NULL.
4073
4074 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
4075
4076 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
4077 (output_fp_compare): Change args 3 and 4 to bool.
4078 (ix86_expand_call): Change arg 6 to bool.
4079 (ix86_attr_length_immediate_default): Change arg 2 to bool.
4080 (ix86_attr_length_vex_default): Change arg 3 to bool.
4081 * config/i386/i386.md: Update all uses.
4082 * config/i386/i386.c: Ditto.
4083 (ix86_flags_dependent): Change return type to bool.
4084
4085 2011-05-17 Richard Guenther <rguenther@suse.de>
4086
4087 * gimple.c (type_hash_pair_compare): Fix comparison.
4088
4089 2011-05-17 Richard Guenther <rguenther@suse.de>
4090
4091 * gimple.c (iterative_hash_gimple_type): Simplify singleton
4092 case some more, fix final hash value of the non-singleton case.
4093
4094 2011-05-17 Richard Guenther <rguenther@suse.de>
4095
4096 PR bootstrap/49013
4097 Revert
4098 2011-05-16 Richard Guenther <rguenther@suse.de>
4099
4100 * gimple.c (gimple_types_compatible_p_1): Use names of the
4101 type itself, not its main variant.
4102 (iterative_hash_gimple_type): Likewise.
4103
4104 2011-05-17 Richard Guenther <rguenther@suse.de>
4105
4106 * gimple.c (gimple_register_canonical_type): Use the main-variant
4107 leader for computing the canonical type.
4108
4109 2011-05-17 Nick Clifton <nickc@redhat.com>
4110
4111 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
4112 moves.
4113
4114 * config/rx/rx.md: Add peephole to remove redundant extensions
4115 after loads.
4116 (bitset_in_memory): Use rx_restricted_mem_operand.
4117 (bitinvert_in_memory): Likewise.
4118 (bitclr_in_memory): Likewise.
4119
4120 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
4121 Nick Clifton <nickc@redhat.com>
4122
4123 * config/rx/rx.md: Add peepholes to match a register move followed
4124 by a comparison of the moved register. Replace these with an
4125 addition of zero that does both actions in one instruction.
4126
4127 2011-05-17 Jakub Jelinek <jakub@redhat.com>
4128
4129 PR target/48986
4130 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
4131 predicate to allow CONST_INT.
4132 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
4133
4134 2011-05-16 Joseph Myers <joseph@codesourcery.com>
4135
4136 * opts-common.c (opt_enum_arg_to_value): New.
4137 * opts.h (opt_enum_arg_to_value): Declare.
4138 * config/i386/i386.opt (fpmath): Remove.
4139 (mfpmath=): Use Enum, Init and Save.
4140 (fpmath_unit): New Enum and EnumValue entries.
4141 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
4142 name for function fpmath state.
4143 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
4144 * config/i386/i386.c: Include diagnostic.h.
4145 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
4146 (ix86_target_string): Take enum fpmath_unit value instead of string.
4147 (ix86_debug_options): Update call to ix86_target_string.
4148 (ix86_option_override_internal): Don't process fpmath strings here.
4149 (x86_function_specific_save, ix86_function_specific_restore):
4150 Don't handle fpmath state specially.
4151 (ix86_function_specific_print): Pass fpmath state to
4152 ix86_target_string instead of printing in this function.
4153 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
4154 Handle enum attributes.
4155 (IX86_ATTR_ENUM, ix86_opt_enum): New.
4156 (ix86_valid_target_attribute_tree): Update option_strings
4157 handling. Handle fpmath as enum option.
4158 (ix86_can_inline_p): Update field names for function fpmath state.
4159 (ix86_expand_builtin): Update call to ix86_target_string.
4160 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
4161 (ix86_fpmath): Remove.
4162 * config/i386/t-i386 (i386.o): Update dependencies.
4163
4164 2011-05-16 Joseph Myers <joseph@codesourcery.com>
4165
4166 PR preprocessor/48677
4167 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
4168 from decoded_options[0], not from itself.
4169
4170 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
4171
4172 * config/i386/constraints.md (z): New constraint.
4173 * config/i386/i386.c (c): New mode attribute.
4174 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
4175 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
4176 constraint for operand 0.
4177 (*call_vzeroupper): Ditto.
4178 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
4179 (*call_rex64_ms_sysv_vzeroupper): Ditto.
4180 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
4181 Use "lzm" constraint for operand 0.
4182 (*call_pop_vzeroupper): Ditto.
4183 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
4184 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
4185 constraint for operand 0.
4186 (*sibcall_vzeroupper): Ditto.
4187 (*sibcall_rex64_ms_sysv): Ditto.
4188 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
4189 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
4190 *sibcall_pop_1. Use "Uz" constraint for operand 0.
4191 (*sibcall_pop_vzeroupper): Ditto.
4192 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
4193 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
4194 mode iterator. Use "<c>zm" constraint for operand 1.
4195 (*call_value_vzeroupper): Ditto.
4196 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
4197 for operand 1.
4198 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
4199 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
4200 *call_value_pop_1. Use "lzm" constraint for operand 1.
4201 (*call_value_pop_vzeroupper): Ditto.
4202 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
4203 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
4204 mode iterator. Use "Uz" constraint for operand 1.
4205 (*sibcall_value_vzeroupper): Ditto.
4206 (*sibcall_value_rex64_ms_sysv): Ditto.
4207 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
4208 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
4209 constraint for operand 1.
4210 (*sibcall_value_pop_vzeroupper): Ditto.
4211 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
4212 and "z" constraint for operand 2.
4213 (*tls_global_dynamic_32_gnu): Ditto.
4214 (*tls_local_dynamic_base_32_gnu): Ditto.
4215 (*tls_local_dynamic_base_64): Ditto.
4216 (*tls_local_dynamic_32_once): Ditto.
4217 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
4218 Update all callers.
4219 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
4220
4221 2011-05-16 Richard Guenther <rguenther@suse.de>
4222
4223 * gimple.c (gimple_types_compatible_p_1): Use names of the
4224 type itself, not its main variant.
4225 (iterative_hash_gimple_type): Likewise.
4226
4227 2011-05-16 Richard Guenther <rguenther@suse.de>
4228
4229 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
4230 always visit pointer target and function result and argument types.
4231
4232 2011-05-16 Jason Merrill <jason@redhat.com>
4233
4234 PR c++/48999
4235 * tree-inline.c (copy_statement_list): Put back recursion.
4236
4237 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
4238
4239 PR target/27663
4240 PR target/41076
4241 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
4242 * config/avr/avr.md ("*ior<mode>qi.byte0",
4243 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
4244
4245 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
4246
4247 PR target/45099
4248 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
4249 register is needed for a function argument.
4250
4251 2011-05-16 Richard Guenther <rguenther@suse.de>
4252
4253 * gimple.c (struct type_hash_pair): New type.
4254 (type_hash_pair_compare): New function.
4255 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
4256
4257 2011-05-16 Revital Eres <revital.eres@linaro.org>
4258
4259 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
4260
4261 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
4262
4263 * config/i386/i386.md (floating point move splitters): Fix
4264 usage of standard_80387_constant_p.
4265 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
4266
4267 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
4268
4269 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
4270
4271 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
4272
4273 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
4274 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
4275 (tree_ssa_lim_finalize): Likewise.
4276
4277 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
4278
4279 * config/i386/constraint.md (Yd, Yx): New register constraints.
4280 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
4281 Yd conditional register constraint.
4282 (*movtf_internal): Use standard_sse_constant_opcode.
4283 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
4284 Yx conditional register constraint.
4285 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
4286 Yd conditional register constraint. Use standard_sse_constant_p to
4287 check for valid SSE constants and call standard_sse_constant_opcode to
4288 output SSE insn.
4289 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
4290 constants and call standard_sse_constant_opcode to output SSE insn.
4291 * config/i386/i386.c (ix86_option_ovverride_internal): Set
4292 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
4293 optimize_size is set.
4294 (standard_sse_constant_opcode): Output conditional AVX insn templates.
4295
4296 2011-05-14 Tobias Burnus <burnus@net-b.de>
4297
4298 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
4299
4300 2011-05-13 Martin Jambor <mjambor@suse.cz>
4301
4302 * ipa-prop.c (ipa_cst_from_jfunc): New function.
4303 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
4304 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
4305 (evaluate_conditions_for_ipcp_clone): Removed.
4306 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
4307 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
4308 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
4309
4310 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
4311
4312 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
4313 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
4314 lieu of MAY_HAVE_DEBUG_STMTS.
4315 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
4316 debug statements if !MAY_HAVE_DEBUG_STMTS.
4317
4318 2011-05-13 Martin Thuresson <martint@google.com>
4319
4320 PR gcov-profile/47793
4321 * libgcov.c (gcov_exit): Support relative profile paths.
4322 * doc/invoke.texi (-fprofile-dir): Update for above change.
4323
4324 2011-05-13 Richard Guenther <rguenther@suse.de>
4325
4326 * gimple.c (gimple_canonical_types_compatible_p): Do not use
4327 type-pair caching, do not compare hashes.
4328
4329 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
4330
4331 PR middle-end/48965
4332 * tree-cfg.c (edge_to_cases_cleanup): Return true.
4333 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
4334
4335 2011-05-13 Kai Tietz <ktietz@redhat.com>
4336
4337 * gimplify.c (gimplify_expr): Make sure operand is boolified.
4338 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
4339 compatible type for TRUTH_NOT_EXPR.
4340
4341 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
4342
4343 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
4344 (ix86_hard_regno_mode_ok): Change return value to bool. Use
4345 can_create_pseudo_p ().
4346
4347 2011-05-13 Richard Guenther <rguenther@suse.de>
4348
4349 PR lto/48978
4350 * gimple.c (iterative_hash_gimple_type): Revert change in
4351 pointer target and function result and argument hashing.
4352
4353 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
4354
4355 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
4356 (*movxf_internal_nointeger): Ditto.
4357 (*movdf_internal_rex64): Ditto.
4358 (*movdf_internal): Ditto.
4359 (*movdf_internal_nointeger): Ditto.
4360 (*movsf_internal): Ditto.
4361 (sincos splitters): Use can_create_pseudo ().
4362
4363 2011-05-13 Joseph Myers <joseph@codesourcery.com>
4364
4365 * config/i386/i386-opts.h: New.
4366 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
4367 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
4368 ix86_section_threshold): Remove.
4369 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
4370 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
4371 OPT_mbranch_cost_.
4372 (ix86_option_override_internal): Don't decode strings for options
4373 other than -march=, -mtune= and -mfpmath=. Don't allow for
4374 __attribute__ uses in remaining diagnostics for options with
4375 string arguments. Don't check for integer arguments being negative.
4376 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
4377 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
4378 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
4379 ix86_branch_cost, ix86_section_threshold): Remove.
4380 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
4381 HeaderInclude.
4382 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
4383 but not Var.
4384 (masm=): Use Enum and Init.
4385 (asm_dialect): New Enum and EnumValue entries.
4386 (mbranch-cost=): Use UInteger.
4387 (mlarge-data-threshold=): Use UInteger and Init.
4388 (mcmodel=): Use Enum and Init.
4389 (cmodel): New Enum and EnumValue entries.
4390 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
4391 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
4392 mregparm=): Use UInteger.
4393 (mstringop-strategy=): Use Enum and Init.
4394 (stringop_alg): New Enum and EnumValue entries.
4395 (mtls-dialect=): Use Enum and Init.
4396 (tls_dialect): New Enum and EnumValue entries.
4397 (mabi=): Use Enum and Init.
4398 (calling_abi): New Enum and EnumValue entries.
4399 (mveclibabi=): Use Enum and Init.
4400 (ix86_veclibabi): New Enum and EnumValue entries.
4401
4402 2011-05-13 Nick Clifton <nickc@redhat.com>
4403
4404 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
4405 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
4406
4407 2011-05-13 Kai Tietz <ktietz@redhat.com>
4408
4409 PR middle-end/48984
4410 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
4411 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
4412 (gimple_boolify): Check for cast for boolean_type_node instead for
4413 BOOLEAN_TYPE.
4414
4415 2011-05-13 Richard Guenther <rguenther@suse.de>
4416
4417 PR tree-optimization/48172
4418 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
4419 multiplying by number of iterations for equal step.
4420 (vect_create_cond_for_alias_checks): Likewise.
4421
4422 2011-05-13 Andreas Schwab <schwab@redhat.com>
4423
4424 * configure.ac: Use AS_HELP_STRING throughout.
4425 * configure: Regenerate.
4426
4427 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
4428
4429 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
4430 (ix86_emit_restore_regs_using_mov): Likewise.
4431 (ix86_emit_restore_sse_regs_using_mov): Likewise.
4432
4433 2011-05-12 Anatoly Sokolov <aesok@post.ru>
4434
4435 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
4436 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
4437 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
4438 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
4439 RTX_OK_FOR_OLO10_P): ...here.
4440 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
4441 SYMBOLIC_CONST.
4442
4443 2011-05-12 Kai Tietz <ktietz@redhat.com>
4444
4445 * gimplify.c (gimple_boolify): Re-boolify expression
4446 arguments even if expression type is of kind BOOLEAN_TYPE.
4447 (gimplify_boolean_expr): Removed.
4448 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
4449 and XOR. Additional take care that we keep expression's type.
4450 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
4451 of TRUTH_AND|OR|XOR_EXPR.
4452
4453 2011-05-12 Jakub Jelinek <jakub@redhat.com>
4454
4455 PR tree-optimization/48975
4456 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
4457 on all bbs here and free and clear ifc_bbs at the end.
4458
4459 2011-05-12 Richard Guenther <rguenther@suse.de>
4460
4461 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
4462 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
4463 until after simple checks.
4464 (gimple_types_compatible_p): Likewise.
4465 (iterative_hash_gimple_type): Always hash pointer targets
4466 and function return and argument types.
4467 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
4468 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
4469 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
4470 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
4471 completely in the simple compare section.
4472 (gimple_register_canonical_type): Query the cache again after
4473 registering.
4474
4475 2011-05-12 Richard Guenther <rguenther@suse.de>
4476
4477 PR tree-optimization/48172
4478 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
4479 the number of iterations from the segment size calculation.
4480 (vect_create_cond_for_alias_checks): Adjust.
4481
4482 2011-05-12 Jakub Jelinek <jakub@redhat.com>
4483
4484 PR debug/48967
4485 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
4486 if validate_subreg fails.
4487
4488 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
4489
4490 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
4491 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
4492 early.
4493
4494 2011-05-12 DJ Delorie <dj@redhat.com>
4495
4496 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
4497 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
4498 created builtin into rx_builtins array.
4499 (rx_builtin_decl): New function.
4500 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
4501
4502 2011-05-12 DJ Delorie <dj@redhat.com>
4503 Nick Clifton <nickc@redhat.com>
4504
4505 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
4506 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
4507 (rx_is_legitimate_address): Add pre-decrement and post-increment
4508 addressing in HImode and QImode. Fix test for out of range
4509 REG+INT addressing.
4510 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
4511 (rx_align_for_label): Test label before extracting its usage count.
4512 (rx_adjust_insn_lengths): Fix selection of insn codes.
4513 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
4514
4515 2011-05-11 Jason Merrill <jason@redhat.com>
4516
4517 * tree.c (type_hash_canon): Use struct tree_type_non_common.
4518
4519 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
4520
4521 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
4522 reindent the subsequent block.
4523
4524 2011-05-11 Satoru Takabayashi <satorux@google.com>
4525 Paul Pluzhnikov <ppluzhnikov@google.com>
4526
4527 * doc/install.texi (Configuration): Document --with-linker-hash-style.
4528 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
4529 * config.in: Add LINKER_HASH_STYLE.
4530 * configure.ac: Add --with-linker-hash-style.
4531 * configure: Regenerate.
4532
4533 2011-05-11 Richard Guenther <rguenther@suse.de>
4534
4535 PR middle-end/48964
4536 * gimple.c (iterative_hash_canonical_type): Fix typo.
4537
4538 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
4539
4540 * config/i386/i386.c (legitimize_tls_address)
4541 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
4542 expanders directly for TARGET_GNU2_TLS. Determine pic and
4543 __tls_get_addr symbol reference here. Update call to
4544 gen_tls_global_dynamic_{32,64} for added arguments.
4545 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
4546 expanders directly for TARGET_GNU2_TLS. Determine
4547 __tls_get_addr symbol reference here. Update call to
4548 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
4549 unique UNSPEC REG_EQUIV to libcall block.
4550 (ix86_tls_get_addr): Declare static.
4551 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
4552 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
4553 Do not determine pic and __tls_get_addr symbol reference here. Do not
4554 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
4555 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
4556 (tls_global_dynamic_64): Add operand 2. Do not determine
4557 __tls_get_addr symbol reference here. Do not call
4558 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
4559 (tls_local_dynamic_base64): Ditto for operand 1.
4560
4561 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
4562
4563 * function.c (expand_function_start): Initialize stack_check_probe_note
4564 only if the generic stack checking mechanism is used.
4565
4566 2011-05-11 Richard Guenther <rguenther@suse.de>
4567
4568 PR tree-optimization/15256
4569 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
4570 (A & B) | C, combine (A op CST1) op CST2.
4571 (tree_ssa_forward_propagate_single_use_vars): Only bother to
4572 visit assigns that have uses.
4573
4574 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
4575
4576 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
4577 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
4578 (unpack_ts_type_common_value_fields): ...this. Update comment.
4579 (unpack_value_fields): Adjust for renaming.
4580 (lto_input_ts_type_tree_pointers): Split into...
4581 (lto_input_ts_type_common_tree_pointer): ...this and...
4582 (lto_input_ts_type_non_common_tree_pointers): ...this.
4583 (lto_input_tree_pointers): Adjust for above split.
4584 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
4585 (pack_ts_type_common_value_fields): ...this. Update comment.
4586 (lto_output_ts_type_tree_pointers): Split into...
4587 (lto_output_ts_type_common_tree_pointers): ...this and...
4588 (lto_output_ts_type_non_common_tree_pointers): ...this.
4589 (lto_output_tree_pointers): Adjust for above split.
4590 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
4591 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
4592 * stor-layout.c (vector_type_mode): Adjust location of mode field.
4593 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
4594 Define.
4595 (struct tree_type): Split into...
4596 (struct tree_type_common: ...this and...
4597 (struct tree_type_with_lang_specific): ...this and...
4598 (struct tree_type_non_common): ...this. Adjust accessor macros
4599 accordingly.
4600 (TYPE_VALUES_RAW): Define.
4601 (union tree_node): Update for above changes.
4602 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
4603 TS_TYPE_NON_COMMON.
4604 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
4605 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
4606 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
4607 * treestructu.def (TS_TYPE): Remove.
4608 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
4609 Define.
4610
4611 2011-05-11 Jakub Jelinek <jakub@redhat.com>
4612
4613 PR debug/48159
4614 * tree-ssa.c (reset_debug_uses): New function.
4615 * tree-flow.h (reset_debug_uses): New prototype.
4616 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
4617 * tree-loop-distribution.c (generate_loops_for_partition): Call
4618 reset_debug_uses on the stmts that will be removed. Keep around
4619 all debug stmts, don't count them as bits in partition bitmap.
4620 (generate_builtin): Don't count debug stmts or labels as bits in
4621 partition bitmap.
4622
4623 2011-05-11 Richard Guenther <rguenther@suse.de>
4624
4625 * gimple.c (gimple_type_hash_1): Merge with ...
4626 (gimple_type_hash): ... this.
4627 (gtc_visit): Remove mode parameter and simplify accordingly.
4628 (gimple_types_compatible_p_1): Likewise.
4629 (gimple_types_compatible_p): Likewise.
4630 (iterative_hash_gimple_type): Likewise.
4631 (visit): Likewise.
4632 (gimple_type_eq): Adjust.
4633
4634 2011-05-11 Revital Eres <revital.eres@linaro.org>
4635
4636 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
4637 enters the branch create an anti edge in the opposite direction
4638 to prevent the creation of reg-moves.
4639 * modulo-sched.c: Adjust comment to reflect the fact we are
4640 scheduling closing branch.
4641 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
4642 (stage_count): New field in struct partial_schedule.
4643 (calculate_stage_count): New function.
4644 (normalize_sched_times): Rename to reset_sched_times and handle
4645 incrementing the sched time of the nodes by a constant value
4646 passed as parameter.
4647 (duplicate_insns_of_cycles): Skip closing branch.
4648 (sms_schedule_by_order): Schedule closing branch.
4649 (ps_insn_find_column): Handle closing branch.
4650 (sms_schedule): Call reset_sched_times and adjust the code to
4651 support scheduling of the closing branch.
4652 (ps_insert_empty_row): Update calls to normalize_sched_times
4653 and rotate_partial_schedule functions.
4654
4655 2011-05-11 Richard Guenther <rguenther@suse.de>
4656
4657 PR middle-end/48953
4658 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
4659
4660 2011-05-11 Joseph Myers <joseph@codesourcery.com>
4661
4662 * opts.c (finish_options): Move warning settings from process_options.
4663 * toplev.c (process_options): Move warning settings to finish_options.
4664
4665 2011-05-11 Richard Guenther <rguenther@suse.de>
4666
4667 PR tree-optimization/18041
4668 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
4669 (simplify_bitwise_binary): ... this. Handle operand conversions
4670 by applying them to the result instead.
4671 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
4672
4673 2011-05-11 Richard Guenther <rguenther@suse.de>
4674
4675 * gimple.c (gimple_canonical_types_compatible_p): Split out
4676 from gimple_types_compatible_p and friends. Do not recurse
4677 to pointed-to types.
4678 (gimple_canonical_type_eq): Use it.
4679 (iterative_hash_canonical_type): Split out from
4680 iterative_hash_gimple_type and friends. Do not recurse
4681 to pointed-to types.
4682 (gimple_canonical_type_hash): Use it, allocate the hash here.
4683
4684 2011-05-11 Revital Eres <revital.eres@linaro.org>
4685
4686 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
4687 recognizing doloop.
4688
4689 2011-05-11 Revital Eres <revital.eres@linaro.org>
4690
4691 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
4692 instead of PREV_INSN.
4693
4694 2011-05-11 Revital Eres <revital.eres@linaro.org>
4695
4696 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
4697 * loop-doloop.c (doloop_condition_get): Likewise.
4698 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
4699 (doloop_end): New.
4700 * config/arm/arm.md (*addsi3_compare0): Remove "*".
4701
4702 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
4703
4704 * tree.def (CASE_LABEL_EXPR): Add an operand.
4705 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
4706
4707 2011-05-10 Joseph Myers <joseph@codesourcery.com>
4708
4709 * c-decl.c (c_override_global_bindings_to_false): Remove.
4710 (global_bindings_p): Don't check
4711 c_override_global_bindings_to_false.
4712 * c-tree.h (c_override_global_bindings_to_false): Remove.
4713 * c-typeck.c (composite_type): Don't set
4714 c_override_global_bindings_to_false.
4715
4716 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
4717
4718 PR target/48857, 48495
4719 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
4720 (VSX_MODE): Ditto.
4721 (VSX_MOVE_MODE): Ditto.
4722 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
4723 VSX vector types. Add V2DImode.
4724 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
4725 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
4726 (MODES_TIEABLE_P): Ditto.
4727
4728 * config/rs6000/rs6000.c (rs6000_emit_move): Use
4729 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
4730 VSX_VECTOR_MODE.
4731 (init_cumulative_args): Ditto.
4732 (rs6000_function_arg_boundary): Ditto.
4733 (rs6000_function_arg_advance_1): Ditto.
4734 (rs6000_function_arg): Ditto.
4735 (rs6000_function_ok_for_sibcall): Ditto.
4736 (emit_frame_save): Ditto.
4737 (rs6000_function_value): Ditto.
4738 (rs6000_libcall_value): Ditto.
4739
4740 2011-05-10 Joseph Myers <joseph@codesourcery.com>
4741
4742 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
4743 i386/darwin-lib.h to $libgcc_tm_file.
4744 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
4745
4746 2011-05-10 Joseph Myers <joseph@codesourcery.com>
4747
4748 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
4749
4750 2011-05-10 Joseph Myers <joseph@codesourcery.com>
4751
4752 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
4753 * config/rs6000/rs6000-tables.opt: New file (generated).
4754 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
4755 rs6000/rs6000-tables.opt to extra_options.
4756 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
4757 * config/rs6000/rs6000.c (rs6000_select): Remove.
4758 (processor_target_table): Move contents to rs6000-cpus.def.
4759 (darwin_rs6000_override_options): Check
4760 global_options_set.x_rs6000_cpu_index instead of
4761 rs6000_select[1].string.
4762 (rs6000_option_override_internal): Likewise.
4763 (rs6000_handle_option): Don't assert that global structures are in
4764 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
4765 (rs6000_default_cpu): New variable.
4766 (rs6000_file_start): Set it instead of local default_cpu. Check
4767 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
4768 global_options_set.x_rs6000_tune_index instead of rs6000_select.
4769 (rs6000_darwin_file_start): Check rs6000_default_cpu and
4770 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
4771 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
4772 rs6000_select): Remove.
4773 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
4774 Remove.
4775 (mcpu=, mtune=): Use Var, Init, Enum and Save.
4776 * config/rs6000/t-rs6000
4777 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
4778 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
4779 global_options_set.x_rs6000_cpu_index instead of
4780 rs6000_select[1].string.
4781 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
4782 global_options_set.x_rs6000_cpu_index instead of
4783 rs6000_select[1].string.
4784
4785 2011-05-10 Joseph Myers <joseph@codesourcery.com>
4786
4787 * config.gcc (libgcc_tm_file): Define instead of including files
4788 from ../../libgcc/config/ in tm_file.
4789 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
4790 * configure: Regenerate.
4791 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
4792 libgcc_tm.h, cs-libgcc_tm.h): New.
4793 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
4794 (clean): Remove libgcc_tm.h.
4795 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
4796 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
4797 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
4798
4799 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
4800
4801 PR target/48896
4802 * config/avr/avr.c (avr_ret_register): Return unsigned int
4803 instead of int.
4804 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
4805 it to avr_libcall_value.
4806 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
4807 expand_expr.
4808 (avr_expand_binop_builtin): Ditto.
4809 (avr_expand_unop_builtin): Ditto.
4810
4811 2011-05-10 DJ Delorie <dj@redhat.com>
4812
4813 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
4814 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
4815 * config/rx/rx.c (rx_align_for_label): Add label and
4816 uses_threshold parameters. Do not align when the label is not
4817 used enough.
4818 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
4819
4820 2011-05-10 Richard Guenther <rguenther@suse.de>
4821
4822 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
4823 a series of conversions and apply foldings similar to what
4824 fold-const does.
4825 (tree_ssa_forward_propagate_single_use_vars): Call it.
4826
4827 2011-05-10 Jakub Jelinek <jakub@redhat.com>
4828
4829 PR tree-optimization/48611
4830 PR tree-optimization/48794
4831 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
4832 referenced from RESX or EH_DISPATCH arguments.
4833
4834 PR debug/48928
4835 * dfp.c (decimal_to_decnumber): Handle conversion from
4836 dconst{1,2,m1,half}.
4837
4838 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
4839
4840 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
4841 for !flag_prefer_avx128.
4842 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
4843
4844 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
4845
4846 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
4847 (fold_ternary_loc): Use expr_location_or.
4848
4849 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
4850
4851 PR debug/48853
4852 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
4853 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
4854 Pmode and mem_mode is not VOIDmode.
4855
4856 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
4857
4858 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
4859 TYPE_QUAL_RESTRICT): Convert to enum.
4860
4861 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
4862
4863 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
4864 (const_pow2_1_to_8_operand): Ditto.
4865 (const_pow2_1_to_128_operand): Ditto.
4866 (const_pow2_1_to_32768_operand): Ditto.
4867 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
4868 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
4869 in insn constraint to check integer value of operand 3.
4870 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
4871
4872 (PINSR_MODE): New mode iterator.
4873 (sse2p4_1): New mode attribute.
4874 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
4875 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
4876 iterator. Use const_int_operand instead of
4877 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
4878 exact_log2 in insn constraint to check integer value of operand 3.
4879
4880 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
4881
4882 * config/i386/sse.md (blendbits): Remove mode attribute.
4883 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
4884 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
4885 Check integer value of operand 3 in insn constraint.
4886
4887 2011-05-09 Richard Guenther <rguenther@suse.de>
4888
4889 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
4890 for diagnostics.
4891 (lto_symtab_merge): Likewise. Do not register types here.
4892 (lto_symtab_merge_decls_2): Likewise.
4893 (lto_symtab_merge_decls_1): Likewise.
4894 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
4895 * gimple.c (enum gtc_mode): Declare.
4896 (gimple_types_compatible_p): Make static.
4897
4898 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4899
4900 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
4901 temporary register to match Pmode.
4902
4903 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
4904
4905 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
4906 and *vec_concatv4si_1_avx.
4907
4908 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
4909
4910 PR rtl-optimization/48927
4911 * ira-conflicts.c (commutative_constraint_p): Use
4912 recog_data.alternative_enabled_p to disable alternatives where
4913 "enabled" attribute is false.
4914 (get_dup_num): Ditto.
4915 * ira-lives.c (single_reg_class): Ditto.
4916 (ira_implicitly_set_insn_hard_regs): Ditto.
4917
4918 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
4919
4920 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
4921 (dataflow_set_preserve_mem_locs): Likewise.
4922
4923 2011-05-09 Philipp Thomas <pth@suse.de>
4924
4925 * config/mep/mep.c (mep_validate_vliw): Syntax description
4926 should not be translated.
4927
4928 2011-05-09 Joseph Myers <joseph@codesourcery.com>
4929
4930 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
4931 * config/mips/mips-tables.opt: New file (generated).
4932 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
4933 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
4934 MIPS_ARCH_OPTION_NATIVE): Define.
4935 * config/mips/mips.c (mips_cpu_info_table): Move contents to
4936 mips-cpus.def.
4937 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
4938 mips_parse_cpu): Remove.
4939 (mips_cpu_info_from_opt, mips_default_arch): New.
4940 (mips_handle_option): Don't assert that global structures are in
4941 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
4942 (mips_option_override): Use new variables and functions to set
4943 state of these options. Use strcmp to check for individual CPU names.
4944 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
4945 definition.
4946 * config/mips/mips.opt (march=): Use ToLower and Enum.
4947 (mips): Use ToLower, Enum and Var.
4948 (mtune=): Use ToLower and Enum.
4949 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
4950
4951 2011-05-08 Jan Hubicka <jh@suse.cz>
4952
4953 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
4954 Arrange type pairs to be UID ordered.
4955 (gimple_lookup_type_leader): Make inline.
4956
4957 2011-05-09 Nick Clifton <nickc@redhat.com>
4958
4959 PR target/48899
4960 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
4961 PROCESSOR_DEFAULT.
4962
4963 PR target/48897
4964 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
4965 variable 's'.
4966
4967 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
4968
4969 * combine.c (simplify_comparison): Abstract out parts into...
4970 (simplify_compare_const): ... new function.
4971 (try_combine): Generalize parallel arithmetic/compare combining
4972 to call simplify_compare_const() and CANONICALIZE_COMPARE().
4973
4974 2011-05-08 Jan Hubicka <jh@suse.cz>
4975
4976 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
4977 (cgraph_create_virtual_clone): Call hooks once virtual clone
4978 is finished.
4979 * cgraph.h (cgraph_clone_node): Update prototype.
4980 * ipa-cp.c (ipcp_estimate_growth): Use
4981 estimate_ipcp_clone_size_and_time.
4982 * ipa-inline-transform.c (clone_inlined_nodes): Update.
4983 * lto-cgraph.c (input_node): Update.
4984 * ipa-inline.c (recursive_inlining): Update.
4985 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
4986 (evaluate_conditions_for_known_args): Break out from ...
4987 (evaluate_conditions_for_edge): ... here.
4988 (evaluate_conditions_for_ipcp_clone): New function.
4989 (inline_node_duplication_hook): Update clone summary based
4990 on parameter map.
4991 (estimate_callee_size_and_time): Rename to ...
4992 (estimate_node_size_and_time): take NODE instead of EDGE;
4993 take POSSIBLE_TRUTHS as argument.
4994 (estimate_callee_size_and_time): Update.
4995 (estimate_ipcp_clone_size_and_time): New function.
4996 (do_estimate_edge_time): Update.
4997
4998 2011-05-08 Richard Guenther <rguenther@suse.de>
4999
5000 PR middle-end/48908
5001 PR middle-end/48905
5002 * expmed.c (expand_shift_1): Compute adjusted constant shift
5003 amount manually.
5004
5005 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
5006
5007 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
5008
5009 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
5010
5011 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
5012
5013 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
5014
5015 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
5016
5017 2011-05-07 Jan Hubicka <jh@suse.cz>
5018
5019 * ipa-inline-transform.c (inline_call): Account when program size
5020 decreases.
5021 * ipa-inline.c (relative_time_benefit): New function.
5022 (edge_badness): Reorganize to be power 2 based; fix thinko when
5023 computing badness for negative growth; update comments to match
5024 reality; better dumps.
5025
5026 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
5027
5028 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
5029 type to bool and adjust comment.
5030 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
5031 (fold_mathfn_compare): Remove calls to global_bindings_p.
5032 (fold_inf_compare): Likewise.
5033 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
5034 * c-tree.h (global_bindings_p): Adjust prototype.
5035 * c-decl.c (global_bindings_p): Return bool and simplify.
5036
5037 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
5038
5039 PR tree-optimization/48837
5040 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
5041 when accumulator transformation is performed.
5042
5043 2011-05-06 Jan Hubicka <jh@suse.cz>
5044
5045 * i386.h (ix86_tune_indices): Add
5046 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
5047 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
5048 * i386.c (initial_ix86_tune_features): Add
5049 X86_SOFTARE_PREFETCHING_BENEFICIAL.
5050 (software_prefetching_beneficial_p): Remove predicate.
5051 (ix86_option_override_internal): Use new macro.
5052
5053 2011-05-06 Jan Hubicka <jh@suse.cz>
5054
5055 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
5056
5057 2011-05-06 Jan Hubicka <jh@suse.cz>
5058
5059 * cgraph.c (cgraph_add_thunk): Create real function node instead
5060 of alias node; finalize it and mark needed/reachale; arrange visibility
5061 to be right and add it into the corresponding same comdat group list.
5062 (dump_cgraph_node): Dump thunks.
5063 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
5064 cgraph_function_with_gimple_body_p,
5065 cgraph_first_function_with_gimple_body,
5066 cgraph_next_function_with_gimple_body): New functions.
5067 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
5068 New macros.
5069 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
5070 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
5071 * cgraphunit.c (cgraph_finalize_function): Only look into possible
5072 devirtualization when optimizing.
5073 (verify_cgraph_node): Verify thunks.
5074 (cgraph_analyze_function): Analyze thunks.
5075 (cgraph_mark_functions_to_output): Output thunks only in combination
5076 with function they are assigned to.
5077 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
5078 alias into normal node.
5079 (assemble_thunks): New functoin.
5080 (cgraph_expand_function): Use it.
5081 * lto-cgraph.c (lto_output_node): Stream thunks.
5082 (input_overwrite_node): Stream in thunks.
5083 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
5084 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
5085 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
5086 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
5087 (inline_analyze_function): Do not care about thunk jump functions.
5088 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
5089 * ipa-prop.c (ipa_prop_write_jump_functions): Use
5090 cgraph_function_with_gimple_body_p.
5091 * passes.c (do_per_function_toporder): Use
5092 cgraph_function_with_gimple_body_p.
5093 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
5094 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
5095 (function_called_by_processed_nodes_p): Likewise.
5096
5097 2011-05-06 Joseph Myers <joseph@codesourcery.com>
5098
5099 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
5100 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
5101 entries.
5102 (mabi=): Replace with separate entries for mabi=altivec,
5103 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
5104 mabi=ieeelongdouble and mabi=ibmlongdouble.
5105 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
5106 check for -mabi=spe without SPE ABI support here.
5107 (rs6000_handle_option): Replace OPT_mabi_ handling with
5108 OPT_mabi_altivec and OPT_mabi_spe handling.
5109
5110 2011-05-06 Cary Coutant <ccoutant@google.com>
5111
5112 * dwarf2out.c (contains_subprogram_definition): New function.
5113 (should_move_die_to_comdat): Call it.
5114
5115 2011-05-06 Jeff Law <law@redhat.com>
5116
5117 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
5118 remove_ctrl_stmt_and_useless_edges.
5119 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
5120 (fixup_template_block, thread_single_edge): Likewise.
5121 (mark_threaded_blocks): Use THREAD_TARGET.
5122
5123 2011-05-06 Alan Modra <amodra@gmail.com>
5124
5125 PR target/48900
5126 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
5127 const0_rtx as the arg to the dummy __tls_get_addr libcall.
5128
5129 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
5130
5131 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
5132 constraint modifier to "r".
5133
5134 2011-05-06 Joseph Myers <joseph@codesourcery.com>
5135
5136 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
5137 fall through for OPT_mcmodel_.
5138
5139 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5140
5141 * config/s390/s390.c (s390_asm_trampoline_template): Comment
5142 instruction sizes.
5143 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
5144
5145 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5146
5147 PR target/47930
5148 * config/arm/arm.opt (marm): Document it.
5149 (mthumb): Reject negative variant.
5150
5151 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
5152
5153 PR target/48898
5154 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
5155 Fix typo in "ccvt" variable name.
5156
5157 2011-05-06 Tristan Gingold <gingold@adacore.com>
5158
5159 PR target/48895
5160 * config/vms/vms-ar.c (main): Remove cwd variable.
5161
5162 2011-05-06 Jakub Jelinek <jakub@redhat.com>
5163
5164 PR debug/48902
5165 * var-tracking.c (prepare_call_arguments): Move else before #endif.
5166
5167 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
5168
5169 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
5170 * gimplify.c (gimplify_switch_expr): Likewise.
5171 * omp-low.c (expand_omp_sections): Likewise.
5172 * tree-eh.c (lower_try_finally_switch): Likewise.
5173 (lower_eh_dispatch): Likewise.
5174 * tree.h (build_case_label): Declare.
5175 * tree.c (build_case_label): Define.
5176
5177 2011-05-05 Jason Merrill <jason@redhat.com>
5178
5179 PR c++/40975
5180 * tree-inline.c (copy_tree_r): Use copy_statement_list.
5181 (copy_statement_list): Don't recurse.
5182 * stor-layout.c (copy_self_referential_tree_r): Don't allow
5183 STATEMENT_LIST.
5184
5185 2011-05-05 Joseph Myers <joseph@codesourcery.com>
5186
5187 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
5188 through from -mfpu= handling.
5189 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
5190
5191 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
5192
5193 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
5194 POST_MODIFY.
5195
5196 2011-05-05 Steve Ellcey <sje@cup.hp.com>
5197
5198 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
5199 for 11.31.
5200 (hppa[12]*-*-hpux11*): Ditto.
5201 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
5202 * config/ia64/hpux-unix2003.h: New.
5203 * config/pa/pa-hpux1131.opt: New.
5204 * config/pa/pa-hpux1131.h: New.
5205 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
5206 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
5207 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
5208
5209 2011-05-05 Jakub Jelinek <jakub@redhat.com>
5210
5211 PR debug/48853
5212 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
5213 instead of mode as 3rd argument to recursive call.
5214 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
5215 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
5216 VOIDmode.
5217 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
5218 don't give up if mode is Pmode and mem_mode is not VOIDmode.
5219 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
5220 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
5221
5222 2011-05-05 Julian Brown <julian@codesourcery.com>
5223
5224 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
5225 parenthesis in D-register case.
5226
5227 2011-05-05 Joseph Myers <joseph@codesourcery.com>
5228
5229 * opt-functions.awk (var_type_struct): Handle Enum options.
5230 * optc-gen.awk: Don't check range of variables of character type.
5231 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
5232 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
5233 rs6000_sdata_name, rs6000_explicit_options): Remove.
5234 (rs6000_option_override_internal): Check for -malign-power here.
5235 Use global_options_set instead of rs6000_explicit_options.
5236 (rs6000_parse_fpu_option): Remove.
5237 (rs6000_handle_option): Access variables via opts and opts_set
5238 pointers. Use error_at and warning_at. Add fall-through
5239 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
5240 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
5241 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
5242 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
5243 here. Don't use rs6000_parse_fpu_option.
5244 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
5245 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
5246 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
5247 (mrecip=): Use Var.
5248 (mspe): Use Var and Save.
5249 (mtraceback=): Use Enum and Var.
5250 (rs6000_traceback_type): New Enum and EnumValue entries.
5251 (mfloat-gprs=): Use Enum, Var and Save.
5252 (rs6000_float_gprs): New Enum and EnumValue entries.
5253 (mlong-double-): use Var and Save.
5254 (msched-costly-dep=, minsert-sched-nops=): Use Var.
5255 (malign-): Use Enum and Var.
5256 (rs6000_alignment_flags): New Enum and EnumValue entries.
5257 (mfpu=): Use Enum.
5258 (fpu_type_t): New Enum and EnumValue entries.
5259 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
5260 global_options_set instead of rs6000_explicit_options.
5261 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
5262 global_options_set instead of rs6000_explicit_options.
5263 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
5264 global_options_set instead of rs6000_explicit_options.
5265 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
5266 global_options_set instead of rs6000_explicit_options.
5267 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
5268 global_options_set instead of rs6000_explicit_options.
5269 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
5270 global_options_set instead of rs6000_explicit_options.
5271 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
5272 definition.
5273 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
5274 global_options_set instead of rs6000_explicit_options.
5275 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
5276 (rs6000_cmodel): New Enum and EnumValue entries.
5277 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
5278 global_options_set instead of rs6000_explicit_options.
5279 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
5280 (mtls-size=): Use Enum and Var.
5281 (rs6000_tls_size): New Enum and EnumValue entries.
5282
5283 2011-05-05 Michael Matz <matz@suse.de>
5284
5285 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
5286 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
5287 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
5288 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
5289 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
5290 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
5291 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
5292 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
5293 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
5294 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
5295 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
5296 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
5297 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
5298 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
5299 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
5300 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
5301
5302 2011-05-05 Richard Guenther <rguenther@suse.de>
5303
5304 * expmed.c (expand_variable_shift): Rename to ...
5305 (expand_shift_1): ... this. Take an expanded shift amount.
5306 For rotates recurse directly not building trees for the shift amount.
5307 (expand_variable_shift): Wrap around expand_shift_1.
5308 (expand_shift): Adjust.
5309
5310 2011-05-05 Jakub Jelinek <jakub@redhat.com>
5311
5312 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
5313
5314 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
5315
5316 * tree.h (get_pending_sizes): Remove prototype.
5317 (put_pending_size): Likewise.
5318 (put_pending_sizes): Likewise.
5319 * stor-layout.c (pending_sizes): Delete.
5320 (get_pending_sizes): Likewise.
5321 (put_pending_size): Likewise.
5322 (put_pending_sizes): Likewise.
5323 (variable_size): Do not call put_pending_size and tidy up.
5324 * function.h (struct function): Remove dont_save_pending_sizes_p.
5325 * lto-streamer-in.c (input_function): Do not stream it.
5326 * lto-streamer-out.c (output_function): Likewise.
5327 * tree-inline.c (initialize_cfun): Do not copy it.
5328 * c-decl.c (store_parm_decls): Do not set it.
5329 * omp-low.c (create_task_copyfn): Likewise.
5330 * tree-optimize.c (tree_rest_of_compilation): Likewise.
5331
5332 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
5333
5334 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
5335 conditions.
5336 (*movdf_internal): Ditto.
5337 (*movdf_internal_nointeger): Ditto.
5338 (*movsf_internal): Ditto.
5339
5340 2011-05-05 Joseph Myers <joseph@codesourcery.com>
5341
5342 * c-decl.c (finish_decl): Don't call get_pending_sizes.
5343 (grokparm): Add parameter expr. Pass it to grokdeclarator.
5344 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
5345 (c_variable_size): Remove.
5346 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
5347 call put_pending_sizes.
5348 (get_parm_info): Add parameter expr. Use it to set
5349 arg_info->pending_sizes.
5350 (store_parm_decls): Use arg_info->pending_sizes instead or calling
5351 get_pending_sizes.
5352 * c-parser.c (c_parser_parms_declarator): Update call to
5353 c_parser_parms_list_declarator.
5354 (c_parser_parms_list_declarator): Take parameter expr. Update
5355 call to push_parm_decl. Update recursive call. Don't call
5356 get_pending_sizes. Update calls to get_parm_info.
5357 (c_parser_objc_method_definition): Update calls to
5358 c_parser_objc_method_decl and objc_start_method_definition.
5359 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
5360 (c_parser_objc_method_decl): Add parameter expr. Update call to
5361 grokparm.
5362 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
5363 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
5364 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
5365
5366 2011-05-05 Michael Hope <michael.hope@linaro.org>
5367
5368 PR pch/45979
5369 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
5370 __ARM_EABI__ hosts.
5371
5372 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5373
5374 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
5375 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
5376 (spu_output_mi_thunk): New function.
5377
5378 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5379
5380 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
5381 targetm.asm_out.print_operand.
5382 * config/sol2.c: Include target.h.
5383
5384 2011-05-04 Jan Hubicka <jh@suse.cz>
5385
5386 * ipa-inline.c (reset_edge_caches): New function.
5387 (update_caller_keys): Add check_inlinablity_for; do not
5388 reset edge caches; remove now unnecesary loop.
5389 (update_callee_keys): Add comments; reset node_growth_cache of callee.
5390 (update_all_callee_keys): Likewise.
5391 (inline_small_functions): Sanity check cache; update code
5392 recomputing it.
5393
5394 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
5395
5396 PR rtl-optimization/47612
5397 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
5398 as the last insn of the sequence to be moved.
5399
5400 2011-05-04 Tobias Burnus <burnus@net-b.de>
5401
5402 PR fortran/48864
5403 * doc/invoke.texi (Ofast): Document that it
5404 enables Fortran's -fno-protect-parens.
5405
5406 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
5407
5408 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
5409
5410 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
5411
5412 * stor-layout.c (variable_size): Do not issue errors.
5413
5414 2011-05-04 Richard Guenther <rguenther@suse.de>
5415
5416 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
5417 for array-ref indices.
5418 (tree_coverage_counter_addr): Likewise.
5419 (build_fn_info_type): Use size_int for index types.
5420 (build_gcov_info): Likewise.
5421
5422 2011-05-04 Richard Guenther <rguenther@suse.de>
5423
5424 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
5425 to build_int_cst.
5426 * c-typeck.c (really_start_incremental_init): Use bitsize_int
5427 for constructor indices.
5428 (push_init_level): Likewise.
5429
5430 2011-05-04 Richard Guenther <rguenther@suse.de>
5431
5432 * explow.c (promote_mode): Move variable declarations before code.
5433
5434 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
5435
5436 * tree.h (build_function_type_array): Declare.
5437 (build_varargs_function_type_array): Declare.
5438 (build_function_type_vec, build_varargs_function_type_vec): Define.
5439 * tree.c (build_function_type_array_1): New function.
5440 (build_function_type_array): New function.
5441 (build_varargs_function_type_array): New function.
5442
5443 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
5444
5445 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
5446 before setting STMT_VINFO_TYPE.
5447
5448 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5449
5450 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
5451 instead of spu_pass_by_reference.
5452
5453 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5454
5455 * calls.c (emit_library_call_value_1): Invoke
5456 promote_function_mode hook on libcall arguments.
5457 * explow.c (promote_function_mode, promote_mode): Handle TYPE
5458 argument being NULL.
5459 * targhooks.c (default_promote_function_mode): Lisewise.
5460 * config/s390/s390.c (s390_promote_function_mode): Likewise.
5461 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
5462
5463 * doc/tm.texi: Document that TYPE argument might be NULL.
5464
5465 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
5466
5467 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
5468
5469 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
5470
5471 From Bernd Schmidt
5472 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
5473
5474 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5475
5476 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
5477 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
5478 Move ...
5479 * mips-tfile.c: ... here.
5480 Don't include coretypes.h, tm.h, filenames.h.
5481 (saber_stop): Remove definition and all calls.
5482 [__SABER__]: Remove.
5483 (__LINE__): Remove default.
5484 (Size_t, Ptrdiff_t): Remove definitions.
5485 Replace by size_t, ptrdiff_t.
5486 [!MIPS_DEBUGGING_INFO]: Remove.
5487 (SHASH_SIZE, THASH_SIZE): Remove defaults.
5488 (progname): Add const.
5489 (STATIC): Remove.
5490 Replace all uses by static.
5491 (ALIGN_SYMTABLE_OFFSET): Remove default.
5492 * mips-tdump.c: Don't include coretypes.h, tm.h.
5493 Remove !MIPS_IS_STAB guard.
5494 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
5495 $(TM_H), filenames.h dependencies.
5496 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
5497
5498 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
5499
5500 From Jie Zhang
5501 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
5502 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
5503
5504 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
5505
5506 From Bernd Schmidt
5507 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
5508 account and save/restore RETS.
5509 (PROFILE_BEFORE_PROLOGUE): Define.
5510 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
5511 the push insn to use predecrement.
5512
5513 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
5514
5515 From Jie Zhang
5516 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
5517
5518 2011-05-04 Nick Clifton <nickc@redhat.com>
5519
5520 * config/mn10300/mn10300.c: Include cfgloop.h.
5521 (DUMP): New macro.
5522 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
5523 Lcc or a FLcc insn into the instruction stream.
5524 (mn10300_block_contains_call): New function. Returns true if the
5525 given basic block contains a CALL insn.
5526 (mn10300_loop_contains_call_insn): New function. Returns true if
5527 the given loop contains a CALL insn.
5528 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
5529 to use the SETLB and Lcc or FLcc insns.
5530 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
5531 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
5532 * config/mn10300/mn10300.opt (msetlb): New option. Used to
5533 disable the SETLB optimization.
5534 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
5535 __SETLB__ or __NO_SETLB__.
5536 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
5537 (movsf_internal): Handle MDR register.
5538 (cmpsi): Make visible.
5539 (setlb): New pattern.
5540 (Lcc): New pattern.
5541 (FLcc): New pattern.
5542
5543 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
5544
5545 PR target/48860
5546 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
5547 for reg<->xmm moves.
5548 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
5549 (vec_concatv2di_rex64_sse): Ditto.
5550 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
5551 (*vec_extractv2di_1_rex64): Ditto.
5552
5553 Revert:
5554 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
5555
5556 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
5557 reg<->xmm moves.
5558 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
5559
5560 2011-05-04 Richard Guenther <rguenther@suse.de>
5561
5562 * tree.h (int_const_binop): Remove notrunc argument.
5563 * fold-const.c (int_const_binop): Remove notrunc argument. Always
5564 create integer constants that are properly truncated.
5565 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
5566 (const_binop): Remove zero notrunc argument to int_const_binop.
5567 (size_binop_loc): Likewise.
5568 (fold_div_compare): Likewise.
5569 (maybe_canonicalize_comparison_1): Likewise.
5570 (fold_comparison): Likewise.
5571 (fold_binary_loc): Likewise.
5572 (multiple_of_p): Likewise.
5573 * expr.c (store_constructor): Likewise.
5574 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
5575 (maybe_fold_stmt_addition): Likewise.
5576 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
5577 * stor-layout.c (layout_type): Likewise.
5578 * tree-data-ref.c (tree_fold_divides_p): Likewise.
5579 * tree-sra.c (build_ref_for_offset): Likewise.
5580 (build_user_friendly_ref_for_offset): Likewise.
5581 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
5582 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
5583 * tree-ssa-loop-niter.c (inverse): Likewise.
5584 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
5585 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
5586 * tree-switch-conversion.c (check_range): Likewise.
5587 (build_constructors): Likewise.
5588 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
5589 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
5590 (extract_range_from_assert): Likewise.
5591 (vrp_int_const_binop): Likewise.
5592 (extract_range_from_binary_expr): Likewise.
5593 (extract_range_from_unary_expr): Likewise.
5594 (check_array_ref): Likewise.
5595 (find_case_label_range): Likewise.
5596 (simplify_div_or_mod_using_ranges): Likewise.
5597 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
5598 comparing case labels for merging.
5599
5600 2011-05-03 Mark Wielaard <mjw@redhat.com>
5601
5602 * dwarf2out.c (debug_str_hash_forced): Removed.
5603 (gen_label_for_indirect_string): Removed.
5604 (get_debug_string_label): Removed.
5605 (AT_string_form): Generate label directly.
5606 (output_indirect_string): Test indirect_string_node for
5607 DW_FORM_strp instead of checking label and refcount.
5608 (prune_indirect_string): Removed.
5609 (prune_unused_types): Don't check debug_str_hash_forced or
5610 call prune_indirect_string.
5611
5612 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
5613
5614 PR other/48093
5615 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
5616
5617 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
5618
5619 PR debug/47994
5620 PR debug/47919
5621 * combine.c (try_combine): Skip debug insns at m_split tests.
5622
5623 2011-04-26 Mark Wielaard <mjw@redhat.com>
5624
5625 PR42288
5626 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
5627 when info_section_emitted.
5628
5629 2011-05-03 Joseph Myers <joseph@codesourcery.com>
5630
5631 * config/mips/mips-opts.h: New.
5632 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
5633 to mips-opts.h.
5634 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
5635 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
5636 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
5637 via opts pointer.
5638 * config/mips/mips.h (enum mips_code_readable_setting): Move to
5639 mips-opts.h.
5640 (mips_abi, mips_code_readable): Don't declare.
5641 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
5642 (mabi=): Use Enum and Var.
5643 (mips_abi): New Enum and EnumValue entries.
5644 (mcode-readable=): Use Enum and Var.
5645 (mips_code_readable_setting): New Enum and EnumValue entries.
5646 (mr10k-cache-barrier=): Use Enum and Var.
5647 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
5648
5649 2011-05-03 Jan Hubicka <jh@suse.cz>
5650
5651 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
5652 replace hash by pointer map.
5653 (cgraph_node_set_element_def, cgraph_node_set_element,
5654 const_cgraph_node_set_element, varpool_node_set_element_def,
5655 varpool_node_set_element, const_varpool_node_set_element): Remove.
5656 (free_cgraph_node_set, free_varpool_node_set): New function.
5657 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
5658 * tree-emutls.c: Free varpool node set.
5659 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
5660 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
5661 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
5662 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
5663 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
5664 Move here from ipa.c; implement using pointer_map
5665 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
5666 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
5667 debug_cgraph_node_set, varpool_node_set_new,
5668 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
5669 dump_varpool_node_set, debug_varpool_node_set):
5670 Move to ipa-uitls.c.
5671 * passes.c (ipa_write_summaries): Update.
5672
5673 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5674
5675 From Mike Frysinger:
5676 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
5677 bf542/bf544/bf547/bf548/bf549.
5678
5679 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
5680
5681 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
5682
5683 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5684
5685 From Bernd Schmidt:
5686 * config/bfin/bfin.md (MOVCC): New mode_macro.
5687 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
5688 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
5689 comments from generated assembly.
5690
5691 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5692
5693 From Bernd Schmidt
5694 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
5695 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
5696 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
5697 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
5698 * config/bfin/lib1funcs.asm (___muldi3): New function.
5699
5700 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5701
5702 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
5703 build_function_type_list instead of build_function_type.
5704 Rearrange initialization of `args' to do so.
5705
5706 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5707
5708 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
5709 instead of build_function_type.
5710
5711 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5712
5713 * config/rs6000/rs6000.c (spe_init_builtins): Call
5714 build_function_type_list instead of build_function_type.
5715 (paired_init_builtins, altivec_init_builtins): Likewise.
5716 (builtin_function_type): Likewise.
5717
5718 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5719
5720 * config/sh/sh.c (sh_media_init_builtins): Call
5721 build_function_type_list instead of build_function_type.
5722
5723 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5724
5725 * config/sparc/sparc.c (sparc_file_end): Call
5726 build_function_type_list instead of build_function_type.
5727
5728 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5729
5730 * config/alpha/alpha.c (alpha_init_builtins): Call
5731 build_function_type_list instead of build_function_type.
5732
5733 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5734
5735 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
5736 build_function_type_list instead of build_function_type.
5737
5738 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5739
5740 * config/iq2000/i2000.c (iq2000_init_builtins): Call
5741 build_function_type_list instead of build_function_type.
5742 Delete `endlink' variable.
5743
5744 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5745
5746 * config/avr/avr.c (avr_init_builtins): Call
5747 build_function_type_list instead of build_function_type.
5748
5749 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5750
5751 * config/picochip/picochip.c (picochip_init_builtins): Call
5752 build_function_type_list instead of build_function_type.
5753 Delete `endlink' variable.
5754
5755 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5756
5757 * config/bfin/bfin.c (bfin_init_builtins): Call
5758 build_function_type_list instead of build_function_type.
5759
5760 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5761
5762 From Bernd Schmidt
5763 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
5764 that's not CONST_INT. Seemingly redundant check is due to PR39768.
5765
5766 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5767
5768 From Jie Zhang:
5769 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
5770 libbffastfp overrides libgcc when -mfast-fp.
5771
5772 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5773
5774 Originally from Bernd Schmidt
5775 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
5776 * config/bfin/bfin.c (override_options): Test it and error if
5777 TARGET_FDPIC.
5778
5779 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5780
5781 Originally From Bernd Schmidt
5782 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
5783 FD-PIC.
5784
5785 2011-05-03 Jeff Law <law@redhat.com>
5786
5787 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
5788 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
5789 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
5790 than accessing AUX field directly. Free the AUX field before
5791 clearing it.
5792 (thread_block, thread_through_loop_header): Likewise.
5793 (thread_single_edge, mark_threaded_blocks): Likewise.
5794 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
5795 (register_jump_thread): Do not attempt to thread to a NULL edge.
5796
5797 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
5798
5799 * function.c (init_function_start): Call decide_function_section.
5800 * varasm.c (decide_function_section): New function.
5801 (assemble_start_function): When not using
5802 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
5803 or first_function_block_is_cold.
5804 * rtl.h (decide_function_section): Declare.
5805
5806 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
5807 Jakub Jelinek <jakub@redhat.com>
5808
5809 PR target/48774
5810 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
5811 only succeed if req_mode is the same as set_mode.
5812
5813 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
5814
5815 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
5816 * genemit.c (gen_exp): Handle RETURN.
5817 * emit-rtl.c (verify_rtx_sharing): Likewise.
5818 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
5819 * rtl.c (copy_rtx): RETURN is shared.
5820 * rtl.h (enum global_rtl_index): Add GR_RETURN.
5821 (ret_rtx): New.
5822 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
5823 * config/s390/s390.c (s390_emit_epilogue): Likewise.
5824 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
5825 * config/cris/cris.c (cris_expand_return): Likewise.
5826 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
5827 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
5828 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
5829 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
5830 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
5831 Likewise.
5832 * config/v850/v850.c (expand_epilogue): Likewise.
5833 * config/bfin/bfin.c (bfin_expand_call): Likewise.
5834 * config/arm/arm.md (epilogue): Likewise.
5835 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
5836 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
5837 variable to ret_reg.
5838
5839 2011-05-03 Richard Guenther <rguenther@suse.de>
5840
5841 PR lto/48846
5842 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
5843 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
5844 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
5845
5846 2011-05-03 Richard Guenther <rguenther@suse.de>
5847
5848 * c-decl.c (grokdeclarator): Instead of looking at
5849 TREE_OVERFLOW check if the constant fits in the index type.
5850
5851 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
5852
5853 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
5854 (vec_store_lanes<mode><mode>): Likewise.
5855
5856 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
5857
5858 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
5859 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
5860 convert_optab_index values.
5861 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
5862 * genopinit.c (optabs): Initialize the new optabs.
5863 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
5864 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
5865 (expand_STORE_LANES): New functions.
5866 * tree.h (build_array_type_nelts): Declare.
5867 * tree.c (build_array_type_nelts): New function.
5868 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
5869 (vect_model_load_cost): Likewise.
5870 (vect_store_lanes_supported, vect_load_lanes_supported)
5871 (vect_record_strided_load_vectors): Declare.
5872 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
5873 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
5874 (vect_transform_strided_load): Split out statement recording into...
5875 (vect_record_strided_load_vectors): ...this new function.
5876 * tree-vect-stmts.c (create_vector_array, read_vector_array)
5877 (write_vector_array, create_array_ref): New functions.
5878 (vect_model_store_cost): Add store_lanes_p argument.
5879 (vect_model_load_cost): Add load_lanes_p argument.
5880 (vectorizable_store): Try to use store-lanes functions for
5881 interleaved stores.
5882 (vectorizable_load): Likewise load-lanes and loads.
5883 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
5884 to vect_model_store_cost.
5885 (vect_build_slp_tree): Likewise vect_model_load_cost.
5886
5887 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
5888
5889 * hooks.h (hook_bool_mode_uhwi_false): Declare.
5890 * hooks.c (hook_bool_mode_uhwi_false): New function.
5891 * target.def (array_mode_supported_p): New hook.
5892 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
5893 * doc/tm.texi: Regenerate.
5894 * stor-layout.c (mode_for_array): New function.
5895 (layout_type): Use it.
5896 * config/arm/arm.c (arm_array_mode_supported_p): New function.
5897 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
5898
5899 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
5900
5901 PR target/48723
5902 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
5903 for -fstack-check if the size to allocate is negative.
5904
5905 2011-05-02 Lawrence Crowl <crowl@google.com>
5906
5907 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
5908 (timevar_cond_start): New for starting a timer only when it is not
5909 already running.
5910 (timevar_cond_stop): New for stopping a timer when it was not already
5911 running.
5912
5913 * timevar.c (timevar_stop): Enable start/stop timers to start again.
5914 (timevar_cond_start): New as above.
5915 (timevar_cond_stop): New as above.
5916
5917 * timevar.def: Add start/stop timers for compiler phases,
5918 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
5919 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
5920 and TV_PHASE_FINALIZE.
5921 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
5922 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
5923 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
5924 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
5925 Make unused TV_OVERLOAD into a start/stop timer.
5926
5927 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
5928 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
5929 to indicate that they are start/stop timers.
5930
5931 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
5932 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
5933 Move initialization to do_compile.
5934 (do_compile): Add initialization from above.
5935 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
5936
5937 * c-decl.c (c_write_global_declarations): Add start/stop of
5938 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
5939
5940 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
5941 or TV_PARSE_INLINE, as appropriate.
5942 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
5943 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
5944
5945 2011-05-02 Jason Merrill <jason@redhat.com>
5946
5947 PR c++/40975
5948 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
5949
5950 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
5951
5952 PR c/35445
5953 * c-decl.c (finish_decl): Only create a composite if the types are
5954 compatible.
5955
5956 2011-05-02 Joseph Myers <joseph@codesourcery.com>
5957
5958 * config/fr30/fr30-protos.h (Mmode): Don't define.
5959 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
5960 definition where used.
5961 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
5962 define. Expand definitions where used.
5963 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
5964 Expand definitions where used.
5965 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
5966 rx_function_arg, rx_function_arg_advance,
5967 rx_function_arg_boundary): Expand definitions of those macros.
5968 * config/v850/v850-protos.h (Mmode): Don't define. Expand
5969 definition where used.
5970
5971 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
5972
5973 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
5974 reg<->xmm moves.
5975 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
5976 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
5977 with *movv2sf_internal_rex64_avx.
5978 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
5979 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
5980 Use %v prefix in insn mnemonic to handle TARGET_AVX.
5981 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
5982 "vex" in "prefix" attribute calculation.
5983 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
5984
5985 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
5986
5987 PR target/47951
5988 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
5989 inputs match the output.
5990
5991 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
5992
5993 PR target/47955
5994 * config/m68k/m68k.c (m68k_expand_prologue): Set
5995 current_function_static_stack_size.
5996
5997 2011-05-02 Jan Hubicka <jh@suse.cz>
5998
5999 * lto-streamer.c (lto_streamer_cache_insert_1,
6000 lto_streamer_cache_lookup, lto_streamer_cache_create,
6001 lto_streamer_cache_delete): Use pointer map instead of hashtable.
6002 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
6003
6004 2011-05-02 Joseph Myers <joseph@codesourcery.com>
6005
6006 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
6007 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
6008 config/m68k/t-opts: New files.
6009 * config/m68k/m68k-tables.opt: New file (generated).
6010 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
6011 extra_options and m68k/t-opts to tmake_file.
6012 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
6013 (all_isas): Initialize using m68k-isas.def.
6014 (all_microarchs): Initialize using m68k-microarchs.def.
6015 (m68k_find_selection): Remove.
6016 (m68k_handle_option): Don't assert that global structures are in
6017 use. Use error_at. Access variables via opts pointer. Don't
6018 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
6019 directly for -m68020-40 and -m68020-60.
6020 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
6021 m68k_tune_entry here.
6022 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
6023 to m68k-opts.h.
6024 (m68k_library_id_string): Remove declaration.
6025 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
6026 (m68k_library_id_string): New Variable.
6027 (march=, mcpu=, mtune=): Use Enum and Var.
6028
6029 2011-05-02 Richard Guenther <rguenther@suse.de>
6030
6031 * varasm.c (output_constructor_regular_field): Compute zero-based
6032 index with double-ints. Make sure to ICE instead of producing
6033 wrong code.
6034 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
6035 in asserts. Properly use a signed type.
6036
6037 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
6038
6039 * config/i386/sse.md (V): New mode iterator.
6040 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
6041 TARGET_SSE2.
6042 (V_256): Rename from AVX256MODE.
6043 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
6044 condition to all users.
6045 (VF1): Ditto.
6046 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
6047 condition to all users.
6048 (VF_128): Make V4SF mode unconditional.
6049 (VF_256): Rename from AVX256MODEF2P.
6050 (VI4F_128): Rename from SSEMODE4S.
6051 (VI8F_128): Rename from SSEMODE2D.
6052 (VI4F_256): Rename from AVX256MODE8P.
6053 (VI8F_256): Rename from AVX256MODE4P.
6054 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
6055 (ssescalarmodesuffix): Remove SF and DF modes.
6056 (SSEMODE124): Remove.
6057 (SSEMODE1248): Ditto.
6058 (SSEMODEF2P): Ditto.
6059 (AVXMODEF2P): Ditto.
6060 (AVXMODEFDP): Ditto.
6061 (AVXMODEFSP): Ditto.
6062 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
6063 unconditional.
6064 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
6065 unconditional.
6066 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
6067 xop_pcmov_<mode>256. Use V mode iterator.
6068
6069 Adjust RTX patterns globally for renamed mode attributes.
6070
6071 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6072
6073 * haifa-sched.c (sched_emit_insn): Emit insn before first
6074 non-scheduled insn. Inform back-end about new insn. Add
6075 new insn to scheduled_insns list.
6076
6077 2011-05-02 Richard Guenther <rguenther@suse.de>
6078
6079 PR tree-optimization/48822
6080 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
6081 (process_scc): Indicate which iteration we start.
6082
6083 2011-05-02 Jan Hubicka <jh@suse.cz>
6084
6085 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
6086 (lto_section_overrun): New.
6087 * lto-section-out.c (append_block): Rename to ...
6088 (lto_append_block): ... this one; export.
6089 (lto_output_1_stream): Move lto lto-streamer.h
6090 (lto_output_data_stream): Update.
6091 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
6092 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
6093 functions.
6094
6095 2011-05-02 Richard Guenther <rguenther@suse.de>
6096
6097 * tree.c (tree_code_counts): New global array.
6098 (record_node_allocation_statistics): Count individual tree codes.
6099 (dump_tree_statistics): Dump individual code stats.
6100
6101 2011-05-01 Jan Hubicka <jh@suse.cz>
6102
6103 * ipa-inline.c (caller_growth_limits): Fix thinko when
6104 looking for largest stack frame.
6105 * ipa-inline.h (dump_inline_summary): Declare.
6106 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
6107 on stack usage.
6108 (dump_inline_summary): Export.
6109 (debug_inline_summary): Declare as DEBUG_FUNCTION.
6110
6111 2011-05-01 Anatoly Sokolov <aesok@post.ru>
6112
6113 * reginfo.c (memory_move_cost): Change rclass argument type form
6114 'enum reg_class' to reg_class_t.
6115 * reload.h (memory_move_cost): Update prototype.
6116 * postreload.c reload_cse_simplify_set): Change type dclass var to
6117 reg_class_t.
6118 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
6119 Update prototype.
6120 (ira_allocate_and_set_costs): Change aclass argument type form
6121 'enum reg_class' to reg_class_t.
6122 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
6123 Change aclass argument type to reg_class_t.
6124 (update_conflict_hard_reg_costs): Change type aclass and pref vars
6125 to reg_class_t.
6126 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
6127 memory_move_cost call.
6128
6129 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
6130 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
6131 Change type tmp var to reg_class_t.
6132
6133 2011-04-30 Jan Hubicka <jh@suse.cz>
6134
6135 * ipa-inline.c (can_inline_edge_p): Disregard limits when
6136 inlining into function with flatten attribute.
6137 (want_inline_small_function_p): Be more realistic about inlining
6138 cold calls where callee size grows.
6139
6140 2011-04-30 Jan Hubicka <jh@suse.cz>
6141
6142 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
6143 flags.
6144
6145 2011-04-30 Anatoly Sokolov <aesok@post.ru>
6146
6147 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
6148 PRINT_OPERAND_PUNCT_VALID_P): Remove.
6149 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
6150 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
6151 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
6152 (print_operand): Rename to...
6153 (sparc_print_operand): ...this. Make static. Adjust
6154 sparc_print_operand function call.
6155 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
6156 functions.
6157
6158 2011-04-30 Jan Hubicka <jh@suse.cz>
6159
6160 PR middle-end/48752
6161 * ipa-inline.c (early_inliner): Disable when doing late
6162 addition of function.
6163
6164 2011-04-30 Jakub Jelinek <jakub@redhat.com>
6165
6166 * dwarf2out.c (get_address_mode): New inline.
6167 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
6168 if not dwarf_strict emit
6169 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
6170 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
6171 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
6172 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
6173 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
6174 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
6175 mem_loc_descriptor callers.
6176 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
6177 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
6178 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
6179 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
6180 (base_types): New variable.
6181 (get_base_type_offset, calc_base_type_die_sizes,
6182 base_type_for_mode, mark_base_types, base_type_cmp,
6183 move_marked_base_types): New functions.
6184 (calc_die_sizes): Assert that die_offset is 0 or equal to
6185 next_die_offset.
6186 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
6187 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
6188 callers. If not dwarf_strict, call mem_loc_descriptor even for
6189 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
6190 (gen_subprogram_die): Don't give up on call site parameters
6191 with non-integral or large integral modes. Adjust
6192 mem_loc_descriptor callers.
6193 (prune_unused_types): Call prune_unused_types_mark on base_types
6194 vector entries.
6195 (resolve_addr): Call mark_base_types.
6196 (dwarf2out_finish): Call move_marked_base_types.
6197
6198 PR tree-optimization/48809
6199 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
6200 type.
6201 (gen_inbound_check): Don't compute index_expr - range_min in utype
6202 again, instead reuse SSA_NAME initialized in build_arrays.
6203 Remove two useless gsi_for_stmt calls.
6204
6205 2011-04-29 Jeff Law <law@redhat.com>
6206
6207 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
6208
6209 2011-04-29 Martin Jambor <mjambor@suse.cz>
6210
6211 * cgraph.h (cgraph_postorder): Remove declaration.
6212 * ipa-utils.h (ipa_free_postorder_info): Declare.
6213 (ipa_reverse_postorder): Likewise.
6214 * cgraphunit.c: Include ipa-utils.h.
6215 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
6216 * ipa-inline.c: Include ipa-utils.h.
6217 (ipa_inline): Update call to ipa_reverse_postorder.
6218 * ipa-pure-const.c (propagate_pure_const): Update call to
6219 ipa_reduced_postorder and ipa_print_order. Call
6220 ipa_free_postorder_info to clean up.
6221 (propagate_nothrow): Likewise.
6222 * ipa-reference.c (propagate): Removed a useless call to
6223 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
6224 and ipa_print_order. Call ipa_free_postorder_info to clean up.
6225 * ipa.c: Include ipa-utils.h.
6226 (ipa_profile): Update call to ipa_reverse_postorder.
6227 (cgraph_postorder): Moved to...
6228 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
6229 (ipa_utils_print_order): Renamed to ipa_print_order.
6230 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
6231 comments.
6232 (ipa_free_postorder_info): New function.
6233 * passes.c: Include ipa-utils.h.
6234 (do_per_function_toporder): Update call to ipa_reverse_postorder.
6235 (ipa_write_summaries): Likewise.
6236 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
6237 (cgraphunit.o): Likewise.
6238 (ipa.o): Likewise.
6239 (ipa-inline.o): Likewise.
6240
6241 2011-04-29 Jan Hubicka <jh@suse.cz>
6242
6243 * gcc.dg/tree-ssa/inline-10.c: New testcase.
6244 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
6245 * ipa-inline.h (clause_t): Turn into unsigned int.
6246 * ipa-inline-analysis.c (add_clause): Do more simplification.
6247 (and_predicates): Shortcut more cases.
6248 (predicates_equal_p): Move forward; check that clauses are properly
6249 ordered.
6250 (or_predicates): Shortcut more cases.
6251 (edge_execution_predicate): Rewrite as...
6252 (set_cond_stmt_execution_predicate): ... this function; handle
6253 __builtin_constant_p.
6254 (set_switch_stmt_execution_predicate): New .
6255 (compute_bb_predicates): New.
6256 (will_be_nonconstant_predicate): Update TODO.
6257 (estimate_function_body_sizes): Use compute_bb_predicates
6258 and free them later, always try to estimate if stmt is constant.
6259 (estimate_time_after_inlining, estimate_size_after_inlining):
6260 Gracefully handle optimized out edges.
6261 (read_predicate): Fix off by one error.
6262
6263 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
6264
6265 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
6266
6267 2011-04-27 Xinliang David Li <davidxl@google.com>
6268
6269 * tree-profile.c (init_ic_make_global_vars): Set
6270 tls attribute on ic vars.
6271 * coverage.c (coverage_end_function): Initialize
6272 function_list with zero.
6273
6274 2011-04-29 Richard Guenther <rguenther@suse.de>
6275
6276 * builtins.c (fold_builtin_classify_type): Use integer_type_node
6277 for the type of the result.
6278 (fold_builtin_isascii): Likewise.
6279 (fold_builtin_toascii): Use integer_type_node where appropriate.
6280 (fold_builtin_logb): Likewise.
6281 (fold_builtin_frexp): Likewise.
6282 (fold_builtin_strstr): Likewise.
6283 (fold_builtin_strpbrk): Likewise.
6284 (fold_builtin_fputs): Likewise.
6285 (fold_builtin_sprintf): Likewise.
6286 (fold_builtin_snprintf): Likewise.
6287 (fold_builtin_printf): Likewise.
6288 (do_mpfr_remquo): Use a proper type for the assigned constant.
6289 (do_mpfr_lgamma_r): Likewise.
6290 * dwarf2out.c (resolve_one_addr): Use size_int.
6291 * except.c (init_eh): Likewise.
6292 (assign_filter_values): Use integer_type_node for filter values.
6293 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
6294 indices.
6295 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
6296 for EH region numbers.
6297 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
6298 for the shift amount.
6299
6300 2011-04-29 Richard Guenther <rguenther@suse.de>
6301
6302 * expr.h (expand_shift): Rename to ...
6303 (expand_variable_shift): ... this.
6304 (expand_shift): Take a constant shift amount.
6305 * expmed.c (expand_shift): Rename to ...
6306 (expand_variable_shift): ... this.
6307 (expand_shift): New wrapper around expand_variable_shift.
6308 * expr.c (convert_move, emit_group_load_1, emit_group_store,
6309 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
6310 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
6311 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
6312 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
6313 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
6314 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
6315 emit_store_flag_1, emit_store_flag): Likewise.
6316 * builtins.c (expand_builtin_signbit): Likewise.
6317 * calls.c (load_register_parameters): Likewise.
6318 * function.c (assign_parm_setup_block): Likewise.
6319 * lower-subreg.c (resolve_shift_zext): Likewise.
6320 * optabs.c (widen_bswap, expand_abs_nojump,
6321 expand_one_cmpl_abs_nojump, expand_float): Likewise.
6322 * spu/spu.c (spu_expand_extv): Likewise.
6323 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
6324
6325 2011-04-29 Richard Guenther <rguenther@suse.de>
6326
6327 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
6328 for the remapped region number.
6329 * predict.c (build_predict_expr): Use integer_type_node for the
6330 predict kind.
6331 * fold-const.c (fold_binary_loc): Use integer_type_node for
6332 the shift amount. Use a proper type for the PLUS_EXPR operand.
6333
6334 2011-04-29 Michael Matz <matz@suse.de>
6335
6336 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
6337 other trees that just builtins.
6338 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
6339
6340 2011-04-29 Richard Guenther <rguenther@suse.de>
6341
6342 * tree-nested.c (get_trampoline_type): Use size_int.
6343 (get_nl_goto_field): Likewise.
6344 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
6345 for all indexes.
6346 (lower_eh_constructs_2): Likewise.
6347 (lower_resx): Likewise.
6348 (lower_eh_dispatch): Likewise.
6349 * tree-mudflap.c (mf_build_string): Use size_int.
6350 (mudflap_register_call): Use integer_type_node for the flag.
6351 (mudflap_enqueue_constant): Use size_int.
6352 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
6353 instead of rebuilding it.
6354
6355 2011-04-29 Richard Guenther <rguenther@suse.de>
6356
6357 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
6358 Handle OBJ_TYPE_REF.
6359 (find_func_aliases_for_call): Use it more consistently.
6360
6361 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
6362
6363 * haifa-sched.c (last_nondebug_scheduled_insn): New.
6364 (rank_for_schedule): Use it.
6365 (schedule_block): Set it.
6366
6367 2011-04-28 David Li <davidxl@google.com>
6368
6369 * tree.c (crc32_string): Use crc32_byte.
6370 (crc32_byte): New function.
6371 * tree.h (crc32_byte): New function.
6372 * gcov.c (read_graph_file): Handle new cfg_cksum.
6373 (read_count_file): Ditto.
6374 * profile.c (instrument_values): Ditto.
6375 (get_exec_counts): Ditto.
6376 (read_profile_edge_counts): Ditto.
6377 (compute_branch_probabilities): Ditto.
6378 (compute_value_histograms): Ditto.
6379 (branch_prob): Ditto.
6380 (end_branch_prob): Ditto.
6381 * coverage.c (read_counts_file): Ditto.
6382 (get_coverage_counts): Ditto.
6383 (tree_coverage_counter_addr): Ditto.
6384 (coverage_checksum_string): Ditto.
6385 (coverage_begin_output): Ditto.
6386 (coverage_end_function): Ditto.
6387 (build_fn_info_type): Ditto.
6388 (build_fn_info_value): Ditto.
6389 * libgcov.c (gcov_exit): Ditto.
6390 * gcov-dump.c (tag_function): Ditto.
6391 (compute_checksum): Remove.
6392
6393 2011-04-29 Alan Modra <amodra@gmail.com>
6394
6395 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
6396 unspec plus offset. Tidy macho code.
6397
6398 2011-04-29 Martin Jambor <mjambor@suse.cz>
6399
6400 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
6401 node instead of a decl. Update all callers.
6402 * cgraph.h: Update declaration.
6403
6404 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
6405
6406 PR tree-optimization/48765
6407 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
6408 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
6409 to indicate if loop aware SLP is being used. Scan the statements
6410 and update the vectorization factor according to the type of
6411 vectorization before statement analysis.
6412 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
6413 pass it to vect_analyze_loop_operations.
6414 (vectorizable_reduction): Set number of copies to 1 in case of pure
6415 SLP statement.
6416 * tree-vect-stmts.c (vectorizable_conversion,
6417 vectorizable_assignment, vectorizable_shift,
6418 vectorizable_operation, vectorizable_type_demotion,
6419 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
6420 Likewise.
6421 (vectorizable_condition): Move the check that it is not SLP
6422 vectorization before the number of copies check.
6423 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
6424 to vectorize the loop using SLP.
6425
6426 2011-04-28 Jakub Jelinek <jakub@redhat.com>
6427
6428 PR middle-end/48597
6429 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
6430 inline asm.
6431
6432 2011-04-28 Joseph Myers <joseph@codesourcery.com>
6433
6434 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
6435 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
6436 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
6437 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
6438 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
6439 linux*.h headers.
6440 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
6441 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6442 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6443 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6444 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6445 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
6446 REG_NAME.
6447 * config/i386/linux.h (REG_NAME): Don't define.
6448 * config/i386/linux64.h (REG_NAME): Don't define.
6449 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
6450 Undefine before defining.
6451
6452 2011-04-28 Jan Hubicka <jh@suse.cz>
6453
6454 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
6455 nonconstant_names array.
6456 (estimate_function_body_sizes): Build nonconstant_names array; handle
6457 BUILT_IN_CONSTANT_P.
6458
6459 2011-04-28 Richard Guenther <rguenther@suse.de>
6460
6461 PR bootstrap/48804
6462 Revert
6463 2011-04-28 Richard Guenther <rguenther@suse.de>
6464
6465 * tree-ssa-structalias.c (solve_constraints): Build succ graph
6466 as late as possible.
6467
6468 2011-04-28 Richard Guenther <rguenther@suse.de>
6469
6470 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
6471 (debug_constraint): Do it here.
6472 (dump_constraints): And here.
6473 (rewrite_constraints): And here.
6474 (dump_constraint_edge): Remove.
6475 (dump_constraint_graph): Rewrite to produce DOT output.
6476 (solve_constraints): Build succ graph as late as possible.
6477 Dump constraint graphs before and after solving.
6478
6479 2011-04-28 Richard Guenther <rguenther@suse.de>
6480
6481 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
6482 New function split out from ...
6483 (find_func_aliases): ... here. Call it.
6484 (find_func_aliases_for_call): Likewise.
6485
6486 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
6487
6488 * internal-fn.h (internal_fn_name_array): Declare.
6489 (internal_fn_flags_array): Likewise.
6490
6491 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
6492
6493 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
6494 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
6495 Move from sse.md.
6496 (ssemodefsuffix): Remove.
6497 (ssevecmodesuffix): New mode attribute.
6498 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
6499 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
6500 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
6501 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
6502 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
6503 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
6504 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
6505 ssemodesuffix mode attribute.
6506 (float splitters): Use ssevecmodesuffix mode attribute.
6507 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
6508 (sseinsmode): Rename from avxvecmode.
6509 (avxsizesuffix): Rename from avxmodesuffix.
6510 (sseintvecmode): Rename from avxpermvecmode.
6511 (ssedoublevecmode): Rename from ssedoublesizemode.
6512 (ssehalfvecmode): Rename from avxhalfvecmode.
6513 (ssescalarmode): Rename from avxscalarmode.
6514 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
6515 templates for ssemodesuffix mode attribute.
6516 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
6517 mode attribute.
6518
6519 Adjust RTX patterns globally for renamed mode attributes.
6520
6521 2011-04-27 Jan Hubcika <jh@suse.cz>
6522
6523 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
6524 * ipa-inline-analysis.c: Include alloc-pool.h.
6525 (edge_predicate_pool): New.
6526 (trye_predicate_p): New function
6527 (false_predicate_p): New function.
6528 (add_clause): Sanity check that false clauses are "optimized";
6529 never add clauses to predicate that is already known to be false.
6530 (and_predicate): Use flase_predicate_p.
6531 (evaulate_predicate): Rename to ...
6532 (evaluate_predicate): ... this one; update all callers; assert
6533 that false is not listed among possible truths.
6534 (dump_predicate): Use true_predicate_p.
6535 (account_size_time): Use false_predicate_p.
6536 (evaulate_conditions_for_edge): Rename to ...
6537 (evaluate_conditions_for_edge) ... this one.
6538 (edge_set_predicate): New function.
6539 (inline_edge_duplication_hook): Duplicate edge predicates.
6540 (inline_edge_removal_hook): Free edge predicates.
6541 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
6542 (dump_inline_summary): Update.
6543 (estimate_function_body_sizes): Set edge predicates.
6544 (estimate_calls_size_and_time): Handle predicates.
6545 (estimate_callee_size_and_time): Update.
6546 (remap_predicate): Add toplev_predicate; update comment.
6547 (remap_edge_predicates): New function.
6548 (inline_merge_summary): Compute toplev predicate; update.
6549 (read_predicate): New function.
6550 (read_inline_edge_summary): Use it.
6551 (inline_read_section): Likewise.
6552 (write_predicate): New function.
6553 (write_inline_edge_summary): Use it.
6554 (inline_write_summary): Likewise.
6555 (inline_free_summary): Free alloc pool and edge summary vec.
6556
6557 2011-04-27 Richard Guenther <rguenther@suse.de>
6558
6559 * tree-ssa-structalias.c (changed_count): Remove.
6560 (changed): Use a bitmap.
6561 (unify_nodes): Adjust.
6562 (do_sd_constraint): Likewise.
6563 (do_ds_constraint): Likewise.
6564 (do_complex_constraint): Likewise.
6565 (solve_graph): Likewise.
6566
6567 2011-04-27 Jan Hubicka <jh@suse.cz>
6568
6569 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
6570
6571 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
6572
6573 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
6574 (avx_vperm2f128_*_operand): Ditto.
6575 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
6576 Use avx_vpermilp_parallel in insn condition.
6577 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
6578 Use avx_vperm2f128_parallel in insn condition.
6579
6580 2011-04-27 Richard Guenther <rguenther@suse.de>
6581
6582 * Makefile.in (tree-ssa-structalias.o): Remove
6583 gt-tree-ssa-structalias.h dependency.
6584 (GTFILES): Remove tree-ssa-structalias.c.
6585 * tree.c (allocate_decl_uid): New function.
6586 (make_node_stat): Use it.
6587 (copy_node_stat): Likewise.
6588 * tree.h (allocate_decl_uid): Declare.
6589 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
6590 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
6591 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
6592 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
6593 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
6594 (struct heapvar_map): Likewise.
6595 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
6596 heapvar_insert): Likewise.
6597 (make_heapvar_for): Rename to ...
6598 (make_heapvar): ... this. Simplify.
6599 (fake_var_decl_obstack): New global var.
6600 (build_fake_var_decl): New function.
6601 (make_constraint_from_heapvar): Adjust.
6602 (handle_lhs_call): Likewise.
6603 (create_function_info_for): Likewise.
6604 (intra_create_variable_infos): Likewise.
6605 (init_alias_vars): Allocate fake_var_decl_obstack.
6606 (init_alias_heapvars, delete_alias_heapvars): Remove.
6607 (compute_points_to_sets): Do not call init_alias_heapvars.
6608 (ipa_pta_execute): Likewise.
6609 (delete_points_to_sets): Free fake_var_decl_obstack.
6610
6611 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6612
6613 * config/spu/divmovti4.c (union qword_UTItype): New data type.
6614 (si_from_UTItype, si_to_UTItype): New functions.
6615 (__udivmodti4): Use them to implement type-punning.
6616 * config/spu/multi3.c (union qword_TItype): New data type.
6617 (si_from_TItype, si_to_TItype): New functions.
6618 (__multi3): Use them to implement type-punning.
6619
6620 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6621
6622 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
6623
6624 2011-04-27 Jan Hubicka <jh@suse.cz>
6625
6626 * ipa-prop.c (function_insertion_hook_holder): New holder.
6627 (ipa_add_new_function): New function.
6628 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
6629 Register/deregister holder.
6630
6631 2011-04-27 Richard Guenther <rguenther@suse.de>
6632
6633 PR tree-optimization/48772
6634 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
6635
6636 2011-04-27 Richard Guenther <rguenther@suse.de>
6637
6638 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
6639 TARGET_MEM_REF handling.
6640
6641 2011-04-27 Nick Clifton <nickc@redhat.com>
6642
6643 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
6644 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
6645 (REG_CLASS_NAMES): Likewise.
6646 (REG_CLASS_CONTENTS): Likewise.
6647 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
6648 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
6649 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
6650 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
6651 (EVEN_REGS): New macro. Alias for QUAD_REGS.
6652 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
6653 duplicate register classes.
6654 (frv_class_likely_spilled_p): Likewise.
6655 (frv_register_move_cost): Likewise.
6656
6657 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
6658 end of the regno_reg_class array.
6659
6660 2011-04-27 Jakub Jelinek <jakub@redhat.com>
6661
6662 PR c/48742
6663 * c-typeck.c (build_binary_op): Don't wrap arguments if
6664 int_operands is true.
6665
6666 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
6667
6668 PR target/48767
6669 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
6670 targetm.calls.must_pass_in_stack for void type.
6671
6672 2011-04-26 Jan Hubicka <jh@suse.cz>
6673
6674 * cgraphbuild.c (build_cgraph_edges): Update call
6675 of cgraph_create_edge and cgraph_create_indirect_edge.
6676 * cgraph.c (cgraph_create_edge_including_clones,
6677 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
6678 cgraph_update_edges_for_call_stmt_node): Do not take nest
6679 argument; do not initialize call_stmt_size/time.
6680 (dump_cgraph_node): Do not dump nest.
6681 (cgraph_clone_edge): Do not take loop_nest argument;
6682 do not propagate it; do not clone call_stmt_size/time.
6683 (cgraph_clone_node): Likewise.
6684 (cgraph_create_virtual_clone): Update.
6685 * cgraph.h (struct cgraph_edge): Remove
6686 call_stmt_size/call_stmt_time/loop_nest.
6687 (cgraph_create_edge, cgraph_create_indirect_edge,
6688 cgraph_create_edge_including_clones, cgraph_clone_node): Update
6689 prototype.
6690 * tree-emutls.c (gen_emutls_addr): Update.
6691 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
6692 loop_nest; handle indirect calls, too.
6693 (clone_inlined_nodes): Do not care about updating inline summaries.
6694 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
6695 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
6696 stream call_stmt_size/call_stmt_time/loop_nest.
6697 * ipa-inline.c (edge_badness): Update.
6698 (ipa_inline): dump summaries after inlining.
6699 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
6700 New.
6701 (inline_edge_summary): New function.
6702 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
6703 (inline_edge_removal_hook): Handle edge summaries.
6704 (inline_edge_duplication_hook): New hook.
6705 (inline_summary_alloc): Alloc hooks.
6706 (initialize_growth_caches): Do not register removal hooks.
6707 (free_growth_caches); Do not free removal hook.
6708 (dump_inline_edge_summary): New function.
6709 (dump_inline_summary): Use it.
6710 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
6711 (inline_update_callee_summaries): New function.
6712 (inline_merge_summary): Use it.
6713 (do_estimate_edge_time, do_estimate_edge_growth): Update.
6714 (read_inline_edge_summary): New function.
6715 (inline_read_section): Use it.
6716 (write_inline_edge_summary): New function.
6717 (inline_write_summary): Use it.
6718 (inline_free_summary): Free edge new holders.
6719 * tree-inline.c (copy_bb): Update.
6720
6721 2011-04-26 Jason Merrill <jason@redhat.com>
6722
6723 * tree-eh.c (lower_try_finally_switch): Create the label along with
6724 the CASE_LABEL_EXPR.
6725
6726 2011-04-26 David S. Miller <davem@davemloft.net>
6727 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6728
6729 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
6730 * configure: Regenerate.
6731
6732 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
6733
6734 PR target/48258
6735 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
6736 reduction.
6737 (VEC_reduc): New code iterator and splitters for vector reduction.
6738 (VEC_reduc_name): Ditto.
6739 (VEC_reduc_rtx): Ditto.
6740 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
6741 (reduc_<VEC_reduc_name>_v4sf): Ditto.
6742
6743 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
6744 support for extracting SF on VSX.
6745
6746 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
6747 generating xscvspdp.
6748 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
6749 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
6750 double add, minimum, maximum vector reduction.
6751 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
6752 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
6753 optimize double vector reduction.
6754 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
6755
6756 2011-04-26 Joseph Myers <joseph@codesourcery.com>
6757
6758 * config/fr30/fr30.h (inhibit_libc): Don't define.
6759 * config/m32r/m32r-protos.h: Correct comment.
6760 * config/v850/v850.h (GHS_default_section_names,
6761 GHS_current_section_names): Use tree, not union tree_node *.
6762
6763 2011-04-26 Xinliang David Li <davidxl@google.com>
6764
6765 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
6766 * c-family/c-opts.c (c_common_handle_option): Set
6767 warn_maybe_uninitialized.
6768 * opts.c (common_handle_option): Ditto.
6769 * common.opt: New option.
6770 * tree-ssa.c (warn_uninit): Add one more parameter.
6771 (warn_uninitialized_var): Pass warning code.
6772 * tree-flow.h: Interface change.
6773
6774 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6775
6776 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
6777 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
6778 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
6779
6780 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6781
6782 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
6783 * config/mips/mips.opt (mmips-tfile): Remove.
6784
6785 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
6786 mips-tdump reference to ...
6787 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
6788 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
6789 reference by Tru64 UNIX.
6790
6791 2011-04-26 Jakub Jelinek <jakub@redhat.com>
6792
6793 PR debug/48768
6794 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
6795 is error_mark_node, set value to NULL.
6796
6797 PR tree-optimization/48734
6798 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
6799 if return value from maybe_fold_*_comparsions isn't something
6800 the code is prepared to handle.
6801
6802 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
6803
6804 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
6805 mode check.
6806 (ext_QIreg_nomode_operands): Remove.
6807 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
6808 (*andsi_1): Ditto.
6809 (*andhi_1): Ditto.
6810
6811 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
6812
6813 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
6814
6815 2011-04-26 Richard Guenther <rguenther@suse.de>
6816
6817 * c-typeck.c (build_unary_op): Do not expand array-refs via
6818 pointer arithmetic. Only adjust qualifiers for function types.
6819
6820 2011-04-26 Richard Guenther <rguenther@suse.de>
6821
6822 PR middle-end/48694
6823 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
6824 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
6825 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
6826 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
6827
6828 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
6829
6830 * doc/extend.texi: Document __underlying_type.
6831
6832 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
6833
6834 * config/rs6000/titan.md (automata_option "progress"): Remove.
6835
6836 2011-04-25 Jeff Law <law@redhat.com>
6837
6838 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
6839
6840 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6841
6842 * system.h (ENUM_BITFIELD): Remove.
6843
6844 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
6845 Eric Botcazou <ebotcazou@adacore.com>
6846
6847 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
6848 for STORE_FLAG_VALUE==-1 case.
6849
6850 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
6851
6852 PR target/43804
6853 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
6854 LEGITIMATE_PIC_OPERAND_P.
6855
6856 2011-04-24 Jan Hubicka <jh@suse.cz>
6857
6858 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
6859 WPA hack.
6860 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
6861 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
6862 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
6863 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
6864 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
6865 Sanity check predicate length.
6866 (remap_predicate): Likewise; sanity check jump functions.
6867 (inline_read_section, inline_write_summary): Sanity check
6868 predicate length.
6869
6870 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
6871
6872 PR other/48748
6873 * doc/extend.texi (Type Traits): Document __is_standard_layout,
6874 __is_literal_type, and __is_trivial; update throughout about
6875 possibly cv-qualified void types.
6876
6877 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
6878
6879 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
6880 testsuite and make it version agnostic.
6881
6882 2011-04-22 Jan Hubicka <jh@suse.cz>
6883
6884 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
6885
6886 2011-04-23 Jakub Jelinek <jakub@redhat.com>
6887
6888 PR c/48685
6889 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
6890 to VOID_TYPE even around MODIFY_EXPR.
6891
6892 2011-04-22 Mike Stump <mikestump@comcast.net>
6893
6894 * gensupport.c (read_md_rtx): Fix typo in comment.
6895 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
6896 comment.
6897
6898 2011-04-22 Jan Hubicka <jh@suse.cz>
6899
6900 * gengtype.c (open_base_files): Add ipa-inline.h include.
6901 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
6902 ipa-prop.c; update all uses.
6903 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
6904 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
6905 merge summary of inlined function into former caller.
6906 * ipa-inline.c (max_benefit): Remove.
6907 (edge_badness): Compensate for removal of benefits.
6908 (update_caller_keys): Use
6909 reset_node_growth_cache/reset_edge_growth_cache.
6910 (update_callee_keys): Likewise.
6911 (update_all_callee_keys): Likewise.
6912 (inline_small_functions): Do not collect max_benefit; do not reset
6913 estimated_growth; call free_growth_caches and initialize_growth_caches.
6914 * ipa-inline.h (struct condition, type clause_t, struct predicate,
6915 struct size_time_entry): New structures.
6916 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
6917 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
6918 and estimated_growth.
6919 (edge_growth_cache_entry): New structure.
6920 (node_growth_cache, edge_growth_cache): New global vars.
6921 (estimate_growth): Turn into inline.
6922 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
6923 initialize_growth_caches, free_growth_caches): Declare.
6924 (estimate_edge_growth): Rewrite.
6925 (estimate_edge_time): Implement as inline cache lookup.
6926 (reset_node_growth_cache, reset_edge_growth_cache): New inline
6927 functions.
6928 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
6929 (NUM_CONDITIONS): New constant.
6930 (predicate_conditions): New enum.
6931 (IS_NOT_CONSTANT): New constant.
6932 (edge_removal_hook_holder): New var.
6933 (node_growth_cache, edge_growth_cache): New global vars.
6934 (true_predicate, single_cond_predicate, false_predicate,
6935 not_inlined_predicate, add_condition, add_clause, and_predicates,
6936 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
6937 dump_clause, dump_predicate, account_size_time,
6938 evaulate_conditions_for_edge): New functions.
6939 (inline_summary_alloc): Move to heap.
6940 (inline_node_removal_hook): Clear condition and entry vectors.
6941 (inline_edge_removal_hook): New function.
6942 (initialize_growth_caches, free_growth_caches): New function.
6943 (dump_inline_summary): Update.
6944 (edge_execution_predicate): New function.
6945 (will_be_nonconstant_predicate): New function.
6946 (estimate_function_body_sizes): Compute BB and constantness predicates.
6947 (compute_inline_parameters): Do not clear estimated_growth.
6948 (estimate_edge_size_and_time): New function.
6949 (estimate_calls_size_and_time): New function.
6950 (estimate_callee_size_and_time): New function.
6951 (remap_predicate): New function.
6952 (inline_merge_summary): New function.
6953 (do_estimate_edge_time): New function based on...
6954 (estimate_edge_time): ... this one.
6955 (do_estimate_edge_growth): New function.
6956 (do_estimate_growth): New function based on....
6957 (estimate_growth): ... this one.
6958 (inline_analyze_function): Analyze after deciding on jump functions.
6959 (inline_read_section): New function.
6960 (inline_read_summary): Use it.
6961 (inline_write_summary): Write all the new data.
6962 * ipa-prop.c (ipa_get_param_decl_index): Export.
6963 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
6964 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
6965 Declare.
6966 (ipa_get_lattice): Move here from ipa-cp.c
6967 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
6968 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
6969 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
6970 cgraph_edge_inlinable_p): Remove.
6971 * cgraphunit.c: Include ipainline.h
6972 (cgraph_process_new_functions): Update call of
6973 compute_inline_parameters.
6974
6975 2011-04-22 Richard Guenther <rguenther@suse.de>
6976
6977 * tree.c (build_int_cst): Properly create canonicalized integer
6978 constants.
6979 (build_int_cst_type): Remove scary comments.
6980
6981 2011-04-22 Xinliang David Li <davidxl@google.com>
6982
6983 * toplev.c (process_options): Enable -Werror=coverage-mismatch
6984 by default when -Wno-error is not specified.
6985 * opts-global.c (decode_options): Remove call to
6986 control_warning_options.
6987
6988 2011-04-22 Jakub Jelinek <jakub@redhat.com>
6989
6990 PR tree-optimization/48717
6991 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
6992 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
6993
6994 2011-04-22 Joseph Myers <joseph@codesourcery.com>
6995
6996 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
6997 definition where used.
6998
6999 2011-04-22 Jakub Jelinek <jakub@redhat.com>
7000
7001 PR c/48716
7002 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
7003 TREE_STATIC variables declared inside of some OpenMP construct.
7004
7005 2011-04-22 Martin Jambor <mjambor@suse.cz>
7006
7007 PR middle-end/48585
7008 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
7009
7010 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
7011
7012 PR c/36750
7013 * c-typeck.c (pop_init_level): Do not warn about initializing
7014 with ` = {0}'.
7015
7016 2011-04-22 Alan Modra <amodra@gmail.com>
7017
7018 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
7019 when returning call_cookie.
7020 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
7021 pointers, to functions with no more vector args than the current
7022 function, and some non-local calls for ABI_V4.
7023 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
7024 sibcall_nonlocal_aix64): Combine to ..
7025 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
7026 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
7027 (sibcall_value_nonlocal_aix<mode>): ..likewise.
7028 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
7029 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
7030 operand.
7031 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
7032 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
7033 sibcall_value_symbolic_64): Delete.
7034
7035 2011-04-21 Xinliang David Li <davidxl@google.com>
7036
7037 * cgraph.h: Remove pid.
7038 * cgraph.c: Remove pid.
7039 * value-prof.c (init_node_map): New function.
7040 (del_node_map): New function.
7041 (find_func_by_funcdef_no): New function.
7042 (gimple_ic_transform): Call new function.
7043 * cgraphunit.c (cgraph_finalize_function): Remove pid.
7044 * function.c (get_last_funcdef_no): New function.
7045 * function.h (get_last_funcdef_no): New function.
7046 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
7047 to libgcov function.
7048 (tree-profiling): Call node map init and delete function.
7049
7050 2011-04-21 Ian Lance Taylor <iant@google.com>
7051
7052 * godump.c (go_format_type): Use exported Go name for anonymous
7053 field name.
7054
7055 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
7056
7057 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
7058 Call builtin_function_type_list instead of builtin_function_type.
7059 (UNARY, BINARY, TRINARY, QUAD): Likewise.
7060
7061 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
7062
7063 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
7064 build_function_type_list instead of build_function_type.
7065 Delete variable `endlink'.
7066
7067 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
7068
7069 * config/s390/s390.c (s390_init_builtins): Call
7070 build_function_type_list instead of build_function_type.
7071
7072 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
7073
7074 * config/ia64/ia64.c (ia64_init_builtins): Call
7075 build_function_type_list instead of builtin_function_type.
7076
7077 2011-04-21 Easwaran Raman <eraman@google.com>
7078
7079 * cfgexpand.c (stack_var): Remove OFFSET...
7080 (add_stack_var): ...and its reference here...
7081 (expand_stack_vars): ...and here.
7082 (stack_var_cmp): Sort by descending order of size.
7083 (partition_stack_vars): Change heuristic.
7084 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
7085 (dump_stack_var_partition): Add newline after each partition.
7086
7087 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
7088 Jeff Law <law@redhat.com>
7089
7090 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
7091 * gengtype.c (matching_file_name_substitute): Likewise.
7092
7093 2011-04-21 Richard Guenther <rguenther@suse.de>
7094
7095 PR lto/48703
7096 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
7097
7098 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
7099
7100 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
7101
7102 2011-04-21 Richard Guenther <rguenther@suse.de>
7103
7104 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
7105 file name.
7106
7107 2011-04-21 Richard Guenther <rguenther@suse.de>
7108
7109 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
7110 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
7111 Use DECL_P, not SSA_VAR_P.
7112 (ptr_derefs_may_alias_p): Likewise.
7113 (ptr_deref_may_alias_ref_p_1): Likewise.
7114 (decl_refs_may_alias_p): Likewise.
7115 (refs_may_alias_p_1): Likewise.
7116 (ref_maybe_used_by_call_p_1): Likewise.
7117 (call_may_clobber_ref_p_1): Likewise.
7118 (indirect_ref_may_alias_decl_p): Assume indirect refrences
7119 are either MEM_REF or TARGET_MEM_REF.
7120 (indirect_refs_may_alias_p): Likewise.
7121 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
7122 for MEM_EXPR of indirect calls.
7123
7124 2011-04-21 Tristan Gingold <gingold@adacore.com>
7125
7126 * vmsdbgout.c (write_srccorr): Compute file length from the string.
7127 (dst_file_info_struct): Remove flen field.
7128 (lookup_filename): Remove code that set flen field.
7129
7130 2011-04-21 Tristan Gingold <gingold@adacore.com>
7131
7132 * config/ia64/ia64.c (ia64_start_function): Add a guard.
7133
7134 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
7135
7136 PR target/48708
7137 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
7138 vec_extract and vec_concat for non-SSE4_1 targets.
7139
7140 2011-04-21 Richard Guenther <rguenther@suse.de>
7141
7142 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
7143 return statements.
7144
7145 2011-04-21 Joseph Myers <joseph@codesourcery.com>
7146
7147 * config/i386/cygming.h (union tree_node, TREE): Don't define or
7148 undefine.
7149 (FILE): Don't undefine.
7150
7151 2011-04-21 Joseph Myers <joseph@codesourcery.com>
7152
7153 * config/alpha/alpha.c (struct machine_function): Use rtx, not
7154 struct rtx_def *.
7155 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
7156 struct rtx_def *.
7157 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
7158 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
7159 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
7160 rtx_def *.
7161 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
7162 definitions where used.
7163 * config/microblaze/microblaze.h (struct microblaze_args): Use
7164 rtx, not struct rtx_def *.
7165 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
7166 rtx_def *.
7167 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
7168 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
7169 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
7170 not struct rtx_def *.
7171 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
7172 struct rtx_def *.
7173 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
7174 rtx_def *.
7175 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
7176
7177 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
7178
7179 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
7180 operand_equal_p to compare DR_BASE_ADDRESSes.
7181 (vect_check_interleaving): Likewise.
7182
7183 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
7184
7185 PR target/46329
7186 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
7187 for all Neon struct constants.
7188
7189 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
7190
7191 * target.def (legitimate_constant_p): New hook.
7192 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
7193 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
7194 * doc/tm.texi: Regenerate.
7195 * hooks.h (hook_bool_mode_rtx_true): Declare.
7196 * hooks.c (hook_bool_mode_rtx_true): Define.
7197 * system.h (LEGITIMATE_CONSTANT_P): Poison.
7198 * calls.c (precompute_register_parameters): Replace uses of
7199 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
7200 (emit_library_call_value_1): Likewise.
7201 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
7202 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
7203 * ira-costs.c (scan_one_insn): Likewise.
7204 * recog.c (general_operand, immediate_operand): Likewise.
7205 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
7206 * reload1.c (init_eliminable_invariants): Likewise.
7207
7208 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
7209 mode argument.
7210 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
7211 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
7212 argument.
7213 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7214 * config/alpha/predicates.md (input_operand): Update call to
7215 alpha_legitimate_constant_p.
7216
7217 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
7218 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
7219 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
7220 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7221 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
7222 (arm_legitimate_constant_p): New functions.
7223 (arm_cannot_force_const_mem): Make static.
7224
7225 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
7226
7227 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
7228 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
7229 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
7230 instead of bfin_legitimate_constant_p.
7231 (bfin_legitimate_constant_p): Make static. Add a mode argument.
7232 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7233
7234 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
7235
7236 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
7237
7238 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
7239 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
7240 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7241 (frv_legitimate_constant_p): Make static. Add a mode argument.
7242
7243 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
7244 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
7245 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
7246
7247 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
7248 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
7249 * config/i386/i386.c (legitimate_constant_p): Rename to...
7250 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
7251 argument.
7252 (ix86_cannot_force_const_mem): Update accordingly.
7253 (ix86_legitimate_address_p): Likewise.
7254 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7255 * config/i386/i386.md: Update commentary.
7256
7257 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
7258 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
7259 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7260 (ia64_legitimate_constant_p): Make static. Add a mode argument.
7261
7262 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
7263
7264 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
7265 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
7266 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7267 (lm32_legitimate_constant_p): Make static. Add a mode argument.
7268
7269 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
7270 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
7271 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
7272
7273 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
7274 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7275 (m32r_legitimate_constant_p): New function.
7276
7277 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
7278 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
7279 LEGITIMATE_CONSTANT_P.
7280 (LEGITIMATE_CONSTANT_P): Delete.
7281 * config/m68k/m68k.c (m68k_expand_prologue): Call
7282 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
7283 (m68k_legitimate_constant_p): New function.
7284 * config/m68k/m68k.md: Update comments.
7285
7286 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
7287 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7288 (mcore_legitimate_constant_p): New function.
7289
7290 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
7291 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
7292 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
7293 Add a mode argument.
7294 (mep_legitimate_address): Update accordingly.
7295 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7296
7297 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
7298 Delete.
7299 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
7300 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
7301 static. Check OP's mode for VOIDmode.
7302 (microblaze_legitimate_constant_p): New function.
7303 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7304
7305 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
7306 * config/mips/mips.c (mips_legitimate_constant_p): New function.
7307 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
7308 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7309 * config/mips/predicates.md: Update comments.
7310
7311 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
7312 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
7313 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7314 (mmix_legitimate_constant_p): Make static, return a bool, and take
7315 a mode argument.
7316 (mmix_print_operand_address): Update accordingly.
7317
7318 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
7319 Delete.
7320 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
7321 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
7322 static. Add a mode argument.
7323 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7324
7325 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
7326
7327 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
7328 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7329 (pa_legitimate_constant_p): New function.
7330
7331 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
7332
7333 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
7334 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7335 (pdp11_legitimate_constant_p): New function.
7336
7337 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
7338 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7339 (rs6000_legitimate_constant_p): New function.
7340
7341 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
7342 (rx_legitimate_constant_p): ...this.
7343 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
7344 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
7345 (rx_legitimate_constant_p): ...this.
7346 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7347 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
7348
7349 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
7350 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
7351 * config/s390/s390.c (legitimate_constant_p): Rename to...
7352 (s390_legitimate_constant_p): ...this. Make static, return a bool,
7353 and add a mode argument.
7354 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7355
7356 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
7357
7358 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
7359 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7360 (sh_legitimate_constant_p): New function.
7361
7362 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
7363 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
7364 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7365 (legitimate_constant_p): Rename to...
7366 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
7367 argument.
7368 (constant_address_p): Update accordingly.
7369
7370 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
7371 argument and return a bool.
7372 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
7373 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7374 (spu_legitimate_constant_p): Add a mode argument and return a bool.
7375 (spu_rtx_costs): Update accordingly.
7376 * config/spu/predicates.md (vec_imm_operand): Likewise.
7377
7378 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
7379
7380 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
7381 * config/v850/v850.c (v850_legitimate_constant_p): New function.
7382 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7383
7384 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
7385 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
7386 * config/vax/vax.c (legitimate_constant_p): Likewise.
7387
7388 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
7389 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7390 (xtensa_legitimate_constant_p): New function.
7391
7392 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
7393
7394 * target.def (cannot_force_const_mem): Add a mode argument.
7395 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
7396 * doc/tm.texi: Regenerate.
7397 * hooks.h (hook_bool_mode_rtx_false): Declare.
7398 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
7399 (hook_bool_mode_const_rtx_true): Likewise.
7400 (hook_bool_mode_rtx_false): New function.
7401 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
7402 to be non-VOID. Update call to cannot_force_const_mem.
7403 (find_reloads): Update accordingly.
7404 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
7405 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
7406 argument.
7407 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
7408 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
7409 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
7410 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
7411 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
7412 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
7413 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
7414 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
7415 (m68k_cannot_force_const_mem): ...this new function.
7416 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
7417 argument.
7418 (mips_const_insns, mips_legitimize_const_move): Update calls.
7419 (mips_secondary_reload_class): Likewise.
7420 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
7421 (pa_cannot_force_const_mem): ...this new function.
7422 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
7423 (rs6000_cannot_force_const_mem): ...this new function.
7424 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
7425 argument.
7426 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
7427 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
7428 to...
7429 (xtensa_cannot_force_const_mem): ...this new function.
7430
7431 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
7432
7433 * config/mips/mips.c (mips16_build_function_stub): Call
7434 build_function_type_list instead of build_function_type.
7435 (mips16_build_call_stub): Likewise.
7436
7437 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
7438
7439 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
7440 instead of build_function_type.
7441
7442 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
7443
7444 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
7445 instead of build_function_type.
7446
7447 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
7448
7449 PR target/48678
7450 * config/i386/i386.md (insv): Change operand 0 constraint to
7451 "register_operand". Change operand 1 and 2 constraint to
7452 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
7453 * config/i386/sse.md (sse4_1_pinsrb): Export.
7454 (sse2_pinsrw): Ditto.
7455 (sse4_1_pinsrd): Ditto.
7456 (sse4_1_pinsrq): Ditto.
7457 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
7458 * config/i386/i386.c (ix86_expand_pinsr): New.
7459
7460 2011-04-20 Easwaran Raman <eraman@google.com>
7461
7462 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
7463 containing union type only with -fstrict-aliasing.
7464
7465 2011-04-20 Jim Meyering <meyering@redhat.com>
7466
7467 Remove useless if-before-free tests.
7468 * calls.c (expand_call, save_area): Likewise.
7469 * cfgcleanup.c (try_forward_edges): Likewise.
7470 * collect2.c (collect_execute): Likewise.
7471 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
7472 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
7473 * coverage.c (coverage_checksum_string): Likewise.
7474 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
7475 * cselib.c (cselib_init): Likewise.
7476 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
7477 (df_set_clean_cfg): Likewise.
7478 * function.c (free_after_compilation): Likewise.
7479 * gcc.c (do_spec_1, main): Likewise.
7480 * gcov.c (create_file_names): Likewise.
7481 * gensupport.c (identify_predicable_attribute): Likewise.
7482 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
7483 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
7484 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
7485 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
7486 * ipa-pure-const.c (local_pure_const): Likewise.
7487 * ipa-reference.c (propagate): Likewise.
7488 * ira-costs.c (free_ira_costs): Likewise.
7489 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
7490 * matrix-reorg.c (mat_free): Likewise.
7491 * prefix.c (get_key_value): Likewise.
7492 * profile.c (compute_value_histograms): Likewise.
7493 * reload1.c (free_reg_equiv): Likewise.
7494 * sched-deps.c (free_deps): Likewise.
7495 * sel-sched-ir.c (fence_clear): Likewise.
7496 * sese.c (set_rename, if_region_set_false_region): Likewise.
7497 * tree-data-ref.c (free_rdg): Likewise.
7498 * tree-eh.c (lower_try_finally): Likewise.
7499 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
7500 * tree-ssa-live.c (delete_var_map): Likewise.
7501 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
7502 * tree-ssa-pre.c (phi_trans_add): Likewise.
7503
7504 2011-04-20 Jakub Jelinek <jakub@redhat.com>
7505
7506 PR tree-optimization/48611
7507 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
7508 beyond ERT_MUST_NOT_THROW region.
7509
7510 2011-04-20 Catherine Moore <clm@codesourcery.com>
7511
7512 * config/mips/mips.opt (mfix-24k): New.
7513 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
7514 * config/mips/mips.md (length): Increase by 4 for stores if
7515 fixing 24K errata.
7516 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
7517 all noreorder if fixing 24K errata.
7518 * doc/invoke.texi: Document mfix-24k.
7519
7520 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
7521
7522 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
7523 quad-word modes, reduce to 9-bit index range when above 1016 limit.
7524
7525 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
7526
7527 * config/arm/arm.c (arm_gen_constant): Move movw support ....
7528 (const_ok_for_op): ... to here.
7529
7530 2011-04-20 Kai Tietz <ktietz@redhat.com>
7531
7532 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
7533 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
7534
7535 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
7536
7537 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
7538
7539 2011-04-20 Richard Guenther <rguenther@suse.de>
7540
7541 PR tree-optimization/47892
7542 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
7543 are if-convertible.
7544
7545 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
7546
7547 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
7548
7549 2011-04-20 Tristan Gingold <gingold@adacore.com>
7550
7551 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
7552
7553 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
7554
7555 PR target/18145
7556
7557 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
7558 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
7559 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
7560 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
7561 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
7562
7563 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
7564 New prototype.
7565
7566 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
7567 (avr_asm_named_section, avr_asm_output_aligned_common,
7568 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
7569 New functions to update...
7570 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
7571 (avr_asm_init_sections): Overwrite section callbacks for
7572 data_section, bss_section.
7573 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
7574 from here to...
7575 (avr_file_end): ...here.
7576
7577 2011-04-20 Richard Guenther <rguenther@suse.de>
7578
7579 PR middle-end/48695
7580 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
7581 objects and types here. Adjust for their offset before comparing.
7582
7583 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
7584
7585 * tree-vect-stmts.c (vectorizable_store): Only chain one related
7586 statement per copy.
7587
7588 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
7589
7590 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
7591 (GIMPLE_H): Include $(INTERNAL_FN_H).
7592 (OBJS-common): Add internal-fn.o.
7593 (internal-fn.o): New rule.
7594 * internal-fn.def: New file.
7595 * internal-fn.h: Likewise.
7596 * internal-fn.c: Likewise.
7597 * gimple.h: Include internal-fn.h.
7598 (GF_CALL_INTERNAL): New gf_mask.
7599 (gimple_statement_call): Put fntype into a union with a new
7600 internal_fn field.
7601 (gimple_build_call_internal): Declare.
7602 (gimple_build_call_internal_vec): Likewise.
7603 (gimple_call_same_target_p): Likewise.
7604 (gimple_call_internal_p): New function.
7605 (gimple_call_internal_fn): Likewise.
7606 (gimple_call_fntype): Return null for internal calls.
7607 (gimple_call_set_fntype): Assert that the function is not internal.
7608 (gimple_call_set_fn): Likewise.
7609 (gimple_call_set_fndecl): Likewise.
7610 (gimple_call_set_internal_fn): New function.
7611 (gimple_call_addr_fndecl): Handle null functions.
7612 (gimple_call_return_type): Likewise null types.
7613 * gimple.c (gimple_build_call_internal_1): New function.
7614 (gimple_build_call_internal): Likewise.
7615 (gimple_build_call_internal_vec): Likewise.
7616 (gimple_call_same_target_p): Likewise.
7617 (gimple_call_flags): Handle calls to internal functions.
7618 (gimple_call_fnspec): New function.
7619 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
7620 (gimple_has_side_effects): Handle null functions.
7621 (gimple_rhs_has_side_effects): Likewise.
7622 (gimple_call_copy_skip_args): Handle calls to internal functions.
7623 * cfgexpand.c (expand_call_stmt): Likewise.
7624 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
7625 * gimple-fold.c (gimple_fold_call): Handle null functions.
7626 (gimple_fold_stmt_to_constant_1): Don't fold
7627 calls to internal functions.
7628 * gimple-low.c (gimple_check_call_args): Handle calls to internal
7629 functions.
7630 * gimple-pretty-print.c (dump_gimple_call): Likewise.
7631 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
7632 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
7633 (do_warn_unused_result): Likewise.
7634 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
7635 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
7636 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
7637 the target of a call.
7638 (initialize_hash_element): Update accordingly.
7639 (hashable_expr_equal_p): Use gimple_call_same_target_p.
7640 (iterative_hash_hashable_expr): Handle calls to internal functions.
7641 (print_expr_hash_elt): Likewise.
7642 * tree-ssa-pre.c (can_value_number_call): Likewise.
7643 (eliminate): Handle null functions.
7644 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
7645 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
7646 (find_func_aliases): Likewise.
7647 * value-prof.c (gimple_ic_transform): Likewise.
7648 (gimple_indirect_call_to_profile): Likewise.
7649 * lto-streamer-in.c (input_gimple_stmt): Likewise.
7650 * lto-streamer-out.c (output_gimple_stmt): Likewise.
7651
7652 2011-04-19 Jan Hubicka <jh@suse.cz>
7653
7654 * ipa-inline-transform.c (save_inline_function_body): Add comments.
7655 * ipa-inline.c (inline_small_functions): Compute summaries first,
7656 populate heap later.
7657
7658 2011-04-19 Jan Hubicka <jh@suse.cz>
7659
7660 * cgraph.h (save_inline_function_body): Remove.
7661 * ipa-inline-transform.c: New file, broke out of...
7662 * ipa-inline.c: ... this one; Update toplevel comment.
7663 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
7664 make global.
7665 (update_noncloned_frequencies): Move to ipa-inline-transform.c
7666 (cgraph_mark_inline_edge): Rename to inline_call; move to
7667 ipa-inline-transform.c.
7668 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
7669 move to ipa-inline-transform.c
7670 (recursive_inlining, inline_small_functions, flatten_function,
7671 ipa_inline, inline_always_inline_functions,
7672 early_inline_small_functions): Update.
7673 (inline_transform): Move to ipa-inline-transform.c.
7674 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
7675 Declare.
7676 * Makefile.in (ipa-inline-transform.o): New file.
7677 * cgraphunit.c (save_inline_function_body): Move to
7678 ipa-inline-transform.c
7679
7680 2011-04-19 DJ Delorie <dj@redhat.com>
7681
7682 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
7683 registers if we already know there aren't any.
7684 (m32c_emit_epilogue): Don't emit a barrier here.
7685 (m32c_emit_eh_epilogue): Likewise.
7686 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
7687 operands at expand time.
7688 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
7689 int" wchar type.
7690 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
7691 duplicates. Provide aliases instead.
7692 * config/m32c/prologue.md (eh_return): Emit a barrier here.
7693 (eh_epilogue): Add a "(return)" here as a hint to other parts of
7694 the compiler.
7695
7696 2011-04-19 Anatoly Sokolov <aesok@post.ru>
7697
7698 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
7699 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
7700 (general_or_i64_p, sparc_register_move_cost): New function.
7701
7702 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7703
7704 * doc/install.texi (Configuration, --enable-threads): Remove mach.
7705 Add lynx, mipssde. Sort table.
7706
7707 2011-04-19 Xinliang David Li <davidxl@google.com>
7708
7709 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
7710 not negative.
7711
7712 2011-04-19 Jakub Jelinek <jakub@redhat.com>
7713
7714 PR target/48678
7715 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
7716 is a SUBREG with non-MODE_INT mode inside of it.
7717
7718 2011-04-19 Martin Jambor <mjambor@suse.cz>
7719
7720 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
7721 also according to actual contants.
7722 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
7723 (gimple_fold_call): Use it.
7724 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
7725
7726 2011-04-19 Martin Jambor <mjambor@suse.cz>
7727
7728 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
7729 non-pointer assignments.
7730
7731 2011-04-19 Martin Jambor <mjambor@suse.cz>
7732
7733 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
7734 account anc_offset and otr_type from the indirect edge info.
7735 * ipa-prop.c (get_ancestor_addr_info): New function.
7736 (compute_complex_ancestor_jump_func): Assignment analysis moved to
7737 get_ancestor_addr_info, call it.
7738 (ipa_note_param_call): Do not initialize information about polymorphic
7739 calls, return the indirect call graph edge. Remove the last
7740 parameter, adjust all callers.
7741 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
7742 parameters. Initialize polymorphic information in the indirect edge.
7743
7744 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
7745
7746 PR lto/48148
7747 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
7748 the types if they have different enumeration identifiers.
7749
7750 2011-04-19 Jan Hubicka <jh@suse.cz>
7751
7752 * cgraph.h (cgraph_optimize_for_size_p): Declare.
7753 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
7754 * predict.c (cgraph_optimize_for_size_p): Break out from ...
7755 (optimize_function_for_size_p) ... here.
7756
7757 2011-04-19 Richard Guenther <rguenther@suse.de>
7758
7759 PR lto/48207
7760 * tree.c (free_lang_data): Do not reset the decl-assembler-name
7761 langhook.
7762
7763 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
7764
7765 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
7766 if DECL_NO_INLINE_WARNING_P is set on the function.
7767
7768 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
7769
7770 PR fortran/47976
7771 * reload1.c (inc_for_reload): Return void. All callers changed.
7772 (emit_input_reload_insns): Don't try to delete previous output
7773 reloads to a register, or record spill_reg_store for autoincs.
7774
7775 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
7776
7777 * gengtype.h: Updated copyright year.
7778 (struct input_file_st): Add inpisplugin field.
7779 (type_fileloc): New function.
7780 * gengtype.c
7781 (write_typed_struct_alloc_def): Add gcc_assert.
7782 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
7783 (write_typed_alloc_defns): Don't output for plugin files.
7784 (input_file_by_name): Clear inpisplugin field.
7785 (main): Set inpisplugin field for plugin files.
7786
7787 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
7788
7789 * gengtype-state.c (string_eq): New.
7790 (read_state): Use string_eq instead of strcmp when creating the
7791 state_ident_tab.
7792
7793 2011-04-19 Wei Guozhi <carrot@google.com>
7794
7795 PR target/47855
7796 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
7797 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
7798 linkage.
7799 * config/arm/constraints.md (Uu): New constraint.
7800 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
7801
7802 2011-04-19 Tristan Gingold <gingold@adacore.com>
7803
7804 * config.gcc (-*-*-*vms): Added.
7805 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
7806 definitions moved.
7807 * config/vms/vms-ld.c: New file.
7808 * config/vms/vms-ar.c: New file.
7809 * config/vms/t-vmsnative: New file.
7810
7811 2011-04-18 Xinliang David Li <davidxl@google.com>
7812
7813 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
7814
7815 2011-04-18 Jakub Jelinek <jakub@redhat.com>
7816
7817 PR middle-end/48661
7818 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
7819 if TREE_TYPE (v) is non-NULL.
7820
7821 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
7822 gimple_get_virt_mehtod_for_binfo.
7823 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
7824 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
7825 callers.
7826 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
7827
7828 2011-04-18 Michael Matz <matz@suse.de>
7829 Steve Ellcey <sje@cup.hp.com>
7830
7831 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
7832 use its mode as source mode if it isn't VOIDmode.
7833
7834 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
7835
7836 * doc/passes.texi: Fill crossref nodes.
7837
7838 2011-04-18 Jim Meyering <meyering@redhat.com>
7839
7840 Fix doubled-word typos in comments and strings
7841 * config/alpha/vms-unwind.h: s/for for/for/
7842 * config/arm/unwind-arm.h: Likewise.
7843 * config/microblaze/microblaze.c: Likewise.
7844 * config/sh/constraints.md: s/in in/in/
7845 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
7846
7847 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
7848
7849 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
7850 (AVX_FLOAT_MODE_P): Ditto.
7851 (AVX128_VEC_FLOAT_MODE_P): Ditto.
7852 (AVX256_VEC_FLOAT_MODE_P): Ditto.
7853 (AVX_VEC_FLOAT_MODE_P): Ditto.
7854 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
7855 (UNSPEC_MASKSTORE): Ditto.
7856 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
7857 Merge from <sse>_movmsk<ssemodesuffix> and
7858 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
7859 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
7860 iterator.
7861 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
7862 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
7863 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
7864
7865 2011-04-18 Jan Hubicka <jh@suse.cz>
7866
7867 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
7868
7869 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
7870 (want_inline_function_called_once_p): Break out the logic from
7871 ipa_inline.
7872 (edge_badness): Ensure that profile is not misupdated.
7873 (lookup_recursive_calls): Prioritize by call frequencies.
7874 (inline_small_functions): Move program size estimates here;
7875 actually process whole queue even when unit growth has been
7876 met. (to properly compute inline_failed reasons and for the
7877 case unit size decrease.) Revisit comments on recursive inlining.
7878 (ipa_inline): Remove unit summary code; first inline hot calls
7879 of functions called once, cold calls next.
7880 (order, nnodes): Remove unused variables.
7881 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
7882 (GTFILES): Remove ipa-inline.c
7883 * sel-sched.c (fill_insns): Silence uninitialized var warning.
7884
7885 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
7886
7887 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
7888
7889 2011-04-18 Jie Zhang <jie@codesourcery.com>
7890 Richard Earnshaw <rearnsha@arm.com>
7891
7892 * arm.c (neon_builtin_type_bits): Remove.
7893 (typedef enum neon_builtin_mode): New.
7894 (T_MAX): Don't define.
7895 (typedef enum neon_builtin_datum): Remove bits, codes[],
7896 num_vars and base_fcode. Add mode, code and fcode.
7897 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
7898 VAR10): Change accordingly.
7899 (neon_builtin_data[]): Change accordingly
7900 (arm_init_neon_builtins): Change accordingly.
7901 (neon_builtin_compare): Remove.
7902 (locate_neon_builtin_icode): Remove.
7903 (arm_expand_neon_builtin): Change accordingly.
7904
7905 * arm.h (enum arm_builtins): Move to ...
7906 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
7907
7908 * arm.c (arm_builtin_decl): Declare.
7909 (TARGET_BUILTIN_DECL): Define.
7910 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
7911 (arm_builtin_decls[]): New.
7912 (arm_init_neon_builtins): Store builtin declarations in
7913 arm_builtin_decls[].
7914 (arm_init_tls_builtins): Likewise.
7915 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
7916 (arm_builtin_decl): New.
7917
7918 2011-04-18 Richard Guenther <rguenther@suse.de>
7919
7920 * tree.c (upper_bound_in_type): Build properly canonicalized
7921 INTEGER_CSTs.
7922 (lower_bound_in_type): Likewise.
7923
7924 2011-04-18 Richard Guenther <rguenther@suse.de>
7925
7926 * gimple.h (gimple_call_addr_fndecl): New function.
7927 (gimple_call_fndecl): Use it.
7928 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
7929 for direct calls.
7930 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
7931 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
7932
7933 2011-04-18 Richard Guenther <rguenther@suse.de>
7934
7935 PR middle-end/48650
7936 * tree.c (build_string): STRING_CST is now derived from tree_typed.
7937
7938 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
7939
7940 PR lto/48492
7941 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
7942 DECL_IN_CONSTANT_POOL without RTL.
7943
7944 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
7945 Ira Rosen <ira.rosen@linaro.org>
7946
7947 PR target/48252
7948 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
7949 to match neon_vzip/vuzp/vtrn_internal.
7950 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
7951 outputs explicitly dependent on both inputs.
7952 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
7953
7954 2011-04-18 Jakub Jelinek <jakub@redhat.com>
7955
7956 PR tree-optimization/48616
7957 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
7958 whether the shift is by scalar or vector based on whether all SLP
7959 scalar stmts have the same rhs.
7960
7961 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
7962
7963 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
7964 memory operands.
7965
7966 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
7967
7968 PR target/43700
7969 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
7970 registers.
7971
7972 2011-04-17 Jan Hubicka <jh@suse.cz>
7973
7974 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
7975 * cgrpahunit.c (cgraph_finalize_function): Do not set
7976 finalized_by_frontend.
7977 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
7978 finalized_by_frontend.
7979
7980 2011-04-17 Jan Hubicka <jh@suse.cz>
7981
7982 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
7983 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
7984 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
7985 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
7986 method.
7987 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
7988 gimple-fold.c
7989 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
7990
7991 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
7992
7993 PR lto/48538
7994 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
7995 is non-null before accessing it.
7996 (input_cgraph): Remove trailing spaces.
7997
7998 2011-04-17 Revital Eres <revital.eres@linaro.org>
7999
8000 * params.def (sms-min-sc): New param flag.
8001 * modulo-sched.c (sms_schedule): Use it.
8002 * doc/invoke.texi (sms-min-sc): Document it.
8003
8004 2011-04-17 Jan Hubicka <jh@suse.cz>
8005
8006 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
8007 present, also set gimple_call_set_cannot_inline.
8008 * ipa-inline.c: Update toplevel comment.
8009 (MAX_TIME): Remove.
8010 (cgraph_clone_inlined_nodes): Fix linebreaks.
8011 (cgraph_check_inline_limits): Restructure to ...
8012 (caller_growth_limits): ... this one; be more tolerant
8013 on growth in nested inline chains; add explanatory comment;
8014 fix stack accounting thinko introduced by previous patch.
8015 (cgraph_default_inline_p): Remove.
8016 (report_inline_failed_reason): New function.
8017 (can_inline_edge_p): New function.
8018 (can_early_inline_edge_p): New function.
8019 (leaf_node_p): Move upwards in file.
8020 (want_early_inline_function_p): New function.
8021 (want_inline_small_function_p): New function.
8022 (want_inline_self_recursive_call_p): New function.
8023 (cgraph_edge_badness): Rename to ...
8024 (edge_badness) ... this one; fix linebreaks.
8025 (update_edge_key): Update call of edge_baddness; add
8026 detailed dump about queue updates.
8027 (update_caller_keys): Use can_inline_edge_p and
8028 want_inline_small_function_p.
8029 (cgraph_decide_recursive_inlining): Rename to...
8030 (recursive_inlining): Use can_inline_edge_p and
8031 want_inline_self_recursive_call_p; simplify and remove no longer
8032 valid FIXME.
8033 (cgraph_set_inline_failed): Remove.
8034 (add_new_edges_to_heap): Use can_inline_edge_p and
8035 want_inline_small_function_p.
8036 (cgraph_decide_inlining_of_small_functions): Rename to ...
8037 (inline_small_functions): ... this one; cleanup; use
8038 can/want predicates; cleanup debug ouput; work edges till fibheap
8039 is exhausted and do not stop once unit growth is reached; remove
8040 later loop processing remaining edges.
8041 (cgraph_flatten): Rename to ...
8042 (flatten_function): ... this one; use can_inline_edge_p
8043 and can_early_inline_edge_p predicates.
8044 (cgraph_decide_inlining): Rename to ...
8045 (ipa_inline): ... this one; remove unreachable nodes before
8046 inlining functions called once; simplify the pass.
8047 (cgraph_perform_always_inlining): Rename to ...
8048 (inline_always_inline_functions): ... this one; use
8049 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
8050 (cgraph_decide_inlining_incrementally): Rename to ...
8051 (early_inline_small_functions): ... this one; simplify
8052 using new predicates; cleanup; make dumps prettier.
8053 (cgraph_early_inlining): Rename to ...
8054 (early_inliner): newer inline regular functions into always-inlines;
8055 fix updating of call stmt summaries.
8056 (pass_early_inline): Update for new names.
8057 (inline_transform): Fix formating.
8058 (gate_cgraph_decide_inlining): Rename to ...
8059 (pass_ipa_inline): ... this one.
8060 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
8061 * ipa-inline-analysis.c (dump_inline_summary): Update.
8062 (compute_inline_parameters): Do not compute disregard_inline_limits;
8063 look for mismatching arguments.
8064 (estimate_growth): Fix handlig of non-trivial self recursion.
8065 (inline_read_summary): Do not read info->disregard_inline_limits.
8066 (inline_write_summary): Do not write info->disregard_inline_limits.
8067 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
8068 and move all checks into can_inline_edge_p predicate; re-enable code
8069 comparing optimization levels.
8070 (expand_call_inline): Do not test inline_forbidden_into_p.
8071 * Makefile.in (ipa-inline.o): Update arguments.
8072
8073 2011-04-17 Revital Eres <revital.eres@linaro.org>
8074
8075 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
8076
8077 2011-04-17 Revital Eres <revital.eres@linaro.org>
8078
8079 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
8080
8081 2011-04-17 Michael Matz <matz@suse.de>
8082
8083 PR tree-optimization/48622
8084 PR lto/48645
8085 * ipa-inline-analysis.c (inline_read_summary): Read size/time
8086 in same order as they're written.
8087
8088 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8089
8090 * config/pa/predicates.md: Reorganize and simplify predicates.
8091 Eliminate duplicate code checks.
8092 (arith_operand): Rename to arith14_operand
8093 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
8094 * config/pa/pa.md: Use renamed operands.
8095 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
8096 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
8097 arith11_operand, adddi3_operand, indexed_memory_operand,
8098 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
8099 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
8100 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
8101 move_dest_operand, move_src_operand, prefetch_cc_operand,
8102 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
8103 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
8104 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
8105 div_operand, int5_operand, movb_comparison_operator,
8106 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
8107 arith_double_operand, ireg_operand, lhs_lshift_operand,
8108 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
8109 integer_store_memory_operand): Likewise.
8110 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
8111 (integer_store_memory_operand, read_only_operand,
8112 function_label_operand, borx_reg_operand,
8113 non_hard_reg_operand): Likewise.
8114 (eq_neq_comparison_operator): Delete unused operator.
8115 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
8116 function_label_operand.
8117 (emit_move_sequence): Likewise.
8118
8119 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
8120
8121 * config/i386/sse.md (sseunpackmode): New mode attribute.
8122 (ssepackmode): Ditto.
8123 (vec_pack_trunc_<mode>): Macroize expander from
8124 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
8125 (vec_unpacks_lo_<mode>): Macroize expander from
8126 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
8127 (vec_unpacks_hi_<mode>): Macroize expander from
8128 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
8129 (vec_unpacku_lo_<mode>): Macroize expander from
8130 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
8131 (vec_unpacku_hi_<mode>): Macroize expander from
8132 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
8133 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
8134 ix86_expand_sse4_unpack.
8135 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
8136
8137 2011-04-16 Jan Hubicka <jh@suse.cz>
8138
8139 * cgraphbuild.c: Include ipa-inline.h.
8140 (reset_inline_failed): Use initialize_inline_failed.
8141 * cgraph.c: Include ipa-inline.h.
8142 (cgraph_create_node_1): Do not initialize estimated_growth.
8143 (initialize_inline_failed): More to ipa-inline-analysis.c
8144 (dump_cgraph_node): Do not dump inline flags.
8145 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
8146 and disregard_inline_limits flags.
8147 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
8148 time, size, estimated_growth.
8149 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
8150 Update.
8151 * cgraphunit.c (cgraph_decide_is_function_needed): Use
8152 DECL_DISREGARD_INLINE_LIMITS.
8153 (cgraph_analyze_function): Do not initialize
8154 node->local.disregard_inline_limits.
8155 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
8156 inlinable, versionable and disregard_inline_limits.
8157 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
8158 cgraph_check_inline_limits, cgraph_default_inline_p,
8159 cgraph_edge_badness, update_caller_keys, update_callee_keys,
8160 add_new_edges_to_heap): Update.
8161 (cgraph_decide_inlining_of_small_function): Update; set
8162 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
8163 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
8164 cgraph_decide_inlining_incrementally): Update.
8165 * ipa-inline.h (inline_summary): Add inlinable, versionable,
8166 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
8167 time, size and estimated_growth parameters.
8168 (estimate_edge_growth): Update.
8169 (initialize_inline_failed): Declare.
8170 * ipa-split.c: Include ipa-inline.h
8171 (execute_split_functions): Update.
8172 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
8173 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
8174 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
8175 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
8176 estimated_growth to INT_MIN.
8177 (inline_node_duplication_hook): Likewise.
8178 (dump_inline_summary): Dump new fields.
8179 (compute_inline_parameters): Update.
8180 (estimate_edge_time, estimate_time_after_inlining,
8181 estimate_size_after_inlining, estimate_growth, inline_read_summary,
8182 inline_write_summary):
8183 (initialize_inline_failed): Move here from cgraph.c.
8184 * tree-sra.c: Include ipa-inline.h.
8185 (ipa_sra_preliminary_function_checks): Update.
8186 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
8187 ipa-inline.h.
8188
8189 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
8190
8191 * config/i386/sse.md (V16): New mode iterator.
8192 (VI1, VI8): Ditto.
8193 (AVXMODEQI, AVXMODEDI): Remove.
8194 (sse2, sse3): New mode attribute.
8195 (mov<mode>): Use V16 mode iterator.
8196 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
8197 (push<mode>1): Use V16 mode iterator.
8198 (movmisalign<mode>): Ditto.
8199 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
8200 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
8201 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
8202 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
8203 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
8204 avx_movdqu<avxmodesuffix>.
8205 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
8206 *avx_movdqu<avxmodesuffix>.
8207 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
8208 avx_lddqu<avxmodesuffix>.
8209 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
8210 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
8211 avx_movnt<AVXMODEDI:mode>.
8212 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
8213 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
8214
8215 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
8216
8217 PR target/48629
8218 * haifa-sched.c (prune_ready_list, schedule_block): Use
8219 sched_pressure_p rather than flag_sched_pressure.
8220
8221 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
8222
8223 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
8224 cgraph_get_node instead of cgraph_get_create_node.
8225
8226 2011-04-15 Jakub Jelinek <jakub@redhat.com>
8227
8228 * cfgexpand.c (expand_debug_expr): Use
8229 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
8230
8231 2011-04-15 Michael Matz <matz@suse.de>
8232
8233 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
8234 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
8235 * function.c (gimplify_parameters): Ditto.
8236 * gimplify.c (gimplify_vla_decl): Ditto.
8237
8238 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
8239 (gimple_call_set_alloca_for_var): New inline function.
8240 (gimple_call_alloca_for_var_p): Ditto.
8241 * gimple.c (gimple_build_call_from_tree): Remember
8242 CALL_ALLOCA_FOR_VAR_P state.
8243 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
8244
8245 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
8246 calls if they were for VLA objects.
8247
8248 2011-04-15 Martin Jambor <mjambor@suse.cz>
8249
8250 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
8251 of ADR_EXPRs.
8252
8253 2011-04-15 Martin Jambor <mjambor@suse.cz>
8254
8255 PR middle-end/48601
8256 * tree-emutls.c (lower_emutls_function_body): Call
8257 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
8258 result is non-NULL.
8259
8260 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
8261
8262 * c-decl.c (detect_field_duplicates): Call
8263 objc_detect_field_duplicates instead of objc_get_interface_ivars.
8264
8265 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
8266
8267 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
8268 * gimple.c (gimple_asm_clobbers_memory_p): Define.
8269 * ipa-pure-const.c (check_stmt): Call it.
8270 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
8271
8272 2011-04-15 Richard Guenther <rguenther@suse.de>
8273
8274 PR tree-optimization/48290
8275 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
8276 Properly decide inhibiting propagation based on the valueized
8277 operand. Do loop-closed SSA form preserving here ...
8278 (init_copy_prop): ... not here.
8279
8280 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
8281
8282 PR target/48612
8283 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
8284 (*ieee_smax<mode>3): Likewise.
8285
8286 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8287
8288 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
8289 Replace match_operand with match_dup for the third operand in
8290 these expanders.
8291
8292 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
8293
8294 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
8295 to track processing of conditionals. Update all callers.
8296 (try_combine, simplify_if_then_else): Update.
8297
8298 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
8299
8300 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
8301 -fsched-pressure.
8302
8303 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
8304
8305 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
8306 instead of match_operand for operand 3.
8307
8308 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
8309
8310 * recog.h (insn_operand_data): Add an "allows_mem" field.
8311 * genoutput.c (output_operand_data): Initialize it.
8312 * optabs.c (maybe_legitimize_operand_same_code): New function.
8313 (maybe_legitimize_operand): Use it when matching the original
8314 op->value.
8315
8316 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
8317
8318 * gimplify.c: Fix issues in comments throughout.
8319 (voidify_wrapper_expr): Fix long line.
8320 (build_stack_save_restore): Likewise.
8321 (gimplify_loop_expr): Likewise.
8322 (gimplify_compound_lval): Likewise.
8323 (gimplify_init_ctor_eval): Likewise.
8324 (gimplify_modify_expr_rhs): Likewise.
8325 (omp_notice_threadprivate_variable): Likewise.
8326
8327 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
8328
8329 * cfgexpand.c (expand_call_stmt): Convert the function type to the
8330 original one if this is not a builtin function.
8331
8332 2011-04-14 Jakub Jelinek <jakub@redhat.com>
8333
8334 PR target/48605
8335 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
8336 offset it as needed based on top 2 bits in operands[3], change
8337 MEM mode to SFmode and mask those 2 bits away from operands[3].
8338
8339 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
8340
8341 * c-parser.c (c_parser_objc_protocol_definition): Updated for
8342 change from objc_declare_protocols() to objc_declare_protocol().
8343
8344 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
8345
8346 * config/i386/sse.md (sse4_1): New mode attribute.
8347 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
8348 avx_blend<ssemodesuffix><avxmodesuffix> and
8349 sse4_1_blend<ssemodesuffix> using VF mode iterator.
8350 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
8351 avx_blendv<ssemodesuffix><avxmodesuffix> and
8352 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
8353 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
8354 avx_dp<ssemodesuffix><avxmodesuffix> and
8355 sse4_1_dp<ssemodesuffix> using VF mode iterator.
8356 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
8357 (sse4_1_packusdw): Merge with *avx_packusdw.
8358 (sse4_1_pblendvb): Merge with *avx_pblendvb.
8359 (sse4_1_pblendw): Merge with *avx_pblendw.
8360 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
8361 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
8362 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
8363 VF mode iterator.
8364 (sse4_1_round<ssescalarmodesuffix>): Merge with
8365 *avx_round<ssescalarmodesuffix>.
8366 (aesenc): Merge with *avx_aesenc.
8367 (aesenclast): Merge with *avx_aesenclast.
8368 (aesdec): Merge with *avx_aesdec.
8369 (aesdeclast): Merge with *avx_aesdeclast.
8370 (pclmulqdq): Merge with *pclmulqdq.
8371 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
8372 New predicate.
8373 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
8374
8375 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
8376
8377 PR middle-end/48608
8378 * cfgexpand.c (get_decl_align_unit): Renamed to ...
8379 (align_local_variable): This. Update DECL_ALIGN.
8380 (add_stack_var): Updated.
8381 (expand_one_stack_var): Likewise.
8382
8383 2011-04-14 Richard Guenther <rguenther@suse.de>
8384
8385 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
8386 Remove.
8387 (dse_initialize_block_local_data, dse_leave_block,
8388 record_voperand_set, get_stmt_uid): Likewise.
8389 (dse_possible_dead_store_p): Allow any kind of killing stmt.
8390 (dse_optimize_stmt): Remove voperand set handling code.
8391 Simplify and improve to handle any kind of killing stmt.
8392 (dse_record_phi): Remove.
8393 (dse_enter_block): Simplify.
8394 (tree_ssa_dse): Likewise.
8395 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
8396
8397 2011-04-14 Jan Hubicka <jh@suse.cz>
8398
8399 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
8400 * cgraph.h (struct inline_summary): Move to ipa-inline.h
8401 (cgraph_local_info): Remove inline_summary.
8402 * ipa-cp.c: Include ipa-inline.h.
8403 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
8404 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
8405 accesor.
8406 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
8407 (input_overwrite_node): Do not set inline summary.
8408 (input_node): Do not stream inline summary.
8409 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
8410 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
8411 growth; we do not have inline parameters computed for that anyway.
8412 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
8413 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
8414 (inline_summary_t): New type and VECtor.
8415 (debug_inline_summary, dump_inline_summaries): Declare.
8416 (inline_summary): Use VOCtor.
8417 (estimate_edge_growth): Kill hack computing call stmt size directly.
8418 * lto-section-in.c (lto_section_name): Add inline section.
8419 * ipa-inline-analysis.c: Include lto-streamer.h
8420 (node_removal_hook_holder, node_duplication_hook_holder): New holders
8421 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
8422 (inline_summary_vec): Define.
8423 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
8424 dump_inline_summaries): New functions.
8425 (estimate_function_body_sizes): Properly compute size/time of outgoing
8426 calls.
8427 (compute_inline_parameters): Alloc inline_summary; do not compute
8428 size/time of incomming calls.
8429 (estimate_edge_time): Avoid missing time summary hack.
8430 (inline_read_summary): Read inline summary info.
8431 (inline_write_summary): Write inline summary info.
8432 (inline_free_summary): Free all hooks and inline summary vector.
8433 * lto-streamer.h: Add LTO_section_inline_summary section.
8434 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
8435 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
8436
8437 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
8438
8439 * tree-vectorizer.h (vect_strided_store_supported): Add a
8440 HOST_WIDE_INT argument.
8441 (vect_strided_load_supported): Likewise.
8442 (vect_permute_store_chain): Return void.
8443 (vect_transform_strided_load): Likewise.
8444 (vect_permute_load_chain): Delete.
8445 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
8446 count argument. Check that the count is a power of two.
8447 (vect_strided_load_supported): Likewise.
8448 (vect_permute_store_chain): Return void. Update after above changes.
8449 Assert that the access is supported.
8450 (vect_permute_load_chain): Likewise.
8451 (vect_transform_strided_load): Return void.
8452 * tree-vect-stmts.c (vectorizable_store): Update calls after
8453 above interface changes.
8454 (vectorizable_load): Likewise.
8455 (vect_analyze_stmt): Don't check for strided powers of two here.
8456
8457 2011-04-14 Richard Guenther <rguenther@suse.de>
8458
8459 PR tree-optimization/48590
8460 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
8461 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
8462 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
8463 BUILT_IN_STACK_SAVE.
8464 * tree-ssa-dce.c (propagate_necessity): Handle
8465 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
8466
8467 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
8468
8469 * c-parser.c (c_parser_objc_class_declaration): Updated call to
8470 objc_declare_class.
8471
8472 2011-04-14 Richard Guenther <rguenther@suse.de>
8473
8474 * tree.h (get_object_alignment_1): Declare.
8475 * builtins.c (get_object_alignment_1): Split out worker from ...
8476 (get_object_alignment): ... here.
8477 * fold-const.c (get_pointer_modulus_and_residue): Use
8478 get_object_alignment_1.
8479
8480 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
8481
8482 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
8483 type parameter.
8484 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
8485 parameter. Generalise code to handle arrays as well as vectors.
8486 (vect_setup_realignment): Update accordingly.
8487 * tree-vect-stmts.c (vectorizable_store): Likewise.
8488 (vectorizable_load): Likewise.
8489
8490 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
8491
8492 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
8493 within the per-copy loop.
8494
8495 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
8496
8497 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
8498 in the dump file.
8499
8500 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
8501
8502 * doc/options.texi (Negative): Explicitly mention that the
8503 Negative chain must be circular.
8504
8505 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
8506
8507 * function.h (block_chainon): Declare.
8508 * function.c (block_chainon): Define.
8509
8510 2011-04-14 Anatoly Sokolov <aesok@post.ru>
8511 Eric Weddington <eric.weddington@atmel.com>
8512 Georg-Johann Lay <avr@gjlay.de>
8513
8514 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
8515 New Includes
8516 (avr_init_builtins, avr_expand_builtin,
8517 avr_expand_delay_cycles, avr_expand_unop_builtin,
8518 avr_expand_binop_builtin ): New functions.
8519 (avr_builtin_id): New enum
8520 (struct avr_builtin_description): New struct
8521 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
8522 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
8523
8524 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
8525 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
8526 UNSPECV_DELAY_CYCLES): new enumeration values
8527 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
8528 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
8529 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
8530 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
8531 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
8532 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
8533 "fmulsu"): New insns
8534
8535 * config/avr/avr-c.c: fix line endings
8536 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
8537 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
8538 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
8539 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
8540 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
8541
8542 * doc/extend.texi (AVR Built-in Functions): New node
8543 (Target Builtins): Add documentation of AVR
8544 built-in functions.
8545
8546 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
8547
8548 PR target/44643
8549 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
8550 alone. Error if non-const data has attribute progmem.
8551
8552 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
8553
8554 * tree.h (struct tree_constructor): Include tree_typed instead of
8555 tree_common.
8556 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
8557 TS_TYPED instead of TS_COMMON.
8558
8559 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
8560
8561 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
8562 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
8563 (sse2_psadbw): Merge with *avx_psadbw.
8564 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
8565 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
8566 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
8567 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
8568 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
8569 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
8570 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
8571 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
8572 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
8573 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
8574 (ssse3_palignrti): Merge with *avx_palignrti.
8575
8576 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
8577
8578 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
8579 * tree-ssanames.c (fini_ssanames): VEC_free it.
8580 (make_ssa_name_fn): Update for VECness of free_ssanames.
8581 (release_ssa_name, release_dead_ssa_names): Likewise.
8582 * tree.h (struct tree_ssa_name): Include tree_typed instead of
8583 tree_common.
8584 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
8585 TS_TYPED instead of TS_COMMON.
8586
8587 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
8588
8589 * postreload-gcse.c (gcse_after_reload_main): Add calls to
8590 statistics_counter_event.
8591 * tree-ssa-copyrename.c (stats): Define.
8592 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
8593 statistics_counter_event.
8594 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
8595 (bswap_stats, widen_mul_stats): Define.
8596 (insert_reciprocals): Increment rdivs_inserted.
8597 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
8598 rfuncs_inserted. Add calls to statistics_counter_event.
8599 (execute_cse_sincos_1): Increment inserted.
8600 (execute_cse_sincos): Zeroize sincos_stats. Add call to
8601 statistics_counter_event.
8602 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
8603 of bswap_stats. Add calls to statistics_counter_event.
8604 (convert_mult_to_widen): Increment widen_mults_inserted.
8605 (convert_plusminus_to_widen): Increment maccs_inserted.
8606 (convert_mult_to_fma): Increment fmas_inserted.
8607 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
8608 calls to statistics_counter_event.
8609
8610 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
8611
8612 PR rtl-optimization/48455
8613 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
8614 `temp_costs->mem_cost'.
8615
8616 2011-04-13 Jan Hubicka <jh@suse.cz>
8617
8618 * ipa-inline.h: New file.
8619 * ipa-inline-analysis.c: New file. Broken out of ...
8620 * ipa-inline.c: ... this file; update toplevel comment;
8621 include ipa-inline.h
8622 (inline_summary): Move to ipa-inline.h
8623 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
8624 ipa-inline-analysis.c.
8625 (cgraph_estimate_time_after_inlining): Rename to
8626 estiamte_time_after_inlining; move to ipa-inline-analysis.c
8627 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
8628 to estimate_edge_growth.
8629 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
8630 rename to estimate_size_after_inlining.
8631 (cgraph_mark_inline_edge): Update for new naming convention.
8632 (cgraph_check_inline_limits): Likewise.
8633 (cgraph_edge_badness): Likewise.
8634 (cgraph_decide_recursive_inlining): Likewise.
8635 (cgraph_decide_inlining_of_small_functions): Likewise.
8636 (cgraph_decide_inlining_incrementally): Likewise.
8637 (cgraph_estimate_growth): Rename to estimate_growth; move to
8638 ipa-inline-analysis.c.
8639 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
8640 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
8641 (compute_inline_parameters): Likewise.
8642 (compute_inline_parameters_for_current): Likewise.
8643 (pass_inline_parameters): Likewise.
8644 (inline_indirect_intraprocedural_analysis): Likewise.
8645 (analyze_function): Rename to inline_analyze_function; likewise.
8646 (add_new_function): Move to ipa-inline-analysis.c.
8647 (inline_generate_summary): Likewise.
8648 (inline_read_summary): Likewise.
8649 (inline_write_summary): Likewise.
8650 * Makefile.in (ipa-inline-analysis.c): New file.
8651
8652 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8653
8654 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
8655 * configure: Regenerate.
8656
8657 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
8658
8659 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
8660 instead of tree_common.
8661 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
8662 Likewise.
8663 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
8664 TS_TYPED rather than TS_COMMON.
8665 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
8666
8667 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
8668
8669 PR target/45263
8670 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
8671 r20 around calls of __tablejump_elpm__
8672
8673 2011-04-13 Jakub Jelinek <jakub@redhat.com>
8674
8675 PR middle-end/48591
8676 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
8677 NULL.
8678 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
8679
8680 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
8681
8682 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
8683 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
8684 (cfi_vec): New typedef.
8685 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
8686 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
8687 (cie_cfi_vec): New static variable.
8688 (cie_cfi_head): Delete.
8689 (add_cfi): Accept a cfi_vec * as first argument. All callers and
8690 declaration changed. Use vector rather than list operations.
8691 (new_cfi): Don't initialize the dw_cfi_next field.
8692 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
8693 rather than list operations.
8694 (lookup_cfa): Use vector rather than list operations.
8695 (output_cfis): New argument upto. Accept a cfi_vec rather than
8696 a dw_cfi_ref list head as argument. All callers changed.
8697 Iterate over the vector using upto as a maximum index.
8698 (output_all_cfis): New static function.
8699 (output_fde): Use vector rather than list operations. Use the
8700 new upto argument for output_cfis rather than manipulating a
8701 list.
8702 (dwarf2out_begin_prologue): Change initializations to match
8703 new struct members.
8704 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
8705 from the vector length rather than searching for the end of a list.
8706 Use output_all_cfis.
8707 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
8708
8709 2011-04-13 Nick Clifton <nickc@redhat.com>
8710
8711 * config/rx/rx.md (movmemsi): Do not use this pattern when
8712 volatile pointers are involved.
8713
8714 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
8715
8716 * config/i386/sse.md (pinsrbits): Remove.
8717 (sse2_packsswb): Merge with *avx_packsswb.
8718 (sse2_packssdw): Merge with *avx_packssdw.
8719 (sse2_packuswb): Merge with *avx_packuswb.
8720 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
8721 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
8722 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
8723 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
8724 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
8725 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
8726 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
8727 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
8728 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
8729 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
8730 (sse2_loadld): Merge with *avx_loadld.
8731 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
8732 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
8733 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
8734 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
8735 (vec_concatv2di): Merge with *vec_concatv2di_avx.
8736
8737 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
8738
8739 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
8740 calling TREE_CHAIN.
8741 * print-tree.c (print_node): Likewise.
8742 * tree-inline.c (copy_tree_r): Likewise.
8743 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
8744 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
8745 instead of TS_COMMON.
8746 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
8747 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
8748 (copy_node_stat): Zero TREE_CHAIN only if necessary.
8749 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
8750 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
8751 ...and these...
8752 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
8753 * tree.h: ...here.
8754 (TREE_CHAIN): Check for a TS_COMMON structure.
8755 (TREE_TYPE): Check for a TS_TYPED structure.
8756
8757 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
8758
8759 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
8760 cgraph_get_create_node instead of cgraph_node.
8761
8762 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
8763
8764 * c-parser.c (c_parser_initelt): Updated call to
8765 objc_build_message_expr.
8766 (c_parser_postfix_expression): Likewise.
8767
8768 2011-04-12 Kai Tietz <ktietz@redhat.com>
8769
8770 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
8771 MASK_MS_BITFIELD_LAYOUT bit.
8772
8773 2011-04-12 Jakub Jelinek <jakub@redhat.com>
8774
8775 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
8776 assert it is always true.
8777 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
8778 moves.
8779
8780 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
8781
8782 * c-parser.c (c_lex_one_token): Rewritten conditional used when
8783 compiling Objective-C to be more efficient.
8784
8785 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
8786
8787 * opts-common.c (decode_cmdline_options_to_array): Remove variable
8788 argv_copied.
8789
8790 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
8791
8792 * recog.h, genoutput.c, optabs.c: Revert last patch.
8793
8794 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8795
8796 PR target/48090
8797 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
8798
8799 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
8800
8801 * recog.h (insn_operand_data): Add an "allows_mem" field.
8802 * genoutput.c (output_operand_data): Initialize it.
8803 * optabs.c (maybe_legitimize_operand_same_code): New function.
8804 (maybe_legitimize_operand): Use it when matching the original
8805 op->value.
8806
8807 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
8808
8809 * genpreds.c (process_define_predicate): Move most processing
8810 to gensupport.c. Continue to validate the expression.
8811 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
8812 (process_define_predicate): Move processing to gensupport.c.
8813 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
8814 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
8815 (compute_predicate_codes): Moved from genrecog.c. Add lineno
8816 argument.
8817 (valid_predicate_name_p): New function, split out from old
8818 genpreds.c:process_define_predicate.
8819 (process_define_predicate): New function, combining code from
8820 old genpreds.c and genrecog.c functions.
8821 (process_rtx): Call it for DEFINE_PREDICATE and
8822 DEFINE_SPECIAL_PREDICATE.
8823
8824 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
8825
8826 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
8827 size of a '%A' memory reference.
8828 (T_DREG, T_QREG): New neon_builtin_type_bits.
8829 (arm_init_neon_builtins): Assert that the load and store operands
8830 are neon_struct_operands.
8831 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
8832 (NEON_ARG_MEMORY): New builtin_arg.
8833 (neon_dereference_pointer): New function.
8834 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
8835 Handle NEON_ARG_MEMORY.
8836 (arm_expand_neon_builtin): Update after above interface changes.
8837 Use NEON_ARG_MEMORY for loads and stores.
8838 * config/arm/predicates.md (neon_struct_operand): New predicate.
8839 * config/arm/iterators.md (V_two_elem): Tweak formatting.
8840 (V_three_elem): Use BLKmode for accesses that have no associated mode.
8841 (V_four_elem): Tweak formatting.
8842 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
8843 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
8844 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
8845 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
8846 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
8847 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
8848 (neon_vst4<mode>): Replace pointer operand with a memory operand.
8849 Use %A in the output template.
8850 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
8851 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
8852 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
8853 the width of the memory access. Remove post-increment.
8854 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
8855
8856 2011-04-12 Nick Clifton <nickc@redhat.com>
8857
8858 * config/v850/v850.c (expand_prologue): Do not use the CALLT
8859 instruction for interrupt handlers if the target is the basic V850
8860 architecture.
8861 (expand_epilogue): Likewise.
8862
8863 2011-04-12 Jakub Jelinek <jakub@redhat.com>
8864
8865 PR rtl-optimization/48549
8866 * combine.c (propagate_for_debug): Also stop after BB_END of
8867 this_basic_block. Process LAST and just stop processing after it.
8868 (combine_instructions): If last_combined_insn has been deleted,
8869 set last_combined_insn to its PREV_INSN.
8870
8871 2011-04-12 Richard Guenther <rguenther@suse.de>
8872
8873 PR tree-optimization/46076
8874 * gimple.h (struct gimple_statement_call): Add fntype field.
8875 (gimple_call_fntype): Adjust.
8876 (gimple_call_set_fntype): New function.
8877 * gimple.c (gimple_build_call_1): Set the call function type.
8878 * gimplify.c (gimplify_call_expr): Preserve the function
8879 type the frontend used for the call.
8880 (gimplify_modify_expr): Likewise.
8881 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
8882 function type.
8883 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
8884 function type.
8885 * tree-ssa.c (useless_type_conversion_p): Function pointer
8886 conversions are useless.
8887
8888 2011-04-12 Martin Jambor <mjambor@suse.cz>
8889
8890 * cgraph.h (cgraph_node): Remove function declaration.
8891 (cgraph_create_node): Declare.
8892 (cgraph_get_create_node): Likewise.
8893 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
8894 Updated all callers.
8895 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
8896 the decl does not already exist. Call cgraph_get_create_node instead
8897 of cgraph_node.
8898 (cgraph_get_create_node): New function.
8899 (cgraph_same_body_alias): Update comment.
8900 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
8901 assert it does not return NULL.
8902 (cgraph_update_edges_for_call_stmt): Likewise.
8903 (cgraph_clone_edge): Likewise.
8904 (cgraph_create_virtual_clone): Likewise.
8905 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
8906 instead of cgraph_node.
8907 (cgraph_add_new_function): Call cgraph_create_node or
8908 cgraph_get_create_node instead of cgraph_node.
8909 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
8910 instead of cgraph_node.
8911 (record_eh_tables): Likewise.
8912 (mark_address): Likewise.
8913 (mark_load): Likewise.
8914 (build_cgraph_edges): Call cgraph_get_create_node instead
8915 of cgraph_node.
8916 (rebuild_cgraph_edges): Likewise.
8917 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
8918 instead of cgraph_node.
8919 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
8920 cgraph_node.
8921 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
8922 cgraph_create_node instead of cgraph_node.
8923 * c-decl.c (finish_function): Call cgraph_get_create_node instead
8924 of cgraph_node.
8925 * lto-cgraph.c (input_node): Likewise.
8926 * lto-streamer-in.c (input_function): Likewise.
8927 * varasm.c (mark_decl_referenced): Likewise.
8928 (assemble_alias): Likewise.
8929
8930 2011-04-12 Martin Jambor <mjambor@suse.cz>
8931
8932 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
8933 instead of cgraph_node and assert it does not return NULL.
8934 * lto-streamer-in.c (lto_read_body): Likewise.
8935 * omp-low.c (new_omp_context): Likewise.
8936 (create_task_copyfn): Likewise.
8937 * tree-emutls.c (lower_emutls_function_body): Likewise.
8938 * matrix-reorg.c (transform_allocation_sites): Likewise.
8939
8940 2011-04-12 Jakub Jelinek <jakub@redhat.com>
8941
8942 PR c/48552
8943 * c-typeck.c (build_asm_expr): Error out on attempts to use
8944 void type outputs or inputs for constraints that allow reg or
8945 don't allow memory.
8946
8947 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
8948 Richard Earnshaw <rearnsha@arm.com>
8949
8950 PR target/48250
8951 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
8952 to use sign-magnitude offsets. Reject unsupported unaligned
8953 cases. Add detailed description in comments.
8954 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
8955 condition from TARGET_32BIT to TARGET_ARM.
8956
8957 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
8958
8959 * tree.h (struct typed_tree): New.
8960 (struct tree_common): Include it instead of tree_base.
8961 (TREE_TYPE): Update for new location of type field.
8962 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
8963 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
8964 (union tree_node): Add typed field.
8965 * treestruct.def (TS_TYPED): New.
8966 * lto-streamer.c (check_handled_ts_structures): Handle it.
8967 * tree.c (MARK_TS_TYPED): New macro.
8968 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
8969
8970 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
8971
8972 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
8973 (force_nonfallthru): Do not alter the loop nest if no basic block
8974 was created.
8975
8976 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
8977
8978 * config/i386/sse.md (VI): New mode iterator.
8979 (SSEMODEI): Remove.
8980 (AVX256MODEI): Ditto.
8981 (AVXMODEF4P): Ditto.
8982 (avxvecpsmode): Ditto.
8983 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
8984 (sse2_andnot<mode>3): New expander.
8985 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
8986 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
8987 (<any_logic:code><mode>3): Use VI mode iterator.
8988 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
8989 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
8990 (*andnottf3): Handle AVX three-operand constraints.
8991 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
8992
8993 2011-04-11 Joseph Myers <joseph@codesourcery.com>
8994 Robert Millan <rmh@gnu.org>
8995
8996 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
8997 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
8998 GNU_USER_DYNAMIC_LINKER64): Define.
8999 (REG_NAME): Don't undefine.
9000 (MD_UNWIND_SUPPORT): Undefine.
9001 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
9002 (REG_NAME): Don't undefine.
9003 (MD_UNWIND_SUPPORT): Undefine.
9004 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
9005
9006 2011-04-11 Joseph Myers <joseph@codesourcery.com>
9007
9008 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
9009 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
9010
9011 2011-04-11 Xinliang David Li <davidxl@google.com>
9012
9013 * value-profile.c (check_ic_target): New function.
9014 (gimple_ic_transform): Sanity check indirect call target.
9015 * gimple-low.c (gimple_check_call_args): Interface change.
9016 (gimple_check_call_matching_types): New function.
9017 * tree-inline.c (tree_can_inline_p): Call new function.
9018
9019 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
9020
9021 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
9022 tree-pretty-print.h & realmpfr.h.
9023
9024 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
9025
9026 PR middle-end/48464
9027 * ira.c (setup_pressure_classes): Fix typo in loop condition.
9028 (setup_allocno_and_important_classes): Ditto.
9029
9030 2011-04-11 Joseph Myers <joseph@codesourcery.com>
9031
9032 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
9033 GNU_USER_DYNAMIC_LINKER.
9034 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
9035 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9036 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
9037 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
9038 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
9039 GNU_USER_TARGET_OS_CPP_BUILTINS.
9040 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
9041 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9042 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
9043 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9044 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
9045 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
9046 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
9047 GNU_USER_TARGET_OS_CPP_BUILTINS.
9048 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9049 GNU_USER_DYNAMIC_LINKER.
9050 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
9051 GNU_USER_TARGET_OS_CPP_BUILTINS.
9052 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
9053 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9054 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
9055 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9056 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
9057 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
9058 GNU_USER_DYNAMIC_LINKER64): Remove.
9059 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
9060 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9061 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9062 GNU_USER_DYNAMIC_LINKER.
9063 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
9064 GNU_USER_TARGET_OS_CPP_BUILTINS.
9065 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
9066 GNU_USER_TARGET_OS_CPP_BUILTINS.
9067 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
9068 to GNU_USER_TARGET_OS_CPP_BUILTINS.
9069 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
9070 GNU_USER_TARGET_OS_CPP_BUILTINS.
9071 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
9072 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
9073 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
9074 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
9075 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9076 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9077 GNU_USER_DYNAMIC_LINKER.
9078 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
9079 GNU_USER_TARGET_OS_CPP_BUILTINS.
9080 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
9081 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9082 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9083 GNU_USER_DYNAMIC_LINKER.
9084 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
9085 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9086 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
9087 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9088 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9089 GNU_USER_DYNAMIC_LINKER.
9090 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
9091 GNU_USER_DYNAMIC_LINKERN32.
9092 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
9093 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
9094 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
9095 GNU_USER_DYNAMIC_LINKER32.
9096 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
9097 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9098 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9099 GNU_USER_DYNAMIC_LINKER.
9100 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
9101 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9102 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
9103 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9104 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
9105 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
9106 GNU_USER_DYNAMIC_LINKER32.
9107 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
9108 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
9109 GNU_USER_DYNAMIC_LINKER.
9110 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
9111 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9112 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
9113 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
9114 GNU_USER_DYNAMIC_LINKER64.
9115 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
9116 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9117 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9118 GNU_USER_DYNAMIC_LINKER.
9119 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
9120 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9121 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9122 GNU_USER_DYNAMIC_LINKER.
9123 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
9124 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9125 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
9126 GNU_USER_DYNAMIC_LINKER32.
9127 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
9128 GNU_USER_DYNAMIC_LINKER64.
9129 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
9130 GNU_USER_DYNAMIC_LINKER64.
9131 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
9132 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9133 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
9134 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9135 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
9136
9137 2011-04-11 Joseph Myers <joseph@codesourcery.com>
9138
9139 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
9140 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
9141 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
9142 GNU_USER_DYNAMIC_LINKER.
9143 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
9144 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
9145 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
9146 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
9147 GNU_USER_DYNAMIC_LINKER64.
9148 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
9149 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
9150 GNU_USER_LINK_EMULATION.
9151 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
9152 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
9153 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
9154 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
9155 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
9156 CPP_SPEC, CC1_SPEC): Remove.
9157 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
9158 (GNU_USER_DYNAMIC_LINKER): Define.
9159 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
9160 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
9161 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
9162 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
9163 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
9164 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
9165 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
9166 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
9167 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
9168 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
9169 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
9170 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
9171 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
9172 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
9173 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
9174 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
9175 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
9176 GNU_USER_DYNAMIC_LINKER.
9177 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
9178 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
9179 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
9180 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
9181 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
9182 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
9183 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
9184 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
9185 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
9186 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
9187
9188 2011-04-11 Kai Tietz <ktietz@redhat.com>
9189
9190 PR target/9601
9191 PR target/11772
9192 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
9193 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
9194 comment.
9195 (ix86_is_msabi_thiscall): Removed.
9196 (ix86_is_type_thiscall): Likewise.
9197 (ix86_get_callcvt): New function.
9198 (ix86_comp_type_attributes): Simplify check.
9199 (ix86_function_regparm): Use ix86_get_callcvt for calling
9200 convention attribute checks.
9201 (ix86_return_pops_args): Likewise.
9202 (ix86_static_chain): Likewise.
9203 (x86_this_parameter): Likewise.
9204 (x86_output_mi_thunk): Likewise.
9205 (ix86_function_type_abi): Optimize check for types without attributes.
9206 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
9207 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
9208 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
9209 by flag-values.
9210 (IX86_BASE_CALLCVT): Helper macro.
9211 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
9212 Use ix86_get_callcvt for calling convention attribute checks and avoid
9213 symbol-decoration for stdcall in TARGET_RTD case.
9214 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
9215 Likewise.
9216 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
9217 for declaration.
9218
9219 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
9220
9221 * config/i386/sse.md (VI_128): New mode iterator.
9222 (VI12_128): Rename from SSEMODE12.
9223 (VI14_128): Rename from SSEMODE14.
9224 (VI124_128): New mode iterator.
9225 (VI24_128): Rename from SSEMODE248.
9226 (VI248_128): Rename from SSEMODE248.
9227 (SSEMODE124C8): Remove.
9228 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
9229 (*sse2_<plusminus_insn><mode>3): Merge with
9230 *avx_<plusminus_insn><mode>3.
9231 (*mulv8hi3): Merge with *avx_mulv8hi3.
9232 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
9233 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
9234 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
9235 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
9236 (ashr<mode>3): Merge with *avx_ashr<mode>3.
9237 (lshr<mode>3): Merge with *avx_lshr<mode>3.
9238 (ashl<mode>3): Merge with *avx_ashl<mode>3.
9239 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
9240 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
9241 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
9242 (*<smaxmin:code>v8hi3): Ditto.
9243 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
9244 (*<smaxmin:code>v16qi3): Ditto.
9245 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
9246 (*sse2_eq<mode>3): Ditto.
9247 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
9248 (*sse2_gt<mode>3): Ditto.
9249 (vcondv2di): Split out of vcond<mode>.
9250 (vconduv2di): Split out of vcondu<mode>.
9251
9252 2011-04-11 Richard Guenther <rguenther@suse.de>
9253
9254 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
9255 before calling tree_low_cst.
9256
9257 2011-04-11 Richard Guenther <rguenther@suse.de>
9258
9259 * stor-layout.c (layout_type): Compute all array index size operations
9260 in the original type.
9261 (initialize_sizetypes): Add comment.
9262 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
9263
9264 2011-04-11 Joseph Myers <joseph@codesourcery.com>
9265
9266 * common.opt (Tbss=, Tdata=, Ttext=): New options.
9267
9268 2011-04-11 Martin Jambor <mjambor@suse.cz>
9269
9270 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
9271 of cgraph_node, handle NULL return value.
9272 (cgraph_global_info): Likewise.
9273 (cgraph_rtl_info): Likewise.
9274 * tree-inline.c (estimate_num_insns): Likewise.
9275 * gimplify.c (unshare_body): Likewise.
9276 (unvisit_body): Likewise.
9277 (gimplify_body): Likewise.
9278 * predict.c (optimize_function_for_size_p): Likewise.
9279 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
9280 (call_may_clobber_ref_p_1): Likewise.
9281 * varasm.c (function_section_1): Likewise.
9282 (assemble_start_function): Likewise.
9283
9284 2011-04-11 Martin Jambor <mjambor@suse.cz>
9285
9286 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
9287 of cgraph_node.
9288 * final.c (rest_of_clean_state): Likewise.
9289 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
9290 * passes.c (pass_init_dump_file): Likewise.
9291 (execute_all_ipa_transforms): Likewise.
9292 (function_called_by_processed_nodes_p): Likewise.
9293 * predict.c (maybe_hot_frequency_p): Likewise.
9294 (probably_never_executed_bb_p): Likewise.
9295 (compute_function_frequency): Likewise.
9296 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
9297 (unnest_nesting_tree_1): Likewise.
9298 (lower_nested_functions): Likewise.
9299 * tree-optimize.c (execute_fixup_cfg): Likewise.
9300 (tree_rest_of_compilation): Likewise.
9301 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
9302 * tree-sra.c (ipa_early_sra): Likewise.
9303 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
9304 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
9305 * ipa.c (record_cdtor_fn): Likewise.
9306 * ipa-inline.c (cgraph_early_inlining): Likewise.
9307 (compute_inline_parameters_for_current): Likewise.
9308 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
9309 * ipa-pure-const.c (local_pure_const): Likewise.
9310 * ipa-split.c (split_function): Likewise.
9311 (execute_split_functions): Likewise.
9312 * cgraphbuild.c (build_cgraph_edges): Likewise.
9313 (rebuild_cgraph_edges): Likewise.
9314 (cgraph_rebuild_references): Likewise.
9315 (remove_cgraph_callee_edges): Likewise.
9316 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
9317 (verify_cgraph_node): Likewise.
9318 (cgraph_analyze_functions): Likewise.
9319 (cgraph_preserve_function_body_p): Likewise.
9320 (save_inline_function_body): Likewise.
9321 (save_inline_function_body): Likewise.
9322 * tree-inline.c (copy_bb): Likewise.
9323 (optimize_inline_calls): Likewise.
9324
9325 2011-04-11 Martin Jambor <mjambor@suse.cz>
9326
9327 PR tree-optimization/48195
9328 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
9329 ipa_check_create_edge_args.
9330 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
9331 ipa_check_create_edge_args.
9332 * ipa-inline.c (inline_generate_summary): Do not call
9333 ipa_check_create_node_params and ipa_check_create_edge_args.
9334 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
9335 ipa_check_create_edge_args.
9336
9337 2011-04-09 Anatoly Sokolov <aesok@post.ru>
9338
9339 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
9340 instead of loop.
9341 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
9342 * function.c (record_hard_reg_sets): Likewise.
9343 * ira.c (compute_regs_asm_clobbered): Likewise.
9344 * sched-deps.c (sched_analyze_1): Likewise.
9345 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
9346
9347 2011-04-09 Xinliang David Li <davidxl@google.com>
9348
9349 PR tree-optimization/PR48484
9350 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
9351 has_valid_pred lazily
9352
9353 2011-04-09 Duncan Sands <baldrick@free.fr>
9354
9355 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
9356
9357 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
9358
9359 * combine.c (combine_validate_cost): Adjust comments. Set registered
9360 cost of I0 to zero at the end, if any.
9361
9362 2011-04-08 Xinliang David Li <davidxl@google.com>
9363
9364 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
9365 to insane profile data.
9366
9367 2011-04-08 Xinliang David Li <davidxl@google.com>
9368
9369 * ipa-cp.c (ipcp_update_profiling): Correct
9370 negative scale factor due to insane profile data.
9371
9372 2011-04-08 Xinliang David Li <davidxl@google.com>
9373
9374 * final.c (dump_basic_block_info): New function.
9375 (final): Dump basic block.
9376 (final_scan_insn): Remove old dump.
9377
9378 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
9379
9380 PR target/47829
9381 * config.gcc (i386-*-freebsd): Disable unwind table generation for
9382 crtbegin/crtend.
9383
9384 2011-04-08 Michael Matz <matz@suse.de>
9385
9386 PR middle-end/48389
9387 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
9388 functions.
9389 (rebuild_jump_labels): Call rebuild_jump_labels_1.
9390 * rtl.h (rebuild_jump_labels_chain): Declare.
9391 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
9392 insns inserted on edges.
9393
9394 2011-04-08 Joseph Myers <joseph@codesourcery.com>
9395
9396 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
9397 * config/arm/arm-arches.def: New.
9398 * config/arm/arm-opts.h: New.
9399 * config/arm/genopt.sh: New.
9400 * config/arm/arm-tables.opt: New (generated).
9401 * config/arm/arm.c (arm_handle_option, arm_target_help,
9402 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
9403 (all_architectures): Get most table contents from arm-arches.def.
9404 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
9405 arm_selected_tune here.
9406 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
9407 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
9408 (march=, mcpu=, mtune=): Use Enum and Var.
9409 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
9410 (arm.o): Update dependencies.
9411
9412 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
9413
9414 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
9415 of header_file.
9416 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
9417 (write_typed_alloc_defns): Likewise.
9418 (main): Calls write_typed_alloc_defns with output_header.
9419
9420 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
9421
9422 PR inline-asm/48435
9423 * ira-color.c (setup_profitable_hard_regs): Add comments.
9424 Don't take prohibited hard regs into account.
9425 (setup_conflict_profitable_regs): Rename to
9426 get_conflict_profitable_regs.
9427 (check_hard_reg_p): Check prohibited hard regs.
9428
9429 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
9430
9431 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
9432 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
9433 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
9434
9435 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9436
9437 PR target/48366
9438 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
9439 move from floating point to shift amount register.
9440 (emit_move_sequence): Remove secondary reload support for floating
9441 point to shift amount amount register copies.
9442 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
9443 amount register copies.
9444 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
9445 register, return false if mode isn't a scalar integer mode.
9446 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
9447
9448 2011-04-08 Richard Guenther <rguenther@suse.de>
9449
9450 * gimple.c (gimple_call_flags): Remove kludge.
9451
9452 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
9453
9454 * sel-sched.c (sel_region_init): Move call to
9455 sel_setup_region_sched_flags after setup_current_loop_nest.
9456
9457 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
9458
9459 PR rtl-optimization/48272
9460 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
9461 init_insn_reg_pressure_info. Adjust a caller.
9462 * sched-int.h (init_insn_reg_pressure_info): Declare.
9463 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
9464 when sched-pressure is enabled.
9465
9466 2011-04-08 Richard Guenther <rguenther@suse.de>
9467
9468 * gimple.c (gimple_set_modified): Do not queue calls to
9469 MODIFIED_NORETURN_CALLS here ...
9470 * tree-ssa-operands.c (update_stmt_operands): ... but here.
9471
9472 2011-04-08 Richard Guenther <rguenther@suse.de>
9473
9474 PR lto/48467
9475 * toplev.c (lang_dependent_init): Do not open asm_out_file
9476 in WPA mode, nor perform debug machinery initialization.
9477 (finalize): Do not unlink asm_out_file in WPA mode.
9478
9479 2011-04-08 Richard Guenther <rguenther@suse.de>
9480
9481 * gimple.h (gimple_call_fntype): New function.
9482 (gimple_call_return_type): Use it.
9483 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
9484 * gimple-low.c (gimple_check_call_args): Likewise.
9485 * gimple.c (gimple_call_flags): Likewise.
9486 (gimple_call_arg_flags): Likewise.
9487 (gimple_call_return_flags): Likewise.
9488 * tree-cfg.c (verify_gimple_call): Likewise.
9489 (do_warn_unused_result): Likewise.
9490 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
9491 * value-prof.c (gimple_ic_transform): Fix fndecl check.
9492
9493 2011-04-08 Dmitry Melnik <dm@ispras.ru>
9494
9495 PR rtl-optimization/48235
9496 * sel-sched.c (code_motion_process_successors): Recompute the last
9497 insn in basic block if control flow changed.
9498 (code_motion_path_driver): Ditto. Recompute the first insn as well.
9499 Update condition for ilist_remove.
9500
9501 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
9502
9503 PR rtl-optimization/48302
9504 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
9505 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
9506 it to record added preheader blocks.
9507 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
9508 on to sel_add_loop_preheaders.
9509 (sel_region_init): Move call to setup_current_loop_nest after
9510 sel_init_bbs.
9511
9512 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
9513
9514 PR target/48273
9515 * cfgloop.h (loop_has_exit_edges): New helper.
9516 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
9517 non-clonable.
9518 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
9519 that have no exit edges.
9520
9521 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
9522
9523 PR rtl-optimization/48442
9524 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
9525 all callers. Adjust assert.
9526
9527 2011-04-08 Jakub Jelinek <jakub@redhat.com>
9528
9529 PR tree-optimization/48377
9530 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
9531 is_packed to true even for types with smaller TYPE_ALIGN than
9532 TYPE_SIZE.
9533
9534 2011-04-08 Richard Guenther <rguenther@suse.de>
9535
9536 PR bootstrap/48513
9537 * doc/tm.texi: Re-generate.
9538
9539 2011-04-08 Wei Guozhi <carrot@google.com>
9540
9541 PR target/47855
9542 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
9543 * config/arm/arm.c (arm_attr_length_push_multi): New function.
9544 * config/arm/arm.md (*push_multi): Change the length computation to
9545 call a C function.
9546
9547 2011-04-08 Anatoly Sokolov <aesok@post.ru>
9548
9549 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
9550 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
9551 * doc/tm.texi: Regenerate.
9552 * system.h (ASM_OUTPUT_BSS): Poison.
9553 * varasm.c (asm_output_bss): Remove function.
9554 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
9555
9556 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
9557 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
9558 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
9559 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
9560 Likewise.
9561 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
9562 Likewise.
9563 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
9564 Likewise.
9565 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
9566
9567 2011-04-07 Joseph Myers <joseph@codesourcery.com>
9568
9569 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
9570 EnumValue lines.
9571
9572 2011-04-07 Joseph Myers <joseph@codesourcery.com>
9573
9574 * config/m68k/m68k.c (m68k_handle_option): Don't handle
9575 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
9576 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
9577 OPT_mcpu32.
9578 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
9579 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
9580 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
9581 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
9582 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
9583 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
9584 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
9585 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
9586 options. Don't map other m68k options manually. Don't handle
9587 old-style options as canonical.
9588 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
9589 * doc/install.texi (m68k-*-*): Document binutils version requirement.
9590
9591 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
9592
9593 * basic-block.h (force_nonfallthru): Move to...
9594 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
9595 (force_nonfallthru): ...here.
9596 * cfghooks.c (force_nonfallthru): New function.
9597 * cfgrtl.c (force_nonfallthru): Rename into...
9598 (rtl_force_nonfallthru): ...this.
9599 (commit_one_edge_insertion): Do not set AUX field.
9600 (commit_edge_insertions): Do not discover new basic blocks.
9601 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
9602 (cfg_layout_rtl_cfg_hooks): Likewise.
9603 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
9604 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
9605 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
9606
9607 2011-04-07 Anatoly Sokolov <aesok@post.ru>
9608
9609 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
9610 Remove macros.
9611
9612 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
9613
9614 * config/i386/sse.md: Update copyright year.
9615 (avxcvtvecmode): Remove.
9616 (sse_movhlps): Merge with *avx_movhlps.
9617 (sse_movlhps): Merge with *avx_movlhps.
9618 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
9619 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
9620 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
9621 (sse_loadhps): Merge with *avx_loadhps.
9622 (sse_storelps): Merge with *avx_storelps.
9623 (sse_loadlps): Merge with *avx_loadlps.
9624 (sse_movss): Merge with *avx_movss.
9625 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
9626 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
9627 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
9628 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
9629 (vec_set<mode>_0): Ditto.
9630 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
9631 (sse4_1_insertps): Merge with *avx_insertps.
9632 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
9633 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
9634 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
9635 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
9636 (sse2_storehpd): Merge with *avx_storehpd.
9637 (sse2_loadhpd): Merge with *avx_loadhpd.
9638 (sse2_loadlpd): Merge with *avx_loadlpd.
9639 (sse2_movsd): Merge with *avx_movsd.
9640 (*vec_concatv2df): Merge with *vec_concatv2df.
9641
9642 2011-04-07 Jakub Jelinek <jakub@redhat.com>
9643
9644 PR debug/48343
9645 * combine.c (combine_instructions): Add last_combined_insn,
9646 update it if insn is after it, pass it to all try_combine calls.
9647 (try_combine): Add last_combined_insn parameter, pass it instead of
9648 i3 to propagate_for_debug.
9649
9650 2011-04-07 Nick Clifton <nickc@redhat.com>
9651
9652 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
9653 to handle MDR <-> data register transfers.
9654 (movhi_internal): Likewise.
9655
9656 2011-04-07 Alan Modra <amodra@gmail.com>
9657
9658 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
9659 previous stack info.
9660
9661 2011-04-07 Tom de Vries <tom@codesourcery.com>
9662
9663 PR target/43920
9664 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
9665 flow_find_cross_jump. Swap variables to implement backward replacement.
9666 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
9667
9668 2011-04-07 Tom de Vries <tom@codesourcery.com>
9669
9670 PR target/43920
9671 * cfgcleanup.c (walk_to_nondebug_insn): New function.
9672 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
9673 and bb2.
9674 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
9675 src1 or src2. Redirect edges to the last basic block. Update
9676 frequency and count on multiple basic blocks in case of fallthru.
9677
9678 2011-04-07 Tom de Vries <tom@codesourcery.com>
9679
9680 PR target/43920
9681 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
9682 function.
9683 (old_insns_match_p): Change return type. Replace return false/true
9684 with return dir_none/dir_both. Use can_replace_by.
9685 (flow_find_cross_jump): Add dir_p parameter. Init replacement
9686 direction from dir_p. Register replacement direction in dir, last_dir
9687 and afterlast_dir. Handle new return type of old_insns_match_p using
9688 merge_dir. Return replacement direction in dir_p.
9689 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
9690 return type of old_insns_match_p.
9691 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
9692 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
9693 flow_find_cross_jump.
9694 * basic-block.h (enum replace_direction): New type.
9695 (flow_find_cross_jump): Add parameter to declaration.
9696
9697 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
9698
9699 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
9700 (AVXMODEDCVTPS2DQ): Ditto.
9701 (VEC_FLOAT_MODE): Ditto.
9702 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
9703 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
9704 (<any_logic:code><mode>3): Use VF mode iterator.
9705 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
9706 Use VF mode iterator.
9707 (copysign<mode>3): Use VF mode iterator.
9708 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
9709 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
9710 (*<any_logic:code><MODEF:mode>3): Merge with
9711 *avx_<any_logic:code><MODEF:mode>3.
9712 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
9713 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
9714 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
9715 (avx_cvtdq2ps<avxmodesuffix>): Remove.
9716 (sse2_cvtdq2ps): Use %v modifier.
9717 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
9718 (avx_cvtps2dq<avxmodesuffix>): Remove.
9719 (sse2_cvtps2dq): Use %v modifier.
9720 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
9721 (avx_cvttps2dq<avxmodesuffix>): Remove.
9722 (sse2_cvttps2dq): Use %v modifier.
9723 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
9724 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
9725 (sse2_cvtsd2siq): Fix insn template.
9726 (sse2_cvtsd2siq_2): Ditto.
9727 (sse2_cvttsd2siq): Ditto.
9728 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
9729 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
9730
9731 2011-04-06 Joseph Myers <joseph@codesourcery.com>
9732
9733 * gcov-io.c: Use GCC Runtime Library Exception.
9734
9735 2011-04-06 Jakub Jelinek <jakub@redhat.com>
9736
9737 PR debug/48466
9738 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
9739 as base_reg whatever register reg has been eliminated to, instead
9740 of hardcoding STACK_POINTER_REGNUM.
9741
9742 2011-04-06 Joseph Myers <joseph@codesourcery.com>
9743
9744 * doc/tm.texi.in: Document C target hooks as separate from general
9745 target hooks.
9746 * doc/tm.texi: Regenerate.
9747 * genhooks.c (struct hook_desc): Add docname field.
9748 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
9749 docname field.
9750 (hook_array): Include c-target.def.
9751 (emit_documentation): Use docname field in output.
9752 (emit_init_macros): Take docname argument. Only emit definitions
9753 for hooks matching docname.
9754 (main): Expect additional arguments in all cases. Pass argument
9755 to emit_init_macros.
9756 * target.def: Move initial macro definitions and comments to
9757 target-hooks-macros.h.
9758 (gcc_targetcm): Move to c-family/c-target.def.
9759 * target.h (targetcm): Move declaration to c-family/c-target.h.
9760 * targhooks.c (default_handle_c_option): Move to
9761 c-family/c-opts.c.
9762 * targhooks.h (default_handle_c_option): Move declaration to
9763 c-family/c-common.h.
9764 * target-hooks-macros.h: New file.
9765 * config.gcc (target_has_targetcm): Define and use to add to
9766 c_target_objs and cxx_target_objs.
9767 * config/default-c.c: New file.
9768 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
9769 of target.h and target-def.h.
9770 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
9771 (darwin_objc_construct_string, darwin_cfstring_ref_p,
9772 darwin_check_cfstring_format_arg): Make static.
9773 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
9774 TARGET_STRING_OBJECT_REF_TYPE_P,
9775 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
9776 * config/darwin-protos.h (darwin_objc_construct_string,
9777 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
9778 declare.
9779 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
9780 TARGET_STRING_OBJECT_REF_TYPE_P,
9781 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
9782 * config/t-darwin (darwin-c.o): Update dependencies.
9783 * system.h (TARGET_HAS_TARGETCM): Poison.
9784 * Makefile.in (TARGET_H): Update.
9785 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
9786 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
9787 (default-c.o): New target.
9788 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
9789 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
9790 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
9791 c-target.def.
9792 (build/genhooks.o): Update dependencies.
9793
9794 2011-04-06 Richard Guenther <rguenther@suse.de>
9795
9796 * ipa-inline.c (enum inlining_mode): Remove.
9797 (cgraph_flatten): Use some other token.
9798 (cgraph_edge_early_inlinable_p): New function, split out from ...
9799 (cgraph_perform_always_inlining): New function, split out from ...
9800 (cgraph_decide_inlining_incrementally): ... here.
9801 (cgraph_mark_inline_edge): Adjust.
9802 (cgraph_early_inlining): Re-structure.
9803 (pass_early_inline): Require SSA form.
9804
9805 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
9806 Julian Brown <julian@codesourcery.com>
9807 Mark Shinwell <shinwell@codesourcery.com>
9808
9809 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
9810 LO_REGS only for Thumb-1.
9811 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
9812 be used in short instructions when optimising for size on Thumb-2.
9813
9814 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
9815
9816 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
9817 associated with user returns to be preserved.
9818
9819 2011-04-06 Tristan Gingold <gingold@adacore.com>
9820
9821 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
9822 symbol_queue_size, DBXOUT_DECR_NESTING,
9823 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
9824 if XCOFF_DEBUGGING_INFO.
9825
9826 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
9827
9828 * config/i386/i386.md (attribute isa): New.
9829 (attribute enabled): New.
9830 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
9831 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
9832 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
9833 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
9834 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
9835 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
9836 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
9837 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
9838
9839 * config/i386/sse.md (VF): New mode iterator.
9840 (VF1): Ditto.
9841 (VF2): Ditto.
9842 (VF_128): Ditto.
9843 (SSEMODEF4): Remove.
9844 (attribute sse): Handle V8SF and V4DF modes.
9845 (<absneg:code><mode>2): Use VF mode iterator.
9846 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
9847 mode iterator.
9848 (<plusminus_insn><mode>3): Use VF mode iterator.
9849 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
9850 Use VF mode iterator.
9851 (<sse>_vm<plusminus_insn><mode>3): Merge with
9852 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
9853 (mul<mode>3): Use VF mode iterator.
9854 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
9855 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
9856 mode iterator.
9857 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
9858 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
9859 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
9860 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
9861 mode iterator.
9862 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
9863 Use VF1 mode iterator.
9864 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
9865 (sqrt<VF2:mode>2): New expander.
9866 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
9867 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
9868 and sqrtv2df2. Use VF mode iterator.
9869 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
9870 mode iterator.
9871 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
9872 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
9873 Use VF1 mode iterator.
9874 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
9875 (<smaxmin:code><mode>3): Use VF mode iterator.
9876 (*<smaxmin:code><mode>3_finite): Merge with
9877 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
9878 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
9879 (<sse>_vm<smaxmin:code><mode>2): Merge with
9880 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
9881 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
9882 mode iterator.
9883 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
9884 mode iterator.
9885 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
9886 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
9887 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
9888 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
9889 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
9890 VF mode iterator.
9891 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
9892 Use VF_128 mode iterator.
9893 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
9894 mode iterator.
9895 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
9896 VF_128 mode iterator.
9897 (vcond<mode>): Use VF mode iterator.
9898 * config/i386/predicates.md (sse_comparison_operator): Merge with
9899 avx_comparison_float_operator. Do not declare as special_predicate.
9900 * config/i386/i386.c (struct builtin_description): Update for renamed
9901 compare patterns.
9902 (ix86_expand_args_builtin): Ditto.
9903 (ix86_expand_sse_compare_mask): Ditto.
9904
9905 2011-04-06 Richard Guenther <rguenther@suse.de>
9906
9907 * tree-inline.c (estimate_num_insns): For calls simply account
9908 for all passed arguments and a used return value.
9909
9910 2011-04-06 Richard Guenther <rguenther@suse.de>
9911
9912 PR tree-optimization/47663
9913 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
9914 call_stmt_time fields.
9915 (cgraph_edge_inlinable_p): Declare.
9916 (cgraph_edge_recursive_p): New inline function.
9917 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
9918 (cgraph_clone_edge): Copy it.
9919 * ipa-inline.c (cgraph_estimate_edge_time): New function.
9920 Account for call stmt time.
9921 (cgraph_estimate_time_after_inlining): Take edge argument.
9922 (cgraph_estimate_edge_growth): Account call stmt size.
9923 (cgraph_estimate_size_after_inlining): Take edge argument.
9924 (cgraph_mark_inline_edge): Adjust.
9925 (cgraph_check_inline_limits): Likewise.
9926 (cgraph_recursive_inlining_p): Remove.
9927 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
9928 (cgraph_decide_recursive_inlining): Take edge argument and
9929 adjust.
9930 (cgraph_decide_inlining_of_small_functions): Do not avoid
9931 diags for recursive inlining here.
9932 (cgraph_flatten): Adjust.
9933 (cgraph_decide_inlining_incrementally): Likewise.
9934 (estimate_function_body_sizes): Remove call cost handling.
9935 (compute_inline_parameters): Initialize caller edge call costs.
9936 (cgraph_estimate_edge_growth): New function.
9937 (cgraph_estimate_growth): Use it.
9938 (cgraph_edge_badness): Likewise.
9939 (cgraph_check_inline_limits): Take an edge argument.
9940 (cgraph_decide_inlining_of_small_functions): Adjust.
9941 (cgraph_decide_inlining): Likewise.
9942 * tree-inline.c (estimate_num_insns): Only account for call
9943 return value if it is used.
9944 (expand_call_inline): Avoid diagnostics on recursive inline
9945 functions here.
9946 * lto-cgraph.c (lto_output_edge): Output edge call costs.
9947 (input_edge): Input edge call costs.
9948
9949 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9950
9951 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
9952
9953 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
9954
9955 * doc/invoke.texi (Spec Files): Fix typo.
9956
9957 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
9958
9959 * profile.c (branch_prob): Move declaration of local variable. Remove
9960 obsolete ??? comment. Expand the location explicitly instead of using
9961 the LOCATION_FILE and LOCATION_LINE macros.
9962
9963 2011-04-06 Wei Guozhi <carrot@google.com>
9964
9965 PR target/47855
9966 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
9967 (arm_cond_branch): Likewise.
9968 (arm_cond_branch_reversed): Likewise.
9969 (arm_jump): Likewise.
9970 (push_multi): Likewise.
9971 * config/arm/constraints.md (Py): New constraint.
9972
9973 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9974
9975 PR bootstrap/48471
9976 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
9977 Move these...
9978 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
9979 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
9980 #ifdef DBX_DEBUGGING_INFO.
9981
9982 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
9983
9984 PR bootstrap/48403
9985 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
9986 if old and new states differ.
9987
9988 2011-04-05 Joseph Myers <joseph@codesourcery.com>
9989
9990 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
9991 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
9992 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
9993 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
9994 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
9995 mcfv4e): Use Alias.
9996 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
9997 ColdFire options to -mcpu= options.
9998
9999 2011-04-05 Jeff Law <law@redhat.com>
10000
10001 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
10002 check if BB is a successor of LOOP->header and return
10003 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
10004
10005 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
10006
10007 * cprop.c (struct reg_use): Remove.
10008 (reg_use_table): Make an array of RTX.
10009 (find_used_regs, constprop_register, local_cprop_pass,
10010 bypass_block): Simplify users of reg_use_table.
10011 (cprop_insn): Likewise. Iterate if copy propagation succeeded
10012 on one of the uses found by find_used_regs.
10013
10014 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10015
10016 PR bootstrap/48469
10017 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
10018 declaration.
10019
10020 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10021
10022 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
10023 as an rtx.
10024 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
10025
10026 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
10027
10028 PR middle-end/48441
10029 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
10030
10031 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10032
10033 * combine.c: Include obstack.h.
10034 (struct insn_link): Define.
10035 (uid_log_links): Adjust type.
10036 (FOR_EACH_LOG_LINK): New macro.
10037 (insn_link_obstack): Declare.
10038 (alloc_insn_link): Define.
10039 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
10040 type of link variables.
10041 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
10042 (try_combine, record_promoted_values, distribute_notes): Likewise.
10043 (distribute_links): Likewise. Tweak prototype.
10044 (clear_log_links): Delete.
10045 (adjust_for_new_dest): Call alloc_insn_link.
10046 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
10047
10048 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10049
10050 * gcse.c (modify_mem_list): Convert to an array of VECs.
10051 (canon_modify_mem_list, compute_transp): Tweak formatting.
10052 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
10053 (load_killed_in_block_p): Likewise.
10054 (record_last_mem_set_info): Likewise.
10055 (clear_modify_mem_tables): Likewise.
10056
10057 2011-04-05 Tom de Vries <tom@codesourcery.com>
10058
10059 PR middle-end/48461
10060 * function.c (emit_use_return_register_into_block): Only define if
10061 HAVE_return.
10062
10063 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
10064
10065 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
10066
10067 2011-04-05 Joseph Myers <joseph@codesourcery.com>
10068
10069 * config/rx/rx-opts.h: New.
10070 * config/rx/rx.c (rx_cpu_type): Remove.
10071 (rx_handle_option): Don't assert that global structures are in
10072 use. Access variables via opts pointer. Defer most handling of
10073 OPT_mint_register_. Use error_at.
10074 (rx_option_override): Handle deferred OPT_mint_register_ here.
10075 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
10076 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
10077 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
10078 (rx_cpu_types): New Enum and EnumValue entries.
10079 (mint-register=): Use Defer and use Var accordingly.
10080
10081 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10082
10083 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
10084 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
10085 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
10086 Move these...
10087 (debug_free_queue, debug_nesting, symbol_queue_index):
10088 ...and these...
10089 * dbxout.c: ...to here. Make static.
10090
10091 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10092
10093 * gcse.c (modify_pair): Define. Define a VEC of it.
10094 (canon_modify_mem_list): Convert to an array of VECs.
10095 (free_insn_expr_list_list): Delete.
10096 (clear_modify_mem_tables): Call VEC_free instead.
10097 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
10098 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
10099 (canon_list_insert, compute_transp): Likewise.
10100
10101 2011-04-05 Tom de Vries <tom@codesourcery.com>
10102
10103 PR target/43920
10104 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
10105 for size.
10106
10107 2011-04-05 Tom de Vries <tom@codesourcery.com>
10108
10109 PR target/43920
10110 * function.c (emit_use_return_register_into_block): New function.
10111 (thread_prologue_and_epilogue_insns): Use
10112 emit_use_return_register_into_block.
10113
10114 2011-04-05 Tom de Vries <tom@codesourcery.com>
10115
10116 PR target/43920
10117 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
10118 insn.
10119
10120 2011-04-05 Tom de Vries <tom@codesourcery.com>
10121
10122 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
10123
10124 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
10125
10126 * config/arm/arm.md (define_constants for unspec): Replace with
10127 define_c_enum.
10128 (define_constants for unspecv): Replace with define_c_enum.
10129 * config/arm/neon.md (define_constants for unspec): Replace with
10130 define_c_enum.
10131
10132 2011-04-04 Richard Henderson <rth@redhat.com>
10133
10134 PR bootstrap/48400
10135 * dwarf2out.c (output_line_info): Always emit line info from
10136 at least one section.
10137 (dwarf2out_init): Create text_section_line_info here ...
10138 (set_cur_line_info_table): ... not here.
10139
10140 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
10141
10142 PR target/48380
10143 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
10144 not called.
10145
10146 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
10147
10148 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
10149
10150 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
10151 (expr_equiv_p): Remove.
10152 (insert_set_in_table): Look at <dest, src> pair instead of expr.
10153 (hash_scan_set): Update call to insert_set_in_table.
10154 (dump_hash_table): Dump <dest, src> pair.
10155 (lookup_set): Simplify. Lookup <dest, src> pair.
10156 (compute_transp): Remove, fold heavily simplified code into...
10157 (compute_local_properties): ...here. Expect COMP and TRANSP
10158 unconditionally.
10159 (find_avail_set): Take set directly from struct expr.
10160 (find_bypass-set): Likewise.
10161 (bypass_block): Likewise.
10162 (cprop_insn): Likewise. Remove redundant INSN_P test.
10163
10164 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
10165 checks on form of COND from find_implicit_sets to here.
10166 (find_implicit_sets): Cleanup control flow. Split critical edges
10167 if it exposes implicit sets. Allocate/resize implicit_sets as
10168 necessary.
10169 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
10170 changed something. Run df_analyze after find_implicit_sets if any
10171 edges were split. Do not allocate implicit_sets here.
10172
10173 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
10174 (gcse_obstack): Renamed to cprop_obstack.
10175 (GNEW, GNEWVEC, GNEWVAR): Remove.
10176 (gmalloc): Remove.
10177 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
10178 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
10179 (gcse_alloc): Likewise, and rename to cprop_alloc.
10180 (alloc_gcse_men, free_gcse_mem): Remove.
10181 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
10182 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
10183 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
10184
10185 * cprop.c (oprs_not_set_p): Remove.
10186 (mark_set, mark_clobber): Remove.
10187 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
10188 (reg_not_set_p): New function.
10189 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
10190 (cprop_insn): Likewise.
10191 (cprop_jump): Use FOR_EACH_EDGE.
10192
10193 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
10194
10195 PR bootstrap/48403
10196 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
10197 (rank_for_schedule): Use scheduled_insns vector instead of
10198 last_scheduled_insn.
10199 (ok_for_early_queue_removal): Likewise.
10200 (queue_to_ready): Search forward in nonscheduled_insns_begin if
10201 we have a dbg_cnt.
10202 (choose_ready): Likewise.
10203 (commit_schedule): Use VEC_iterate.
10204 (schedule_block): Initialize nonscheduled_insns_begin. If we have
10205 a dbg_cnt, use it and ensure the first insn is in the ready list.
10206 (haifa_sched_init): Allocate scheduled_insns.
10207 (sched_extend_ready_list): Don't allocate it; reserve space.
10208 (haifa_sched_finish): Free it.
10209
10210 2011-04-04 Joseph Myers <joseph@codesourcery.com>
10211
10212 * optc-gen.awk: Always remove type from Variable entry before
10213 recording in var_seen.
10214
10215 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
10216
10217 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
10218 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
10219 call to tidy_fallthru_edges.
10220
10221 2011-04-04 Joseph Myers <joseph@codesourcery.com>
10222
10223 * doc/options.texi (ToLower): Document.
10224 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
10225 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
10226 * opts.h (cl_option): Add cl_tolower field.
10227 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
10228 arguments with lowercase strings.
10229 * config/rx/rx.opt (mcpu=): Add ToLower.
10230 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
10231 argument.
10232
10233 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
10234
10235 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
10236
10237 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
10238
10239 * config/vax/vax.c: Include reload.h.
10240
10241 2011-04-04 Anatoly Sokolov <aesok@post.ru>
10242
10243 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
10244 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
10245 (sparc_preferred_reload_class): New function.
10246
10247 2011-04-04 Jakub Jelinek <jakub@redhat.com>
10248
10249 PR debug/48401
10250 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
10251 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
10252
10253 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
10254
10255 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
10256 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
10257
10258 2011-04-03 Anatoly Sokolov <aesok@post.ru>
10259
10260 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
10261 (ASM_OUTPUT_ALIGNED_BSS): Define.
10262
10263 2011-04-03 Michael Matz <matz@suse.de>
10264
10265 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
10266 and next_slot members.
10267 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
10268 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
10269 (lto_streamer_cache_append): Declare.
10270 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
10271 unsigned index, remove offset parameter, ensure that we append
10272 or update existing entries.
10273 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
10274 parameter, update next_slot for append.
10275 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
10276 parameter.
10277 (lto_streamer_cache_insert_at): Likewise.
10278 (lto_streamer_cache_append): New function.
10279 (lto_streamer_cache_lookup): Use unsigned index.
10280 (lto_streamer_cache_get): Likewise.
10281 (lto_record_common_node): Don't test tree_node_can_be_shared.
10282 (preload_common_node): Adjust call to lto_streamer_cache_insert.
10283 (lto_streamer_cache_delete): Don't free offsets member.
10284 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
10285 (lto_output_string_with_length): Use lto_output_data_stream.
10286 (lto_output_tree_header): Remove ix parameter, don't write it.
10287 (lto_output_builtin_tree): Likewise.
10288 (lto_write_tree): Adjust callers to above, don't track and write
10289 offset, write unsigned index.
10290 (output_unreferenced_globals): Don't emit all global vars.
10291 (write_global_references): Use unsigned indices.
10292 (lto_output_decl_state_refs): Likewise.
10293 (write_symbol): Likewise.
10294 * lto-streamer-in.c (lto_input_chain): Move earlier.
10295 (input_function): Use unsigned index.
10296 (input_alias_pairs): Don't read and then ignore all global vars.
10297 (lto_materialize_tree): Remove ix_p parameter, don't read index,
10298 don't pass it back, use lto_streamer_cache_append.
10299 (lto_register_var_decl_in_symtab): Use unsigned index.
10300 (lto_register_function_decl_in_symtab): Likewise.
10301 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
10302 index.
10303 (lto_get_builtin_tree): Don't read index, use
10304 lto_streamer_cache_append.
10305 (lto_read_tree): Adjust call to lto_materialize_tree.
10306
10307 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
10308 don't use function calls in arguments to MIN.
10309
10310 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
10311 twice.
10312
10313 * gimple.c (gimple_type_leader_entry): Mark deletable.
10314
10315 2011-04-03 Alan Modra <amodra@gmail.com>
10316
10317 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
10318
10319 2011-04-03 Michael Matz <matz@suse.de>
10320
10321 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
10322 an integer.
10323 * tree.h (tree_decl_non_common.vindex): Adjust comment.
10324
10325 2011-04-03 Michael Matz <matz@suse.de>
10326
10327 * cgraphbuild.c (record_reference): Canonicalize constructor values.
10328 * gimple-fold.c (canonicalize_constructor_val): Accept being called
10329 without function context.
10330 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
10331 current_function_decl and cfun.
10332
10333 2011-04-03 Michael Matz <matz@suse.de>
10334
10335 * tree.c (decl_init_priority_insert): Don't create entry for
10336 default priority.
10337 (decl_fini_priority_insert): Ditto.
10338 (fields_compatible_p, find_compatible_field): Remove.
10339 * tree.h (fields_compatible_p, find_compatible_field): Remove.
10340 * gimple.c (gimple_compare_field_offset): Adjust block comment.
10341
10342 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
10343
10344 * combine.c (try_combine): Remove useless local variable.
10345
10346 2011-04-03 Richard Guenther <rguenther@suse.de>
10347 Ira Rosen <ira.rosen@linaro.org>
10348
10349 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
10350 non-variable offsets and compare the remaining bases of the two
10351 accesses instead of looking for exact same data-ref.
10352
10353 2011-04-02 Kai Tietz <ktietz@redhat.com>
10354
10355 PR target/48416
10356 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
10357
10358 * i386.c (ix86_is_msabi_thiscall): New helper function.
10359 (ix86_is_type_thiscall): New helper function.
10360 (ix86_comp_type_attributes): Handle thiscall for method-functions
10361 special.
10362 (init_cumulative_args): Likewise.
10363 (find_drap_reg): Likewise.
10364 (ix86_static_chain): Likewise.
10365 (x86_this_parameter): Likewise.
10366 (x86_output_mi_thunk): Likewise.
10367
10368 2011-04-01 Olivier Hainque <hainque@adacore.com>
10369 Nicolas Setton <setton@adacore.com>
10370 Eric Botcazou <ebotcazou@adacore.com>
10371
10372 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
10373 (add_gnat_descriptive_type_attribute): New function.
10374 (gen_array_type_die): Call it.
10375 (gen_enumeration_type_die): Likewise.
10376 (gen_struct_or_union_type_die): Likewise.
10377 (modified_type_die): Likewise.
10378 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
10379 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
10380 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
10381
10382 2011-04-01 Jakub Jelinek <jakub@redhat.com>
10383
10384 PR bootstrap/48148
10385 * dwarf2out.c (resolve_addr): Don't call force_decl_die
10386 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
10387
10388 Revert:
10389 2011-03-17 Richard Guenther <rguenther@suse.de>
10390
10391 PR bootstrap/48148
10392 * lto-cgraph.c (input_overwrite_node): Clear the abstract
10393 origin for decls in other ltrans units.
10394 (input_varpool_node): Likewise.
10395
10396 2011-04-01 Jakub Jelinek <jakub@redhat.com>
10397
10398 PR middle-end/48335
10399 * expr.c (expand_assignment): Handle all possibilities
10400 if TO_RTX is CONCAT.
10401 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
10402 (store_split_bit_field): If SUBREG_REG (op0) or
10403 op0 itself has smaller mode than word, return it
10404 for offset 0 and const0_rtx for out-of-bounds stores.
10405 If word is const0_rtx, skip it.
10406
10407 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
10408
10409 * config/h8300/h8300.c (print_operand_address): Rename to...
10410 (h8300_print_operand_address): ...this. Make static. Adjust comments.
10411 Call h8300_print_operand and h8300_print_operand_address instead of
10412 print_operand and print_operand_address. Declare.
10413 (print_operand): Renake to...
10414 (h8300_print_operand): ...this. Make static. Adjust comments.
10415 Call h8300_print_operand instead of print_operand. Declare.
10416 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
10417 (h8300_register_move_cost): Likewise.
10418 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
10419 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
10420 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
10421 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
10422 * config/h8300/h8300-protos.h (print_operand): Delete.
10423 (print_operand_address): Delete.
10424
10425 2011-04-01 Richard Henderson <rth@redhat.com>
10426
10427 PR 48400
10428 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
10429 in strict mode before dwarf4. Re-order tests to early out
10430 before switching sections.
10431
10432 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
10433
10434 * config/h8300/constraints.md: New file.
10435 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
10436 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
10437 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
10438 * config/h8300/predicates.md (bit_operand): Likewise.
10439 (incdec_operand): Use satisfies_constraint_M and
10440 satisfies_constraint_O. Don't use C code block.
10441 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
10442 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
10443 (compute_mov_length): Use satisfies_constraint_G.
10444 (fix_bit_operand): Use satisfies_constraint_U.
10445 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
10446 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
10447 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
10448 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
10449 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
10450 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
10451 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10452 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
10453 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
10454 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
10455 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
10456 (EXTRA_MEMORY_CONSTRAINT): Delete.
10457
10458 2011-04-01 Andrew Pinski <pinskia@gmail.com>
10459 Michael Meissner <meissner@linux.vnet.ibm.com>
10460
10461 PR target/48262
10462 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
10463 operands, as per the specifications.
10464
10465 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
10466 (vec_extract_evenv4sf): Ditto.
10467 (vec_extract_evenv8hi): Ditto.
10468 (vec_extract_evenv16qi): Ditto.
10469 (vec_extract_oddv4si): Ditto.
10470
10471 2011-03-31 Mark Wielaard <mjw@redhat.com>
10472
10473 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
10474 high_pc attribute if the CU has no associated code. Only output
10475 DW_AT_entry_pc for CU if not generating strict dwarf and
10476 dwarf_version < 4.
10477
10478 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
10479
10480 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
10481 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
10482 out of ...
10483 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
10484 * final.c (final_start_function): Call the new function rather
10485 than using a NULL argument for dwarf2out_frame_debug.
10486
10487 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
10488 that contains the prologue.
10489
10490 * haifa-sched.c (queue_insn): New arg REASON. All callers
10491 changed. Print it in debugging output.
10492
10493 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
10494
10495 * sched-ebb.c (begin_schedule_ready): Remove second argument.
10496 Split most of the code into...
10497 (begin_move_insn): ... here. New function.
10498 (ebb_sched_info): Add a pointer to it.
10499 * haifa-sched.c (scheduled_insns): New static variable.
10500 (sched_extend_ready_list): Allocate it.
10501 (schedule_block): Use it to record the order of scheduled insns.
10502 Perform RTL changes to move insns only after all scheduling
10503 decisions have been made.
10504 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
10505 begin_move_insn field.
10506 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
10507 * sched-int.h (struct haifa_sched_info): Remove second argument
10508 from begin_schedule_ready hook. Add new member begin_move_insn.
10509 * sched-rgn.c (begin_schedule_ready): Remove second argument.
10510 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
10511
10512 * haifa-sched.c (prune_ready_list): New function, broken out of
10513 schedule_block.
10514 (schedule_block): Use it.
10515
10516 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10517
10518 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
10519
10520 2011-04-01 Kai Tietz <ktietz@redhat.com>
10521
10522 * config.gcc (*-*-mingw*): Allow as option the
10523 posix threading model.
10524 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
10525 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
10526 definition.
10527 (CPP_SPEC): Add pthread/no-pthread handling.
10528 (LIB_SPEC): Likewise.
10529 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
10530 (LIB_SPEC): Likewise.
10531 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
10532 flag to pass -pthread option for shared libgcc build.
10533 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
10534 for shared libgcc build.
10535 * config/i386/t-mingw-pthread: New file.
10536 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
10537 New define to enable use of library pthread by default.
10538 * config/i386/mingw.opt (pthread): New driver option.
10539 (no-pthread): New driver option.
10540 * config/i386/cygming.opt: Make sure trailing empty line is retained.
10541 * config/i386/mingw-w64.opt: Likewise.
10542
10543 2011-04-01 Gary Funck <gary@intrepid.com>
10544
10545 * c-decl.c (grokdeclarator): Fix formatting.
10546
10547 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
10548
10549 * expr.c (emit_block_move_via_movmem): Use n_generator_args
10550 instead of n_operands.
10551 (set_storage_via_setmem): Likewise.
10552 * optabs.c (maybe_gen_insn): Likewise.
10553 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
10554 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
10555 (mips_expand_builtin_direct): Likewise.
10556 * config/spu/spu.c (expand_builtin_args): Likewise.
10557
10558 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
10559
10560 * recog.h (insn_data_d): Add n_generator_args.
10561 * genoutput.c (data): Likewise.
10562 (output_insn_data): Print it.
10563 (max_opno, num_dups): Delete.
10564 (scan_operands): Just fill in "d->operand[...]".
10565 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
10566
10567 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
10568
10569 * gensupport.h (pattern_stats): New structure.
10570 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
10571 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
10572 (max_operand_1, max_operand_vec): Delete.
10573 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
10574
10575 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
10576
10577 * emit-rtl.c (emit_pattern_after_setloc): New function.
10578 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
10579 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
10580 (emit_pattern_after): New function.
10581 (emit_insn_after, emit_jump_insn_after): Call it.
10582 (emit_call_insn_after, emit_debug_insn_after): Likewise.
10583 (emit_pattern_before_setloc): New function.
10584 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
10585 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
10586 Likewise.
10587 (emit_pattern_before): New function.
10588 (emit_insn_before, emit_jump_insn_before): Call it.
10589 (emit_call_insn_before, emit_debug_insn_before): Likewise.
10590
10591 2011-03-31 Richard Henderson <rth@redhat.com>
10592
10593 * dwarf2out.c (dw_separate_line_info_ref): Remove.
10594 (dw_separate_line_info_entry): Remove.
10595 (enum dw_line_info_opcode): New.
10596 (dw_line_info_entry): Use it.
10597 (dw_line_info_table, dw_line_info_table_p): New.
10598 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
10599 (line_info_table, line_info_label_num): Remove.
10600 (line_info_table_in_use): Remove.
10601 (separate_line_info_table): Remove.
10602 (separate_line_info_table_allocated): Remove.
10603 (separate_line_info_table_in_use): Remove.
10604 (LINE_INFO_TABLE_INCREMENT): Remove.
10605 (line_info_label_num): New.
10606 (cur_line_info_table): New.
10607 (text_section_line_info, cold_text_section_line_info): New.
10608 (separate_line_info): New.
10609 (SEPARATE_LINE_CODE_LABEL): Remove.
10610 (print_dwarf_line_table): Remove.
10611 (debug_dwarf): Don't dump it.
10612 (output_one_line_info_table): New.
10613 (output_line_info): Use it.
10614 (new_line_info_table): New.
10615 (set_cur_line_info_table): New.
10616 (dwarf2out_switch_text_section): Use it.
10617 (dwarf2out_begin_function): Likewise.
10618 (push_dw_line_info_entry): New.
10619 (dwarf2out_source_line): Rewrite for new line info tables.
10620 (dwarf2out_init): Remove dead initailizations.
10621
10622 2011-03-31 Joseph Myers <joseph@codesourcery.com>
10623
10624 * opts.h (cl_option): Add comments to fields. Add bit-fields for
10625 various flags.
10626 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
10627 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
10628 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
10629 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
10630 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
10631 * opt-functions.awk (flag_init, switch_bit_fields): New.
10632 (switch_flags): Don't handle flags moved to bit-fields. Don't
10633 generate CL_MISSING_OK or CL_SAVE.
10634 * optc-gen.awk: Update to generate bit-field output as well as
10635 flags field.
10636 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
10637 bit-field instead of CL_REJECT_DRIVER flag.
10638 * opts-common.c (generate_canonical_option,
10639 decode_cmdline_option): Use bit-fields instead of CL_* flags.
10640 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
10641 instead of CL_REJECT_NEGATIVE flag.
10642 * toplev.c (print_switch_values): Use cl_report bit-field instead
10643 of CL_REPORT flag.
10644
10645 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
10646
10647 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
10648 a zero minimum index only if it is redundant.
10649
10650 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
10651
10652 PR rtl-optimization/48381
10653 * ira-color.c (assign_hard_reg): Use hard reg set intersection
10654 instead of ira_class_hard_reg_index for calculating conflicting
10655 hard registers.
10656
10657 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
10658
10659 * cprop.c: Clean up hash table building.
10660 (reg_avail_info): Remove.
10661 (oprs_available_p): Remove.
10662 (record_last_reg_set_info): Remove.
10663 (record_last_set_info): Remove.
10664 (reg_available_p): New function.
10665 (gcse_constant_p): Do not treat unfolded conditions as constants.
10666 (make_set_regs_unavailable): New function.
10667 (hash_scan_set): Simplify with new reg_available_p.
10668 (compute_hash_table_work): Traverse insns stream only once.
10669 Do not compute reg_avail_info. Traverse insns in reverse order.
10670 Record implicit sets after recording explicit sets from the block.
10671
10672 2011-03-31 Michael Matz <matz@suse.de>
10673
10674 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
10675
10676 2011-03-31 Anatoly Sokolov <aesok@post.ru>
10677
10678 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
10679 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
10680 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10681 (h8300_mode_dependent_address_p): New function.
10682 (h8300_get_index): Make static.
10683
10684 2011-03-31 Jeff Law <law@redhat.com>
10685
10686 * reload1.c (elimination_effects): Fix typo in recent change.
10687
10688 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
10689 typo potentially leading to null pointer dereference.
10690
10691 * caller-save.c (new_saved_hard_reg): Eliminate return value.
10692 (setup_save_areas): Corresponding changes to avoid useless
10693 assignments.
10694
10695 * jump.c (reversed_comparison_code_parts): Avoid successive return
10696 statements when REVERSE_CONDITION is defined.
10697
10698 * expr.c (expand_assignment): Avoid useless assignments.
10699 (expand_expr_real_1): Likewise.
10700 (expand_expr_real_2): Avoid useless statements.
10701
10702 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
10703
10704 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
10705
10706 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
10707 statements.
10708
10709 * stmt.c (expand_expr_stmt): Avoid useless assignment.
10710
10711 2011-03-31 Joseph Myers <joseph@codesourcery.com>
10712
10713 PR target/47109
10714 * doc/tm.texi.in (TARGET_VERSION): Remove.
10715 * doc/tm.texi: Regenerate.
10716 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
10717 * collect2.c (main): Don't use TARGET_VERSION.
10718 * mips-tdump.c (main): Don't use TARGET_VERSION.
10719 * mips-tfile.c (main): Don't use TARGET_VERSION.
10720 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
10721 * config/rs6000/vxworksae.h: Remove.
10722 * config/alpha/alpha.h (TARGET_VERSION): Remove.
10723 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
10724 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
10725 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
10726 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
10727 * config/arm/arm.h (TARGET_VERSION): Remove.
10728 * config/arm/coff.h (TARGET_VERSION): Remove.
10729 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
10730 * config/arm/elf.h (TARGET_VERSION): Remove.
10731 * config/arm/freebsd.h (TARGET_VERSION): Remove.
10732 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
10733 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
10734 * config/arm/pe.h (TARGET_VERSION): Remove.
10735 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
10736 * config/arm/semi.h (TARGET_VERSION): Remove.
10737 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
10738 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
10739 * config/arm/vxworks.h (TARGET_VERSION): Remove.
10740 * config/avr/avr.h (TARGET_VERSION): Remove.
10741 * config/bfin/bfin.h (TARGET_VERSION): Remove.
10742 * config/fr30/fr30.h (TARGET_VERSION): Remove.
10743 * config/frv/frv.h (TARGET_VERSION): Remove.
10744 * config/h8300/h8300.h (TARGET_VERSION): Remove.
10745 * config/i386/cygwin.h (TARGET_VERSION): Remove.
10746 * config/i386/darwin.h (TARGET_VERSION): Remove.
10747 * config/i386/darwin64.h (TARGET_VERSION): Remove.
10748 * config/i386/djgpp.h (TARGET_VERSION): Remove.
10749 * config/i386/freebsd.h (TARGET_VERSION): Remove.
10750 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
10751 * config/i386/gnu.h (TARGET_VERSION): Remove.
10752 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
10753 * config/i386/i386elf.h (TARGET_VERSION): Remove.
10754 * config/i386/linux.h (TARGET_VERSION): Remove.
10755 * config/i386/linux64.h (TARGET_VERSION): Remove.
10756 * config/i386/lynx.h (TARGET_VERSION): Remove.
10757 * config/i386/mingw32.h (TARGET_VERSION): Remove.
10758 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
10759 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
10760 * config/i386/netware.h (TARGET_VERSION): Remove.
10761 * config/i386/nto.h (TARGET_VERSION): Remove.
10762 * config/i386/openbsd.h (TARGET_VERSION): Remove.
10763 * config/i386/vxworks.h (TARGET_VERSION): Remove.
10764 * config/ia64/elf.h (TARGET_VERSION): Remove.
10765 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
10766 * config/ia64/hpux.h (TARGET_VERSION): Remove.
10767 * config/ia64/linux.h (TARGET_VERSION): Remove.
10768 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
10769 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
10770 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
10771 * config/lm32/lm32.h (TARGET_VERSION): Remove.
10772 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
10773 * config/m32c/m32c.h (TARGET_VERSION): Remove.
10774 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
10775 * config/m32r/m32r.h (TARGET_VERSION): Remove.
10776 * config/m68k/linux.h (TARGET_VERSION): Remove.
10777 * config/m68k/m68k.h (TARGET_VERSION): Remove.
10778 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
10779 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
10780 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
10781 * config/mep/mep.h (TARGET_VERSION): Remove.
10782 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
10783 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
10784 * config/mips/iris6.h (MACHINE_TYPE): Remove.
10785 * config/mips/linux.h (TARGET_VERSION): Remove.
10786 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
10787 * config/mips/vxworks.h (TARGET_VERSION): Remove.
10788 * config/mmix/mmix.h (TARGET_VERSION): Remove.
10789 * config/mn10300/linux.h (TARGET_VERSION): Remove.
10790 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
10791 * config/pa/pa.h (TARGET_VERSION): Remove.
10792 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
10793 * config/picochip/picochip.h (TARGET_VERSION): Remove.
10794 * config/rs6000/aix.h (TARGET_VERSION): Remove.
10795 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
10796 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
10797 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
10798 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
10799 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
10800 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
10801 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
10802 * config/rs6000/linux.h (TARGET_VERSION): Remove.
10803 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
10804 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
10805 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
10806 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
10807 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
10808 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
10809 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
10810 * config/s390/linux.h (TARGET_VERSION): Remove.
10811 * config/s390/s390.h (TARGET_VERSION): Remove.
10812 * config/s390/tpf.h (TARGET_VERSION): Remove.
10813 * config/score/score.h (TARGET_VERSION): Remove.
10814 * config/sh/linux.h (TARGET_VERSION): Remove.
10815 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
10816 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
10817 * config/sh/sh.h (TARGET_VERSION): Remove.
10818 * config/sh/sh64.h (TARGET_VERSION): Remove.
10819 * config/sh/superh.h (TARGET_VERSION): Remove.
10820 * config/sh/vxworks.h (TARGET_VERSION): Remove.
10821 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
10822 * config/sparc/linux.h (TARGET_VERSION): Remove.
10823 * config/sparc/linux64.h (TARGET_VERSION): Remove.
10824 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
10825 TARGET_NAME32, TARGET_NAME): Remove.
10826 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
10827 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
10828 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
10829 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
10830 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
10831 * config/spu/spu.h (TARGET_VERSION): Remove.
10832 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
10833 * config/v850/v850.h (TARGET_VERSION): Remove.
10834 * config/vax/linux.h (TARGET_VERSION): Remove.
10835 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
10836 * config/xtensa/elf.h (TARGET_VERSION): Remove.
10837 * config/xtensa/linux.h (TARGET_VERSION): Remove.
10838
10839 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
10840
10841 PR target/48142
10842 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
10843 frame-related from frame-unrelated adjustments to the stack pointer.
10844
10845 2011-03-31 Jakub Jelinek <jakub@redhat.com>
10846
10847 * common.opt (fdebug-types-section): Move earlier.
10848 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
10849
10850 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
10851
10852 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
10853 var.
10854
10855 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
10856
10857 * tree.h (CASE_CHAIN): Define.
10858 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
10859 (gimple_redirect_edge_and_branch): Likewise.
10860
10861 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
10862
10863 PR middle-end/48367
10864 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
10865 calculation.
10866
10867 2011-03-30 Jeff Law <law@redhat.com>
10868
10869 * PR bootstrap/48371
10870 * reload1.c (reload): Fix botch in last change.
10871
10872 * reload.h (struct reload): Fix typo introduced in last change.
10873
10874 2011-03-30 Joseph Myers <joseph@codesourcery.com>
10875
10876 * config/arm/arm.opt (mhard-float, msoft-float): Mark
10877 Undocumented. Remove help text.
10878 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
10879 -mhard-float.
10880
10881 2011-03-30 Joseph Myers <joseph@codesourcery.com>
10882
10883 * doc/options.texi (NegativeAlias): Document.
10884 (Alias): Mention NegativeAlias.
10885 * opt-functions.awk: Handle NegativeAlias.
10886 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
10887 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
10888 * opts.h (CL_NEGATIVE_ALIAS): Define.
10889 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
10890 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
10891 OPT_mspe_.
10892 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
10893 Alias entries.
10894 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
10895 mno-spe and mno-isel instead of mspe=no and -misel=no.
10896
10897 2011-03-29 Mark Wielaard <mjw@redhat.com>
10898
10899 * common.opt (fdebug-types-section): New flag.
10900 * doc/invoke.texi: Document new -fno-debug-types-section flag.
10901 * dwarf2out.c (use_debug_types): New define.
10902 (struct die_struct): Mark die_id with GTY desc use_debug_types.
10903 (print_die): Guard output of type unit signatures using
10904 use_debug_types.
10905 (build_abbrev_table): Replace assert of dwarf_version >= 4
10906 with assert on use_debug_types.
10907 (size_of_die): Likewise.
10908 (unmark_dies): Likewise.
10909 (value_format): Decide AT_ref_external form on use_debug_types.
10910 (output_die): Replace dwarf_version version check guard with
10911 use_debug_types where appropriate.
10912 (modified_type_die): Likewise.
10913 (gen_reference_type_die): Likewise.
10914 (dwarf2out_start_source_file): Likewise.
10915 (dwarf2out_end_source_file): Likewise.
10916 (prune_unused_types_walk_attribs): Likewise.
10917 (dwarf2out_finish): Likewise.
10918
10919 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
10920
10921 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
10922
10923 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
10924
10925 PR rtl-optimization/48332
10926 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
10927 mode of input operand N and modeN to its actual mode.
10928
10929 2011-03-30 Jeff Law <law@redhat.com>
10930
10931 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
10932 define accessor macro.
10933 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
10934 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
10935 (reg_equiv_init): Likewise.
10936 (reg_equivs_size): New variable.
10937 (reg_equiv_init_size): Remove.
10938 (allocate_initial_values): Move prototype to here from....
10939 * integrate.h (allocate_initial_values): Remove prototype.
10940 * integrate.c: Include reload.h.
10941 (allocate_initial_values): Corresponding changes.
10942 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
10943 (fix_reg_equiv_init, no_equiv): Corresponding changes.
10944 (update_equiv_regs): Corresponding changes.
10945 (ira): Corresponding changes.
10946 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
10947 (push_secondary_reload): Corresponding changes.
10948 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
10949 (make_memloc, find_reloads_address): Corresponding changes.
10950 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
10951 (find_reloads_address_1): Corresponding changes.
10952 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
10953 (refers_to_regno_for_reload_p): Corresponding changes.
10954 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
10955 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
10956 * reload1.c: Include ggc.h.
10957 (grow_reg_equivs): New function.
10958 (replace_pseudos_in, reload): Corresponding changes.
10959 (calculate_needs_all_insns, alter_regs): Corresponding changes.
10960 (eliminate_regs_1, elimination_effects): Corresponding changes.
10961 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
10962 (delete_output_reload): Likewise.
10963 * caller-save.c (mark_referenced_regs): Corresponding changes.
10964 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
10965 * frv/predicates.md (frv_load_operand): Corresponding changes.
10966 * microblaze/microblaze.c (double_memory_operand): Corresponding
10967 changes.
10968 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
10969 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
10970 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
10971 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
10972 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
10973 changes.
10974 * pa/pa.c (emit_move_sequence): Corresponding changes.
10975 * vax/vax.c (nonindexed_address_p): Corresponding changes.
10976
10977 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
10978
10979 PR target/47551
10980 * config/arm/arm.c (coproc_secondary_reload_class): Handle
10981 structure modes. Don't check neon_vector_mem_operand for
10982 vector or structure modes.
10983
10984 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
10985 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10986
10987 PR target/43590
10988 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
10989 operand 1 and reshuffle the operands to match.
10990 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
10991
10992 2011-03-30 Christian Schüler <cschueler@gmx.de>
10993
10994 PR driver/48208
10995 * config/c.opt (F): Added 'Driver' to -F option.
10996
10997 PR driver/48260
10998 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
10999 handler function.
11000 * config/darwin.opt: Added '-arch' option.
11001
11002 2011-03-30 Nick Clifton <nickc@redhat.com>
11003
11004 * config/rx/rx.md: Add peepholes and patterns to combine
11005 extending loads and simple arithmetic instructions.
11006 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
11007 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
11008 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
11009 modes to use pre-decrement and post-increment addressing.
11010 (rx_is_restricted_memory_address): Add range checking of REG+INT
11011 addresses.
11012 (rx_print_operand): Add support for %Q. Fix handling of %Q.
11013 (rx_memory_move_cost): Adjust cost of stores.
11014 (rx_adjust_insn_length): New function.
11015
11016 2011-03-30 Jakub Jelinek <jakub@redhat.com>
11017
11018 PR c/48305
11019 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
11020 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
11021 matching arg00/arg01 types.
11022
11023 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
11024
11025 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
11026 last_location to UNKNOWN_LOCATION.
11027
11028 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
11029
11030 PR target/48349
11031 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
11032 FLOAT_SSE_REGS.
11033
11034 2011-03-30 Joseph Myers <joseph@codesourcery.com>
11035 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11036
11037 PR bootstrap/48337
11038 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
11039 Init(PROCESSOR_V7).
11040 (sparc_cpu): Likewise.
11041 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
11042 PROCESSOR_V7.
11043
11044 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
11045
11046 PR target/48336
11047 PR middle-end/48342
11048 PR rtl-optimization/48345
11049 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
11050 hard regs for given mode from profitable regs when doing secondary
11051 allocation.
11052
11053 2011-03-29 Jeff Law <law@redhat.com>
11054
11055 PR bootstrap/48327
11056 * tree-ssa-threadupdate.c (struct redirection_data): Remove
11057 do_not_duplicate field.
11058 (lookup_redirection_data): Corresponding changes.
11059 (create_duplicates): Always create a template block.
11060 (redirect_edges): Remove code which reused the original block
11061 when it was going to become unreachable code.
11062 (thread_block): Don't set do_not_duplicate field.
11063
11064 2011-03-29 Joseph Myers <joseph@codesourcery.com>
11065
11066 * lto-opts.c (register_user_option_p, lto_register_user_option):
11067 Make type argument unsigned.
11068 * lto-streamer.h (lto_register_user_option): Make type argument
11069 unsigned.
11070 * opth-gen.awk: Make CL_* macros unsigned.
11071 * opts-common.c (find_opt): Make lang_mask argument unsigned.
11072 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
11073 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
11074 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
11075 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
11076 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
11077 (find_opt): Make lang_mask argument unsigned.
11078
11079 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
11080
11081 PR rtl-optimization/48331
11082 PR rtl-optimization/48334
11083 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
11084 for any used algorithm.
11085
11086 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
11087
11088 * ira-conflicts.c (build_object_conflicts): Add unused attribute
11089 to parent_max.
11090
11091 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
11092
11093 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
11094 (alpha_option_override): Don't set alpha_sr_alias_set.
11095 (emit_frame_store_1): Use gen_frame_mem rather than calling
11096 set_mem_alias_set.
11097 (alpha_expand_epilogue): Ditto.
11098
11099 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
11100
11101 PR tree-optimization/48290
11102 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
11103 vectorization, check that relevant phis in the basic block after
11104 the inner loop are really inner loop's exit phis.
11105
11106 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
11107
11108 PR debug/48190
11109 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
11110 (cached_dw_loc_list_def): New structure.
11111 (cached_dw_loc_list): New typedef.
11112 (cached_dw_loc_list_table): New variable.
11113 (cached_dw_loc_list_table_hash): New function.
11114 (cached_dw_loc_list_table_eq): Likewise.
11115 (add_location_or_const_value_attribute): Take a bool cache_p.
11116 Cache the list when the parameter is true.
11117 (gen_formal_parameter_die): Update caller.
11118 (gen_variable_die): Likewise.
11119 (dwarf2out_finish): Likewise.
11120 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
11121 while generating debug info for the decl.
11122 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
11123 (dwarf2out_init): Initialize cached_dw_loc_list_table.
11124 (resolve_addr): Cache the result of resolving a chain of
11125 location lists.
11126
11127 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
11128
11129 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
11130 conflict object hard regset nodes have intersecting hard reg sets.
11131
11132 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
11133 after regstat_init_n_sets_and_refs.
11134
11135 * ira.c: Add more comments at the top.
11136 (setup_stack_reg_pressure_class, setup_pressure_classes):
11137 Add comments how we compute the register pressure classes.
11138 (setup_allocno_and_important_classes): Add more comments.
11139 (setup_class_translate_array, reorder_important_classes)
11140 (setup_reg_class_relations): Add comments.
11141
11142 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
11143 start of the file.
11144
11145 * ira-color.c: Add 2011 to the Copyright line.
11146 (assign_hard_reg): Add more comments.
11147 (improve_allocation): Ditto.
11148
11149 * ira-costs.c: Add 2011 to the Copyright line.
11150 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
11151 comments.
11152 (setup_regno_cost_classes_by_mode): Ditto.
11153
11154 Initial patches from ira-improv branch:
11155
11156 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
11157
11158 * ira-build.c (ira_create_object): Remove initialization of
11159 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
11160 (ira_create_allocno): Remove initialization of
11161 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
11162 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
11163 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
11164 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
11165 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
11166 Initialize ALLOCNO_ADD_DATA.
11167 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
11168 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
11169 ALLOCNO_REG.
11170 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
11171 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
11172
11173 * ira.c (ira_reallocate): Remove.
11174 (setup_pressure_classes): Call
11175 ira_init_register_move_cost_if_necessary. Use
11176 ira_register_move_cost instead of ira_get_register_move_cost.
11177 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
11178 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
11179
11180 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
11181 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
11182 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
11183 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
11184 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
11185 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
11186 Fix formatting.
11187 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
11188 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
11189 (struct allocno_color_data): New.
11190 (allocno_color_data_t): New typedef.
11191 (allocno_color_data): New definition.
11192 (ALLOCNO_COLOR_DATA): New macro.
11193 (struct object_color_data): New.
11194 (object_color_data_t): New typedef.
11195 (object_color_data): New definition.
11196 (OBJECT_COLOR_DATA): New macro.
11197 (update_copy_costs, calculate_allocno_spill_cost): Call
11198 ira_init_register_move_cost_if_necessary. Use
11199 ira_register_move_cost instead of ira_get_register_move_cost.
11200 (move_spill_restore, update_curr_costs): Ditto.
11201 (allocno_spill_priority): Make it inline.
11202 (color_pass): Allocate and free allocno_color_dat and object_color_data.
11203 (struct coalesce_data, coalesce_data_t): New.
11204 (allocno_coalesce_data): New definition.
11205 (ALLOCNO_COALESCE_DATA): New macro.
11206 (merge_allocnos, coalesced_allocno_conflict_p): Use
11207 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
11208 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
11209 (coalesce_allocnos): Ditto.
11210 (setup_coalesced_allocno_costs_and_nums): Ditto.
11211 (collect_spilled_coalesced_allocnos): Ditto.
11212 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
11213 (setup_slot_coalesced_allocno_live_ranges): Ditto.
11214 (coalesce_spill_slots): Ditto.
11215 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
11216 free allocno_coalesce_data.
11217
11218 * ira-conflicts.c: Fix formatting.
11219 (process_regs_for_copy): Call
11220 ira_init_register_move_cost_if_necessary. Use
11221 ira_register_move_cost instead of ira_get_register_move_cost.
11222 (build_object_conflicts): Optimize.
11223
11224 * ira-costs.c (record_reg_classes): Optimize. Call
11225 ira_init_register_move_cost_if_necessary. Use
11226 ira_register_move_cost, ira_may_move_in_cost, and
11227 ira_may_move_out_cost instead of ira_get_register_move_cost and
11228 ira_get_may_move_cost.
11229 (record_address_regs): Ditto.
11230 (scan_one_insn): Optimize.
11231 (find_costs_and_classes): Optimize.
11232 (process_bb_node_for_hard_reg_moves): Call
11233 ira_init_register_move_cost_if_necessary. Use
11234 ira_register_move_cost instead of ira_get_register_move_cost.
11235
11236 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
11237 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
11238 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
11239 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
11240 definitions.
11241 (ira_initiate_emit_data, ira_finish_emit_data)
11242 (create_new_allocno): New functions.
11243 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
11244 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
11245 Use ira_register_move_cost instead of ira_get_register_move_cost.
11246
11247 * ira-int.h: Fix some comments.
11248 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
11249 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
11250 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
11251 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
11252 add_data.
11253 (struct ira_allocno): Make mode and aclass a bitfield. Move other
11254 bitfield after mode. Make hard_regno a short int. Make
11255 hard_regno short. Remove first_coalesced_allocno and
11256 next_coalesced_allocno. Move mem_optimized_dest_p,
11257 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
11258 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
11259 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
11260 temp, colorable_p. Add new member add_data.
11261 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
11262 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
11263 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
11264 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
11265 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
11266 (ALLOCNO_ADD_DATA): New macro.
11267 (ira_emit_data_t): New typedef.
11268 (struct ira_emit_data): New. Move mem_optimized_dest_p,
11269 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
11270 from struct ira_allocno.
11271 (ALLOCNO_EMIT_DATA): New macro.
11272 (ira_allocno_emit_data, allocno_emit_reg): New.
11273 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
11274 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
11275 (OBJECT_ADD_DATA): New macro.
11276 (ira_reallocate): Remove.
11277 (ira_initiate_emit_data, ira_finish_emit_data): New.
11278 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
11279 (ira_init_register_move_cost_if_necessary): New.
11280 (ira_object_conflict_iter_next): Merge into
11281 ira_object_conflict_iter_cond.
11282 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
11283
11284 * ira-live.c (process_single_reg_class_operands): Call
11285 ira_init_register_move_cost_if_necessary. Use
11286 ira_register_move_cost instead of ira_get_register_move_cost.
11287
11288 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
11289
11290 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
11291
11292 * ira-costs.c: Fix formatting.
11293 (cost_classes, cost_classes_num): Remove.
11294 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
11295 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
11296 (cost_classes_del, cost_classes_htab): New.
11297 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
11298 (initiate_regno_cost_classes, setup_cost_classes): New.
11299 (setup_regno_cost_classes_by_aclass): New.
11300 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
11301 (record_reg_classes): Use regno_cost_classes instead of
11302 cost_classes. Move checking opposite operand up.
11303 (record_address_regs): Use regno_cost_classes
11304 instead of cost_classes.
11305 (scan_one_insn): Ditto. Use always general register.
11306 (print_allocno_costs): Use regno_cost_classes instead of
11307 cost_classes.
11308 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
11309 (find_costs_and_classes): Set up cost classes for each registers.
11310 Use also their mode for this. Use regno_cost_classes instead of
11311 cost_classes.
11312 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
11313 cost_classes.
11314 (free_ira_costs, ira_init_costs): Don't use cost_classes.
11315 (ira_costs, ira_set_pseudo_classes): Call
11316 initiate_regno_cost_classes and finish_regno_cost_classes.
11317
11318 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
11319
11320 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
11321
11322 * target.def (ira_cover_classes): Remove.
11323
11324 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
11325
11326 * doc/tm.texi.in: Ditto.
11327
11328 * ira-conflicts.c: Remove mentioning cover classes from the file.
11329 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
11330 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
11331
11332 * targhooks.c (default_ira_cover_classes): Remove.
11333
11334 * targhooks.h (default_ira_cover_classes): Ditto.
11335
11336 * haifa-sched.c: Remove mentioning cover classes from the file.
11337 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
11338 ira_pressure_classes and ira_pressure_classes_num instead of
11339 ira_reg_class_cover_size and ira_reg_class_cover. Use
11340 sched_regno_pressure_class instead of sched_regno_cover_class.
11341 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
11342 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
11343
11344 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
11345 classes from the file.
11346 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
11347 (struct object_hard_regs, struct object_hard_regs_node): New.
11348 (struct ira_object): New members profitable_hard_regs,
11349 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
11350 (struct ira_allocno): Rename cover_class to aclass. Rename
11351 cover_class_cost and updated_cover_class_cost to class_cost and
11352 updated_class_cost. Remove splay_removed_p and
11353 left_conflict_size. Add new members colorable_p.
11354 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
11355 (ALLOCNO_COLORABLE_P): New macro.
11356 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
11357 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
11358 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
11359 (OBJECT_...): Rename parameter C to O.
11360 (OBJECT_PROFITABLE_HARD_REGS): New macro.
11361 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
11362 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
11363 (struct target_ira_int): New members x_ira_max_memory_move_cost,
11364 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
11365 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
11366 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
11367 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
11368 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
11369 x_ira_reg_class_subunion.
11370 (ira_max_memory_move_cost, ira_max_register_move_cost)
11371 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
11372 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
11373 (ira_important_class_nums, ira_reg_class_superunion): New macros.
11374 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
11375 (ira_reg_class_union): Rename to ira_reg_class_subunion.
11376 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
11377 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
11378 (ira_tune_allocno_costs_and_cover_classes): Rename to
11379 ira_tune_allocno_costs.
11380 (ira_debug_hard_regs_forest): New.
11381 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
11382 (ira_object_conflict_iter_next): Fix comments.
11383 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
11384 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
11385 cover_class to aclass.
11386 (ira_allocate_and_accumulate_costs): Ditto.
11387 (ira_allocate_and_set_or_copy_costs): Ditto.
11388
11389 * opts.c (decode_options): Remove ira_cover_class check.
11390
11391 * ira-color.c: Remove mentioning cover classes from the file. Use
11392 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
11393 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
11394 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
11395 (splay-tree.h): Remove include.
11396 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
11397 before copy_freq_compare_func.
11398 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
11399 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
11400 New definitions.
11401 (hard_regs_roots, hard_regs_node_vec): Ditto.
11402 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
11403 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
11404 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
11405 (create_new_object_hard_regs_node): Ditto.
11406 (add_new_object_hard_regs_node_to_forest): Ditto.
11407 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
11408 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
11409 Ditto.
11410 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
11411 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
11412 (remove_unused_object_hard_regs_nodes): Ditto.
11413 (enumerate_object_hard_regs_nodes): Ditto.
11414 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
11415 (object_hard_regs_subnode_t): Ditto.
11416 (struct object_hard_regs_subnode): Ditto.
11417 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
11418 (setup_object_hard_regs_subnode_index): Ditto.
11419 (get_object_hard_regs_subnodes_num): Ditto.
11420 (form_object_hard_regs_nodes_forest): Ditto.
11421 (finish_object_hard_regs_nodes_tree): Ditto.
11422 (finish_object_hard_regs_nodes_forest): Ditto.
11423 (allocnos_have_intersected_live_ranges_p): Rename to
11424 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
11425 (pseudos_have_intersected_live_ranges_p): Rename to
11426 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
11427 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
11428 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
11429 (update_copy_costs): Remove assert. Skip cost update if the hard
11430 reg does not belong the class.
11431 (assign_hard_reg): Process only profitable hard regs.
11432 (uncolorable_allocnos_num): Make it scalar.
11433 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
11434 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
11435 and ira_reg_class_max_nregs.
11436 (bucket_allocno_compare_func): Check frequency first.
11437 (sort_bucket): Add compare function as a parameter.
11438 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
11439 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
11440 (push_allocno_to_stack): Rewrite for checking new allocno
11441 colorability.
11442 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
11443 (push_only_colorable): Pass new parameter to sort_bucket.
11444 (push_allocno_to_spill): Remove.
11445 (allocno_spill_priority_compare): Make it inline and rewrite.
11446 (splay_tree_allocate, splay_tree_free): Remove.
11447 (allocno_spill_sort_compare): New function.
11448 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
11449 build and use splay tree. Choose first allocno in uncolorable
11450 allocno bucket to spill. Remove setting spill cost.
11451 (all_conflicting_hard_regs): Remove.
11452 (setup_allocno_available_regs_num): Check only profitable hard
11453 regs. Print info about hard regs nodes.
11454 (setup_allocno_left_conflicts_size): Remove.
11455 (put_allocno_into_bucket): Don't call
11456 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
11457 (improve_allocation): New.
11458 (color_allocnos): Call setup_profitable_hard_regs,
11459 form_object_hard_regs_nodes_forest, improve_allocation,
11460 finish_object_hard_regs_nodes_forest. Setup spill cost.
11461 (print_loop_title): Use pressure classes.
11462 (color_allocnso): Ditto.
11463 (do_coloring): Remove allocation and freeing splay_tree_node_pool
11464 and allocnos_for_spilling.
11465 (ira_sort_regnos_for_alter_reg): Don't setup members
11466 {first,next}_coalesced_allocno.
11467 (color): Remove allocating and freeing removed_splay_allocno_vec.
11468 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
11469 prohibited_class_mode_regs.
11470
11471 * ira-lives.c: Remove mentioning cover classes from the file. Fix
11472 formatting.
11473 (update_allocno_pressure_excess_length): Use pressure classes.
11474 (inc_register_pressure, dec_register_pressure): Check for pressure
11475 class.
11476 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
11477 pressure class. Use ira_reg_class_nregs instead of
11478 ira_reg_class_max_nregs.
11479 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
11480 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
11481 (single_reg_class): Use ira_reg_class_nregs instead of
11482 ira_reg_class_max_nregs.
11483 (process_bb_node_lives): Use pressure classes.
11484
11485 * ira-emit.c: Remove mentioning cover classes from the file. Use
11486 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
11487 (change_loop): Use pressure classes.
11488 (modify_move_list): Call ira_set_allocno_class instead of
11489 ira_set_allocno_cover_class.
11490
11491 * ira-build.c: Remove mentioning cover classes from the file. Use
11492 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
11493 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
11494 ALLOCNO_UPDATED_CLASS_COST instead of
11495 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
11496 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
11497 (ira_create_allocno): Remove initialization of
11498 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
11499 ALLOCNO_COLORABLE_P.
11500 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
11501 Update conflict regs for the objects.
11502 (create_cap_allocno): Remove assert. Don't propagate
11503 ALLOCNO_AVAILABLE_REGS_NUM.
11504 (ira_free_allocno_costs): New function.
11505 (finish_allocno): Change a part of code into call of
11506 ira_free_allocno_costs.
11507 (low_pressure_loop_node_p): Use pressure classes.
11508 (object_range_compare_func): Don't compare classes.
11509 (setup_min_max_conflict_allocno_ids): Ditto.
11510
11511 * loop-invariant.c: Remove mentioning cover classes from the file.
11512 Use ira_pressure_classes and ira_pressure_classes_num instead of
11513 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
11514 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
11515 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
11516 Use reg_allocno_class instead of reg_cover_class.
11517 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
11518 STACK_REG_COVER_CLASS.
11519 (get_regno_cover_class): Rename to get_regno_pressure_class.
11520 (move_loop_invariants): Initialize and finalize regstat.
11521
11522 * ira.c: Remove mentioning cover classes from the file. Add
11523 comments about coloring without cover classes. Use ALLOCNO_CLASS
11524 instead of ALLOCNO_COVER_CLASS. Fix formatting.
11525 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
11526 setup_class_subset_and_memory_move_costs.
11527 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
11528 (setup_cover_and_important_classes): Rename to
11529 setup_allocno_and_important_classes.
11530 (setup_class_translate_array): New.
11531 (setup_class_translate): Call it for allocno and pressure classes.
11532 (cover_class_order): Rename to allocno_class_order.
11533 (comp_reg_classes_func): Use ira_allocno_class_translate instead
11534 of ira_class_translate.
11535 (reorder_important_classes): Set up ira_important_class_nums.
11536 (setup_reg_class_relations): Set up ira_reg_class_superunion.
11537 (print_class_cover): Rename to print_classes. Add parameter.
11538 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
11539 Print pressure classes too.
11540 (find_reg_class_closure): Rename to find_reg_classes. Don't call
11541 setup_reg_subclasses.
11542 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
11543 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
11544 (setup_prohibited_class_mode_regs): Use
11545 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
11546 (clarify_prohibited_class_mode_regs): New function.
11547 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
11548 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
11549 (ira_init_once): Initialize them.
11550 (free_register_move_costs): Process them.
11551 (ira_init): Move calls of find_reg_classes and
11552 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
11553 Call clarify_prohibited_class_mode_regs.
11554 (ira_no_alloc_reg): Remove.
11555 (too_high_register_pressure_p): Use pressure classes.
11556
11557 * sched-deps.c: Remove mentioning cover classes from the file.
11558 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
11559 ira_pressure_classes and ira_pressure_classes_num instead of
11560 ira_reg_class_cover_size and ira_reg_class_cover.
11561 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
11562 sched_regno_pressure_class instead of sched_regno_cover_class.
11563 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
11564 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
11565
11566 * ira.h: Add 2010 to Copyright.
11567 (ira_no_alloc_reg): Remove external.
11568 (struct target_ira): Rename x_ira_hard_regno_cover_class,
11569 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
11570 x_ira_class_translate to x_ira_hard_regno_allocno_class,
11571 x_ira_allocno_classes_num, x_ira_allocno_classes, and
11572 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
11573 x_ira_pressure_classes, x_ira_pressure_class_translate, and
11574 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
11575 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
11576 x_ira_no_alloc_regs.
11577 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
11578 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
11579 ira_allocno_classes_num and ira_allocno_classes.
11580 (ira_class_translate): Rename to ira_allocno_class_translate.
11581 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
11582 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
11583 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
11584 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
11585 (ira_no_alloc_regs): New.
11586
11587 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
11588 classes from the file. Use ALLOCNO_CLASS instead of
11589 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
11590 ALLOCNO_COVER_CLASS_COST.
11591 (regno_cover_class): Rename to regno_aclass.
11592 (record_reg_classes): Use ira_reg_class_subunion instead of
11593 ira_reg_class_union.
11594 (record_address_regs): Check overflow.
11595 (scan_one_insn): Ditto.
11596 (print_allocno_costs): Print total mem cost fore regional allocation.
11597 (print_pseudo_costs): Use REG_N_REFS.
11598 (find_costs_and_classes): Use classes intersected with them on the
11599 1st pass. Check overflow. Use ira_reg_class_subunion instead of
11600 ira_reg_class_union. Use ira_allocno_class_translate and
11601 regno_aclass instead of ira_class_translate and regno_cover_class.
11602 Modify code for finding regno_aclass. Setup preferred classes for
11603 the next pass.
11604 (setup_allocno_cover_class_and_costs): Rename to
11605 setup_allocno_class_and_costs. Use regno_aclass instead of
11606 regno_cover_class. Use ira_set_allocno_class instead of
11607 ira_set_allocno_cover_class.
11608 (init_costs, finish_costs): Use regno_aclass instead of
11609 regno_cover_class.
11610 (ira_costs): Use setup_allocno_class_and_costs instead of
11611 setup_allocno_cover_class_and_costs.
11612 (ira_tune_allocno_costs_and_cover_classes): Rename to
11613 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
11614 by processing objects. Use ira_reg_class_max_nregs instead of
11615 ira_reg_class_nregs.
11616
11617 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
11618
11619 * sched-int.h: Remove mentioning cover classes from the file.
11620 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
11621
11622 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
11623 classes from the file.
11624 (struct reg_pref): Rename coverclass into allocnoclass.
11625 (reg_cover_class): Rename to reg_allocno_class.
11626
11627 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
11628
11629 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
11630
11631 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
11632
11633 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
11634
11635 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
11636
11637 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
11638
11639 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
11640
11641 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
11642
11643 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
11644
11645 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
11646
11647 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
11648 (i386_ira_cover_classes): Ditto.
11649
11650 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
11651
11652 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
11653
11654 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
11655
11656 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
11657
11658 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
11659
11660 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
11661
11662 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
11663 (mips_ira_cover_classes): Ditto.
11664
11665 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
11666
11667 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
11668
11669 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
11670
11671 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
11672
11673 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
11674
11675 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
11676 (IRA_COVER_CLASSES_VSX): Ditto.
11677
11678 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
11679 (rs6000_ira_cover_classes): Ditto.
11680
11681 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
11682
11683 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
11684
11685 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
11686
11687 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
11688
11689 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
11690
11691 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
11692
11693 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
11694
11695 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
11696
11697 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
11698
11699 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
11700
11701 2011-03-29 Jakub Jelinek <jakub@redhat.com>
11702
11703 PR debug/48253
11704 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
11705 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
11706 dw_fde_unlikely_section_end_label, cold_in_std_section,
11707 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
11708 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
11709 fields.
11710 (output_fde): Use dw_fde_second_{begin,end} if second is
11711 true, otherwise dw_fde_{begin,end}.
11712 (output_call_frame_info): Test dw_fde_second_begin != NULL
11713 instead of dw_fde_switched_sections.
11714 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
11715 fields, initialize new fields. Initialize in_std_section
11716 unconditionally from the first partition.
11717 (dwarf2out_end_epilogue): Don't override dw_fde_end when
11718 dw_fde_second_begin is non-NULL.
11719 (dwarf2out_switch_text_section): Stop initializing removed
11720 dw_fde_struct fields, initialize new fields, initialize
11721 also dw_fde_end here. Set dw_fde_switch_cfi even when
11722 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
11723 (struct var_loc_list_def): Add last_before_switch field.
11724 (arange_table, arange_table_allocated, arange_table_in_use,
11725 ARANGE_TABLE_INCREMENT, add_arange): Removed.
11726 (size_of_aranges): Count !in_std_section and !second_in_std_section
11727 hunks in fdes, instead of looking at arange_table_in_use.
11728 (output_aranges): Add aranges_length argument, don't call
11729 size_of_aranges here. Instead of using aranges_table*
11730 emit ranges for fdes when !in_std_section resp.
11731 !second_in_std_section.
11732 (dw_loc_list): Break ranges crossing section switch.
11733 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
11734 use dw_fde_second_end instead of dw_fde_end as end of last range.
11735 (gen_subprogram_die): Don't call add_arange. Use
11736 dw_fde_{begin,end} for first partition and if switched
11737 section dw_fde_second_{begin,end} for the second.
11738 (var_location_switch_text_section_1,
11739 var_location_switch_text_section): New functions.
11740 (dwarf2out_begin_function): Initialize cold_text_section even
11741 when function_section () isn't text_section.
11742 (prune_unused_types): Don't walk arange_table.
11743 (dwarf2out_finish): Don't needlessly test
11744 flag_reorder_blocks_and_partition when testing cold_text_section_used.
11745 If info_section_emitted, call size_of_aranges and if it indicates
11746 non-empty .debug_aranges, call output_aranges with the computed
11747 size. Stop using removed dw_fde_struct fields, use
11748 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
11749 for second.
11750
11751 PR debug/48203
11752 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
11753 create ENTRY_VALUE if incoming or address of incoming's MEM
11754 is a hard REG.
11755 * dwarf2out.c (mem_loc_descriptor): Don't emit
11756 DW_OP_GNU_entry_value of DW_OP_fbreg.
11757 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
11758 on ENTRY_VALUE is able to find the canonical parameter VALUE.
11759 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
11760 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
11761 ENTRY_VALUE_EXPs.
11762 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
11763 is a REG_P or MEM_P with REG_P address, compute hash directly
11764 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
11765 (preserve_only_constants): Don't clear VALUES forwaring
11766 ENTRY_VALUE to some other VALUE.
11767
11768 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
11769
11770 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
11771 instead of GEN_INT.
11772
11773 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
11774
11775 * cfgexpand.c (expand_gimple_cond): Always set the source location and
11776 block before expanding the statement.
11777 (expand_gimple_stmt_1): Likewise. Set them here...
11778 (expand_gimple_stmt): ...and not here. Tidy.
11779 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
11780 unknown.
11781
11782 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
11783
11784 * Makefile.in: New rule for cprop.o.
11785 * gcse.c: Move constant/copy propagation to cprop.c.
11786 (compute_local_properties): Only handle expression tables.
11787 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
11788 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
11789 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
11790 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
11791 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
11792 compute_cprop_data, find_used_regs, try_replace_reg,
11793 find_avail_set, cprop_jump, constprop_register, cprop_insn,
11794 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
11795 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
11796 find_bypass_set, reg_killed_on_edge, bypass_block,
11797 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
11798 execute_rtl_cprop, pass_rtl_cprop): Move to...
11799 * cprop.c: ...here. New file, constant/copy propagation for RTL
11800 moved from gcse.c to here with minor cleanups in duplicated code.
11801
11802 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
11803
11804 * config/i386/i386.c (flag_opts): Fix a typo in
11805 -mavx256-split-unaligned-store.
11806
11807 2011-03-28 Anatoly Sokolov <aesok@post.ru>
11808
11809 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
11810 LIBCALL_VALUE): Remove macros.
11811 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11812 TARGET_FUNCTION_VALUE_REGNO_P): Define.
11813 (h8300_function_value, h8300_libcall_value,
11814 h8300_function_value_regno_p): New functions.
11815
11816 2011-03-28 Anatoly Sokolov <aesok@post.ru>
11817
11818 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
11819
11820 2011-03-28 Jeff Law <law@redhat.com>
11821
11822 * tree-ssa-threadupdate.c (redirect_edges): Call
11823 create_edge_and_update_destination_phis as needed.
11824 (create_edge_and_update_destination_phis): Accept new BB argument.
11825 All callers updated.
11826 (thread_block): Do not update the profile when threading around
11827 intermediate blocks.
11828 (thread_single_edge): Likewise.
11829 (determine_bb_domination_status): If BB is not a successor of the
11830 loop header, return NONDOMINATING.
11831 (register_jump_thread): Note when we register a jump thread around
11832 an intermediate block.
11833 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
11834 (thread_across_edge): Use it.
11835
11836 2011-03-28 Tristan Gingold <gingold@adacore.com>
11837
11838 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
11839 when for_return is 2.
11840
11841 2011-03-28 Jeff Law <law@redhat.com>
11842
11843 * var-tracking.c (canonicalize_values_mark): Delete unused
11844 lhs assignment.
11845 (canonicalize_values_star, set_variable_part): Likewise.
11846 (clobber_variable_part, delete_variable_part): Likewise.
11847
11848 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
11849
11850 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
11851
11852 2011-03-28 Martin Jambor <mjambor@suse.cz>
11853
11854 * tree-inline.c (expand_call_inline): Do not check that destination
11855 node is analyzed.
11856 (optimize_inline_calls): Assert that destination node is analyzed.
11857 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
11858 not call tree_lowering_passes.
11859 * cgraph.h (cgraph_analyze_function): Declare.
11860 * cgraphunit.c (cgraph_analyze_function): Make public.
11861
11862 2011-03-28 Joseph Myers <joseph@codesourcery.com>
11863
11864 * config/sparc/sparc-opts.h: New.
11865 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
11866 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
11867 (sparc_option_override): Store processor_type enumeration rather
11868 than string in cpu_default. Remove name and enumeration from
11869 cpu_table. Directly default -mcpu then default -mtune from -mcpu
11870 without using sparc_select. Use target_flags_explicit instead of
11871 fpu_option_set.
11872 * config/sparc/sparc.h (enum processor_type): Move to
11873 sparc-opts.h.
11874 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
11875 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
11876 HeaderInclude entry.
11877 (mcpu=, mtune=): Use Var and Enum.
11878 (sparc_processor_type): New Enum and EnumValue entries.
11879
11880 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11881 Iain Sandoe <iains@gcc.gnu.org>
11882
11883 PR target/48245
11884 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
11885
11886 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
11887
11888 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
11889 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
11890 Insert new statements at it in lieu of STMT.
11891 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
11892 * tree-vect-stmts.c (vectorizable_store): Likewise.
11893 (vectorizable_load): Likewise.
11894
11895 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
11896
11897 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
11898 (divtf3): Ditto.
11899 (multf3): Ditto.
11900 (subtf3): Ditto.
11901
11902 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
11903
11904 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
11905 unaligned 256bit load/store.
11906 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
11907 (*avx_movdqu<avxmodesuffix>): Likewise.
11908
11909 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11910
11911 PR target/48288
11912 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
11913 * config/pa/pa.md (iordi3): Use new predicate in expander.
11914 (iorsi3): Likewise.
11915
11916 2011-03-27 Anatoly Sokolov <aesok@post.ru>
11917
11918 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
11919 FUNCTION_VALUE_REGNO_P): Remove macros.
11920 * config/mips/mips-protos.h (mips_function_value): Remove.
11921 * config/mips/mips.c (mips_function_value): Rename to...
11922 (mips_function_value_1): ... this. Make static. Handle receiving
11923 the function type in 'fn_decl_or_type' argument.
11924 (mips_function_value, mips_libcall_value,
11925 mips_function_value_regno_p): New function.
11926 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11927 TARGET_FUNCTION_VALUE_REGNO_P): Define.
11928
11929 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
11930
11931 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
11932 and -mavx256-split-unaligned-store.
11933 (ix86_option_override_internal): Split 32-byte AVX unaligned
11934 load/store by default.
11935 (ix86_avx256_split_vector_move_misalign): New.
11936 (ix86_expand_vector_move_misalign): Use it.
11937
11938 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
11939 -mavx256-split-unaligned-store.
11940
11941 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
11942 256bit load/store. Generate unaligned store on misaligned memory
11943 operand.
11944 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
11945 256bit load/store.
11946 (*avx_movdqu<avxmodesuffix>): Likewise.
11947
11948 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
11949 -mavx256-split-unaligned-store.
11950
11951 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
11952
11953 PR target/38598
11954 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
11955 Update commentary.
11956
11957 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
11958
11959 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
11960 opno arguments with an expand_operand. Use create_input_operand.
11961 (mips_prepare_builtin_target): Delete.
11962 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
11963 functions.
11964 (mips_expand_builtin_direct): Use create_output_operand and
11965 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
11966 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
11967 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
11968
11969 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
11970
11971 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
11972 function.
11973 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
11974
11975 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
11976
11977 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
11978 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
11979 basic blocks and call commit_edge_insertions directly.
11980 (fixup_abnormal_edges): Move from here to...
11981 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
11982 on the edges and return whether some have actually been inserted.
11983 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
11984 compensation code.
11985
11986 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
11987
11988 PR rtl-optimization/48144
11989 * sel-sched-ir.c (merge_history_vect): Factor out from ...
11990 (merge_expr_data): ... here.
11991 (av_set_intersect): Rename to av_set_code_motion_filter.
11992 Update all callers. Call merge_history_vect when an expression
11993 is found in both sets.
11994 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
11995
11996 2011-03-26 Alan Modra <amodra@gmail.com>
11997
11998 * config/rs6000/predicates.md (word_offset_memref_op): Handle
11999 cmodel medium addresses.
12000 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
12001 64-bit gpr loads and stores.
12002 (rs6000_secondary_reload_ppc64): New function.
12003 * config/rs6000/rs6000-protos.h: Declare it.
12004 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
12005
12006 2011-03-26 Alan Modra <amodra@gmail.com>
12007
12008 PR target/47487
12009 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
12010 GNU Go in traceback table.
12011
12012 2011-03-25 Richard Henderson <rth@redhat.com>
12013
12014 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
12015 if there are exactly 6 operands.
12016 (set_storage_via_setmem): Similarly.
12017
12018 2011-03-25 Kai Tietz <ktietz@redhat.com>
12019
12020 * collect2.c (write_c_file_stat): Handle backslash
12021 as right-hand directory separator.
12022 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
12023 checking just for slash.
12024 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
12025 instead of checking for trailing slash.
12026 * gcc.c (record_temp_file): Use filename_cmp instead
12027 of strcmp.
12028 (do_spec_1): Likewise.
12029 (replace_outfile_spec_function): Likewise.
12030 (is_directory): Use filename_ncmp instead of strncmp.
12031 (print_multilib_info): Likewise.
12032 * gcov.c (find_source): Use filename_cmp instead
12033 instead of strcmp.
12034 (make_gcov_file_name): Fix order of slash/backslash
12035 checks.
12036 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
12037 (add_standard_paths): Likewise.
12038 * mips-tfile.c (saber_stop): Handle backslash.
12039 * prefix.c (update_path): Use filename_ncmp instead of
12040 strncmp.
12041 * profile.c (output_location): Use filename_cmp instead
12042 of strcmp.
12043 * read-md.c (handle_toplevel_file): Handle backslash.
12044 * tlink.c (frob_extension): Likewise.
12045 * tree-cfg.c (same_line_p): Use filename_cmp instead of
12046 strcmp.
12047 * tree-dump.c (dequeue_and_dump): Handle backslash.
12048 * tree.c (get_file_function_name): Likewise.
12049 * gengtype.c (read_input_list): Likewise.
12050 (get_file_realbasename): Likewise.
12051 (get_output_file_with_visibility): Use filename_cmp
12052 instead of strcmp.
12053
12054 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
12055
12056 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
12057 case to VFPv1.
12058
12059 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
12060
12061 * fold-const.c (expr_location_or): New function.
12062 (fold_truth_not_expr): Call it.
12063
12064 2011-03-25 Jeff Law <law@redhat.com>
12065
12066 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
12067 va_end.
12068 * c-family/c-common.c (def_fn_type): Likewise.
12069 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
12070 * emit-rtl.c (gen_rtvec): Likewise.
12071 * lto/lto-lang.c (def_fn_type): Likewise.
12072
12073 2011-03-25 Richard Guenther <rguenther@suse.de>
12074
12075 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
12076 also generate copies.
12077 (fini_copy_prop): Handle constant values properly.
12078
12079 2011-03-25 Jakub Jelinek <jakub@redhat.com>
12080
12081 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
12082 mode size instead of bitsize with DWARF2_ADDR_SIZE.
12083 (hash_loc_operands, compare_loc_operands): Handle
12084 DW_OP_GNU_entry_value.
12085
12086 2011-03-25 Kai Tietz <ktietz@redhat.com>
12087
12088 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
12089 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
12090 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
12091 comment and use macro TARGET_64BIT_MS_ABI instead.
12092 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
12093 and change default behavior for 32-bit MS_ABI.
12094 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
12095 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
12096 32-bit, too.
12097 (ix86_cfun_abi): Likewise.
12098 (ix86_maybe_switch_abi): Adjust comment.
12099 (init_cumulative_args): Check for bit-ness in MS_ABI case.
12100 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
12101 instead of checking for SYSV_ABI.
12102 (ix86_nsaved_sseregs): Likewise.
12103 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
12104 to 16 bytes.
12105 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
12106 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
12107 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
12108 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
12109 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
12110
12111 2011-03-25 Richard Guenther <rguenther@suse.de>
12112
12113 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
12114 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
12115 (verify_gimple): Remove.
12116 * tree-cfg.c (verify_gimple_call): Merge verification
12117 from verify_stmts.
12118 (verify_gimple_phi): Merge verification from verify_stmts.
12119 (verify_gimple_label): New function.
12120 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
12121 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
12122 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
12123 (verify_stmts): Rename to verify_gimple_in_cfg.
12124 (verify_gimple_in_cfg): New function.
12125 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
12126 * tree-ssa.c (verify_ssa): Likewise.
12127 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
12128
12129 2011-03-25 Richard Guenther <rguenther@suse.de>
12130
12131 * passes.c (init_optimization_passes): Add FRE pass after
12132 early SRA.
12133
12134 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
12135 Andrew Stubbs <ams@codesourcery.com>
12136
12137 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
12138 for Cortex-A8.
12139 (arm_movdi_vfp_cortexa8): New pattern.
12140 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
12141 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
12142 instructions when tuning for Cortex-A8. Set attribute "arch".
12143 * config/arm/arm.md: Move include arm-tune.md up a bit.
12144 (define_attr "arch"): Add "onlya8" and "nota8" values.
12145 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
12146
12147 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
12148
12149 PR bootstrap/48282
12150 Revert:
12151 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
12152
12153 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
12154 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
12155 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
12156 * passes.c (init_optimization_passes): Move
12157 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
12158
12159 2011-03-25 Kai Tietz <ktietz@redhat.com>
12160
12161 * c-typeck.c (comptypes_internal): Replace target
12162 hook call of comp_type_attributes by version in tree.c file.
12163 * gimple.c (gimple_types_compatible_p_1): Likewise.
12164 * tree-ssa.c (useless_type_conversion_p): Likewise.
12165 * tree.c (build_type_attribute_qual_variant): Likewise.
12166 (attribute_value_equal): New static helper function.
12167 (comp_type_attributes): New function.
12168 (merge_attributes): Use attribute_value_equal for comparison.
12169 (attribute_list_contained): Likewise.
12170 * tree.h (comp_type_attributes): New prototype.
12171
12172 2011-03-25 Richard Guenther <rguenther@suse.de>
12173
12174 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
12175 of complex types at -O0.
12176 (verify_gimple_assign_binary): Likewise.
12177 (verify_gimple_assign_ternary): Likewise.
12178
12179 2011-03-24 Mark Wielaard <mjw@redhat.com>
12180
12181 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
12182 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
12183
12184 2011-03-24 Mark Wielaard <mjw@redhat.com>
12185
12186 PR debug/48041
12187 * dwarf2out.c (output_abbrev_section): Only write table when
12188 abbrev_die_table_in_use > 1.
12189
12190 2011-02-24 Richard Henderson <rth@redhat.com>
12191
12192 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
12193 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
12194 (alpha_expand_unaligned_load_words): Use extql.
12195 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
12196 (emit_insxl): Handle all modes for consistency.
12197
12198 2011-02-24 Richard Henderson <rth@redhat.com>
12199
12200 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
12201 (alpha_expand_unaligned_load): Likewise.
12202 (alpha_expand_unaligned_store): Likewise.
12203 (alpha_expand_unaligned_load_words): Likewise.
12204 (alpha_expand_unaligned_store_words): Likewise.
12205 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
12206 (alpha_split_lock_test_and_set_12): Likewise.
12207 (print_operand, alpha_fold_builtin_extxx): Likewise.
12208 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
12209 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
12210 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
12211 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
12212 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
12213 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
12214 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
12215 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
12216 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
12217 (extwl, extll, extql): Similarly.
12218 (inswh, inslh, insqh): Similarly.
12219 (mskbl, mskwl, mskll, mskql): Similarly.
12220 (mskwh, msklh, mskqh): Similarly.
12221
12222 2011-02-24 Richard Henderson <rth@redhat.com>
12223
12224 * config/alpha/alpha.md (attribute isa): Add er, ner.
12225 (attribute enabled): Handle them.
12226 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
12227
12228 2011-02-24 Richard Henderson <rth@redhat.com>
12229
12230 * config/alpha/alpha.md (attribute isa): Add vms.
12231 (attribute enabled): Handle it.
12232 (*movsf): Merge *movsf_{nofix,fix,nofp}.
12233 (*movdf): Merge *movdf_{nofix,fix,nofp}.
12234 (*movtf): Rename from *movtf_internal for consistency.
12235 (*movsi): Merge with *movsi_nt_vms.
12236 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
12237 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
12238 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
12239 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
12240
12241 2011-02-24 Richard Henderson <rth@redhat.com>
12242
12243 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
12244 (extendqisi2, extendhisi2): Likewise.
12245 (extendqidi2): Simplify BWX/non-BWX expansions.
12246 (extendhidi2): Similarly.
12247
12248 2011-02-24 Richard Henderson <rth@redhat.com>
12249
12250 * config/alpha/alpha.md (attribute isa): New.
12251 (attribute enabled): New.
12252 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
12253 (zero_extendqisi2, zero_extendqidi2): Similarly.
12254 (zero_extendhisi2, zero_extendhidi2): Similarly.
12255 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
12256
12257 2011-02-24 Richard Henderson <rth@redhat.com>
12258
12259 * config/alpha/predicates.md (input_operand): Revert last change;
12260 update comment to mention 32-bit VMS rather than Windows.
12261
12262 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
12263
12264 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
12265 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
12266 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
12267 * passes.c (init_optimization_passes): Move
12268 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
12269
12270 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
12271
12272 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
12273
12274 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
12275
12276 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
12277 correctly.
12278
12279 2011-03-24 Jakub Jelinek <jakub@redhat.com>
12280
12281 PR debug/48204
12282 * simplify-rtx.c (simplify_const_unary_operation): Call
12283 real_convert when changing mode class with FLOAT_EXTEND.
12284
12285 2011-03-24 Nick Clifton <nickc@redhat.com>
12286
12287 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
12288 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
12289 * config/rx/rx.c (rx_option_override): Set align_jumps,
12290 align_loops and align_labels if not set by the user.
12291 (rx_align_for_label): New function.
12292 (rx_max_skip_for_label): New function.
12293 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
12294 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
12295 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
12296 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
12297 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
12298
12299 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
12300
12301 PR rtl-optimization/48263
12302 * optabs.c (expand_binop_directly): Reinstate convert_modes code
12303 and original commutative_p handling. Use maybe_gen_insn.
12304
12305 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12306
12307 * reload.c (find_reloads_subreg_address): Add address_reloaded
12308 parameter and return true there if the full address has been
12309 reloaded.
12310 (find_reloads_toplev): Pass address_reloaded flag.
12311 (find_reloads_address_1): Don't use address_reloaded parameter.
12312
12313 2011-03-24 Jeff Law <law@redhat.com>
12314
12315 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
12316 unused variable "ann".
12317 (remove_unused_locals): Likewise.
12318
12319 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
12320 statement.
12321
12322 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
12323 after it is freed.
12324
12325 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12326
12327 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
12328 for invalid symbolic addresses.
12329 (s390_secondary_reload): Don't use s390_check_symref_alignment for
12330 larl operands.
12331
12332 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
12333
12334 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
12335 the argument in calls to fold_truth_not_expr.
12336
12337 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
12338
12339 * tree.c (record_node_allocation_statistics): New function.
12340 (make_node_stat, copy_node_stat, build_string): Call it.
12341 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
12342 (build1_stat, build_omp_clause): Likewise.
12343
12344 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
12345
12346 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
12347 last commit.
12348
12349 2011-03-24 Richard Guenther <rguenther@suse.de>
12350
12351 PR tree-optimization/48271
12352 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
12353 blocks that still exist.
12354
12355 2011-03-24 Richard Guenther <rguenther@suse.de>
12356
12357 PR tree-optimization/48270
12358 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
12359 not free datarefs before ddrs.
12360
12361 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
12362
12363 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
12364 from the address built for a reference with variable offset.
12365
12366 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
12367
12368 PR target/48237
12369 * config/i386/i386.md (*movdf_internal_rex64): Do not split
12370 alternatives that can be handled with movq or movabsq insn.
12371 (*movdf_internal): Disable for !TARGET_64BIT.
12372 (*movdf_internal_nointeger): Ditto.
12373 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
12374
12375 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
12376
12377 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
12378 (FUNCTION_ARG_ADVANCE): Likewise.
12379 * tm.texi.in: Change references to them to hook references.
12380 * tm.texi: Regenerate.
12381 * targhooks.c (default_function_arg): Eliminate check for target macro.
12382 (default_function_incoming_arg): Likewise.
12383 (default_function_arg_advance): Likewise.
12384 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
12385 (function_arg_advance): Likewise.
12386 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
12387
12388 2011-03-24 Richard Guenther <rguenther@suse.de>
12389
12390 PR middle-end/48269
12391 * tree-object-size.c (addr_object_size): Do not double-account
12392 for MEM_REF offsets.
12393
12394 2011-03-24 Diego Novillo <dnovillo@google.com>
12395
12396 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
12397 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
12398 (lto_input_data_block): Move from lto-opts.c. Make extern.
12399 Update all users.
12400 (lto_input_string): Rename from input_string. Make extern.
12401 Update all users.
12402 * lto-streamer-out.c (lto_output_string_with_length): Rename from
12403 output_string_with_length.
12404 Output 0 to indicate a non-NULL string. Update all callers to
12405 not emit 0.
12406 (lto_output_string): Rename from output_string. Make extern.
12407 Update all users.
12408 (lto_output_decl_state_streams): Make extern.
12409 (lto_output_decl_state_refs): Make extern.
12410 * lto-streamer.h (lto_input_string): Declare.
12411 (lto_input_data_block): Declare.
12412 (lto_output_string): Declare.
12413 (lto_output_string_with_length): Declare.
12414 (lto_output_decl_state_streams): Declare.
12415 (lto_output_decl_state_refs): Declare.
12416
12417 2011-03-24 Richard Guenther <rguenther@suse.de>
12418
12419 PR tree-optimization/46562
12420 * tree.c (build_invariant_address): New function.
12421 * tree.h (build_invariant_address): Declare.
12422 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
12423 a renamed function moved ...
12424 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
12425 Take valueization callback parameter.
12426 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
12427 * gimple-fold.h: New file.
12428 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
12429 (ccp_fold, fold_const_aggregate_ref,
12430 fold_ctor_reference, fold_nonarray_ctor_reference,
12431 fold_array_ctor_reference, fold_string_cst_ctor_reference,
12432 get_base_constructor): Move ...
12433 * gimple-fold.c: ... here.
12434 (gimple_fold_stmt_to_constant_1): New function
12435 split out from ccp_fold. Take a valueization callback parameter.
12436 Valueize all operands.
12437 (gimple_fold_stmt_to_constant): New wrapper function.
12438 (fold_const_aggregate_ref_1): New function split out from
12439 fold_const_aggregate_ref. Take a valueization callback parameter.
12440 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
12441 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
12442 invariant POINTER_PLUS_EXPRs to invariant form.
12443 (vn_valueize): New function.
12444 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
12445 * tree-vrp.c (vrp_valueize): New function.
12446 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
12447 to fold statements to constants.
12448 * tree-ssa-pre.c (eliminate): Properly guard propagation of
12449 function declarations.
12450 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
12451 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
12452
12453 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
12454
12455 * config/h8300/predicates.md (jump_address_operand): Fix register
12456 mode check.
12457
12458 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
12459
12460 * doc/invoke.texi (max-stores-to-sink): Document.
12461 * params.h (MAX_STORES_TO_SINK): Define.
12462 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
12463 if either vectorization or if-conversion is disabled.
12464 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
12465 tree-vect-data-refs.c vect_equal_offsets.
12466 (dr_equal_offsets_p): New function.
12467 (find_data_references_in_bb): Remove static.
12468 * tree-data-ref.h (find_data_references_in_bb): Declare.
12469 (dr_equal_offsets_p): Likewise.
12470 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
12471 (vect_drs_dependent_in_basic_block): Update calls to
12472 vect_equal_offsets.
12473 (vect_check_interleaving): Likewise.
12474 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
12475 (cond_if_else_store_replacement): Rename to...
12476 (cond_if_else_store_replacement_1): ... this. Change arguments and
12477 documentation.
12478 (cond_if_else_store_replacement): New function.
12479 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
12480 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
12481
12482 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
12483
12484 PR target/46934
12485 * config/arm/arm.md (casesi): Use the gen_int_mode() function
12486 to subtract lower bound instead of GEN_INT().
12487
12488 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
12489
12490 PR other/48179
12491 PR other/48221
12492 PR other/48234
12493 * doc/extend.texi (Alignment): Move section to match order in TOC.
12494 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
12495 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
12496
12497 2011-03-23 Jeff Law <law@redhat.com>
12498
12499 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
12500 before removing the edge.
12501
12502 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
12503 it may have been freed by redirect_branch_edge or
12504 redirect_edge_succ_nodup.
12505
12506 2011-03-23 Richard Guenther <rguenther@suse.de>
12507
12508 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
12509 (check_va_list_escapes): Likewise.
12510 (check_all_va_list_escapes): Likewise.
12511
12512 2011-03-23 Richard Guenther <rguenther@suse.de>
12513
12514 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
12515 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
12516 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
12517 (alias.o): Likewise.
12518 (ipa-type-escape.o): Remove.
12519 (ipa-struct-reorg.o): Likewise.
12520 (GTFILES): Remove ipa-struct-reorg.c.
12521 * alias.c: Do not include ipa-type-escape.h.
12522 * tree-ssa-alias.c: Likewise.
12523 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
12524 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
12525 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
12526 and ipa-type-escape passes.
12527 * tree-pass.h (pass_ipa_type_escape): Remove.
12528 (pass_ipa_struct_reorg): Likewise.
12529 * ipa-struct-reorg.h: Remove.
12530 * ipa-struct-reorg.c: Likewise.
12531 * ipa-type-escape.h: Likewise.
12532 * ipa-type-escape.c: Likewise.
12533 * doc/invoke.texi (-fipa-struct-reorg): Remove.
12534 (--param struct-reorg-cold-struct-ratio): Likewise.
12535 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
12536 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
12537 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
12538
12539 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12540
12541 * config/s390/2084.md: Enable all insn reservations also for z9_ec
12542 cpu attribute value.
12543 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
12544 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
12545 * config/s390/s390.c (processor_flags_table): New constant array.
12546 (s390_handle_arch_option): Remove.
12547 (s390_handle_option): Remove s390_handle_arch_option invocations
12548 and OPT_mwarn_framesize_ handling.
12549 (s390_option_override): Remove s390_handle_arch_option invocation.
12550 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
12551 warnings.
12552 * config/s390/s390.md (cpu attribute): Add z9_ec value.
12553 * config/s390/s390.opt (s390_tune, s390_arch)
12554 (march=): Replace s390_arch_option enum and values with
12555 processor_type. Set variable name to s390_arch. Set
12556 initialization value.
12557 (mtune=): Replace s390_arch_option with processor_type. Set
12558 variable name to s390_tune. Set initialization value.
12559
12560 2011-03-23 Julian Brown <julian@codesourcery.com>
12561
12562 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
12563 accesses which are not naturally aligned.
12564
12565 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
12566
12567 PR target/47553
12568 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
12569
12570 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
12571
12572 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
12573 parameter from "int" to "enum insn_code".
12574 (expand_operand_type): New enum.
12575 (expand_operand): New structure.
12576 (create_expand_operand): New function.
12577 (create_fixed_operand, create_output_operand): Likewise
12578 (create_input_operand, create_convert_operand_to): Likewise.
12579 (create_convert_operand_from, create_address_operand): Likewise.
12580 (create_integer_operand): Likewise.
12581 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
12582 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
12583 (expand_insn, expand_jump_insn): Likewise.
12584 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
12585 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
12586 (expand_movstr, expand_builtin___clear_cache): Likewise.
12587 (expand_builtin_lock_release): Likewise.
12588 * explow.c (allocate_dynamic_stack_space): Likewise.
12589 (probe_stack_range): Likewise. Allow check_stack to FAIL,
12590 and use the default handling in that case.
12591 * expmed.c (check_predicate_volatile_ok): Delete.
12592 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
12593 (emit_cstore): Likewise.
12594 * expr.c (emit_block_move_via_movmem): Likewise.
12595 (set_storage_via_setmem, expand_assignment): Likewise.
12596 (emit_storent_insn, try_casesi): Likewise.
12597 (emit_single_push_insn): Likewise. Allow the expansion to fail.
12598 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
12599 (expand_vec_shift_expr, expand_binop_directly): Likewise.
12600 (expand_twoval_unop, expand_twoval_binop): Likewise.
12601 (expand_unop_direct, emit_indirect_jump): Likewise.
12602 (emit_conditional_move, vector_compare_rtx): Likewise.
12603 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
12604 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
12605 (expand_sync_lock_test_and_set): Likewise.
12606 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
12607 (emit_unop_insn): Likewise.
12608 (expand_copysign_absneg): Change icode to an insn_code.
12609 (create_convert_operand_from_type): New function.
12610 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
12611 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
12612 (expand_insn, expand_jump_insn): Likewise.
12613 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
12614 than const_int_operand for operand 2.
12615
12616 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12617
12618 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
12619 if possible.
12620
12621 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
12622
12623 * emit-rtl.c (emit_pattern_before_noloc): New function.
12624 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
12625 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
12626 (emit_pattern_after_noloc): New function.
12627 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
12628 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
12629
12630 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
12631
12632 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
12633 (__ffsDI2): Likewise.
12634
12635 2011-03-22 Richard Henderson <rth@redhat.com>
12636
12637 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
12638 of !TARGET_ABI_OPEN_VMS.
12639 (alpha_trampoline_init, alpha_start_function): Likewise.
12640 (alpha_expand_epilogue, alpha_file_start): Likewise.
12641 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
12642 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
12643 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
12644 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
12645 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
12646
12647 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12648
12649 * config/s390/s390-opts.h: New.
12650 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
12651 s390_arch_flags, s390_warn_framesize, s390_stack_size,
12652 s390_stack_guard): Remove.
12653 (s390_handle_arch_option): Return void. Take enum
12654 s390_arch_option value instead of string and searching array.
12655 (s390_handle_option): Don't assert that global structures are in
12656 use. Access variables via opts pointer. Use error_at. Don't use
12657 sscanf for -mstack-guard= or -mstack-size=. Update call to
12658 s390_handle_arch_option.
12659 (s390_option_override): Update call to s390_handle_arch_option.
12660 (s390_emit_prologue): Use %d format for s390_stack_size in
12661 diagnostic. Use %wd for HOST_WIDE_INT.
12662 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
12663 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
12664 * config/s390/s390.opt (config/s390/s390-opts.h): New
12665 HeaderInclude entry.
12666 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
12667 s390_arch_flags, s390_warn_framesize): New Variable entries.
12668 (s390_arch_option): New Enum and EnumValue entries.
12669 (march=): Use Enum instead of Var.
12670 (mstack-guard=, mstack-size=): Use UInteger and Var.
12671 (mtune=): Use Enum.
12672
12673 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12674
12675 * config/score/score.c (score_handle_option): Don't assert that
12676 global structures are in use. Access target_flags via opts
12677 pointer. Use value of -march= option to determine target_flags
12678 settings.
12679 * config/score/score.opt (march=): Use Enum.
12680 (score_arch): New Enum and EnumValue entries.
12681
12682 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12683
12684 * config/mep/mep.c (option_mtiny_specified): Remove.
12685 (mep_option_override): Move register handling for -mivc2 from
12686 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
12687 instead of option_mtiny_specified.
12688 (mep_handle_option): Access target_flags via opts pointer. Don't
12689 assert that global structures are in use. Defer part of -mivc2
12690 handling and move it to mep_option_override.
12691 * config/mep/mep.opt (IVC2): New Mask entry.
12692 (mivc2): Use Var and Defer instead of Mask.
12693
12694 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12695
12696 * config/v850/v850-opts.h: New.
12697 * config/v850/v850.c (small_memory): Replace with
12698 small_memory_physical_max array. Make that array static const.
12699 (v850_handle_memory_option): Take integer value of argument. Take
12700 gcc_options pointer, option text and location. Return void.
12701 Update for changes to small memory structures.
12702 (v850_handle_option): Access target_flags via opts pointer. Don't
12703 assert that global structures are in use. Update calls to
12704 v850_handle_memory_option.
12705 (v850_encode_data_area): Update references to small memory settings.
12706 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
12707 (enum small_memory_type): Move to v850-opts.h.
12708 * config/v850/v850.opt (config/v850/v850-opts.h): New
12709 HeaderInclude entry.
12710 (small_memory_max): New Variable entry.
12711 (msda): Replace by pair of options msda= and msda-. Use UInteger.
12712 (mtda, mzda): Likewise.
12713
12714 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12715
12716 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
12717 pointer. Don't assert that global structures are in use.
12718
12719 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12720
12721 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
12722 via opts pointer. Don't assert that global structures are in use.
12723
12724 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12725
12726 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
12727 (munix=93): Use Var.
12728 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
12729 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
12730 * config/pa/pa-opts.h: New.
12731 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
12732 (pa_handle_option): Don't assert that global structures are in
12733 use. Access target_flags via opts pointer. Don't handle
12734 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
12735 OPT_munix_98 here.
12736 (pa_option_override): Handle deferred OPT_mfixed_range_.
12737
12738 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12739
12740 * config/mn10300/mn10300-opts.h: New.
12741 * config/mn10300/mn10300.c (mn10300_processor,
12742 mn10300_tune_string): Remove.
12743 (mn10300_handle_option): Don't assert that global structures are
12744 in use. Access mn10300_processor via opts pointer. Don't handle
12745 OPT_mtune_ here.
12746 * config/mn10300/mn10300.h (enum processor_type): Move to
12747 mn10300-opts.h.
12748 (mn10300_processor): Remove.
12749 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
12750 HeaderInclude entry.
12751 (mn10300_processor): New Variable entry.
12752 (mtune=): Use Var.
12753
12754 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12755
12756 * config/microblaze/microblaze.c: Don't include opts.h.
12757 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
12758 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
12759 (mno-clearbss): Use Var and Warn.
12760
12761 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12762
12763 * config/m32r/m32r-opts.h: New.
12764 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
12765 (m32r_handle_option): Don't assert that global structures are in
12766 use. Access target_flags and m32r_cache_flush_func via opts
12767 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
12768 OPT_mno_flush_trap here.
12769 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
12770 include of m32r-opts.h.
12771 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
12772 HeaderInclude entry.
12773 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
12774 (mmodel=): Use Enum and Var.
12775 (m32r_model): New Enum and EnumValue entries.
12776 (mno-flush-trap): Use Var.
12777 (msdata=): Use Enum and Var.
12778 (m32r_sdata): New Enum and EnumValue entries.
12779
12780 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12781
12782 * config/m32c/m32c.c: Don't include opts.h.
12783 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
12784 m32c_handle_option): Remove.
12785 (m32c_option_override): Check global_options_set.x_target_memregs
12786 instead of target_memregs_set.
12787 * config/m32c/m32c.h (target_memregs): Remove.
12788 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
12789 variable.
12790
12791 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12792
12793 * config/iq2000/iq2000-opts.h: New.
12794 * config/iq2000/iq2000.c: Don't include opts.h.
12795 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
12796 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
12797 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
12798 HeaderInclude entry.
12799 (iq2000_tune): New Variable entry.
12800 (march=): Add comment. Use Enum.
12801 (iq2000_arch): New Enum and EnumValue entries.
12802 (mcpu=): Use Enum and Var.
12803 (iq2000_tune): New Enum and EnumValue entries.
12804
12805 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12806
12807 * config/ia64/ia64-opts.h: New.
12808 * config/ia64/ia64.c (ia64_tune): Remove.
12809 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
12810 here. Use error_at.
12811 (ia64_option_override): Handle deferred OPT_mfixed_range_.
12812 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
12813 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
12814 HeaderInclude entry.
12815 (ia64_tune): New Variable entry.
12816 (mfixed-range=): Use Defer and Var.
12817 (mtune=): Use Enum and Var.
12818 (ia64_tune): New Enum and EnumValue entries.
12819
12820 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12821
12822 * config/frv/frv-opts.h: New.
12823 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
12824 frv-opts.h.
12825 (frv_cpu_type): Remove.
12826 * config/frv/frv.c: Don't include opts.h.
12827 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
12828 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
12829 (frv_cpu_type): New Variable entry.
12830 (frv_cpu): New Enum and EnumValue entries.
12831
12832 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12833
12834 * config/cris/cris.c (cris_handle_option): Access target_flags via
12835 opts pointer. Don't assert that global structures are in use.
12836 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
12837 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
12838
12839 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12840
12841 * config/bfin/bfin-opts.h: New.
12842 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
12843 bfin_si_revision, bfin_workarounds): Remove.
12844 (bfin_cpus): Make static const.
12845 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
12846 not bfin_lib_id_given.
12847 (bfin_handle_option): Don't set bfin_lib_id_given. Access
12848 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
12849 pointer. Use error_at. Don't assert that global structures are in use.
12850 * config/bfin/bfin.h: Include bfin-opts.h.
12851 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
12852 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
12853 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
12854 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
12855 entries.
12856
12857 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12858
12859 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
12860 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
12861 or -msoft-float here.
12862 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
12863 -msoft-float and -mhard-float.
12864 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
12865 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
12866 msoft-float.
12867 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
12868 -msoft-float.
12869 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
12870 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
12871 not mhard-float.
12872 (LIBGCC_SPEC): Don't handle -msoft-float.
12873 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
12874 -mhard-float.
12875 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
12876 msoft-float.
12877 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
12878 -mfloat-abi=*, not -msoft-float and -mhard-float.
12879 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
12880 -msoft-float.
12881 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
12882 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
12883 mhard-float and msoft-float.
12884 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
12885 mfloat-abi=soft in comments, not mhard-float and msoft-float.
12886 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
12887 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
12888 mhard-float.
12889 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
12890 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
12891 msoft-float.
12892 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
12893 not mhard-float.
12894 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
12895 not msoft-float.
12896
12897 2011-03-22 Richard Henderson <rth@redhat.com>
12898
12899 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
12900 TARGET_ABI_WINDOWS_NT.
12901 (alpha_output_function_end_prologue): Likewise.
12902 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
12903 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
12904 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
12905 (trap, *movsi_nt_vms): Likewise.
12906 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
12907 (*tablejump_osf_nt_internal): Remove.
12908 * config/alpha/predicates.md (input_operand): Only test Pmode.
12909
12910 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12911
12912 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
12913 via opts pointer. Use error_at. Don't assert that global
12914 structures are in use.
12915
12916 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12917
12918 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
12919 (ix86_handle_option): Access ix86_isa_flags and
12920 ix86_isa_flags_explicit via opts pointer. Don't assert that
12921 global structures are in use.
12922 (ix86_function_specific_save, ix86_function_specific_restore):
12923 Update ix86_isa_flags_explicit field name.
12924 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
12925 (ix86_isa_flags_explicit): Rename TargetSave entry to
12926 x_ix86_isa_flags_explicit.
12927
12928 2011-03-22 Richard Henderson <rth@redhat.com>
12929
12930 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
12931 (alpha_option_override, direct_return): Likewise.
12932 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
12933 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
12934 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
12935 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
12936 (alpha_expand_epilogue, alpha_end_function): Likewise.
12937 (alpha_init_libfuncs): Likewise.
12938 (struct machine_function): Remove unicosmk members.
12939 (print_operand) ['t']: Remove.
12940 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
12941 unicosmk_output_module_name, unicosmk_output_common,
12942 current_section_align, unicosmk_output_text_section_asm_op,
12943 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
12944 unicosmk_section_type_flags, unicosmk_unique_section,
12945 unicosmk_asm_named_section, unicosmk_insert_attributes,
12946 unicosmk_output_align, unicosmk_defer_case_vector,
12947 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
12948 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
12949 unicosmk_output_ssib, unicosmk_add_call_info_word,
12950 unicosmk_extern_head, unicosmk_output_default_externs,
12951 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
12952 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
12953 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
12954 * config/alpha/alpha-protos.h: Update.
12955 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
12956 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
12957 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
12958 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
12959 (*mulsi_se, mulvsi3): Likewise.
12960 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
12961 (*divmodsi_internal, call, call_value, realign): Likewise.
12962 (moddi3, umoddi3): Likewise; remove duplicate expander.
12963 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
12964 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
12965 (*movdi_nofix): Remove r/U alternative.
12966 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
12967 * config/alpha/constraints.md ("U"): Remove.
12968 * config/alpha/predicates.md (call_operand"): Don't test
12969 TARGET_ABI_UNICOSMK.
12970
12971 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12972
12973 * target.def (handle_option): Take gcc_options and
12974 cl_decoded_option pointers and location_t.
12975 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
12976 * doc/tm.texi: Regenerate.
12977 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
12978 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
12979 * lto-opts.c (lto_reissue_options): Generate option structure for
12980 targetm.handle_option call.
12981 * opts.c (target_handle_option): Update call to
12982 targetm.handle_option. Remove assertions about values now passed
12983 down to hook.
12984 * targhooks.c (default_target_handle_option): New.
12985 * targhooks.h (default_target_handle_option): Declare.
12986 * config/alpha/alpha.c: Include opts.h.
12987 (alpha_handle_option): Update to new hook interface.
12988 * config/arm/arm.c: Include opts.h.
12989 (arm_handle_option): Update to new hook interface.
12990 * config/arm/t-arm (arm.o): Update dependencies.
12991 * config/bfin/bfin.c: Include opts.h.
12992 (bfin_handle_option): Update to new hook interface.
12993 * config/cris/cris.c: Include opts.h.
12994 (cris_handle_option): Update to new hook interface.
12995 * config/frv/frv.c: Include opts.h.
12996 (frv_handle_option): Update to new hook interface.
12997 * config/i386/i386.c: Include opts.h.
12998 (ix86_handle_option): Update to new hook interface.
12999 (ix86_valid_target_attribute_inner_p): Generate option structure
13000 for call to ix86_handle_option.
13001 * config/i386/t-i386 (i386.o): Update dependencies.
13002 * config/ia64/ia64.c: Include opts.h.
13003 (ia64_handle_option): Update to new hook interface.
13004 * config/ia64/t-ia64 (ia64.o): Update dependencies.
13005 * config/iq2000/iq2000.c: Include opts.h.
13006 (iq2000_handle_option): Update to new hook interface.
13007 * config/m32c/m32c.c: Include opts.h.
13008 (m32c_handle_option): Update to new hook interface.
13009 * config/m32r/m32r.c: Include opts.h.
13010 (m32r_handle_option): Update to new hook interface.
13011 * config/m68k/m68k.c: Include opts.h.
13012 (m68k_handle_option): Update to new hook interface.
13013 * config/mep/mep.c: Include opts.h.
13014 (mep_handle_option): Update to new hook interface.
13015 * config/microblaze/microblaze.c: Include opts.h.
13016 (microblaze_handle_option): Update to new hook interface.
13017 * config/mips/mips.c: Include opts.h.
13018 (mips_handle_option): Update to new hook interface.
13019 * config/mn10300/mn10300.c: Include opts.h.
13020 (mn10300_handle_option): Update to new hook interface.
13021 * config/pa/pa.c: Include opts.h.
13022 (pa_handle_option): Update to new hook interface.
13023 * config/pdp11/pdp11.c: Include opts.h.
13024 (pdp11_handle_option): Update to new hook interface.
13025 * config/rs6000/rs6000.c: Include opts.h.
13026 (rs6000_handle_option): Update to new hook interface.
13027 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
13028 * config/rx/rx.c: Include opts.h.
13029 (rx_handle_option): Update to new hook interface.
13030 * config/s390/s390.c: Include opts.h.
13031 (s390_handle_option): Update to new hook interface.
13032 * config/score/score.c: Include opts.h.
13033 (score_handle_option): Update to new hook interface.
13034 * config/sh/sh.c: Include opts.h.
13035 (sh_handle_option): Update to new hook interface.
13036 * config/sparc/sparc.c: Include opts.h.
13037 (sparc_handle_option): Update to new hook interface.
13038 * config/v850/v850.c: Include opts.h.
13039 (v850_handle_option): Update to new hook interface.
13040
13041 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13042
13043 * gcc.c (driver_unknown_option_callback): Only permit and save
13044 unknown -Wno- options.
13045 (driver_wrong_lang_callback): Save options directly instead of via
13046 driver_unknown_option_callback.
13047
13048 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
13049
13050 * combine.c (simplify_set): Try harder to find the best CC mode when
13051 simplifying a nested COMPARE on the RHS.
13052
13053 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13054
13055 * config/alpha/gnu.h: Remove.
13056 * config/arc: Remove directory.
13057 * config/arm/netbsd.h: Remove.
13058 * config/arm/t-pe: Remove.
13059 * config/crx: Remove directory.
13060 * config/i386/netbsd.h: Remove.
13061 * config/m68hc11: Remove directory.
13062 * config/m68k/uclinux-oldabi.h: Remove.
13063 * config/mcore/mcore-pe.h: Remove.
13064 * config/mcore/t-mcore-pe: Remove.
13065 * config/netbsd-aout.h: Remove.
13066 * config/rs6000/gnu.h: Remove.
13067 * config/sh/sh-symbian.h: Remove.
13068 * config/sh/symbian-base.c: Remove.
13069 * config/sh/symbian-c.c: Remove.
13070 * config/sh/symbian-cxx.c: Remove.
13071 * config/sh/symbian-post.h: Remove.
13072 * config/sh/symbian-pre.h: Remove.
13073 * config/sh/t-symbian: Remove.
13074 * config/svr3.h: Remove.
13075 * config/vax/netbsd.h: Remove.
13076 * config.build: Don't handle i[34567]86-*-pe.
13077 * config.gcc: Remove handling of deprecations for most deprecated
13078 targets.
13079 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
13080 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
13081 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
13082 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
13083 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
13084 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
13085 Remove cases.
13086 * config.host: Don't handle i[34567]86-*-pe.
13087 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
13088 (ASM_SPEC32): Don't handle -mcall-gnu.
13089 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
13090 -mcall-gnu.
13091 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
13092 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
13093 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
13094 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
13095 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
13096 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
13097 conditional on SYMBIAN.
13098 * configure.ac: Don't handle powerpc*-*-gnu*.
13099 * configure: Regenerate.
13100 * doc/extend.texi (interrupt attribute): Don't mention CRX.
13101 * doc/install-old.texi (m6811, m6812): Don't mention.
13102 * doc/install.texi (arc-*-elf*): Don't document multilib option.
13103 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
13104 (m68k-uclinuxoldabi): Don't mention.
13105 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
13106 Remove.
13107 (-mcall-gnu): Remove.
13108 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
13109 families): Remove constraint documentation.
13110
13111 2011-03-22 Marius Strobl <marius@FreeBSD.org>
13112
13113 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
13114 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
13115 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
13116
13117 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
13118
13119 PR target/48226
13120 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
13121 vector when peeking at the next token for vector, don't expand the
13122 keywords.
13123
13124 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
13125
13126 * config/avr/avr-protos.h (expand_epilogue): Change prototype
13127 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
13128 * config/avr/avr.c (init_cumulative_args)
13129 (avr_function_arg_advance): Use it.
13130 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
13131 sibcall epilogues.
13132 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
13133 (avr_function_ok_for_sibcall): ...this new function.
13134 (avr_lookup_function_attribute1): New static Function.
13135 (avr_naked_function_p, interrupt_function_p)
13136 (signal_function_p, avr_OS_task_function_p)
13137 (avr_OS_main_function_p): Use it.
13138 * config/avr/avr.md ("sibcall", "sibcall_value")
13139 ("sibcall_epilogue"): New expander.
13140 ("*call_insn", "*call_value_insn"): New insn.
13141 ("call_insn", "call_value_insn"): Remove
13142 ("call", "call_value", "epilogue"): Change expander to handle
13143 sibling calls.
13144
13145 2011-03-21 Nick Clifton <nickc@redhat.com>
13146
13147 * doc/invoke.texi (Overall Options): Move closing brace to end of
13148 options list.
13149 (Optimization Options): Add missing @gol.
13150 (Directory Options): Likewise.
13151 (i386 and x86-64 Options): Likewise.
13152 (RS6000 and PowerPC Options): Likewise.
13153 (i386 and x86-64 Windows Options): Likewise.
13154 (V850 Options): Add text missing from descriptions.
13155
13156 2011-03-22 Richard Henderson <rth@redhat.com>
13157
13158 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
13159 (avr_incoming_return_addr_rtx): New.
13160 (emit_push_byte): New.
13161 (expand_prologue): Use it. Remove incorrect dwarf annotation for
13162 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
13163 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
13164 (emit_pop_byte): New.
13165 (expand_epilogue): Use it. Pop frame pointer by bytes.
13166 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
13167 (INCOMING_RETURN_ADDR_RTX): New.
13168 (INCOMING_FRAME_SP_OFFSET): New.
13169 (ARG_POINTER_CFA_OFFSET): New.
13170 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
13171 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
13172 (pophi): Remove.
13173
13174 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
13175
13176 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
13177
13178 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
13179 (FUNCTION_ARG_ADVANCE): Likewise.
13180 * tm.texi.in: Change references to them to hook references.
13181 * tm.texi: Regenerate.
13182 * targhooks.c (default_function_arg): Eliminate check for target
13183 macro.
13184 (default_function_incoming_arg): Likewise.
13185 (default_function_arg_advance): Likewise.
13186 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
13187 (function_arg_advance): Likewise.
13188 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
13189
13190 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
13191
13192 * tree.c (build_call_1): New function.
13193 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
13194
13195 2011-03-22 Richard Guenther <rguenther@suse.de>
13196
13197 PR tree-optimization/48228
13198 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
13199 for single-arg PHIs.
13200
13201 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
13202
13203 PR rtl-optimization/48143
13204 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
13205 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
13206 sse2_cvtps2pd): Likewise.
13207
13208 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13209
13210 * recog.c (canonicalize_change_group): Use validate_unshare_change.
13211
13212 2011-03-22 Richard Guenther <rguenther@suse.de>
13213
13214 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
13215 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
13216 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
13217 and REALIGN_LOAD_EXPR.
13218 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
13219 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
13220 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
13221 DOT_PROD_EXPR case ...
13222 (expand_expr_real_2): ... here.
13223 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
13224 and REALIGN_LOAD_EXPR.
13225 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
13226 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
13227 (vect_create_epilog_for_reduction): Likewise.
13228 (vectorizable_reduction): Likewise.
13229 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
13230 * tree-vect-stmts.c (vectorizable_load): Likewise.
13231
13232 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
13233
13234 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
13235
13236 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13237
13238 * config/s390/s390.c (s390_delegitimize_address): Fix offset
13239 handling for PLTOFF/GOTOFF.
13240
13241 2011-03-22 Nick Clifton <nickc@redhat.com>
13242
13243 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
13244 trailing backslash from the end of the macro definition.
13245
13246 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13247
13248 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
13249 and PLT unspecs.
13250
13251 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
13252
13253 * expr.h (prepare_operand): Move to...
13254 * optabs.h (prepare_operand): ...here and change the insn code
13255 parameter from "int" to "enum insn_code".
13256 (insn_operand_matches): Declare.
13257 * expr.c (init_expr_target): Use insn_operand_matches.
13258 (compress_float_constant): Likewise.
13259 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
13260 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
13261 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
13262 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
13263 Likewise.
13264 (gen_cond_trap): Likewise.
13265 (prepare_operand): Likewise. Change icode to an insn_code.
13266 (insn_operand_matches): New function.
13267 * reload.c (find_reloads_address_1): Use insn_operand_matches.
13268 * reload1.c (gen_reload): Likewise.
13269 * targhooks.c (default_secondary_reload): Likewise.
13270
13271 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
13272
13273 * config/alpha/alpha.md (unspec): New define_c_enum.
13274 (unspecv): Ditto.
13275
13276 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
13277
13278 PR debug/48214
13279 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
13280 between a call and its CALL_ARG_LOCATION note.
13281
13282 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
13283
13284 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
13285
13286 2011-03-21 Jakub Jelinek <jakub@redhat.com>
13287
13288 PR c/42544
13289 PR c/48197
13290 * c-common.c (shorten_compare): If primopN is first sign-extended
13291 to opN and then zero-extended to result type, set primopN to opN.
13292
13293 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
13294
13295 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
13296 for barrier handlers.
13297
13298 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
13299
13300 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
13301 UNSPEC constants to be in the unspec enumeration, and redefine
13302 all UNSPECV constants to be in the unspecv enumeration, so that
13303 dumps print which unspec/unspec_volatile this is.
13304 * config/rs6000/vector.md (UNSPEC_*): Ditto.
13305 * config/rs6000/paired.md (UNSPEC_*): Ditto.
13306 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
13307 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
13308 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
13309
13310 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
13311 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
13312 UNSPECV_LWSYNC, since these are used as unspec_volatile.
13313 * config/rs6000/sync.md (isync, lwsync): Ditto.
13314
13315 2011-03-21 Richard Guenther <rguenther@suse.de>
13316
13317 * params.def (lto-min-partition): Fix typo.
13318
13319 2011-03-21 Richard Guenther <rguenther@suse.de>
13320
13321 PR c/47939
13322 * c-decl.c (grokdeclarator): Drop to the main variant only
13323 for array types. Drop flag_gen_aux_info check.
13324
13325 2011-03-21 Richard Guenther <rguenther@suse.de>
13326
13327 PR translation/47911
13328 * params.def (lto-partitions): Fix typo.
13329 (lto-min-partition): Fix wording.
13330
13331 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
13332
13333 * config/rs6000/t-freebsd: Remove duplication from file.
13334
13335 2011-03-21 Richard Guenther <rguenther@suse.de>
13336
13337 PR middle-end/47661
13338 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
13339
13340 2011-03-21 Richard Guenther <rguenther@suse.de>
13341
13342 PR lto/48210
13343 * params.def (lto-partitions): Require at least 1 partition.
13344
13345 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13346
13347 * gthr-solaris.h: Remove.
13348 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
13349 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
13350 (LIB_SPEC): Likewise.
13351 * config/sol2.opt (threads): Remove.
13352 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
13353 (sparc*-*-solaris2*): Likewise.
13354 * configure.ac (enable_threads): Enable solaris support.
13355 * configure: Regenerate.
13356 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
13357 * doc/install.texi (Configuration, --enable-threads=lib): Remove
13358 solaris.
13359
13360 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13361
13362 * config.gcc: Obsolete *-*-solaris2.8*.
13363 * doc/install.texi (Specific, *-*-solaris2*): Document it.
13364
13365 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13366
13367 PR bootstrap/48135
13368 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
13369 reference. Solaris 8 perl works.
13370
13371 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13372
13373 PR bootstrap/48135
13374 * doc/install.texi (Prerequisites): Move jar etc. up.
13375 Explain support library version requirements.
13376
13377 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13378
13379 PR bootstrap/48135
13380 * doc/install.texi (Prerequisites): Move Perl to build
13381 requirements. Always necessary on Solaris 2 with Sun ld.
13382
13383 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13384
13385 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
13386 binutils 2.21.
13387 (Specific, i?86-*-solaris2.[89]): Likewise.
13388 (Specific, i?86-*-solaris2.10): Likewise.
13389 (Specific, mips-sgi-irix6): Likewise.
13390 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
13391 Update for binutils 2.21.
13392
13393 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13394
13395 * configure.ac (gcc_cv_lto_plugin): Fix typo.
13396 Allow -fuse-linker-plugin for non-default plugin linker.
13397 * configure: Regenerate.
13398
13399 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
13400
13401 PR bootstrap/48167
13402 * gengtype.c (files_rules): Added rule for cp/parser.h.
13403
13404 2011-03-21 Jakub Jelinek <jakub@redhat.com>
13405
13406 PR target/48213
13407 * config/s390/s390.c (s390_delegitimize_address): Don't call
13408 lowpart_subreg if orig_x has BLKmode.
13409
13410 2011-03-21 Kai Tietz <ktietz@redhat.com>
13411
13412 PR target/12171
13413 * doc/plugins.texi: Adjust documentation for plugin register_callback.
13414 * tree.h (attribute_spec): Add new member affects_type_identity.
13415 * attribs.c (empty_attribute_table): Adjust attribute_spec
13416 initializers.
13417 * config/alpha/alpha.c: Likewise.
13418 * config/arc/arc.c: Likewise.
13419 * config/arm/arm.c: Likewise.
13420 * config/avr/avr.c: Likewise.
13421 * config/bfin/bfin.c: Likewise.
13422 * config/crx/crx.c: Likewise.
13423 * config/darwin.h: Likewise.
13424 * config/h8300/h8300.c: Likewise.
13425 * config/i386/cygming.h: Likewise.
13426 * config/i386/i386.c: Likewise.
13427 * config/ia64/ia64.c: Likewise.
13428 * config/m32c/m32c.c: Likewise.
13429 * config/m32r/m32r.c: Likewise.
13430 * config/m68hc11/m68hc11.c: Likewise.
13431 * config/m68k/m68k.c: Likewise.
13432 * config/mcore/mcore.c: Likewise.
13433 * config/mep/mep.c: Likewise.
13434 * config/microblaze/microblaze.c: Likewise.
13435 * config/mips/mips.c: Likewise.
13436 * config/rs6000/rs6000.c: Likewise.
13437 * config/rx/rx.c: Likewise.
13438 * config/sh/sh.c: Likewise.
13439 * config/sol2.h: Likewise.
13440 * config/sparc/sparc.c: Likewise.
13441 * config/spu/spu.c: Likewise.
13442 * config/stormy16/stormy16.c: Likewise.
13443 * config/v850/v850.c: Likewise.
13444
13445 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
13446
13447 * simplify-rtx.c (simplify_binary_operation_1): Handle
13448 (xor (and A B) C) case when B and C are both constants.
13449
13450 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
13451
13452 * tree-dfa.c (add_referenced_var): Fix typo in comment.
13453
13454 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
13455
13456 PR bootstrap/48168
13457 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
13458
13459 2011-03-20 Jakub Jelinek <jakub@redhat.com>
13460
13461 PR rtl-optimization/48156
13462 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
13463 assume df and df_lr are not NULL.
13464
13465 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13466
13467 PR debug/48023
13468 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
13469 between a call and its CALL_ARG_LOCATION note.
13470
13471 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
13472
13473 PR debug/48178
13474 * config/sh/sh.c (find_barrier): Don't emit a constant pool
13475 between a call and its corresponding CALL_ARG_LOCATION note.
13476
13477 2011-03-19 Anatoly Sokolov <aesok@post.ru>
13478
13479 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
13480 instead of loop. Use HARD_REGISTER_NUM_P predicate.
13481 * haifa-sched.c (setup_ref_regs): Ditto.
13482 * caller-save.c (add_used_regs_1): Ditto.
13483 * dse.c (look_for_hardregs): Ditto.
13484 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
13485 * sched-rgn.c (check_live_1): Ditto.
13486
13487 2011-03-18 Joseph Myers <joseph@codesourcery.com>
13488
13489 * c-decl.c (diagnose_mismatched_decls): Give an error for
13490 redefining a typedef with variably modified type.
13491
13492 2011-03-18 Joseph Myers <joseph@codesourcery.com>
13493
13494 * c-decl.c (grokfield): Don't allow typedefs for structures or
13495 unions with no tag by default.
13496 * doc/extend.texi (Unnamed Fields): Update.
13497
13498 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
13499
13500 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
13501 Rewrite using indirect functions.
13502 (lwp_slwpcb): Ditto.
13503 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
13504 (avx_vinsertf128<mode>): Ditto.
13505
13506 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13507
13508 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
13509 unspecs.
13510
13511 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13512
13513 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
13514 splitting between a call and its corresponding CALL_ARG_LOCATION note.
13515
13516 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
13517
13518 PR rtl-optimization/48170
13519 * gcse.c (hoist_code): Remove bogus asserts.
13520
13521 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
13522
13523 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
13524 computation for prologue/epilogue.
13525
13526 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13527
13528 * Makefile.in (check-consistency): Remove.
13529
13530 2011-03-18 Jakub Jelinek <jakub@redhat.com>
13531
13532 PR debug/48176
13533 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
13534 arange_table_in_use is 0, but either text_section_used or
13535 cold_text_section_used is true. Don't call it if
13536 !info_section_emitted.
13537
13538 2011-03-18 Anatoly Sokolov <aesok@post.ru>
13539
13540 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
13541 FUNCTION_VALUE_REGNO_P): Remove.
13542 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
13543 Remove.
13544 * config/avr/avr.c (avr_ret_register): Make static inline.
13545 (avr_function_value_regno_p): New function.
13546 (avr_libcall_value): Make static. Add 'func' argument.
13547 (avr_function_value): Make static. Rename 'func' argument to
13548 'fn_decl_or_type', forward it to avr_libcall_value. Call
13549 avr_ret_register function instead of RET_REGISTER macro.
13550 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
13551
13552 2011-03-18 Jason Merrill <jason@redhat.com>
13553
13554 PR c++/23372
13555 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
13556
13557 2011-03-18 Richard Guenther <rguenther@suse.de>
13558
13559 * doc/install.texi (--enable-gold): Remove.
13560 (--with-plugin-ld): Document.
13561 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
13562
13563 2011-03-18 Andrew Pinski <pinskia@gmail.com>
13564
13565 PR middle-end/47790
13566 * expr.c (optimize_bitfield_assignment_op): Revamp to work
13567 again after expansion changes.
13568
13569 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
13570
13571 * combine.c (try_combine): Do simplification only call of
13572 subst() on i2 even when i1 is present. Update comments.
13573
13574 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
13575
13576 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
13577 and UNSPEC_PCREL_SYMOFF.
13578
13579 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13580
13581 * config/s390/s390.md: Use define_c_enum for the unspec constant
13582 definitions.
13583
13584 2011-03-18 Richard Henderson <rth@redhat.com>
13585 Jakub Jelinek <jakub@redhat.com>
13586
13587 PR bootstrap/48161
13588 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
13589 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
13590
13591 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
13592
13593 PR middle-end/47725
13594 * combine.c (cant_combine_insn_p): Don't check zero/sign
13595 extended hard registers.
13596
13597 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
13598
13599 PR middle-end/47725
13600 * combine.c (cant_combine_insn_p): Check zero/sign extended
13601 hard registers.
13602
13603 2011-03-17 Anatoly Sokolov <aesok@post.ru>
13604
13605 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13606 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
13607 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
13608 Change return type to bool.
13609 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13610
13611 2011-03-17 Jakub Jelinek <jakub@redhat.com>
13612
13613 PR debug/48163
13614 * var-tracking.c (prepare_call_arguments): If CALL target
13615 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
13616 pc instead of looking it up using cselib_lookup and use
13617 Pmode for it if x has VOIDmode.
13618 * dwarf2out.c (gen_subprogram_die): If also both first and
13619 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
13620
13621 PR debug/48163
13622 * function.c (assign_parms): For data.passed_pointer parms
13623 use MEM of data.entry_parm instead of data.entry_parm itself
13624 as DECL_INCOMING_RTL.
13625 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
13626 also when passed and declared mode is the same, DECL_RTL
13627 is a MEM with pseudo as address and DECL_INCOMING_RTL is
13628 a MEM too.
13629
13630 2011-03-16 Jeff Law <law@redhat.com>
13631
13632 PR rtl-optimization/37273
13633 * ira-costs.c (scan_one_insn): Detect constants living in memory and
13634 handle them like argument loads from stack slots. Do not double
13635 count memory for memory constants and argument loads from stack slots.
13636
13637 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
13638
13639 PR debug/48160
13640 * var-tracking.c (prepare_call_arguments): Check SUBREG.
13641
13642 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
13643
13644 PR target/48171
13645 * config/i386/i386.opt: Add Save to -mavx and -mfma.
13646
13647 2011-03-17 Jakub Jelinek <jakub@redhat.com>
13648
13649 PR bootstrap/48153
13650 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
13651 if dwarf_strict.
13652 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
13653 Clear call_arg_locations and call_arg_loc_last always.
13654
13655 PR middle-end/48152
13656 * var-tracking.c (prepare_call_arguments): If argument needs to be
13657 passed by reference, adjust argtype and mode.
13658
13659 2011-03-17 Richard Guenther <rguenther@suse.de>
13660
13661 PR middle-end/48134
13662 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
13663 a value make sure to fold the statement.
13664
13665 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
13666
13667 PR target/43872
13668 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
13669 return condition with !cfun->calls_alloca.
13670
13671 2011-03-17 Richard Guenther <rguenther@suse.de>
13672
13673 PR bootstrap/48148
13674 * lto-cgraph.c (input_overwrite_node): Clear the abstract
13675 origin for decls in other ltrans units.
13676 (input_varpool_node): Likewise.
13677
13678 2011-03-17 Richard Guenther <rguenther@suse.de>
13679
13680 PR middle-end/48165
13681 * tree-object-size.c (compute_object_offset): Properly return
13682 the offset operand of MEM_REFs as sizetype.
13683
13684 2011-03-17 Jakub Jelinek <jakub@redhat.com>
13685
13686 PR rtl-optimization/48141
13687 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
13688 * dse.c: Include params.h.
13689 (active_local_stores_len): New variable.
13690 (add_wild_read, dse_step1): Clear it when setting active_local_stores
13691 to NULL.
13692 (record_store, check_mem_read_rtx): Decrease it when removing
13693 from the chain.
13694 (scan_insn): Likewise. Increase it when adding to chain, if it
13695 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
13696 set active_local_stores to NULL before the addition.
13697 * Makefile.in (dse.o): Depend on $(PARAMS_H).
13698
13699 PR rtl-optimization/48141
13700 * dse.c (record_store): If no positions are needed in an insn
13701 that cannot be deleted, at least unchain it from active_local_stores.
13702
13703 2011-03-16 Dodji Seketeli <dodji@redhat.com>
13704
13705 PR debug/47510
13706 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
13707 (lookup_type_die_strip_naming_typedef): ... here.
13708 (get_context_die): Use it.
13709 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
13710 the anonymous struct named by the naming typedef.
13711
13712 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
13713
13714 PR target/48154
13715 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
13716 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
13717
13718 2011-03-16 Jeff Law <law@redhat.com>
13719
13720 * tree-vrp.c (identify_jump_threads): Slightly simplify type
13721 check for operands of conditional. Allow type to be a pointer.
13722
13723 2011-03-16 Richard Guenther <rguenther@suse.de>
13724
13725 PR tree-optimization/48149
13726 * fold-const.c (fold_binary_loc): Fold
13727 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
13728
13729 2011-03-16 Richard Guenther <rguenther@suse.de>
13730
13731 PR tree-optimization/26134
13732 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
13733 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
13734 (non_rewritable_mem_ref_base): Handle complex type component
13735 accesses, constrain offsets for vector and complex extracts
13736 more properly.
13737
13738 2011-03-16 Richard Guenther <rguenther@suse.de>
13739
13740 PR tree-optimization/48146
13741 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
13742 operands avoiding the need for renaming.
13743
13744 2011-03-16 Richard Guenther <rguenther@suse.de>
13745
13746 * gimple-fold.c (maybe_fold_reference): Open-code relevant
13747 constant folding. Move MEM_REF canonicalization first.
13748 Rely on fold_const_aggregate_ref for initializer folding.
13749 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
13750
13751 2011-03-16 Jakub Jelinek <jakub@redhat.com>
13752
13753 PR middle-end/48136
13754 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
13755 arg0/arg1 or their arguments are always fold converted to matching
13756 types.
13757
13758 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
13759 to nargs.
13760
13761 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13762
13763 PR lto/46944
13764 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
13765 Handle in-tree gold.
13766 (ld_vers): Extract binutils version for gold.
13767 (gcc_cv_ld_hidden): Handle gold here.
13768 (gcc_cv_lto_plugin): Determine level of linker plugin support.
13769 * configure: Regenerate.
13770 * config.in: Regenerate.
13771 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
13772 -fuse-linker-plugin otherwise.
13773 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
13774 (LINK_COMMAND_SPEC): Use it.
13775 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
13776
13777 2011-03-16 Jakub Jelinek <jakub@redhat.com>
13778
13779 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
13780 * calls.c: Remove debug.h include.
13781 (emit_call_1): Don't call virtual_call_token debug hook.
13782 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
13783 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
13784 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
13785 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
13786 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
13787 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
13788 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
13789 dwarf2out_virtual_call): Remove.
13790 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
13791 copy_call_info and virtual_call hooks.
13792 (dwarf2out_init): Don't initialize vcall_insn_table,
13793 debug_dcall_section and debug_vcall_section.
13794 (prune_unused_types): Don't mark nodes from dcall_table.
13795 (dwarf2out_finish): Don't output dcall or vcall tables.
13796 * final.c (final_scan_insn): Don't call direct_call or
13797 virtual_call debug hooks.
13798 * debug.h (struct gcc_debug_hooks): Remove direct_call,
13799 virtual_call_token, copy_call_info and virtual_call hooks.
13800 (debug_nothing_uid): Remove prototype.
13801 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
13802 copy_call_info and virtual_call hooks.
13803 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
13804 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
13805 * debug.c (do_nothing_debug_hooks): Likewise.
13806 (debug_nothing_uid): Remove.
13807 * doc/invoke.texi (-fenable-icf-debug): Remove.
13808 * common.opt (-fenable-icf-debug): Likewise.
13809
13810 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
13811 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
13812 call's MEM. Handle functions returning aggregate through a hidden
13813 first pointer. For virtual calls add clobbered pc to call arguments
13814 chain.
13815 * dwarf2out.c (gen_subprogram_die): Emit
13816 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
13817 can't be emitted.
13818
13819 PR debug/45882
13820 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
13821 * rtl.h (ENTRY_VALUE_EXP): Define.
13822 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
13823 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
13824 * print-rtl.c (print_rtx): Likewise.
13825 * gengtype.c (adjust_field_rtx_def): Likewise.
13826 * var-tracking.c (vt_add_function_parameter): Adjust
13827 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
13828 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
13829 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
13830 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
13831 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
13832
13833 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
13834 Call var_location debug hook even on CALL_INSNs.
13835 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
13836 * rtl.def (ENTRY_VALUE): New.
13837 * dwarf2out.c: Include cfglayout.h.
13838 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
13839 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
13840 (struct call_arg_loc_node): New type.
13841 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
13842 tail_call_site_count): New variables.
13843 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
13844 DW_TAG_GNU_call_site_parameter.
13845 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
13846 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
13847 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
13848 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
13849 and DW_AT_GNU_all_source_call_sites.
13850 (mem_loc_descriptor): Handle ENTRY_VALUE.
13851 (add_src_coords_attributes): Don't add enything if
13852 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
13853 (dwarf2out_abstract_function): Save and clear call_arg_location,
13854 call_site_count and tail_call_site_count around dwarf2out_decl call.
13855 (gen_call_site_die): New function.
13856 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
13857 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
13858 (dwarf2out_function_decl): Clear call_arg_locations,
13859 call_arg_loc_last, set call_site_count and tail_call_site_count
13860 to -1 and free block_map.
13861 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
13862 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
13863 followed by any real instructions.
13864 (dwarf2out_begin_function): Set call_site_count and
13865 tail_call_site_count to 0.
13866 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
13867 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
13868 attempt to force a DIE for it and worst case remove the attribute.
13869 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
13870 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
13871 the decl itself.
13872 * var-tracking.c: Include tm_p.h.
13873 (vt_stack_adjustments): For calls call note_register_arguments.
13874 (argument_reg_set): New variable.
13875 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
13876 ensure the VALUE is resolved.
13877 (call_arguments): New variable.
13878 (prepare_call_arguments): New function.
13879 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
13880 (struct expand_loc_callback_data): Add ignore_cur_loc field.
13881 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
13882 always use the best expression.
13883 (vt_expand_loc): Add ignore_cur_loc argument.
13884 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
13885 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
13886 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
13887 note for all calls.
13888 (vt_add_function_parameter): Use cselib_lookup_from_insn.
13889 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
13890 argument. Don't call cselib_preserve_only_values and
13891 cselib_reset_table.
13892 (note_register_arguments): New function.
13893 (vt_initialize): Compute argument_reg_set. Call
13894 vt_add_function_parameters before processing basic blocks instead of
13895 afterwards. For calls call prepare_call_arguments before calling
13896 cselib_process_insn.
13897 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
13898 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
13899 (var-tracking.o): Depend on $(TM_P_H).
13900 * cfglayout.h (insn_scope): New prototype.
13901 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
13902 * cfglayout.c (insn_scope): No longer static.
13903 * insn-notes.def (CALL_ARG_LOCATION): New.
13904 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
13905 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
13906 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
13907 nothing for DECL_EXTERNAL BLOCK_VARS.
13908
13909 2011-03-16 Alan Modra <amodra@gmail.com>
13910
13911 PR target/45844
13912 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
13913 create invalid offset address for vsx splat insn.
13914 * config/rs6000/predicates.md (splat_input_operand): New.
13915 * config/rs6000/vsx.md (vsx_splat_*): Use it.
13916
13917 2011-03-15 Xinliang David Li <davidxl@google.com>
13918
13919 PR c/47837
13920 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
13921 (normalize_preds): New function.
13922 (is_use_properly_guarded): Normalize def predicates.
13923
13924 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13925
13926 PR target/46788
13927 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
13928 in the output template.
13929
13930 2011-03-15 Richard Guenther <rguenther@suse.de>
13931
13932 PR middle-end/47650
13933 * tree-pretty-print.c (dump_function_declaration): Properly
13934 dump unprototyped and varargs function types.
13935
13936 2011-03-15 Richard Guenther <rguenther@suse.de>
13937
13938 PR tree-optimization/13954
13939 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
13940 and friends.
13941
13942 2011-03-15 Richard Guenther <rguenther@suse.de>
13943
13944 PR tree-optimization/48037
13945 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
13946 selects into BIT_FIELD_REFs.
13947 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
13948 vector select.
13949
13950 2011-03-15 Jakub Jelinek <jakub@redhat.com>
13951
13952 PR tree-optimization/48129
13953 * builtins.c (fold_builtin_snprintf): Convert to type of
13954 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
13955 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
13956
13957 2011-03-15 Richard Guenther <rguenther@suse.de>
13958
13959 PR tree-optimization/41490
13960 * tree-ssa-dce.c (propagate_necessity): Handle returns without
13961 value but with VUSE.
13962 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
13963 return statements.
13964 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
13965 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
13966 * tree-tailcall.c (find_tail_calls): Ignore returns.
13967
13968 2011-03-15 Richard Guenther <rguenther@suse.de>
13969
13970 PR middle-end/48031
13971 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
13972 or variable-indexed array accesses when in gimple form.
13973
13974 2011-03-15 Richard Guenther <rguenther@suse.de>
13975
13976 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
13977
13978 2011-03-15 Alan Modra <amodra@gmail.com>
13979
13980 PR target/48032
13981 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
13982 presume symbol_refs without a symbol_ref_decl are suitably
13983 aligned, nor other trees we may see here. Handle anchor symbols.
13984 (legitimate_constant_pool_address_p): Comment. Add mode param.
13985 Check cmodel=medium addresses. Adjust all calls.
13986 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
13987 creating cmodel=medium optimized access to locals.
13988 * config/rs6000/constraints.md (R): Pass QImode to
13989 legitimate_constant_pool_address_p.
13990 * config/rs6000/predicates.md (input_operand): Pass mode to
13991 legitimate_constant_pool_address_p.
13992 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
13993 Update prototype.
13994
13995 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
13996
13997 PR target/48053
13998 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
13999 64-bit constants being loaded into registers other than GPRs such
14000 as loading 0 into a VSX register.
14001
14002 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14003
14004 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
14005
14006 2011-03-14 Jakub Jelinek <jakub@redhat.com>
14007
14008 PR middle-end/47917
14009 * builtins.c (fold_builtin_snprintf): New function.
14010 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
14011 (fold_builtin_4): Likewise.
14012
14013 PR middle-end/38878
14014 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
14015 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
14016 and C - X == X also strip nops from +/-/p+ operand.
14017 When optimizing -X == C, fold C to arg0's type.
14018
14019 PR debug/47946
14020 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
14021 emit it as add_AT_int instead of add_AT_unsigned.
14022
14023 2011-03-14 Tom Tromey <tromey@redhat.com>
14024
14025 * unwind-dw2.c: Include sys/sdt.h if it exists.
14026 (_Unwind_DebugHook): Use STAP_PROBE2.
14027 * config.in, configure: Rebuild.
14028 * configure.ac: Check for sys/sdt.h.
14029
14030 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
14031
14032 * config/i386/i386.md (ROUND_FLOOR): New constant.
14033 (ROUND_CEIL): Ditto.
14034 (ROUND_TRUNC): Ditto.
14035 (ROUND_MXCSR): Ditto.
14036 (ROUND_NO_EXC): Ditto.
14037 (rint<mode>2): Use new defines instead of numerical constants.
14038 (floor<mode>2): Ditto.
14039 (ceil<mode>2): Ditto.
14040 (btrunc<mode>2): Ditto.
14041 * config/i386/i386-builtin-types.def: Define ROUND function type
14042 aliases.
14043 * config/i386/i386.c (enum ix86_builtins): Add
14044 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
14045 (struct builtin_description): Add
14046 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
14047 (ix86_expand_sse_round): New static function.
14048 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
14049 function types.
14050 (ix86_builtin_vectorized_function): Handle
14051 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
14052
14053 2011-03-14 Tom Tromey <tromey@redhat.com>
14054
14055 * c-parser.c (c_parser_asm_string_literal): Clear
14056 warn_overlength_strings.
14057
14058 2011-03-14 Tom Tromey <tromey@redhat.com>
14059
14060 * c-parser.c (disable_extension_diagnostics): Save
14061 warn_overlength_strings.
14062 (restore_extension_diagnostics): Restore warn_overlength_strings.
14063
14064 2011-03-14 Jakub Jelinek <jakub@redhat.com>
14065
14066 * BASE-VER: Change to 4.7.0.
14067
14068 2011-03-14 Richard Guenther <rguenther@suse.de>
14069
14070 PR middle-end/48098
14071 * tree.c (build_vector_from_val): Adjust assert to requirements
14072 and reality.
14073
14074 2011-03-14 Jakub Jelinek <jakub@redhat.com>
14075
14076 PR bootstrap/48102
14077 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
14078
14079 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
14080
14081 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
14082 terms of target_flags_explicit. Adjust copyright year.
14083
14084 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
14085 * config/rs6000/t-freebsd: New file. Add override for
14086 LIB2FUNCS_EXTRA.
14087
14088 2011-03-13 Chris Demetriou <cgd@google.com>
14089
14090 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
14091 (-fno-diagnostics-show-option): this, to reflect current default.
14092 (-Werror=): Update text about -fno-diagnostics-show-option.
14093
14094 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
14095
14096 PR target/48053
14097 * config/rs6000/predicates.md (easy_vector_constant_add_self,
14098 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
14099 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
14100 mode is not V2DImode or V2DFmode.
14101 (vspltis_constant): Do not handle V2DImode and V2DFmode.
14102 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
14103 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
14104 registers to 0.
14105 (movdi_internal64): Likewise.
14106
14107 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
14108
14109 PR tree-optimization/47127
14110 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
14111 parameter.
14112 (set_cloog_options): Same.
14113 (scop_to_clast): Same.
14114 (print_clast_stmt): Do not call cloog_state_malloc and
14115 cloog_state_free.
14116 (print_generated_program): Same.
14117 (gloog): Same.
14118 * graphite-clast-to-gimple.h (cloog_state): Declared.
14119 (scop_to_clast): Adjust declaration.
14120 * graphite.c (cloog_state): Defined here.
14121 (graphite_initialize): Call cloog_state_malloc.
14122 (graphite_finalize): Call cloog_state_free.
14123
14124 2011-03-11 Jason Merrill <jason@redhat.com>
14125
14126 * attribs.c (lookup_attribute_spec): Take const_tree.
14127 * tree.h: Adjust.
14128
14129 2011-03-11 Joseph Myers <joseph@codesourcery.com>
14130
14131 * config/sparc/sparc.c (sparc_option_override): Use
14132 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
14133
14134 2011-03-11 Richard Guenther <rguenther@suse.de>
14135
14136 PR tree-optimization/48067
14137 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
14138 multiplication result will be only used once on the target
14139 stmt.
14140
14141 2011-03-11 Richard Guenther <rguenther@suse.de>
14142
14143 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
14144
14145 2011-03-11 Richard Guenther <rguenther@suse.de>
14146
14147 PR lto/48073
14148 * tree.c (find_decls_types_r): Do not walk types only reachable
14149 from IDENTIFIER_NODEs.
14150
14151 2011-03-11 Jakub Jelinek <jakub@redhat.com>
14152
14153 PR middle-end/48044
14154 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
14155 all vnode->force_output nodes as needed.
14156
14157 2011-03-11 Jason Merrill <jason@redhat.com>
14158
14159 PR c++/48069
14160 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
14161 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
14162
14163 2011-03-11 Martin Jambor <mjambor@suse.cz>
14164
14165 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
14166 cgraph_node.
14167
14168 2011-03-11 Jakub Jelinek <jakub@redhat.com>
14169
14170 PR tree-optimization/48063
14171 * ipa-inline.c (cgraph_decide_inlining): Don't try to
14172 inline functions called once if !tree_can_inline_p (node->callers).
14173
14174 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
14175
14176 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
14177 extra_objs.
14178 * config/score/score3.c: Delete.
14179 * config/score/score3.h: Delete.
14180 * config/score/mul-div.S: Delete.
14181 * config/score/sfp-machine.h: Add new file.
14182 * config/score/constraints.md: Add new file.
14183 * config/score/t-score-softfp: Add new file.
14184 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
14185 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
14186 (score7_extra_constraint): Delete.
14187 (score7_option_override): Remove unused code.
14188 * config/score/score.c: Remove score3 and score5 define and code.
14189 * config/score/score.h: Remove score3 and score5 define and code.
14190 * config/score/score.md: Remove score3 template and unusual insn.
14191 * config/score/score.opt: Remove score3 and score5 options.
14192
14193 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14194
14195 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
14196 when _HPUX_SOURCE is defined.
14197 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
14198
14199 2011-03-10 Jason Merrill <jason@redhat.com>
14200
14201 PR c++/48029
14202 * stor-layout.c (layout_type): Don't set structural equality
14203 on arrays of incomplete type.
14204 * tree.c (type_hash_eq): Handle comparing them properly.
14205
14206 2011-03-10 Jakub Jelinek <jakub@redhat.com>
14207
14208 PR debug/48043
14209 * config/s390/s390.c (s390_delegitimize_address): Make sure the
14210 result mode matches original rtl mode.
14211
14212 2011-03-10 Nick Clifton <nickc@redhat.com>
14213
14214 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
14215 (andsi3, andsi3_flags): Fix timings for three operand alternative.
14216
14217 2011-03-09 Jakub Jelinek <jakub@redhat.com>
14218
14219 PR rtl-optimization/47866
14220 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
14221 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
14222 if target wasn't scalar.
14223 * function.c (assign_stack_temp_for_type): Assert that neither
14224 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
14225 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
14226 macro.
14227 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
14228
14229 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14230
14231 * config/s390/s390-protos.h (s390_label_align): New prototype.
14232 * config/s390/s390.c (s390_label_align): New function.
14233 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
14234
14235 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
14236
14237 PR target/47755
14238 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
14239 V2DI/V2DF constants. Only all 0's or all 1's are easy.
14240 (output_vec_const_move): Ditto.
14241
14242 2011-03-08 Anatoly Sokolov <aesok@post.ru>
14243
14244 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
14245 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
14246 * config/mips/mips.c (mips_preferred_reload_class): Make static.
14247 Change 'rclass' argument and result type to reg_class_t.
14248 (TARGET_PREFERRED_RELOAD_CLASS): Define.
14249
14250 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
14251
14252 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
14253 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
14254 (TARGET_MEMORY_MOVE_COST): Define.
14255 (avr_register_move_cost, avr_memory_move_cost): New Functions.
14256
14257 2011-03-08 Jakub Jelinek <jakub@redhat.com>
14258
14259 PR debug/47881
14260 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
14261 removed anything.
14262
14263 PR tree-optimization/48022
14264 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
14265 for EQ/NE_EXPR.
14266
14267 2011-03-07 Jakub Jelinek <jakub@redhat.com>
14268
14269 PR debug/47991
14270 * var-tracking.c (find_use_val): Return NULL for
14271 cui->sets && cui->store_p BLKmode MEMs.
14272
14273 2011-03-07 Anatoly Sokolov <aesok@post.ru>
14274
14275 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
14276 Remove.
14277 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
14278 xstormy16_print_operand_address): Remove.
14279 * config/stormy16/stormy16.c (xstormy16_print_operand,
14280 xstormy16_print_operand_address): Make static.
14281 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
14282
14283 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
14284
14285 PR target/47862
14286 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
14287 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
14288 before definition.
14289
14290 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
14291
14292 PR bootstrap/48000
14293 * cfgloopmanip.c (fix_bb_placements): Return immediately
14294 if FROM is BASE_LOOP's header.
14295
14296 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
14297
14298 * gimplify.c (gimplify_function_tree): Fix building calls
14299 to __builtin_return_address.
14300
14301 2011-03-07 Alan Modra <amodra@gmail.com>
14302
14303 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
14304 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
14305 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
14306 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
14307 return_mode args.
14308 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
14309 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
14310 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
14311 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
14312 * config/rs6000/rs6000.c
14313 (rs6000_elf_end_indicate_exec_stack): Rename to..
14314 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
14315 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
14316 (rs6000_file_start): ..here.
14317 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
14318 file scope variables.
14319 (call_ABI_of_interest): New function.
14320 (init_cumulative_args): Set above vars when function return value
14321 is a float, vector, or small struct.
14322 (rs6000_function_arg_advance_1): Likewise for function args.
14323 (rs6000_va_start): Set rs6000_passes_float if variable arg function
14324 references float args.
14325
14326 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
14327
14328 * doc/cfg.texi: Remove "See" before @ref.
14329 * doc/invoke.texi: Likewise.
14330
14331 2011-03-05 Jason Merrill <jason@redhat.com>
14332
14333 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
14334
14335 2011-03-05 Anthony Green <green@moxielogic.com>
14336
14337 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
14338
14339 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
14340
14341 PR rtl-optimization/47899
14342 * cfgloopmanip.c (fix_bb_placements): Fix first argument
14343 to flow_loop_nested_p when moving the loop upward.
14344
14345 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
14346
14347 PR target/47719
14348 * arm.md (movhi_insn_arch4): Accept any immediate constant.
14349
14350 2011-03-05 Jakub Jelinek <jakub@redhat.com>
14351
14352 PR tree-optimization/47967
14353 * ipa-cp.c (build_const_val): Return NULL instead of creating
14354 VIEW_CONVERT_EXPR for mismatching sizes.
14355 (ipcp_create_replace_map): Return NULL if build_const_val failed.
14356 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
14357 give up on versioning.
14358
14359 2011-03-05 Alan Modra <amodra@gmail.com>
14360
14361 PR target/47986
14362 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
14363 full cmodel medium/large lo_sum + high addresses.
14364
14365 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14366
14367 * config/s390/s390.c (s390_decompose_address): Reject non-literal
14368 pool references in UNSPEC_LTREL_OFFSET.
14369
14370 2011-03-04 Jan Hubicka <jh@suse.cz>
14371
14372 PR lto/47497
14373 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
14374 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
14375 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
14376 Add node pointers.
14377 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
14378 cgraph_add_thunk): Add node pointers.
14379 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
14380 associated to right node.
14381 (input_node): Update use of cgraph_same_body_alias
14382 and cgraph_add_thunk.
14383
14384 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
14385
14386 * config/i386/i386.opt (mprefer-avx128): New flag.
14387 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
14388 modes when the flag -mprefer-avx128 is on.
14389
14390 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
14391
14392 * dwarf2out.c (compare_loc_operands): Fix address handling.
14393
14394 2011-03-04 Alan Modra <amodra@gmail.com>
14395
14396 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
14397
14398 2011-03-04 Richard Guenther <rguenther@suse.de>
14399
14400 PR middle-end/47968
14401 * expmed.c (extract_bit_field_1): Prefer vector modes that
14402 vec_extract patterns can handle.
14403
14404 2011-03-04 Richard Guenther <rguenther@suse.de>
14405
14406 PR middle-end/47975
14407 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
14408
14409 2011-03-04 Richard Henderson <rth@redhat.com>
14410
14411 * explow.c (emit_stack_save): Remove 'after' parameter.
14412 (emit_stack_restore): Likewise.
14413 * expr.h: Update to match.
14414 * builtins.c, calls.c, stmt.c: Likewise.
14415 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
14416 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
14417 * function.c (expand_function_end): Insert the emit_stack_save
14418 sequence before parm_birth_insn instead of after.
14419
14420 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
14421
14422 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
14423 (ssse3_pmaddubsw128): Ditto.
14424 (ssse3_pmaddubsw): Ditto.
14425
14426 2011-03-03 Steve Ellcey <sje@cup.hp.com>
14427
14428 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
14429
14430 2011-03-03 Jakub Jelinek <jakub@redhat.com>
14431
14432 PR c/47963
14433 * gimplify.c (omp_add_variable): Only call omp_notice_variable
14434 on TYPE_SIZE_UNIT if it is a DECL.
14435
14436 PR debug/47283
14437 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
14438 first operand is not is_gimple_mem_ref_addr, try to fold it.
14439 If the operand still isn't is_gimple_mem_ref_addr, clear
14440 MEM_EXPR on op0.
14441
14442 2011-03-03 Richard Guenther <rguenther@suse.de>
14443
14444 PR middle-end/47283
14445 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
14446 match comment.
14447 (refs_may_alias_p_1): For release branches return true if
14448 we are confused by our input.
14449
14450 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14451
14452 * config/s390/s390.c (s390_function_value): Rename to ...
14453 (s390_function_and_libcall_value): ... this.
14454 (s390_function_value): New function.
14455 (s390_libcall_value): New function.
14456 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
14457 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
14458 target macro definitions.
14459 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
14460
14461 2011-03-02 Joseph Myers <joseph@codesourcery.com>
14462
14463 * config/i386/freebsd64.h (CC1_SPEC): Define.
14464 * config/i386/linux64.h (CC1_SPEC): Define.
14465 * config/i386/x86-64.h (CC1_SPEC): Don't define.
14466
14467 2011-03-02 Anatoly Sokolov <aesok@post.ru>
14468
14469 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
14470 Remove.
14471 * config/stormy16/stormy16.c: Include reload.h.
14472 (xstormy16_memory_move_cost): New function.
14473 (TARGET_MEMORY_MOVE_COST): Define.
14474
14475 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
14476
14477 PR rtl-optimization/47925
14478 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
14479 with side effects. Remove the more-specific check for volatile asms.
14480
14481 2011-03-02 Alan Modra <amodra@gmail.com>
14482
14483 PR target/47935
14484 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
14485 toc relative addresses for valid offsets.
14486
14487 2011-03-01 Richard Guenther <rguenther@suse.de>
14488
14489 PR tree-optimization/47890
14490 * tree-vect-loop.c (get_initial_def_for_induction): Set
14491 related stmt properly.
14492
14493 2011-03-01 Richard Guenther <rguenther@suse.de>
14494
14495 PR lto/47924
14496 * lto-streamer.c (lto_record_common_node): Also register
14497 the canonical type.
14498
14499 2011-03-01 Richard Guenther <rguenther@suse.de>
14500
14501 PR lto/46911
14502 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
14503 Do not stream DECL_ABSTRACT_ORIGIN.
14504 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
14505 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
14506 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
14507 Do not stream DECL_ABSTRACT_ORIGIN.
14508 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
14509 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
14510
14511 2011-02-28 Anatoly Sokolov <aesok@post.ru>
14512
14513 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
14514 FUNCTION_VALUE_REGNO_P): Remove.
14515 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
14516 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
14517 Add 'outgoing' argument.
14518 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
14519 function.
14520 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
14521 TARGET_FUNCTION_VALUE_REGNO_P): Define.
14522
14523 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
14524
14525 PR debug/28047
14526 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
14527 (lookup_filename): Likewise.
14528 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
14529
14530 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
14531 Jakub Jelinek <jakub@redhat.com>
14532
14533 PR middle-end/47893
14534 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
14535 (assign_stack_local_1): Change last argument type to int.
14536 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
14537 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
14538 don't record padding space into frame_space_list nor use those areas.
14539 (assign_stack_local): Adjust caller.
14540 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
14541 of assign_stack_local, pass 0 as last argument.
14542 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
14543 callers.
14544
14545 2011-02-28 Jakub Jelinek <jakub@redhat.com>
14546
14547 PR debug/47283
14548 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
14549 Use target address_mode and pointer_mode hooks instead of hardcoded
14550 Pmode and ptr_mode. Handle some simple cases of extending if
14551 POINTERS_EXTEND_UNSIGNED < 0.
14552 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
14553 Call convert_debug_memory_address.
14554 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
14555 convert_debug_memory_address.
14556
14557 PR middle-end/46790
14558 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
14559 * configure: Regenerated.
14560 * config.in: Regenerated.
14561 * varasm.c (default_function_section): Return NULL
14562 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
14563
14564 2011-02-28 Martin Jambor <mjambor@suse.cz>
14565
14566 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
14567 the description to match the printed values.
14568
14569 2011-02-28 Richard Guenther <rguenther@suse.de>
14570
14571 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
14572 of the copied scope tree.
14573
14574 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14575
14576 * doc/extend.texi (Function Attributes): Avoid deeply (and
14577 wrongly) nested tables.
14578
14579 2011-02-27 Jakub Jelinek <jakub@redhat.com>
14580
14581 PR middle-end/47903
14582 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
14583 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
14584 r isn't op0 nor op1.
14585
14586 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
14587
14588 * config/avr/avr.md: Remove magic comment for emacs.
14589
14590 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
14591
14592 PR target/45261
14593 * config/avr/avr.c (avr_option_override): Use error on bad options.
14594 (avr_help): New function.
14595 (TARGET_HELP): Define.
14596
14597 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
14598
14599 PR target/42240
14600 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
14601 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
14602
14603 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
14604
14605 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
14606 (ARM Options): Ditto.
14607 (i386 and x86-64 Options): Ditto.
14608 (RX Options): Ditto.
14609 (SPARC Options): Ditto.
14610
14611 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
14612
14613 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
14614 FreeBSD 6 and later. Generally use cpu generic.
14615
14616 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
14617
14618 * doc/cpp.texi: Update copyright years.
14619
14620 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
14621
14622 PR target/46898
14623 * config/lm32/lm32.md (ashrsi3): Added needed variable.
14624
14625 2011-02-25 Jon Beniston <jon@beniston.com>
14626
14627 PR target/46898
14628 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
14629 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
14630 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
14631 (lm32_block_move_inline): Add type cast to remove warning.
14632 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
14633 (gen_int_relational): Move declarations to start of function.
14634
14635 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
14636
14637 PR tree-optimization/45470
14638 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
14639 can throw internally only.
14640 * tree-vect-stmts.c (vectorizable_call): Likewise.
14641
14642 2011-02-24 Anatoly Sokolov <aesok@post.ru>
14643
14644 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
14645 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
14646 * config/stormy16/stormy16-protos.h
14647 (xstormy16_preferred_reload_class): Remove.
14648 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
14649 static. Change 'rclass' argument and return type to reg_class_t.
14650 (TARGET_PREFERRED_RELOAD_CLASS,
14651 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
14652
14653 2011-02-24 Richard Guenther <rguenther@suse.de>
14654
14655 * lto-streamer-in.c (input_bb): Do not find referenced vars
14656 in debug statements.
14657
14658 2011-02-23 Jason Merrill <jason@redhat.com>
14659
14660 * common.opt (fabi-version): Document v5 and v6.
14661
14662 2011-02-23 Richard Guenther <rguenther@suse.de>
14663
14664 PR tree-optimization/47849
14665 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
14666
14667 2011-02-23 Jie Zhang <jie@codesourcery.com>
14668
14669 * opts-common.c (decode_cmdline_option): Print empty string
14670 argument as "" in decoded->orig_option_with_args_text.
14671 * gcc.c (execute): Print empty string argument as ""
14672 in the verbose output.
14673 (do_spec_1): Keep empty string argument.
14674
14675 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
14676
14677 * config.gcc: Declare score-* and crx-* obsolete.
14678
14679 2011-02-23 Jie Zhang <jie@codesourcery.com>
14680
14681 PR rtl-optimization/47763
14682 * web.c (web_main): Ignore naked clobber when replacing register.
14683
14684 2011-02-22 Anatoly Sokolov <aesok@post.ru>
14685
14686 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
14687 Remove.
14688
14689 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
14690
14691 PR doc/47848
14692 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
14693
14694 2011-02-22 Mike Stump <mikestump@comcast.net>
14695
14696 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
14697 assembler.
14698 * configure: Regenerate.
14699
14700 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
14701
14702 PR rtl-optimization/46002
14703 * ira-color.c (update_copy_costs): Change class intersection
14704 test to reg_class_contents[] test of 'hard_regno'.
14705
14706 2011-02-21 Joseph Myers <joseph@codesourcery.com>
14707
14708 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
14709 than Driver option.
14710 * config/hpux11.opt (mt): Likewise.
14711 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
14712 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
14713 * config/vax/elf.opt (mno-asm-pic): Likewise.
14714 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
14715
14716 2011-02-21 Mike Stump <mikestump@comcast.net>
14717
14718 PR target/47822
14719 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
14720 tree so we can get save the type.
14721 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
14722 for CFString instead of trying to use past the end of the builtins.
14723 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
14724 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
14725 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
14726 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
14727 Rename to darwin_builtin_cfstring.
14728 (darwin_init_cfstring_builtins): Return the built type.
14729
14730 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
14731
14732 PR target/47840
14733 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
14734 (_mm256_insert_epi64): Use _mm_insert_epi64.
14735
14736 2011-02-21 Anatoly Sokolov <aesok@post.ru>
14737
14738 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
14739 * config/stormy16/stormy16-protos.h
14740 (xstormy16_mode_dependent_address_p): Remove.
14741 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
14742 Make static. Change return type to bool. Change argument type to
14743 const_rtx. Remove dead code.
14744 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14745
14746 2011-02-21 Richard Guenther <rguenther@suse.de>
14747
14748 PR lto/47820
14749 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
14750 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
14751 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
14752 TUs context.
14753 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
14754 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
14755
14756 2011-02-20 Richard Guenther <rguenther@suse.de>
14757
14758 PR lto/47822
14759 * tree.c (free_lang_data_in_decl): Clean builtins from
14760 the TU decl BLOCK_VARS.
14761
14762 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
14763
14764 PR debug/47620
14765 PR debug/47630
14766 * haifa-sched.c (fix_tick_ready): Skip tick computation
14767 for debug insns.
14768
14769 2011-02-19 Richard Guenther <rguenther@suse.de>
14770
14771 PR lto/47647
14772 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
14773 Remove lazy BLOCK_VARS streaming.
14774 (lto_input_ts_block_tree_pointers): Likewise.
14775 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
14776
14777 2011-02-19 Joseph Myers <joseph@codesourcery.com>
14778
14779 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
14780
14781 2011-02-19 Joseph Myers <joseph@codesourcery.com>
14782
14783 * config/i386/biarch32.h, config/i386/mach.h,
14784 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
14785
14786 2011-02-19 Jakub Jelinek <jakub@redhat.com>
14787
14788 PR target/47800
14789 * config/i386/i386.md (peephole2 for shift and plus): Use
14790 operands[1] original mode in the first insn.
14791
14792 2011-02-18 Mike Stump <mikestump@comcast.net>
14793
14794 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
14795
14796 2011-02-18 Jan Hubicka <jh@suse.cz>
14797
14798 PR middle-end/47788
14799 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
14800 to zero when the function is not inlinable at all.
14801
14802 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14803
14804 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
14805 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
14806 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
14807 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
14808 * config/pa/t-pa64: Likewise.
14809 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
14810
14811 2011-02-18 Jakub Jelinek <jakub@redhat.com>
14812
14813 PR driver/47787
14814 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
14815
14816 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14817
14818 PR target/47792
14819 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
14820
14821 2011-02-18 Anatoly Sokolov <aesok@post.ru>
14822
14823 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
14824 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
14825 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
14826 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
14827 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
14828 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
14829 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
14830 m32r_load_postinc_p, m32r_store_preinc_predec_p,
14831 m32r_legitimate_address_p): New functions.
14832 * config/m32r/constraints.md (constraint "S"): Don't use
14833 STORE_PREINC_PREDEC_P.
14834 (constraint "U"): Don't use LOAD_POSTINC_P.
14835
14836 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
14837
14838 PR rtl-optimization/46178
14839 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
14840 compute ira_hard_regno_cover_class[].
14841
14842 2011-02-18 Richard Guenther <rguenther@suse.de>
14843
14844 PR lto/47798
14845 * lto-streamer.h (lto_global_var_decls): Declare.
14846 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
14847 statics for global var processing.
14848
14849 2011-02-18 Richard Guenther <rguenther@suse.de>
14850
14851 PR tree-optimization/47737
14852 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
14853 edge dominance check.
14854
14855 2011-02-18 Jakub Jelinek <jakub@redhat.com>
14856
14857 PR debug/47780
14858 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
14859 avoid invalid rtx sharing.
14860
14861 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
14862
14863 * doc/cpp.texi (Obsolete Features): Add background on the
14864 origin of assertions.
14865
14866 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
14867
14868 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
14869 objc_abi == 2.
14870 * config/darwin.c (output_objc_section_asm_op): Added support for
14871 ABI v1 and v2.
14872 (is_objc_metadata): New.
14873 (darwin_objc2_section): New.
14874 (darwin_objc1_section): New.
14875 (machopic_select_section): Added support for ABI v1 and v2.
14876 (darwin_emit_objc_zeroed): New.
14877 (darwin_output_aligned_bss): Detect objc metadata and treat it
14878 appropriately.
14879 (darwin_asm_output_aligned_decl_common): Same.
14880 (darwin_asm_output_aligned_decl_local): Same.
14881 * config/darwin-sections.def: Updated for ABI v1 and v2.
14882 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
14883 compiling Objective-C code for the NeXT runtime, default to using
14884 ABI version 0 for 32-bit, and version 2 for 64-bit.
14885
14886 2011-02-17 Joseph Myers <joseph@codesourcery.com>
14887
14888 * common.opt (optimize_fast): New Variable.
14889 * opts.c (default_options_optimization): Use opts->x_optimize_fast
14890 instead of local variable ofast.
14891
14892 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
14893
14894 * doc/invoke.texi (fobjc-abi-version): Documented.
14895 (fobjc-nilcheck): Documented.
14896 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
14897 version.
14898
14899 2011-02-17 Joseph Myers <joseph@codesourcery.com>
14900
14901 PR driver/47390
14902 * common.opt (export-dynamic): New Driver option.
14903 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
14904
14905 2011-02-17 Joseph Myers <joseph@codesourcery.com>
14906
14907 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
14908
14909 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
14910 Jan Hubicka <jh@suse.cz>
14911
14912 PR debug/47106
14913 PR debug/47402
14914 * cfgexpand.c (account_used_vars_for_block): Remove.
14915 (estimated_stack_frame_size): Use referenced vars.
14916 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
14917 that were referenced in the original function. Test src_fn
14918 rather than cfun. Drop redundant get_var_ann.
14919 (setup_one_parameter): Drop redundant get_var_ann.
14920 (declare_return_variable): Likewise.
14921 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
14922 (copy_arguments_for_versioning): Drop redundant get_var_ann.
14923 * ipa-inline.c (compute_inline_parameters): Do not compute
14924 disregard_inline_limits here.
14925 (compute_inlinable_for_current, pass_inlinable): New.
14926 (pass_inline_parameters): Require PROP_referenced_vars.
14927 * cgraphunit.c (cgraph_process_new_functions): Don't run
14928 compute_inline_parameters explicitly unless function is in SSA form.
14929 (cgraph_analyze_function): Set .disregard_inline_limits.
14930 * tree-sra.c (convert_callers): Compute inliner parameters
14931 only for functions already in SSA form.
14932
14933 2011-02-17 Joseph Myers <joseph@codesourcery.com>
14934
14935 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
14936 -mlittle-endian-data.
14937
14938 2011-02-17 Joseph Myers <joseph@codesourcery.com>
14939
14940 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
14941 -mno-fpu, not -fpu and -no-fpu.
14942 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
14943 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
14944
14945 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
14946
14947 PR target/43653
14948 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
14949 input reload with PLUS RTX.
14950
14951 2011-02-16 Joseph Myers <joseph@codesourcery.com>
14952
14953 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
14954 of InverseVar(MDMX).
14955
14956 2011-02-16 Joseph Myers <joseph@codesourcery.com>
14957
14958 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
14959 --m4-340.
14960
14961 2011-02-16 Joseph Myers <joseph@codesourcery.com>
14962
14963 * config/mn10300/mn10300.opt (mno-crt0): New.
14964
14965 2011-02-16 Joseph Myers <joseph@codesourcery.com>
14966
14967 * config/m68k/uclinux.opt (static-libc): New Driver option.
14968
14969 2011-02-16 Joseph Myers <joseph@codesourcery.com>
14970
14971 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
14972
14973 2011-02-16 Joseph Myers <joseph@codesourcery.com>
14974
14975 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
14976 %{muser-extend-enabled}.
14977
14978 2011-02-16 Richard Guenther <rguenther@suse.de>
14979
14980 PR tree-optimization/47738
14981 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
14982 the TODO from tree_predictive_commoning.
14983
14984 2011-02-15 Jeff Law <law@redhat.com>
14985
14986 Revert
14987 2011-01-25 Jeff Law <law@redhat.com>
14988
14989 PR rtl-optimization/37273
14990 * ira-costs.c (scan_one_insn): Detect constants living in memory and
14991 handle them like argument loads from stack slots. Do not double
14992 count memory for memory constants and argument loads from stack slots.
14993
14994 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
14995
14996 PR middle-end/47725
14997 * combine.c (cant_combine_insn_p): Revert the last change.
14998
14999 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
15000
15001 PR target/47755
15002 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
15003 mode for vector constants. Remove code that checks for TImode.
15004
15005 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
15006
15007 PR debug/47106
15008 PR debug/47402
15009 * cgraph.h (compute_inline_parameters): Return void.
15010 * ipa-inline.c (compute_inline_parameters): Adjust.
15011
15012 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
15013
15014 PR debug/47106
15015 PR debug/47402
15016 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
15017 rather than decl.
15018 * cfgexpand.c (estimated_stack_frame_size): Likewise.
15019 * ipa-inline.c (compute_inline_parameters): Adjust.
15020
15021 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
15022
15023 PR debug/47106
15024 PR debug/47402
15025 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
15026 Adjust all users. Pass FN to...
15027 * tree-flow-inline.h (first_referenced_var): ... this. Add
15028 fn argument.
15029 * ipa-struct-reorg.c: Adjust.
15030 * tree-dfa.c: Adjust.
15031 * tree-into-ssa.c: Adjust.
15032 * tree-sra.c: Adjust.
15033 * tree-ssa-alias.c: Adjust.
15034 * tree-ssa-live.c: Adjust.
15035 * tree-ssa.c: Adjust.
15036 * tree-ssanames.c: Adjust.
15037 * tree-tailcall.c: Adjust.
15038
15039 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
15040
15041 PR debug/47106
15042 PR debug/47402
15043 * tree-flow.h (referenced_var_lookup): Add fn parameter.
15044 Adjust all callers.
15045 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
15046 * tree-flow-inline.h: Adjust.
15047 * gimple-pretty-print.c: Adjust.
15048 * tree-into-ssa.c: Adjust.
15049 * tree-ssa.c: Adjust.
15050 * cfgexpand.c: Adjust.
15051
15052 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
15053
15054 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
15055 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15056 (EXTRA_CONSTRAINT): Delete.
15057 * config/iq2000/constraints.md: New file.
15058 * config/iq2000/iq2000.md: Include it.
15059 (define_insn ""): Delete.
15060 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
15061 unsupported constraint letters from patterns.
15062 (call_value, call_value_internal1): Likewise.
15063 (call_value_multiple_internal1): Likewise.
15064
15065 2011-02-15 Nick Clifton <nickc@redhat.com>
15066
15067 * config/mn10300/mn10300.c: Include tm-constrs.h.
15068 (struct liw_data): New data structure describing an LIW candidate
15069 instruction.
15070 (extract_bundle): Use struct liw_data. Allow small integer
15071 operands for some instructions.
15072 (check_liw_constraints): Use struct liw_data. Remove swapped
15073 parameter. Add comments describing the checks. Fix bug when
15074 assigning the source of liw1 to the source of liw2.
15075 (liw_candidate): Delete. Code moved into extract_bundle.
15076 (mn10300_bundle_liw): Use struct liw_data. Check constraints
15077 before swapping.
15078 * config/mn10300/predicates.md (liw_operand): New predicate.
15079 Allows registers and small integer constants.
15080 * config/mn10300/constraints.md (O): New constraint. Accetps
15081 integers in the range -8 to +7 inclusive.
15082 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
15083 for moving a small integer into a register. Give this alternative
15084 LIW attributes.
15085 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
15086 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
15087 using the J,K,L and M constraints,
15088 (liw): Remove SI mode on second operands to allow for HI and QI
15089 mode values.
15090 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
15091 instruction.
15092
15093 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
15094
15095 PR middle-end/47725
15096 * combine.c (cant_combine_insn_p): Check zero/sign extended
15097 hard registers.
15098
15099 2011-02-15 Richard Guenther <rguenther@suse.de>
15100
15101 PR tree-optimization/47743
15102 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
15103 for a non-type-compatible VN lookup bail out.
15104
15105 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
15106
15107 * config/fr30/constraints.md: New file.
15108 * config/fr30/fr30.md: Include it.
15109 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
15110 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15111 (EXTRA_CONSTRAINT): Delete.
15112
15113 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
15114
15115 * config/frv/constraints.md: New file.
15116 * config/frv/predicates.md: Include it.
15117 * config/frv/frv.c (reg_class_from_letter): Delete.
15118 (frv_option_override): Don't initialize it.
15119 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
15120 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
15121 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
15122 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
15123 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
15124 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15125 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
15126 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
15127 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
15128 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
15129 (REG_CLASS_FROM_CONSTRAINT): Delete.
15130
15131 2011-02-15 Jakub Jelinek <jakub@redhat.com>
15132
15133 PR middle-end/47581
15134 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
15135 if frame size is 0 in a leaf function.
15136
15137 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15138
15139 PR pch/14940
15140 * config/alpha/host-osf.c: New file.
15141 * config/alpha/x-osf: New file.
15142 * config.host (alpha*-dec-osf*): Use it.
15143
15144 2011-02-14 Anatoly Sokolov <aesok@post.ru>
15145
15146 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15147 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
15148 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
15149 (rx_mode_dependent_address_p): ...this. Make static. Change argument
15150 type to const_rtx.
15151 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15152
15153 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
15154
15155 * config/stormy16/constraints.md: New file.
15156 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
15157 Use satisfies_constraint_Q and satisfies_constraint_R.
15158 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
15159 Delete.
15160 (xstormy16_legitiamte_address_p): Declare.
15161 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
15162 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15163 (EXTRA_CONSTRAINT): Delete.
15164 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
15165 Un-staticize.
15166 (xstormy16_extra_constraint_p): Delete.
15167
15168 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
15169
15170 PR tree-optimization/46494
15171 * loop-unroll.c (split_edge_and_insert): Adjust comment.
15172 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
15173 (pass_rtl_loop_done): Add TODO_verify_flow.
15174 * fwprop.c (pass_rtl_fwprop): Likewise.
15175 * modulo-sched.c (pass_sms): Likewise.
15176 * tree-ssa-dom.c (pass_dominator): Likewise.
15177 * tree-ssa-loop-ch.c (pass_ch): Likewise.
15178 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
15179 (pass_tree_loop_done): Likewise.
15180 * tree-ssa-pre.c (execute_pre): Likewise.
15181 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
15182 * tree-ssa-sink.c (pass_sink_code): Likewise.
15183 * tree-vrp.c (pass_vrp): Likewise.
15184
15185 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
15186
15187 * config/v850/constraints.md: New file.
15188 * config/v850/v850.md: Include it.
15189 * config/v850/predicates.md (reg_or_0_operand): Use
15190 satisfies_constraint_G.
15191 (special_symbolref_operand): Use satisfies_constraint_K.
15192 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
15193 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
15194 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
15195 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
15196 (EXTRA_CONSTRAINT): Delete.
15197 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
15198 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
15199 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
15200
15201 2011-02-14 Anatoly Sokolov <aesok@post.ru>
15202
15203 PR target/47696
15204 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
15205 description.
15206
15207 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
15208
15209 * config/mcore/constraints.md: New file.
15210 * config/mcore/mcore.md: Include it.
15211 * config/mcore/mcore.c (reg_class_from_letter): Delete.
15212 * config/mcore/mcore.h (reg_class_from_letter): Delete.
15213 (REG_CLASS_FROM_LETTER): Delete.
15214 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
15215 insn_const_int_ok_for_constraint.
15216 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
15217 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
15218 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15219 (EXTRA_CONSTRAINT): Delete.
15220
15221 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15222
15223 PR ada/41929
15224 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
15225 (IS_SIGHANDLER): Define.
15226 (sparc64_is_sighandler): New function, split off from
15227 sparc64_fallback_frame_state.
15228 (sparc_is_sighandler): New function, split off from
15229 sparc_fallback_frame_state.
15230 (sparc64_fallback_frame_state): Merge with ...
15231 (sparc_fallback_frame_state): ... this into ...
15232 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
15233 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
15234 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
15235 stack instead of hardcoded offsets.
15236
15237 2011-02-14 Andriy Gapon <avg@freebsd.org>
15238
15239 PR target/45808
15240 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
15241
15242 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15243
15244 * configure: Regenerate.
15245
15246 2011-02-12 Joseph Myers <joseph@codesourcery.com>
15247
15248 PR driver/45731
15249 * gcc.c (asm_options): Correct spec matching --target-help.
15250
15251 2011-02-12 Martin Jambor <mjambor@suse.cz>
15252
15253 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
15254 to gimple call error.
15255
15256 2011-02-12 Mike Stump <mikestump@comcast.net>
15257
15258 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
15259 comments in backslash regions.
15260
15261 2011-02-12 Mike Stump <mikestump@comcast.net>
15262 Jakub Jelinek <jakub@redhat.com>
15263 Iain Sandoe <iains@gcc.gnu.org>
15264
15265 PR target/47324
15266 * dwarf2out.c (output_cfa_loc): When required, apply the
15267 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
15268 (output_loc_sequence): Likewise.
15269 (output_loc_operands_raw): Likewise.
15270 (output_loc_sequence_raw): Likewise.
15271 (output_cfa_loc): Likewise.
15272 (output_loc_list): Suppress register number adjustment when
15273 calling output_loc_sequence()
15274 (output_die): Likewise.
15275
15276 2011-02-12 Anatoly Sokolov <aesok@post.ru>
15277
15278 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
15279 Remove macros.
15280 * config/xtensa/xtensa.c (xtensa_register_move_cost,
15281 xtensa_memory_move_cost): New functions.
15282 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
15283
15284 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
15285
15286 PR lto/47225
15287 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
15288 in the current directory.
15289 * configure: Rebuilt.
15290
15291 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
15292
15293 * config/darwin.c (darwin_override_options): Add a hunk missed
15294 from the commit of r168571. Trim comment line lengths and
15295 correct indents of the preceding block.
15296
15297 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
15298
15299 * gcc.c (driver_handle_option): Concatenate the argument to -F with
15300 the switch.
15301
15302 2011-02-11 Joseph Myers <joseph@codesourcery.com>
15303
15304 * common.opt (nostartfiles): New Driver option.
15305
15306 2011-02-11 Xinliang David Li <davidxl@google.com>
15307
15308 PR tree-optimization/47707
15309 * tree-chrec.c (convert_affine_scev): Keep type precision.
15310
15311 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
15312
15313 PR tree-optimization/47420
15314 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
15315
15316 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
15317
15318 PR rtl-optimization/47614
15319 * rtl.h (check_for_inc_dec): Declare.
15320 * dse.c (check_for_inc_dec): Externalize...
15321 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
15322 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
15323
15324 2011-02-11 Joseph Myers <joseph@codesourcery.com>
15325
15326 PR driver/47678
15327 * gcc.c (main): Do not compile inputs if there were errors in
15328 option handling.
15329 * opts-common.c (read_cmdline_option): Check for wrong language
15330 after other error checks.
15331
15332 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
15333
15334 * cgraph.c: Fix comment typos.
15335 * cgraph.h: Likewise.
15336 * cgraphunit.c: Likewise.
15337 * ipa-cp.c: Likewise.
15338 * ipa-inline.c: Likewise.
15339 * ipa-prop.c: Likewise.
15340 * ipa-pure-const.c: Likewise.
15341 * ipa-ref.c: Likewise.
15342 * ipa-reference.c: Likewise.
15343
15344 2011-02-11 Jakub Jelinek <jakub@redhat.com>
15345
15346 PR debug/47684
15347 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
15348
15349 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15350
15351 PR testsuite/47400
15352 * doc/sourcebuild.texi (Require Support): Document
15353 dg-require-ascii-locale.
15354
15355 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
15356
15357 * doc/lto.texi (Write summary): Fix missing parentheses.
15358
15359 2011-02-10 DJ Delorie <dj@redhat.com>
15360
15361 * config/m32c/m32c.c (m32c_option_override): Disable
15362 -fcombine-stack-adjustments until flag value tracking and compare
15363 optimization can be rewritten.
15364
15365 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
15366
15367 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
15368 PROCESSOR_POWER7.
15369 (PROCESSOR_DEFAULT64): Likewise.
15370
15371 2011-02-10 Richard Henderson <rth@redhat.com>
15372
15373 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
15374 change from 2011-02-03.
15375 * config/rx/rx.c (flags_from_code): Likewise.
15376 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
15377 is valid, n/pz otherwise.
15378 (rx_select_cc_mode): Return CCmode if Y is not zero.
15379
15380 2011-02-10 Richard Guenther <rguenther@suse.de>
15381
15382 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
15383
15384 2011-02-10 Richard Guenther <rguenther@suse.de>
15385
15386 PR tree-optimization/47677
15387 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
15388
15389 2011-02-10 Jakub Jelinek <jakub@redhat.com>
15390
15391 PR target/47665
15392 * combine.c (make_compound_operation): Only change shifts into
15393 multiplication for SCALAR_INT_MODE_P.
15394
15395 2011-02-10 Jie Zhang <jie@codesourcery.com>
15396
15397 PR testsuite/47622
15398 Revert
15399 2011-02-05 Jie Zhang <jie@codesourcery.com>
15400 PR debug/42631
15401 * web.c (entry_register): Don't clobber the number of the
15402 first uninitialized reference in used[].
15403
15404 2011-02-09 Richard Guenther <rguenther@suse.de>
15405
15406 PR tree-optimization/47664
15407 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
15408 all edges again.
15409
15410 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
15411
15412 PR target/46481
15413 PR target/47032
15414 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
15415 PROCESSOR_POWER7.
15416 (PROCESSOR_DEFAULT64): Same.
15417 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
15418
15419 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15420
15421 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
15422
15423 2011-02-09 Martin Jambor <mjambor@suse.cz>
15424
15425 PR middle-end/45505
15426 * tree-sra.c (struct access): New flags grp_scalar_read and
15427 grp_scalar_write. Changed description of assignment read and write
15428 flags.
15429 (dump_access): Dump new flags, reorder all of them.
15430 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
15431 to detect multiple scalar reads.
15432 (analyze_access_subtree): Use the new scalar read write flags instead
15433 of the old flags. Adjusted comments.
15434
15435 2011-02-08 DJ Delorie <dj@redhat.com>
15436
15437 PR target/47548
15438 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
15439 patterns.
15440
15441 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15442
15443 * config/m68k/uclinux.opt: New.
15444 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
15445
15446 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15447
15448 * config/cris/elf.opt (sim): New Driver option.
15449
15450 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15451
15452 * config/xtensa/elf.opt: New.
15453 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
15454
15455 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15456
15457 * config/vax/elf.opt: New.
15458 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
15459
15460 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15461
15462 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
15463
15464 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15465
15466 * config/gnu-user.opt: New.
15467 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
15468 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
15469 *-*-uclinux*): Use gnu-user.opt.
15470
15471 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
15472
15473 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
15474 * config/i386/gnu.h (CPP_SPEC): Likewise.
15475
15476 2011-02-08 Ian Lance Taylor <iant@google.com>
15477
15478 * common.opt (fcx-limited-range): Add SetByCombined flag.
15479 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
15480 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
15481 (fassociative-math, freciprocal-math): Likewise.
15482 (funsafe-math-optimizations): Likewise.
15483 * opth-gen.awk: Handle SetByCombined.
15484 * optc-gen.awk: Likewise.
15485 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
15486 (set_unsafe_math_optimizations_flags): Likewise.
15487 * doc/options.texi (Option properties): Document SetByCombined.
15488
15489 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15490
15491 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
15492 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
15493 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
15494 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
15495 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
15496
15497 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
15498
15499 PR tree-optimization/46834
15500 PR tree-optimization/46994
15501 PR tree-optimization/46995
15502 * graphite-sese-to-poly.c (used_outside_reduction): New.
15503 (detect_commutative_reduction): Call used_outside_reduction.
15504 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
15505 translate_scalar_reduction_to_array only when at least one
15506 loop-phi/close-phi tuple has been detected.
15507
15508 2011-02-08 Richard Guenther <rguenther@suse.de>
15509
15510 PR middle-end/47639
15511 * tree-vect-generic.c (expand_vector_operations_1): Update
15512 stmts here ...
15513 (expand_vector_operations): ... not here. Cleanup EH info
15514 and the CFG if required.
15515
15516 2011-02-08 Richard Guenther <rguenther@suse.de>
15517
15518 PR tree-optimization/47641
15519 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
15520 require type compatibility.
15521
15522 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15523
15524 * gimple-low.c (lower_function_body): Don't remove the location of
15525 the return statement here.
15526 (lower_gimple_return): Do it here instead but only if the return
15527 statement is actually used twice.
15528
15529 2011-02-08 Richard Guenther <rguenther@suse.de>
15530
15531 PR tree-optimization/47632
15532 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
15533 unused up_to_stmt parameter, return whether cfg-cleanup is
15534 necessary, remove EH info properly.
15535 (forward_propagate_into_gimple_cond): Adjust caller.
15536 (forward_propagate_into_cond): Likewise.
15537 (forward_propagate_comparison): Likewise.
15538 (tree_ssa_forward_propagate_single_use_vars): Make
15539 forward_propagate_comparison case similar to the two others.
15540
15541 2011-02-08 Nick Clifton <nickc@redhat.com>
15542
15543 * config/mn10300/mn10300.opt (mliw): New command line option.
15544 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
15545 (liw_bundling): New automaton.
15546 (liw): New attribute.
15547 (liw_op): New attribute.
15548 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
15549 (movsi_internal): Add LIW attributes.
15550 (andsi3): Likewise.
15551 (iorsi3): Likewise.
15552 (xorsi3): Likewise.
15553 (addsi3): Separate register and immediate alternatives.
15554 Add LIW attributes.
15555 (subsi3): Likewise.
15556 (cmpsi): Likewise.
15557 (aslsi3): Likewise.
15558 (lshrsi3): Likewise.
15559 (ashrsi3): Likewise.
15560 (liw): New pattern.
15561 * config/mn10300/mn10300.c (liw_op_names): New
15562 (mn10300_print_operand): Handle 'W' operand descriptor.
15563 (extract_bundle): New function.
15564 (check_liw_constraints): New function.
15565 (liw_candidate): New function.
15566 (mn10300_bundle_liw): New function.
15567 (mn10300_reorg): New function.
15568 (TARGET_MACHINE_DEPENDENT_REORG): Define.
15569 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
15570 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
15571 __LIW__ or __NO_LIW__.
15572 * doc/invoke.texi: Describe the -mliw command line option.
15573
15574 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15575
15576 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
15577 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
15578 pthread_mutex_unlock): Remove.
15579 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
15580 * config/pa/t-pa64: Likewise.
15581 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
15582 shared libc if not linking against libpthread.
15583 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
15584
15585 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
15586
15587 PR target/47558
15588 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
15589 on 10.6 and later to ensure that we always use the unwinder from
15590 the system. Only add -no_compact_unwind when tarteting darwin
15591 10.6 or later.
15592
15593 2011-02-07 Steve Ellcey <sje@cup.hp.com>
15594
15595 PR target/46997
15596 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
15597 (vec_interleave_lowv2sf): Ditto.
15598 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
15599 (vec_extract_oddv2sf): Ditto.
15600
15601 2011-02-07 Mike Stump <mikestump@comcast.net>
15602
15603 PR target/42333
15604 Add __ieee_divdc3 entry point.
15605 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
15606 entry point.
15607 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
15608 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
15609 * config/darwin.c (darwin_rename_builtins): Add.
15610 * config/darwin-protos.h (darwin_rename_builtins): Add.
15611
15612 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
15613
15614 PR target/47636
15615 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
15616 for the condition.
15617
15618 2011-02-07 Mike Stump <mikestump@comcast.net>
15619
15620 * config/darwin.opt (mmacosx-version-min): Update default OS version.
15621
15622 2011-02-07 Denis Chertykov <chertykov@gmail.com>
15623
15624 PR target/47534
15625 * config/avr/libgcc.S (exit): Move .endfunc
15626
15627 2011-02-07 Richard Guenther <rguenther@suse.de>
15628
15629 PR tree-optimization/47615
15630 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
15631 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
15632 (run_scc_vn): Initialize it.
15633 (visit_reference_op_load): Use it.
15634 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
15635
15636 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15637
15638 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
15639 DImode trapping arithmetic libfuncs.
15640
15641 2011-02-07 Richard Guenther <rguenther@suse.de>
15642
15643 PR tree-optimization/47621
15644 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
15645 two duplicates ...
15646 (execute_update_addresses_taken): ... here. Make it more
15647 conservative in what we accept.
15648
15649 2011-02-06 Joseph Myers <joseph@codesourcery.com>
15650
15651 * config/sparc/freebsd.h (ASM_SPEC): Define.
15652 * config/sparc/vxworks.h (ASM_SPEC): Define.
15653
15654 2011-02-06 Joseph Myers <joseph@codesourcery.com>
15655
15656 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
15657
15658 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
15659
15660 * doc/invoke.texi: Remove reference to compiler internals from
15661 user documentation.
15662
15663 * reg-notes.def: Remove REG_VALUE_PROFILE.
15664 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
15665
15666 2011-02-05 Jakub Jelinek <jakub@redhat.com>
15667
15668 PR middle-end/47610
15669 * varasm.c (default_section_type_flags): If decl is NULL,
15670 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
15671
15672 2011-02-05 Jie Zhang <jie@codesourcery.com>
15673
15674 PR debug/42631
15675 * web.c (entry_register): Don't clobber the number of the
15676 first uninitialized reference in used[].
15677
15678 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
15679
15680 PR tree-optimization/46194
15681 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
15682 (build_classic_dist_vector_1): Do not represent classic distance
15683 vectors when the access functions are variating in different loops.
15684
15685 2011-02-04 Joseph Myers <joseph@codesourcery.com>
15686
15687 * config/mips/iris6.opt: New.
15688 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
15689
15690 2011-02-04 Richard Henderson <rth@redhat.com>
15691 Steve Ellcey <sje@cup.hp.com>
15692
15693 PR target/46997
15694 * config/ia64/predicates.md (mux1_brcst_element): New.
15695 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
15696 * config/ia64/ia64.c (ia64_unpack_assemble): New.
15697 (ia64_unpack_sign): New.
15698 (ia64_expand_unpack): Rewrite using new routines.
15699 (ia64_expand_widen_sum): Ditto.
15700 (ia64_expand_dot_prod_v8qi): Ditto.
15701 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
15702 routines, add endian check.
15703 (pmpy2_even): Rename from pmpy2_r, add endian check.
15704 (pmpy2_odd): Rename from pmpy2_l, add endian check.
15705 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
15706 (vec_widen_smult_hi_v4hi): Ditto.
15707 (vec_widen_umult_lo_v4hi): Ditto.
15708 (vec_widen_umult_hi_v4hi): Ditto.
15709 (mulv2si3): Change endian checks.
15710 (sdot_prodv4hi): Rewrite with new calls.
15711 (udot_prodv4hi): New.
15712 (vec_pack_ssat_v4hi): Add endian check.
15713 (vec_pack_usat_v4hi): Ditto.
15714 (vec_pack_ssat_v2si): Ditto.
15715 (max1_even): Rename from max1_r, add endian check.
15716 (max1_odd): Rename from max1_l, add endian check.
15717 (*mux1_rev): Format change.
15718 (*mux1_mix): Ditto.
15719 (*mux1_shuf): Ditto.
15720 (*mux1_alt): Ditto.
15721 (*mux1_brcst_v8qi): Use new predicate.
15722 (vec_extract_evenv8qi): Remove endian check.
15723 (vec_extract_oddv8qi): Ditto.
15724 (vec_interleave_lowv4hi): Format change.
15725 (vec_interleave_highv4hi): Ditto.
15726 (mix2_even): Rename from mix2_r, add endian check.
15727 (mix2_odd): Rename from mux2_l, add endian check.
15728 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
15729 (vec_extract_evenodd_helper): Format change.
15730 (vec_extract_evenv4hi): Remove endian check.
15731 (vec_extract_oddv4hi): Remove endian check.
15732 (vec_interleave_lowv2si): Format change.
15733 (vec_interleave_highv2si): Format change.
15734 (vec_initv2si): Remove endian check.
15735 (vecinit_v2si): Add endian check.
15736 (reduc_splus_v2sf): Add endian check.
15737 (reduc_smax_v2sf): Ditto.
15738 (reduc_smin_v2sf): Ditto.
15739 (vec_initv2sf): Remove endian check.
15740 (fpack): Add endian check.
15741 (fswap): Add endian check.
15742 (vec_interleave_highv2sf): Add endian check.
15743 (vec_interleave_lowv2sf): Add endian check.
15744 (fmix_lr): Add endian check.
15745 (vec_setv2sf): Format change.
15746 (*vec_extractv2sf_0_be): Use shift to extract operand.
15747 (*vec_extractv2sf_1_be): New.
15748 (vec_pack_trunc_v4hi): Add endian check.
15749 (vec_pack_trunc_v2si): Format change.
15750
15751 2011-02-04 Jakub Jelinek <jakub@redhat.com>
15752
15753 PR inline-asm/23200
15754 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
15755 do bb, locus and block comparison and disallow loads if it is not set.
15756 (stmt_is_replaceable_p): New function.
15757 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
15758 callers.
15759 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
15760 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
15761 SSA_NAME_DEF_STMT.
15762 * tree-flow.h (stmt_is_replaceable_p): New prototype.
15763
15764 2011-02-04 Joseph Myers <joseph@codesourcery.com>
15765
15766 * config/rs6000/xilinx.opt: New.
15767 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
15768
15769 2011-02-04 Joseph Myers <joseph@codesourcery.com>
15770
15771 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
15772
15773 2011-02-03 Anatoly Sokolov <aesok@post.ru>
15774
15775 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
15776 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
15777 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
15778 secondary_reload_info, xtensa_secondary_reload): Remove.
15779 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
15780 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
15781 (xtensa_preferred_reload_class): Make static. Change return and
15782 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
15783 Use CONST_DOUBLE_P predicate.
15784 (xtensa_preferred_output_reload_class): New function.
15785 (xtensa_secondary_reload): Make static.
15786
15787 2011-02-03 Joseph Myers <joseph@codesourcery.com>
15788
15789 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
15790 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
15791 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
15792
15793 2011-02-03 Jakub Jelinek <jakub@redhat.com>
15794
15795 PR middle-end/31490
15796 * output.h (SECTION_RELRO): Define.
15797 (SECTION_MACH_DEP): Adjust.
15798 (get_variable_section): New prototype.
15799 * varpool.c (varpool_finalize_named_section_flags): New function.
15800 (varpool_assemble_pending_decls): Call it.
15801 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
15802 * cgraphunit.c (cgraph_output_in_order): Call
15803 varpool_finalize_named_section_flags.
15804 * varasm.c (get_section): Allow section flags conflicts between
15805 relro and read-only sections if the section hasn't been declared yet.
15806 Set SECTION_OVERRIDE after diagnosing section type conflict.
15807 (get_variable_section): No longer static.
15808 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
15809 readonly sections that need relocations.
15810 (decl_readonly_section_1): New function.
15811 (decl_readonly_section): Use it.
15812
15813 Revert:
15814 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
15815 Steve Ellcey <sje@cup.hp.com>
15816
15817 PR middle-end/31490
15818 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
15819 if section attribute used.
15820
15821 2011-02-03 Jakub Jelinek <jakub@redhat.com>
15822
15823 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
15824 * config/darwin.c (SECTION_NO_ANCHOR): Define.
15825 (darwin_init_sections): Remove assertion.
15826
15827 2011-02-03 Nick Clifton <nickc@redhat.com>
15828
15829 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
15830 lt and ge.
15831 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
15832 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
15833 instead of "n" and "pz".
15834 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
15835 CC_FLAG_S.
15836
15837 2011-02-03 Jakub Jelinek <jakub@redhat.com>
15838
15839 PR target/47312
15840 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
15841 fma, expand FMA_EXPR as fma{,f,l} call.
15842
15843 PR lto/47274
15844 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
15845 copy them into a unsigned char variable and pass address of it to
15846 lto_output_data_stream.
15847
15848 PR target/47564
15849 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
15850 around backend_init_target and lang_dependent_init_target calls.
15851 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
15852 (verify_cgraph_node): Don't call set_cfun here. Use
15853 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
15854 Set error_found for incorrectly represented calls to thunks.
15855
15856 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
15857
15858 PR debug/43092
15859 PR rtl-optimization/43494
15860 * rtl.h (for_each_inc_dec_fn): New type.
15861 (for_each_inc_dec): Declare.
15862 * rtlanal.c (struct for_each_inc_dec_ops): New type.
15863 (for_each_inc_dec_find_inc_dec): New fn.
15864 (for_each_inc_dec_find_mem): New fn.
15865 (for_each_inc_dec): New fn.
15866 * dse.c (struct insn_size): Remove.
15867 (replace_inc_dec, replace_inc_dec_mem): Remove.
15868 (emit_inc_dec_insn_before): New fn.
15869 (check_for_inc_dec): Use it, along with for_each_inc_dec.
15870 (canon_address): Pass mem modes to cselib_lookup.
15871 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
15872 (cselib_lookup_from_insn): Likewise.
15873 (cselib_subst_to_values): Likewise.
15874 * cselib.c (find_slot_memmode): New var.
15875 (cselib_find_slot): New fn. Use it instead of
15876 htab_find_slot_with_hash everywhere.
15877 (entry_and_rtx_equal_p): Use find_slot_memmode.
15878 (autoinc_split): New fn.
15879 (rtx_equal_for_cselib_p): Rename and implement in terms of...
15880 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
15881 Deal with autoinc. Special-case recursion into MEMs.
15882 (cselib_hash_rtx): Likewise.
15883 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
15884 address and MEM modes.
15885 (cselib_subst_to_values): Add memmode, pass it on.
15886 Deal with autoinc.
15887 (cselib_lookup): Add memmode argument, pass it on.
15888 (cselib_lookup_from_insn): Add memmode.
15889 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
15890 (struct cselib_record_autoinc_data): New.
15891 (cselib_record_autoinc_cb): New fn.
15892 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
15893 mode to cselib_lookup. Reset autoinced REGs here instead of...
15894 (cselib_process_insn): ... here.
15895 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
15896 to cselib_lookup.
15897 (add_uses): Likewise, also to cselib_subst_to_values.
15898 (add_stores): Likewise.
15899 * sched-deps.c (add_insn_mem_dependence): Pass mode to
15900 cselib_subst_to_values.
15901 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
15902 * gcse.c (do_local_cprop): Adjusted.
15903 * postreload.c (reload_cse_simplify_set): Adjusted.
15904 (reload_cse_simplify_operands): Adjusted.
15905 * sel-sched-dump (debug_mem_addr_value): Pass mode.
15906
15907 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
15908
15909 PR tree-optimization/45122
15910 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
15911 unsafe assumptions when there's more than one loop exit.
15912
15913 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
15914
15915 PR target/47272
15916 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
15917 Document using vector double with the load/store builtins, and
15918 that the load/store builtins always use Altivec instructions.
15919
15920 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
15921 to use altivec memory instructions, even on VSX.
15922 (vector_altivec_store_<mode>): Ditto.
15923
15924 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
15925 function.
15926
15927 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
15928 V2DF, V2DI support to load/store overloaded builtins.
15929
15930 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
15931 altivec load/store builtins for V2DF/V2DI types.
15932
15933 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
15934 set avoid indexed addresses on power6 if -maltivec.
15935 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
15936 vector_altivec_load/vector_altivec_store builtins.
15937 (altivec_expand_st_builtin): Ditto.
15938 (altivec_expand_builtin): Add VSX memory builtins.
15939 (rs6000_init_builtins): Add V2DI types to internal types.
15940 (altivec_init_builtins): Add support for V2DF/V2DI altivec
15941 load/store builtins.
15942 (rs6000_address_for_altivec): Insure memory address is appropriate
15943 for Altivec.
15944
15945 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
15946 vec_vsx_ld and vec_vsx_st.
15947 (vsx_store_<mode>): Ditto.
15948
15949 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
15950 variables to hold long long types for VSX vector memory builtins.
15951 (RS6000_BTI_unsigned_long_long): Ditto.
15952 (long_long_integer_type_internal_node): Ditti.
15953 (long_long_unsigned_type_internal_node): Ditti.
15954
15955 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
15956 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
15957 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
15958
15959 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
15960 short cuts.
15961 (vec_vsx_st): Ditto.
15962
15963 2011-02-02 Joseph Myers <joseph@codesourcery.com>
15964
15965 * config/pa/pa-hpux10.opt: New.
15966 * config/hpux11.opt (pthread): New Driver option.
15967 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
15968 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
15969
15970 2011-02-02 Joseph Myers <joseph@codesourcery.com>
15971
15972 * config/ia64/vms.opt: New.
15973 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
15974
15975 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
15976
15977 PR target/47580
15978 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
15979 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
15980 generator functions.
15981 (vsx_floatuns<VSi><mode>2): Ditto.
15982 (vsx_fix_trunc<mode><VSi>2): Ditto.
15983 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
15984
15985 2011-02-02 Joseph Myers <joseph@codesourcery.com>
15986
15987 * config/i386/djgpp.opt (posix): New Driver option.
15988
15989 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
15990
15991 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
15992 Move to the unsupported targets list.
15993
15994 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
15995
15996 PR rtl-optimization/47525
15997 * df-scan.c: Update copyright years.
15998 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
15999 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
16000
16001 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16002
16003 * config/i386/sysv4.h (TARGET_VERSION): Remove.
16004 (SUBTARGET_RETURN_IN_MEMORY): Remove.
16005 (ASM_OUTPUT_ASCII): Remove.
16006 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
16007
16008 2011-02-02 Jeff Law <law@redhat.com>
16009
16010 PR middle-end/47543
16011 * reload.c (find_reloads_address): Handle reg+d address where both
16012 components are invalid by reloading the entire address.
16013
16014 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
16015 Richard Guenther <rguenther@suse.de>
16016
16017 PR tree-optimization/40979
16018 PR bootstrap/47044
16019 * passes.c (init_optimization_passes): After LIM call copy_prop
16020 and DCE to clean up.
16021 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
16022
16023 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
16024
16025 PR tree-optimization/47576
16026 PR tree-optimization/47555
16027 * doc/invoke.texi (scev-max-expr-complexity): Documented.
16028 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
16029 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
16030 * tree-scalar-evolution.c (follow_ssa_edge): Use
16031 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
16032
16033 2011-02-02 Richard Guenther <rguenther@suse.de>
16034
16035 PR tree-optimization/47566
16036 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
16037
16038 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
16039
16040 PR debug/47106
16041 PR debug/47402
16042 * tree-inline.c (declare_return_variable): Remove unused caller
16043 variable.
16044
16045 PR debug/47106
16046 PR debug/47402
16047 * tree-flow-inline.h (clear_is_used, is_used_p): New.
16048 * cfgexpand.c (account_used_vars_for_block): Use them.
16049 * tree-nrv.c (tree_nrv): Likewise.
16050 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
16051 (dump_scope_block): Likewise.
16052 (remove_unused_locals): Likewise.
16053
16054 PR debug/47106
16055 PR debug/47402
16056 * tree-inline.c (declare_return_variable): Add result decl to
16057 local decls only once.
16058 * gimple-low.c (record_vars_into): Mark newly-created variables
16059 as referenced.
16060
16061 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
16062
16063 PR debug/47498
16064 PR debug/47501
16065 PR debug/45136
16066 PR debug/45130
16067 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
16068 debug insns.
16069 (no_real_insns_p, schedule_block, set_priorities): Drop special
16070 treatment of boundary debug insns.
16071 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
16072 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
16073 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
16074 (BOUNDARY_DEBUG_INSN_P): Likewise.
16075 (SCHEDULE_DEBUG_INSN_P): Likewise.
16076 * sched-rgn.c (init_ready_list): Drop special treatment of
16077 boundary debug insns.
16078 * final.c (rest_of_clean_state): Clear notes' BB.
16079
16080 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16081
16082 * config/openbsd.opt (assert=): New Driver option.
16083
16084 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16085
16086 * config/i386/nto.opt: New.
16087 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
16088
16089 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16090
16091 * config/i386/netware.opt: New.
16092 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
16093
16094 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16095
16096 * config/interix.opt (posix): New Driver option.
16097
16098 2011-02-01 DJ Delorie <dj@redhat.com>
16099
16100 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
16101
16102 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
16103 class for A0/A1.
16104
16105 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
16106
16107 PR tree-optimization/47561
16108 * toplev.c (process_options): Print the Graphite flags. Add
16109 flag_loop_flatten to the list of options requiring Graphite.
16110
16111 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16112
16113 * config/i386/cygming.opt (posix): New Driver option.
16114
16115 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16116
16117 * config/arm/vxworks.opt: New.
16118 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
16119
16120 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16121
16122 * config/alpha/elf.opt: New.
16123 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
16124 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
16125
16126 2011-02-01 Richard Guenther <rguenther@suse.de>
16127
16128 PR tree-optimization/47559
16129 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
16130 store-motion on references that can throw.
16131
16132 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
16133
16134 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
16135 * tree-pass.h (TDF_CSELIB): New macro.
16136 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
16137 cselib_lookup): Check for it rather than for TDF_DETAILS.
16138
16139 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
16140
16141 PR driver/47547
16142 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
16143 is HOST_BIT_BUCKET.
16144
16145 * opts.c (finish_options): Don't add x_aux_base_name if it is
16146 HOST_BIT_BUCKET.
16147
16148 2011-02-01 Richard Guenther <rguenther@suse.de>
16149
16150 PR tree-optimization/47555
16151 Revert
16152 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
16153
16154 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
16155
16156 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
16157
16158 PR gcc/46692
16159 * config/lm32/t-lm32: Add multilib for all CPU options.
16160
16161 2011-02-01 Richard Guenther <rguenther@suse.de>
16162
16163 PR tree-optimization/47541
16164 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
16165 sure to have a field at offset zero.
16166
16167 2011-01-31 Joseph Myers <joseph@codesourcery.com>
16168
16169 * config/arc/arc.opt (EB, EL): New Driver options.
16170
16171 2011-01-31 Joseph Myers <joseph@codesourcery.com>
16172
16173 * config/alpha/osf5.opt: New.
16174 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
16175
16176 2011-01-31 Joseph Myers <joseph@codesourcery.com>
16177
16178 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
16179
16180 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
16181
16182 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
16183 -floop-interchange.
16184 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
16185 is an alias of -floop-interchange and that it requires the
16186 Graphite infrastructure.
16187 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
16188 flag_loop_interchange based on the value of flag_tree_loop_linear.
16189
16190 2011-01-31 Jakub Jelinek <jakub@redhat.com>
16191 Richard Guenther <rguenther@suse.de>
16192
16193 PR tree-optimization/47538
16194 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
16195 type instead of r1type, except for comparisons. For right
16196 shifts and comparisons punt if there are mismatches in
16197 sizetype vs. non-sizetype types.
16198
16199 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16200
16201 * doc/sourcebuild.texi (Effective-Target Keywords): Document
16202 avx_runtime.
16203
16204 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16205
16206 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
16207 version number.
16208 * configure: Regenerate.
16209
16210 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16211
16212 * configure.ac (gcc_cv_ld_static_option): Define.
16213 (gcc_cv_ld_dynamic_option): Define.
16214 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
16215 instead.
16216 (HAVE_LD_STATIC_DYNAMIC): Update message.
16217 (LD_STATIC_OPTION): Define.
16218 (LD_DYNAMIC_OPTION): Define.
16219 * configure: Regenerate.
16220 * config.in: Regenerate.
16221 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
16222 HAVE_LD_STATIC_DYNAMIC]: Use them.
16223
16224 2011-01-31 Nick Clifton <nickc@redhat.com>
16225
16226 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
16227 registers inside interrupt handlers if the handler is not a leaf
16228 function.
16229
16230 2011-01-31 Nick Clifton <nickc@redhat.com>
16231
16232 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
16233 reg_renumber returning an INVALID_REGNUM.
16234
16235 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
16236
16237 PR libgcj/44341
16238 * doc/install.texi: Document host options discarded when cross
16239 configuring target libraries.
16240
16241 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
16242
16243 Reverted:
16244 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
16245 PR debug/45136
16246 PR debug/45130
16247 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
16248 debug insns.
16249 (no_real_insns_p, schedule_block, set_priorities): Drop special
16250 treatment of boundary debug insns.
16251 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
16252 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
16253 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
16254 (BOUNDARY_DEBUG_INSN_P): Likewise.
16255 (SCHEDULE_DEBUG_INSN_P): Likewise.
16256 * sched-rgn.c (init_ready_list): Drop special treatment of
16257 boundary debug insns.
16258 * final.c (rest_of_clean-state): Clear notes' BB.
16259
16260 2011-01-31 Alan Modra <amodra@gmail.com>
16261
16262 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
16263 toc relative expressions as we do in print_operand_address.
16264
16265 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
16266
16267 * doc/extend.texi: Follow spelling conventions.
16268 * doc/invoke.texi: Fix a typo.
16269
16270 2011-01-30 Joseph Myers <joseph@codesourcery.com>
16271
16272 * config/hpux11.opt: New.
16273 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
16274 ia64*-*-hpux*): Use hpux11.opt.
16275
16276 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
16277
16278 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
16279 to tmake_file.
16280
16281 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
16282
16283 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
16284 support sites.
16285
16286 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
16287
16288 * doc/install.texi (Binaries): Remove outdated reference for
16289 Motorola 68HC11/68HC12 downloads.
16290
16291 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
16292
16293 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
16294 Drepper's paper.
16295
16296 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
16297
16298 PR bootstrap/47147
16299 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
16300 used by NetBSD.
16301
16302 2011-01-28 Ahmad Sharif <asharif@google.com>
16303
16304 * value-prof.c (check_counter): Corrected error message.
16305
16306 2011-01-29 Jie Zhang <jie@codesourcery.com>
16307
16308 * config/arm/arm.c (arm_legitimize_reload_address): New.
16309 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
16310 arm_legitimize_reload_address.
16311 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
16312
16313 2011-01-28 Ian Lance Taylor <iant@google.com>
16314
16315 * godump.c (go_define): Ignore macros whose definitions include
16316 two adjacent operands.
16317
16318 2011-01-28 Jakub Jelinek <jakub@redhat.com>
16319
16320 PR target/42894
16321 * varasm.c (force_const_mem): Store copy of x in desc->constant
16322 instead of x itself.
16323 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
16324 itself into REG_EQUAL note.
16325
16326 2011-01-28 Joseph Myers <joseph@codesourcery.com>
16327
16328 * config/freebsd.opt (posix, rdynamic): New Driver options.
16329
16330 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16331
16332 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
16333 -Bstatic/-Bdynamic.
16334 * configure: Regenerate.
16335
16336 2011-01-27 Joseph Myers <joseph@codesourcery.com>
16337
16338 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
16339 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
16340
16341 2011-01-27 Anatoly Sokolov <aesok@post.ru>
16342
16343 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
16344 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
16345 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
16346 (s390_preferred_reload_class): Make static. Change return and
16347 'rclass' argument type to reg_class_t.
16348
16349 2011-01-27 Jan Hubicka <jh@suse.cz>
16350
16351 PR middle-end/46949
16352 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
16353 (process_function_and_variable_attributes): Check defined weakrefs.
16354
16355 2011-01-27 Martin Jambor <mjambor@suse.cz>
16356
16357 PR tree-optimization/47228
16358 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
16359 build_ref_for_offset.
16360
16361 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16362
16363 * config/spu/spu-elf.h (ASM_SPEC): Remove.
16364
16365 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
16366
16367 PR rtl-optimization/46856
16368 * postreload.c (reload_combine_recognize_const_pattern): Do not
16369 separate cc0 setter and user on cc0 targets.
16370
16371 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
16372
16373 PR c/43082
16374 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
16375 passed a VOID_TYPE expression, immediately emit an error and
16376 return error_mark_node.
16377
16378 2011-01-26 Jeff Law <law@redhat.com>
16379
16380 PR rtl-optimization/47464
16381 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
16382 rather than may_trap_p as needed.
16383
16384 2011-01-26 DJ Delorie <dj@redhat.com>
16385
16386 PR rtl-optimization/46878
16387 * combine.c (insn_a_feeds_b): Check for the implicit cc0
16388 setter/user dependency as well.
16389
16390 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
16391
16392 PR rtl-optimization/44469
16393 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
16394 after removing trivially dead basic blocks.
16395
16396 2011-01-26 Joseph Myers <joseph@codesourcery.com>
16397
16398 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
16399 * config/frv/frv.h (LINK_SPEC): Likewise.
16400 * config/i386/netware.h (LINK_SPEC): Likewise.
16401 * config/m68k/linux.h (ASM_SPEC): Likewise.
16402 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
16403 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
16404 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
16405 * config/sparc/linux.h (ASM_SPEC): Likewise.
16406 * config/sparc/linux64.h (ASM_SPEC): Likewise.
16407 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
16408
16409 2011-01-26 Joseph Myers <joseph@codesourcery.com>
16410
16411 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
16412 * config/frv/frv.h (ASM_SPEC): Likewise.
16413 * config/m68k/linux.h (ASM_SPEC): Likewise.
16414 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
16415 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
16416 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
16417 * config/sparc/linux.h (ASM_SPEC): Likewise.
16418 * config/sparc/linux64.h (ASM_SPEC): Likewise.
16419 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
16420
16421 2011-01-26 Joseph Myers <joseph@codesourcery.com>
16422
16423 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
16424 * config/frv/frv.h (LINK_SPEC): Likewise.
16425 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
16426
16427 2011-01-26 Joseph Myers <joseph@codesourcery.com>
16428
16429 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
16430 * config/frv/frv.h (ASM_SPEC): Likewise.
16431 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
16432 * config/m68k/linux.h (ASM_SPEC): Likewise.
16433 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
16434 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
16435 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
16436 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
16437 * config/sparc/linux.h (ASM_SPEC): Likewise.
16438 * config/sparc/linux64.h (ASM_SPEC): Likewise.
16439 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
16440 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
16441
16442 2011-01-26 Steve Ellcey <sje@cup.hp.com>
16443
16444 PR target/46997
16445 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
16446 (*mux2): Ditto.
16447 (vec_extract_evenodd_help): Ditto.
16448 (vec_extract_evenv4hi): Ditto.
16449 (vec_extract_oddv4hi): Ditto.
16450 (vec_interleave_lowv2si): Ditto.
16451 (vec_interleave_highv2si): Ditto.
16452 (vec_extract_evenv2si): Ditto.
16453 (vec_extract_oddv2si: Ditto.
16454 (vec_pack_trunc_v2si): Ditto.
16455
16456 2011-01-22 Jan Hubicka <jh@suse.cz>
16457
16458 PR target/47237
16459 * cgraph.h (cgraph_local_info): New field can_change_signature.
16460 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
16461 signature can change.
16462 (ipcp_estimate_growth): Call sequence simplify only if calle signature
16463 can change.
16464 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
16465 (cgraph_function_versioning): We can not change signature of functions
16466 that don't allow that.
16467 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
16468 (lto_input_node): Likewise.
16469 * ipa-inline.c (compute_inline_parameters): Compute
16470 local.can_change_signature.
16471 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
16472 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
16473 functions that can not change signature.
16474 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
16475 init_cumulative_args): Do not use local calling conventions
16476 for functions that can not change signature.
16477
16478 2011-01-22 Jan Hubicka <jh@suse.cz>
16479
16480 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
16481
16482 2011-01-26 Richard Guenther <rguenther@suse.de>
16483
16484 PR tree-optimization/47190
16485 * cgraphunit.c (process_common_attributes): New function.
16486 (process_function_and_variable_attributes): Use it.
16487
16488 2011-01-26 Richard Guenther <rguenther@suse.de>
16489
16490 PR lto/47423
16491 * cgraphbuild.c (record_eh_tables): Record reference to personality
16492 function.
16493
16494 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
16495
16496 PR debug/45454
16497 * sel-sched.c (moveup_expr): Don't let debug insns prevent
16498 non-debug insns from moving up.
16499
16500 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
16501
16502 PR target/40125
16503 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
16504 t-dlldir{,-x} fragment for build and add it to tmake_file.
16505 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
16506 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
16507 * config/i386/t-dlldir: New file.
16508 (SHLIB_DLLDIR): Define.
16509 * config/i386/t-dlldir-x: New file.
16510 (SHLIB_DLLDIR): Define.
16511 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
16512 (SHLIB_INSTALL): Use it.
16513
16514 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
16515
16516 PR target/47246
16517 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
16518 lower bound of the allowed Thumb-2 coprocessor load/store
16519 index range to -256. Add explaining comment.
16520
16521 2011-01-25 Ian Lance Taylor <iant@google.com>
16522
16523 * godump.c (go_define): Improve lexing of macro expansion to only
16524 accept expressions which match Go spec.
16525
16526 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
16527
16528 PR c++/43601
16529 * tree.c (handle_dll_attribute): Handle it.
16530 * doc/extend.texi (@item dllexport): Mention it.
16531 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
16532
16533 2011-01-25 Ian Lance Taylor <iant@google.com>
16534
16535 PR tree-optimization/26854
16536 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
16537 (decl_jump_unsafe): Move higher in file, with no other change.
16538 (bind): Set has_jump_unsafe_decl if appropriate.
16539 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
16540 (check_earlier_gotos): Likewise.
16541 (c_check_switch_jump_warnings): Likewise.
16542
16543 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
16544
16545 * doc/invoke.texi (Warning Options): Add missing hyphen.
16546 (-fprofile-dir): Minor grammatical fixes.
16547 (-fbranch-probabilities): Likewise.
16548
16549 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
16550
16551 PR debug/45136
16552 PR debug/45130
16553 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
16554 debug insns.
16555 (no_real_insns_p, schedule_block, set_priorities): Drop special
16556 treatment of boundary debug insns.
16557 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
16558 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
16559 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
16560 (BOUNDARY_DEBUG_INSN_P): Likewise.
16561 (SCHEDULE_DEBUG_INSN_P): Likewise.
16562 * sched-rgn.c (init_ready_list): Drop special treatment of
16563 boundary debug insns.
16564 * final.c (rest_of_clean-state): Clear notes' BB.
16565
16566 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16567
16568 * Makefile.in (LAMBDA_H): Removed.
16569 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
16570 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
16571 lambda-trans.o, and tree-loop-linear.o.
16572 (lto-symtab.o): Remove dependence on LAMBDA_H.
16573 (tree-loop-linear.o): Remove rule.
16574 (lambda-mat.o): Same.
16575 (lambda-trans.o): Same.
16576 (lambda-code.o): Same.
16577 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
16578 (tree-vect-slp.o): Same.
16579 * hwint.h (gcd): Moved here.
16580 (least_common_multiple): Same.
16581 * lambda-code.c: Removed.
16582 * lambda-mat.c: Removed.
16583 * lambda-trans.c: Removed.
16584 * lambda.h: Removed.
16585 * tree-loop-linear.c: Removed.
16586 * lto-symtab.c: Do not include lambda.h.
16587 * omega.c (gcd): Removed.
16588 * passes.c (init_optimization_passes): Remove pass_linear_transform.
16589 * tree-data-ref.c (print_lambda_vector): Moved here.
16590 (lambda_vector_copy): Same.
16591 (lambda_matrix_copy): Same.
16592 (lambda_matrix_id): Same.
16593 (lambda_vector_first_nz): Same.
16594 (lambda_matrix_row_add): Same.
16595 (lambda_matrix_row_exchange): Same.
16596 (lambda_vector_mult_const): Same.
16597 (lambda_vector_negate): Same.
16598 (lambda_matrix_row_negate): Same.
16599 (lambda_vector_equal): Same.
16600 (lambda_matrix_right_hermite): Same.
16601 * tree-data-ref.h: Do not include lambda.h.
16602 (lambda_vector): Moved here.
16603 (lambda_matrix): Same.
16604 (dependence_level): Same.
16605 (lambda_transform_legal_p): Removed declaration.
16606 (lambda_collect_parameters): Same.
16607 (lambda_compute_access_matrices): Same.
16608 (lambda_vector_gcd): Same.
16609 (lambda_vector_new): Same.
16610 (lambda_vector_clear): Same.
16611 (lambda_vector_lexico_pos): Same.
16612 (lambda_vector_zerop): Same.
16613 (lambda_matrix_new): Same.
16614 * tree-flow.h (least_common_multiple): Removed declaration.
16615 * tree-parloops.c (lambda_trans_matrix): Moved here.
16616 (LTM_MATRIX): Same.
16617 (LTM_ROWSIZE): Same.
16618 (LTM_COLSIZE): Same.
16619 (LTM_DENOMINATOR): Same.
16620 (lambda_trans_matrix_new): Same.
16621 (lambda_matrix_vector_mult): Same.
16622 (lambda_transform_legal_p): Same.
16623 * tree-pass.h (pass_linear_transform): Removed declaration.
16624 * tree-ssa-loop.c (tree_linear_transform): Removed.
16625 (gate_tree_linear_transform): Removed.
16626 (pass_linear_transform): Removed.
16627 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
16628 flag_loop_interchange.
16629
16630 2011-01-25 Jakub Jelinek <jakub@redhat.com>
16631
16632 PR tree-optimization/47265
16633 PR tree-optimization/47443
16634 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
16635 if name still has some uses.
16636
16637 2011-01-25 Martin Jambor <mjambor@suse.cz>
16638
16639 PR tree-optimization/47382
16640 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
16641 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
16642
16643 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
16644
16645 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
16646 sjlj_except_unwind_info.
16647
16648 2011-01-25 Richard Guenther <rguenther@suse.de>
16649
16650 PR tree-optimization/47426
16651 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
16652 visible functions results escape.
16653
16654 2011-01-25 Jakub Jelinek <jakub@redhat.com>
16655
16656 PR target/45701
16657 * config/arm/arm.c (any_sibcall_uses_r3): New function.
16658 (arm_get_frame_offsets): Use it.
16659
16660 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16661 Jakub Jelinek <jakub@redhat.com>
16662
16663 PR tree-optimization/47271
16664 * tree-if-conv.c (bb_postdominates_preds): New.
16665 (if_convertible_bb_p): Call bb_postdominates_preds.
16666 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
16667 (predicate_scalar_phi): Call bb_postdominates_preds.
16668
16669 2011-01-25 Nick Clifton <nickc@redhat.com>
16670
16671 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
16672 * config/rx/rx.c (rx_function_value): Likewise.
16673 (rx_promote_function_mode): Likewise.
16674 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
16675 in order to make it legitimate.
16676 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
16677 make sure that the first operand is the same as the result register.
16678 (addsi3_unspec): Delete.
16679 (subdi3): Do not accept immediate operands.
16680 (subdi3_internal): Likewise.
16681
16682 2011-01-25 Jeff Law <law@redhat.com>
16683
16684 PR rtl-optimization/37273
16685 * ira-costs.c (scan_one_insn): Detect constants living in memory and
16686 handle them like argument loads from stack slots. Do not double
16687 count memory for memory constants and argument loads from stack slots.
16688
16689 2011-01-25 Jakub Jelinek <jakub@redhat.com>
16690
16691 PR tree-optimization/47427
16692 PR tree-optimization/47428
16693 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
16694 coalesce if the new root var would be TREE_READONLY.
16695
16696 2011-01-25 Richard Guenther <rguenther@suse.de>
16697
16698 PR middle-end/47414
16699 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
16700 correct type for TBAA.
16701
16702 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16703
16704 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
16705 (close_phi_written_to_memory): Call for_each_index with
16706 dr_indices_valid_in_loop.
16707
16708 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16709
16710 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
16711 when it is initialized.
16712
16713 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16714
16715 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
16716 call to graphite_find_data_references_in_stmt.
16717 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
16718 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
16719 call to graphite_find_data_references_in_stmt.
16720 (analyze_drs_in_stmts): Same.
16721 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
16722 in which the scalar analysis of indices is performed.
16723 (create_data_ref): Same. Update call to dr_analyze_indices.
16724 (find_data_references_in_stmt): Update call to create_data_ref.
16725 (graphite_find_data_references_in_stmt): Same.
16726 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
16727 declaration.
16728 (create_data_ref): Same.
16729 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
16730 call to create_data_ref.
16731
16732 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16733
16734 * graphite-sese-to-poly.c (build_poly_scop): Move
16735 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
16736
16737 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16738
16739 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
16740 VAR_DECL, PARM_DECL, and RESULT_DECL.
16741
16742 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16743
16744 * graphite-dependences.c (reduction_dr_1): Allow several reductions
16745 in a reduction PBB.
16746 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
16747 that have already been marked as PBB_IS_REDUCTION.
16748
16749 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16750
16751 * graphite-scop-detection.c (same_close_phi_node): New.
16752 (remove_duplicate_close_phi): New.
16753 (make_close_phi_nodes_unique): New.
16754 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
16755
16756 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16757
16758 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
16759 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
16760 of both data references to be the same.
16761
16762 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16763
16764 * graphite-dependences.c (build_lexicographical_constraint): Remove
16765 the gdim parameter.
16766 (build_lexicographical_constraint): Adjust call to
16767 ppl_powerset_is_empty.
16768 (dependence_polyhedron): Same.
16769 (graphite_legal_transform_dr): Same.
16770 (graphite_carried_dependence_level_k): Same.
16771 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
16772 parameter.
16773 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
16774
16775 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16776
16777 * graphite-sese-to-poly.c
16778 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
16779 (close_phi_written_to_memory): New.
16780 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
16781 and unshare_expr.
16782
16783 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16784
16785 * doc/install.texi: Update the expected version number of PPL to 0.11.
16786 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
16787 #if PPL_VERSION_MINOR < 11.
16788
16789 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16790
16791 * graphite-dependences.c: Include graphite-cloog-util.h.
16792 (new_poly_ddr): Inlined into dependence_polyhedron.
16793 (free_poly_ddr): Moved close by new_poly_ddr.
16794 (dependence_polyhedron_1): Renamed dependence_polyhedron.
16795 Early return NULL when ppl_powerset_is_empty returns true.
16796 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
16797 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
16798 (graphite_legal_transform_dr): Call new_poly_ddr.
16799 (graphite_carried_dependence_level_k): Same.
16800 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
16801 (dot_transformed_deps_stmt_1): Removed.
16802 (dot_deps_stmt_1): Call dot_deps_stmt_2.
16803 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
16804 (dot_deps_1): Call dot_deps_2.
16805 * Makefile.in (graphite-dependences.o): Add missing dependence on
16806 graphite-cloog-util.h.
16807
16808 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16809
16810 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
16811 (build_lexicographical_constraint): Same.
16812 (dependence_polyhedron_1): Same.
16813 (graphite_legal_transform_dr): Same.
16814 (graphite_carried_dependence_level_k): Same.
16815 * graphite-ppl.c (ppl_powerset_is_empty): New.
16816 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
16817 * tree-data-ref.c (dump_data_reference): Print the basic block index.
16818
16819 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16820
16821 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
16822 the "a followed by b" relation and document it.
16823
16824 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16825
16826 * graphite-dependences.c (build_lexicographical_constraint): Stop the
16827 iteration when the bag of constraints is empty.
16828
16829 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16830
16831 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
16832
16833 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16834
16835 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
16836 nest and two loop depths as parameters.
16837 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
16838 lst_perfect_nestify.
16839
16840 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16841
16842 * graphite-dependences.c (print_pddr): Call
16843 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
16844
16845 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16846
16847 * graphite-ppl.c (debug_gmp_value): New.
16848 * graphite-ppl.h (debug_gmp_value): Declared.
16849
16850 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
16851
16852 * doc/install.texi: Document availability of cloog-0.16.
16853
16854 2011-01-25 Vladimir Kargov <kargov@gmail.com>
16855
16856 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
16857 invalid postdominance info.
16858
16859 2011-01-24 Jan Hubicka <jh@suse.cz>
16860
16861 PR c/21659
16862 * doc/extend.texi (weak pragma): Drop claim that it must
16863 appear before definition.
16864 * varasm.c (merge_weak, declare_weak): Only sanity check
16865 that DECL is not output at a time it is declared weak.
16866
16867 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
16868
16869 * machmode.def: Fixed comments.
16870
16871 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
16872
16873 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
16874
16875 2011-01-24 Paul Koning <ni1d@arrl.net>
16876
16877 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
16878 WORDS_BIG_ENDIAN.
16879
16880 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
16881
16882 PR target/46519
16883 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
16884 (block_info): Add scanned and prev.
16885 (move_or_delete_vzeroupper_2): Return if the basic block
16886 has been scanned and the upper 128bit state is unchanged
16887 from the last scan.
16888 (move_or_delete_vzeroupper_1): Return true if the exit
16889 state is changed.
16890 (move_or_delete_vzeroupper): Visit basic blocks using the
16891 work-list based algorithm based on vt_find_locations in
16892 var-tracking.c.
16893
16894 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
16895
16896 2011-01-24 Nick Clifton <nickc@redhat.com>
16897
16898 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
16899 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
16900 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
16901 then define __v850e1__.
16902 * doc/invoke.texi: Document -mv850es.
16903
16904 2011-01-24 Richard Henderson <rth@redhat.com>
16905
16906 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
16907 compound unordered comparisons.
16908 * config/rx/rx.c (rx_split_fp_compare): Remove.
16909 * config/rx/rx-protos.h: Update.
16910 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
16911 (cbranchsf4): Don't call rx_split_fp_compare.
16912 (*cbranchsf4): Use rx_split_cbranch.
16913 (*cmpsf): Don't accept "i" constraint.
16914 (*conditional_branch): Only valid after reload.
16915 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
16916
16917 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
16918
16919 PR target/47385
16920 * config/rs6000/altivec.md (vector constant splitters): Add
16921 support for creating vector single precision constants if -mvsx is
16922 used and we would create the constant using Altivec primitives.
16923
16924 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
16925 Richard Sandiford <rdsandiford@googlemail.com>
16926
16927 PR rtl-optimization/47166
16928 * reload1.c (emit_reload_insns): Disable the spill_reg_store
16929 mechanism for PRE_MODIFY and POST_MODIFY.
16930 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
16931 reloadreg.
16932
16933 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
16934
16935 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
16936
16937 2011-01-22 Jan Hubicka <jh@suse.cz>
16938
16939 PR lto/47333
16940 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
16941
16942 2011-01-22 Jan Hubicka <jh@suse.cz>
16943
16944 PR tree-optimization/43884
16945 PR lto/44334
16946 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
16947 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
16948
16949 2011-01-22 Anatoly Sokolov <aesok@post.ru>
16950
16951 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
16952 * config/s390/s390.c (s390_register_move_cost,
16953 s390_memory_move_cost): New.
16954 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
16955
16956 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16957
16958 PR middle-end/47401
16959 * except.c (sjlj_assign_call_site_values): Move setting the
16960 crtl->uses_eh_lsda flag to ...
16961 (sjlj_mark_call_sites): ... here.
16962 (sjlj_emit_function_enter): Support NULL dispatch label.
16963 (sjlj_build_landing_pads): In a function with no landing pads
16964 that still has must-not-throw regions, generate code to register
16965 a personality function with empty LSDA.
16966
16967 2011-01-21 Richard Henderson <rth@redhat.com>
16968
16969 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
16970
16971 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
16972
16973 * compare-elim.c: New file.
16974 * Makefile.in (OBJS-common): Add it.
16975 (compare-elim.o): New.
16976 * common.opt (fcompare-elim): New.
16977 * opts.c (default_options_table): Add OPT_fcompare_elim.
16978 * tree-pass.h (pass_compare_elim_after_reload): New.
16979 * passes.c (init_optimization_passes): Add it.
16980 * recog.h: Protect against re-inclusion.
16981 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
16982 * doc/invoke.texi (-fcompare-elim): Document it.
16983 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
16984 * doc/tm.texi: Rebuild.
16985
16986 2011-01-22 Nick Clifton <nickc@redhat.com>
16987
16988 * config/rx/rx.md (cstoresf4): Pass comparison operator to
16989 rx_split_fp_compare.
16990
16991 2011-01-22 Nick Clifton <nickc@redhat.com>
16992
16993 * config/rx/rx.md (UNSPEC_CONST): New.
16994 (deallocate_and_return): Wrap the amount popped off the stack in
16995 an UNSPEC_CONST in order to stop it being rejected by
16996 -mmax-constant-size.
16997 (pop_and_return): Add a "(return)" rtx.
16998 (call): Drop the immediate operand.
16999 (call_internal): Likewise.
17000 (call_value): Likewise.
17001 (call_value_internal): Likewise.
17002 (sibcall_internal): Likewise.
17003 (sibcall_value_internal): Likewise.
17004 (sibcall): Likewise. Generate an explicit call using
17005 sibcall_internal.
17006 (sibcall_value): Likewise.
17007 (mov<>): FAIL if a constant operand is not legitimate.
17008 (addsi3_unpsec): New pattern.
17009
17010 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
17011 (ok_for_max_constant): New function.
17012 (gen_safe_add): New function.
17013 (rx_expand_prologue): Use gen_safe_add.
17014 (rx_expand_epilogue): Likewise.
17015 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
17016 UNSPEC CONSTs.
17017
17018 2011-01-21 Jeff Law <law@redhat.com>
17019
17020 PR tree-optimization/47053
17021 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
17022 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
17023 statements are deleted.
17024 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
17025 is nonempty, then purge dead edges and cleanup the CFG.
17026
17027 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
17028
17029 PR debug/47402
17030 Temporarily revert:
17031 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
17032 PR debug/47106
17033 * tree-dfa.c (create_var_ann): Mark variable as used.
17034
17035 2011-01-21 Jakub Jelinek <jakub@redhat.com>
17036
17037 PR middle-end/45566
17038 * except.c (convert_to_eh_region_ranges): Emit queued no-region
17039 notes from other section in hot/cold partitioning even if
17040 last_action is -3. Increment call_site_base.
17041
17042 PR rtl-optimization/47366
17043 * fwprop.c (forward_propagate_into): Return bool. If
17044 any changes are made, -fnon-call-exceptions is used and
17045 REG_EH_REGION note is present, call purge_dead_edges
17046 and return true if it purged anything.
17047 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
17048 any EH edges were purged.
17049
17050 2011-01-21 Jeff Law <law@redhat.com>
17051
17052 PR rtl-optimization/41619
17053 * caller-save.c (setup_save_areas): Break out code to determine
17054 which hard regs are live across calls by examining the reload chains
17055 so that it is always used.
17056 Eliminate code which checked REG_N_CALLS_CROSSED.
17057
17058 2011-01-21 Jakub Jelinek <jakub@redhat.com>
17059
17060 PR tree-optimization/47355
17061 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
17062 NOP has non-debug uses beyond PHIs in new_bb.
17063
17064 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
17065
17066 PR debug/47106
17067 * cfgexpand.c (account_used_vars_for_block): Only account vars
17068 that are annotated as used.
17069 (estimated_stack_frame_size): Don't set TREE_USED.
17070 * tree-dfa.c (create_var_ann): Mark variable as used.
17071
17072 2011-01-21 Richard Guenther <rguenther@suse.de>
17073
17074 PR middle-end/47395
17075 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
17076
17077 2011-01-21 Richard Guenther <rguenther@suse.de>
17078
17079 PR tree-optimization/47365
17080 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
17081 (vn_reference_lookup_pieces): Adjust.
17082 (vn_reference_lookup): Likewise.
17083 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
17084 (vn_reference_lookup_3): Only look through kills if in
17085 VN_WALKREWRITE mode.
17086 (vn_reference_lookup_pieces): Adjust.
17087 (vn_reference_lookup): Likewise.
17088 (visit_reference_op_load): Likewise.
17089 (visit_reference_op_store): Likewise.
17090 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
17091 (compute_avail): Likewise.
17092 (eliminate): Likewise.
17093
17094 2011-01-21 Jakub Jelinek <jakub@redhat.com>
17095
17096 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
17097 DECL_IGNORED_P non-reg vars if they are used.
17098
17099 PR tree-optimization/47391
17100 * varpool.c (const_value_known_p): Return false if
17101 decl is volatile.
17102
17103 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
17104
17105 PR bootstrap/47215
17106 * config/i386/i386.c (ix86_local_alignment): Handle
17107 case for va_list_type_node is nil.
17108 (ix86_canonical_va_list_type): Likewise.
17109
17110 2011-01-21 Alan Modra <amodra@gmail.com>
17111
17112 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
17113 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
17114
17115 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17116
17117 * config/arm/arm.md (define_attr type): Rename f_load
17118 and f_store to f_fpa_load and f_fpa_store. Update.
17119 (write_conflict): Deal with rename fallout.
17120 (*push_fp_multi): Likewise.
17121 * config/arm/fpa.md (f_load): Use f_fpa_load.
17122 (f_store): Use f_fpa_store.
17123 (*movsf_fpa): Likewise.
17124 (*movdf_fpa): Likewise.
17125 (*movxf_fpa): Likewise.
17126 (*thumb2_movsf_fpa): Likewise.
17127 (*thumb2_movdf_fpa): Likewise.
17128 (*thumb2_movxf_fpa): Likewise.
17129 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
17130 f_loadd and f_stored.
17131 (*thumb2_movdi_vfp): Likewise.
17132 (*thumb2_movsf_vfp): Fix attribute to f_loads.
17133 (*thumb2_movsi_vfp): Likewise.
17134 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
17135 Use f_loads instead of f_load.
17136 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
17137
17138 2011-01-20 Anatoly Sokolov <aesok@post.ru>
17139
17140 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
17141 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
17142 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
17143 (xtensa_mode_dependent_address_p): New function.
17144 (constantpool_address_p): Make static. Change return type to bool.
17145 Change argument type to const_rtx. Use CONST_INT_P predicate.
17146
17147 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
17148
17149 PR debug/46583
17150 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
17151
17152 2011-01-20 Jakub Jelinek <jakub@redhat.com>
17153
17154 PR debug/47283
17155 * cfgexpand.c (expand_debug_expr): Instead of generating
17156 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
17157 etc. handling.
17158
17159 2011-01-20 Richard Guenther <rguenther@suse.de>
17160
17161 PR middle-end/47370
17162 * tree-inline.c (remap_gimple_op_r): Recurse manually for
17163 the pointer operand of MEM_REFs.
17164
17165 2011-01-20 Jakub Jelinek <jakub@redhat.com>
17166
17167 PR tree-optimization/46130
17168 * ipa-split.c (consider_split): If return_bb contains non-virtual
17169 PHIs other than for retval or if split_function would not adjust it,
17170 refuse to split.
17171
17172 2011-01-20 Richard Guenther <rguenther@suse.de>
17173
17174 PR tree-optimization/47167
17175 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
17176 Revert previous change, only avoid enumeral type changes.
17177
17178 2011-01-19 Mike Stump <mikestump@comcast.net>
17179
17180 * doc/tm.texi.in (BRANCH_COST): Englishify.
17181 * doc/tm.texi (BRANCH_COST): Likewise.
17182
17183 2011-01-19 Dodji Seketeli <dodji@redhat.com>
17184
17185 PR c++/47291
17186 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
17187 (gen_scheduled_generic_parms_dies): New functions.
17188 (gen_struct_or_union_type_die): Schedule template parameters DIEs
17189 generation for the end of CU compilation.
17190 (dwarf2out_finish): Generate template parameters DIEs here.
17191
17192 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
17193
17194 PR debug/46240
17195 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
17196 debug bind stmt on merge edges.
17197
17198 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
17199
17200 PR debug/47079
17201 PR debug/46724
17202 * function.c (instantiate_expr): Instantiate incoming rtl of
17203 implicit arguments, and recurse on VALUE_EXPRs.
17204 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
17205 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
17206
17207 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
17208
17209 * c-parser.c (c_parser_for_statement): Initialize
17210 collection_expression.
17211
17212 2011-01-19 Joseph Myers <joseph@codesourcery.com>
17213
17214 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
17215
17216 2011-01-19 Joseph Myers <joseph@codesourcery.com>
17217
17218 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
17219 (LINK_SHLIB_SPEC): Don't use %(link_path).
17220 (SUBTARGET_EXTRA_SPECS): Remove link_path.
17221
17222 2011-01-19 Joseph Myers <joseph@codesourcery.com>
17223
17224 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
17225 (NO_SHARED_LIB_SUPPORT): Remove.
17226 (LINK_SHLIB_SPEC): Remove one conditional definition.
17227
17228 2011-01-19 Joseph Myers <joseph@codesourcery.com>
17229
17230 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
17231 %{call_shared}.
17232 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
17233 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
17234 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
17235 %{call_shared} and conditionals on these options not being passed.
17236 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
17237 %{call_shared}.
17238
17239 2011-01-19 Jakub Jelinek <jakub@redhat.com>
17240
17241 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
17242 simplify.
17243
17244 * ipa-split.c: Spelling fixes.
17245
17246 2011-01-19 Richard Henderson <rth@redhat.com>
17247
17248 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
17249 (*mulsi3): Likewise.
17250
17251 * longlong.h [__mn10300__] (count_leading_zeros): New.
17252 [__mn10300__] (umul_ppmm, smul_ppmm): New.
17253 [__mn10300__] (add_ssaaaa, subddmmss): New.
17254 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
17255 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
17256
17257 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17258
17259 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
17260
17261 2011-01-19 Richard Henderson <rth@redhat.com>
17262
17263 * config/mn10300/mn10300.md (addsi3_flags): New.
17264 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
17265 (subsi3_flags, subc_internal, subdi3): New.
17266 (subdi3_internal, *subdi3_degenerate): New.
17267 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
17268
17269 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
17270 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
17271 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
17272 * config/mn10300/mn10300-protos.h: Update.
17273 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
17274 (return_ret): Likewise. Rename from return_internal_regs.
17275 (return_internal): Remove.
17276
17277 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
17278 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
17279 (mn10300_legitimate_constant_p): Likewise.
17280 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
17281 (mn10300_frame_size): New.
17282 (mn10300_expand_prologue): Use it.
17283 (mn10300_expand_epilogue): Likewise.
17284 (mn10300_initial_offset): Likewise.
17285 * config/mn10300/mn10300-protos.h: Update.
17286 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
17287 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
17288 (prologue, epilogue, return_internal): Tidy output code.
17289 (mn10300_store_multiple_operation, return): Likewise.
17290 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
17291 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
17292 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
17293 (load_pic, am33_load_pic): New.
17294 (mn10300_load_pic0, mn10300_load_pic1): New.
17295
17296 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
17297 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
17298 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
17299 (cc_flags_for_mode, cc_flags_for_code): New.
17300 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
17301 overflow flag is not valid. Validate that the flags we need
17302 for the comparison are valid.
17303 (mn10300_output_cmp): Remove.
17304 (mn10300_output_add): New.
17305 (mn10300_select_cc_mode): Use cc_flags_for_code.
17306 (mn10300_split_cbranch): New.
17307 (mn10300_match_ccmode): New.
17308 (mn10300_split_and_operand_count): New.
17309 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
17310 to the function.
17311 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
17312 (addsi3): ... here. Use mn10300_output_add.
17313 (*addsi3_flags): New.
17314 (*am33_subsi3, *mn10300_subsi3): Merge...
17315 (subsi3): ... here. Use attribute isa.
17316 (*subsi3_flags): New.
17317 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
17318 when possible.
17319 (*am33_andsi3, *mn10300_andsi3): Merge...
17320 (andsi3): ... here.
17321 (*andsi3_flags): New.
17322 (andsi3 splitters): New.
17323 (*am33_iorsi3, *mn10300_iorsi3): Merge...
17324 (iorsi3): ... here.
17325 (*iorsi3_flags): New.
17326 (*am33_xorsi3, *mn10300_xorsi3): Merge...
17327 (xorsi3): ... here.
17328 (*xorsi3_flags): New.
17329 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
17330 (one_cmplsi2): ... here.
17331 (*one_cmplsi2_flags): New.
17332 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
17333 instead of "dax" in constraints. Use mn10300_split_cbranch.
17334 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
17335 use matching constraints to eliminate a self-comparison.
17336 (*integer_conditional_branch): Rename from integer_conditional_branch.
17337 Use int_mode_flags to match CC_REG.
17338 (*cbranchsi4_btst, *btstsi): New.
17339 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
17340 mn10300_split_cbranch.
17341 (*am33_cmpsf): Rename from am33_cmpsf.
17342 (*float_conditional_branch): Rename from float_conditional_branch.
17343 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
17344 (zero_extendqisi2): ... here.
17345 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
17346 (zero_extendhisi2): ... here.
17347 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
17348 (extendqisi2): ... here.
17349 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
17350 (extendhisi2): ... here.
17351 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
17352 (ashlsi3): ... here.
17353 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
17354 (lshrsi3): ... here.
17355 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
17356 (ashrsi3): ... here.
17357 (consecutive add peephole): Remove.
17358 * config/mn10300/predicates.md (label_ref_operand): New.
17359 (int_mode_flags): New.
17360 (CCZN_comparison_operator): New.
17361
17362 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
17363 (throughput_42_latency_43): New reservation.
17364 (mulsidi3, umulsidi3): New expanders.
17365 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
17366 the MDR register to allocation; separately allocate the low and
17367 high parts of the DImode result.
17368 (umulsidi3_internal): Similarly.
17369 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
17370 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
17371 (udivsi3, umodsi3): Remove.
17372 (udivmodsi4, divmodsi4): New expanders.
17373 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
17374 (*divmodsi4): Simiarly.
17375 (ext_internal): New.
17376
17377 * config/mn10300/constraints.md ("z"): New constraint.
17378 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
17379 (FIXED_REGISTERS): Don't fix MDR.
17380 (CALL_USED_REGSITERS): Reformat nicely.
17381 (REG_ALLOC_ORDER): Add MDR.
17382 (enum regclass): Add MDR_REGS.
17383 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
17384 (IRA_COVER_CLASSES): Add MDR_REGS.
17385 (REGNO_REG_CLASS): Handle MDR_REG.
17386 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
17387 (mn10300_register_move_cost): Likewise.
17388 * config/mn10300/mn10300.md (MDR_REG): New.
17389 (*movsi_internal): Handle moves to/from MDR_REGS.
17390
17391 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
17392 POST_MODIFY.
17393 (mn10300_secondary_reload): Tidy combination reload classes.
17394 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
17395 addresses for AM33. Allow symbolic offsets for reg+imm.
17396 (mn10300_regno_in_class_p): New.
17397 (mn10300_legitimize_reload_address): New.
17398 * config/mn10300/mn10300.h (enum reg_class): Remove
17399 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
17400 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
17401 SP_OR_GENERAL_REGS.
17402 (REG_CLASS_NAMES): Update to match.
17403 (REG_CLASS_CONTENTS): Likewise.
17404 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
17405 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
17406 (REGNO_IN_RANGE_P): Remove.
17407 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
17408 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
17409 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
17410 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
17411 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
17412 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
17413 (REGNO_GENERAL_P): New.
17414 (HAVE_POST_MODIFY_DISP): New.
17415 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
17416 (LEGITIMIZE_RELOAD_ADDRESS): New.
17417 * config/mn10300/mn10300-protos.h: Update.
17418
17419 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
17420 DATA_REGS for AM33 stack-pointer destination.
17421 (mn10300_preferred_output_reload_class): Likewise.
17422 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
17423 into a form appropriate for ...
17424 (TARGET_SECONDARY_RELOAD): New.
17425 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
17426 * config/mn10300/mn10300-protos.h: Update.
17427 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
17428 reload_insi; use the "A" constraint for the scratch; handle AM33
17429 moves of sp to non-address registers.
17430
17431 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
17432 (*movqi_internal): ... here.
17433 (*am33_movhi, *mn10300_movhi): Merge into...
17434 (*movhi_internal): ... here.
17435 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
17436 as the source/destination of moves from/to SP.
17437 (movsf): Only allow for AM33-2.
17438 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
17439 any integer constant constraint. Only allow for AM33-2. Tidy
17440 all of the alternative outputs.
17441 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
17442 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
17443 for MN103.
17444 (udivsi3, umodsi3): New patterns for MN103 only.
17445
17446 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
17447
17448 * doc/tm.texi.in: Spell out that a lack of register class unions
17449 can lead to ICEs.
17450 * doc/tm.texi: Regenerate.
17451
17452 2011-01-19 Jakub Jelinek <jakub@redhat.com>
17453
17454 PR rtl-optimization/47337
17455 * dce.c (check_argument_store): New function.
17456 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
17457
17458 PR tree-optimization/47290
17459 * tree-eh.c (infinite_empty_loop_p): New function.
17460 (cleanup_empty_eh): Use it.
17461
17462 2011-01-18 Steve Ellcey <sje@cup.hp.com>
17463
17464 PR target/46997
17465 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
17466 (a64_expand_widen_sum): Ditto.
17467 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
17468 (vec_extract_evenodd_help): Ditto.
17469 (vec_extract_evenv4hi): Ditto.
17470 (vec_extract_oddv4hi): Ditto.
17471 (vec_extract_evenv2si): Ditto.
17472 (vec_extract_oddv2si): Ditto.
17473 (vec_extract_evenv2sf): Ditto.
17474 (vec_extract_oddv2sf): Ditto.
17475 (vec_pack_trunc_v4hi: Ditto.
17476 (vec_pack_trunc_v2si): Ditto.
17477 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
17478 (vec_interleave_highv8qi): Ditto.
17479 (mix1_r): Ditto.
17480 (vec_extract_oddv8qi): Ditto.
17481 (vec_interleave_lowv4hi): Ditto.
17482 (vec_interleave_highv4hi): Ditto.
17483 (vec_interleave_lowv2si): Ditto.
17484 (vec_interleave_highv2si): Ditto.
17485
17486 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17487
17488 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
17489 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
17490 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
17491 (pa_c_mode_for_suffix): New.
17492 (TARGET_EXPAND_BUILTIN): Define.
17493 (TARGET_C_MODE_FOR_SUFFIX): Define.
17494 (pa_builtins): Define.
17495 (pa_init_builtins): Register __float128 type and init new support
17496 builtins.
17497 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
17498 * config/pa/quadlib.c (_U_Qfcopysign): New.
17499
17500 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
17501
17502 PR middle-end/46894
17503 * explow.c (allocate_dynamic_stack_space): Do not assume more than
17504 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
17505 are defined.
17506
17507 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17508
17509 PR tree-optimization/47179
17510 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
17511 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
17512
17513 2011-01-18 Richard Guenther <rguenther@suse.de>
17514
17515 PR rtl-optimization/47216
17516 * emit-rtl.c: Include tree-flow.h.
17517 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
17518 of replicating it with different semantics.
17519 * Makefile.in (emit-rtl.o): Adjust.
17520
17521 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17522
17523 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
17524 (cortex_a9_dp): Handle neon types correctly.
17525
17526 2011-01-18 Jakub Jelinek <jakub@redhat.com>
17527
17528 PR rtl-optimization/47299
17529 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
17530 subtarget. Use normal multiplication if both operands are constants.
17531 * expmed.c (expand_widening_mult): Don't try to optimize constant
17532 multiplication if op0 has VOIDmode. Convert op1 constant to mode
17533 before using it.
17534
17535 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17536
17537 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
17538 spacing after 'e.g.', typos, comma, hyphenation.
17539
17540 2011-01-17 Richard Henderson <rth@redhat.com>
17541
17542 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
17543 (rx_restricted_mem_operand): New.
17544 (rx_shift_operand): Use register_operand.
17545 (rx_source_operand, rx_compare_operand): Likewise.
17546 * config/rx/rx.md (addsi3_flags): New expander.
17547 (adddi3): Rewrite as expander.
17548 (adc_internal, *adc_flags, adddi3_internal): New patterns.
17549 (subsi3_flags): New expander.
17550 (subdi3): Rewrite as expander.
17551 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
17552
17553 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
17554 (rx_init_builtins): Remove sat builtin.
17555 (rx_expand_builtin): Likewise.
17556 * config/rx/rx.md (ssaddsi3): New.
17557 (*sat): Rename from sat. Represent the CC_REG input.
17558
17559 * config/rx/predicates.md (rshift_operator): New.
17560 * config/rx/rx.c (rx_expand_insv): Remove.
17561 * config/rx/rx-protos.h: Update.
17562 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
17563 operand to the canonical position.
17564 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
17565 (*bitclr, *bitclr_in_memory): Similarly.
17566 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
17567 (insv): Retain the zero_extract in the expansion.
17568
17569 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
17570 (bswaphi2, bitinvert, revw): Likewise.
17571
17572 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
17573 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
17574 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
17575 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
17576 (bitset, bitset_in_memory): Likewise.
17577 (bitinvert, bitinvert_in_memory): Likewise.
17578 (bitclr, bitclr_in_memory): Likewise.
17579 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
17580 (rx_strend, rx_cmpstrn): Likewise.
17581 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
17582 (bitop peep2 patterns): Remove.
17583
17584 * config/rx/rx.c (rx_match_ccmode): New.
17585 * config/rx/rx-protos.h: Update.
17586 * config/rx/rx.md (abssi2): Clobber, don't set flags.
17587 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
17588 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
17589 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
17590 (fix_truncsfsi2, floatsisf2): Likewise.
17591 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
17592 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
17593 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
17594 (*subsi3_flags, *xorsi3_flags): New.
17595
17596 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
17597
17598 * config/rx/rx.c (rx_print_operand): Remove workaround for
17599 unsplit comparison operations.
17600
17601 * config/rx/rx.md (movsicc): Split after reload.
17602 (*movsicc): Merge *movsieq and *movsine via match_operator.
17603 (*stcc): New pattern.
17604
17605 * config/rx/rx.c (rx_float_compare_mode): Remove.
17606 * config/rx/rx.h (rx_float_compare_mode): Remove.
17607 * config/rx/rx.md (cstoresi4): Split after reload.
17608 (*sccc): New pattern.
17609
17610 * config/rx/predicates.md (label_ref_operand): New.
17611 (rx_z_comparison_operator): New.
17612 (rx_zs_comparison_operator): New.
17613 (rx_fp_comparison_operator): New.
17614 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
17615 Validate that the flags are set properly for the comparison.
17616 (rx_gen_cond_branch_template): Remove.
17617 (rx_cc_modes_compatible): Remove.
17618 (mode_from_flags): New.
17619 (flags_from_code): Rename from flags_needed_for_conditional.
17620 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
17621 (rx_select_cc_mode): Likewise.
17622 (rx_split_fp_compare): New.
17623 (rx_split_cbranch): New.
17624 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
17625 (*cbranchsi4): Use match_operator and rx_split_cbranch.
17626 (*cbranchsf4): Similarly.
17627 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
17628 match_operator and rx_split_cbranch.
17629 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
17630 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
17631 (*cmpsi): Rename from cmpsi.
17632 (*tstsi): Rename from tstsi.
17633 (*cmpsf): Rename from cmpsf; use CC_Fmode.
17634 (*conditional_branch): Rename from conditional_branch.
17635 (*reveresed_conditional_branch): Remove.
17636 (b<code>): Remove expander.
17637 * config/rx/rx-protos.h: Update.
17638
17639 * config/rx/rx.c (rx_compare_redundant): Remove.
17640 * config/rx/rx.md (cmpsi): Don't use it.
17641 * config/rx/rx-protos.h: Update.
17642
17643 * config/rx/rx-modes.def (CC_F): New mode.
17644 * config/rx/rx.c (rx_select_cc_mode): New.
17645 * config/rx/rx.h (SELECT_CC_MODE): Use it.
17646 * config/rx/rx-protos.h: Update.
17647
17648 2011-01-17 Richard Henderson <rth@redhat.com>
17649
17650 * except.c (dump_eh_tree): Fix stray ; after for statement.
17651
17652 2011-01-17 Richard Guenther <rguenther@suse.de>
17653
17654 PR tree-optimization/47313
17655 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
17656 handling before copying the body. Properly deal with
17657 by-reference result in SSA form.
17658
17659 2011-01-17 Ian Lance Taylor <iant@google.com>
17660
17661 PR target/47219
17662 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
17663 (struct_value_alias_set): Don't define.
17664 (sparc_option_override): Don't set sparc_sr_alias_set and
17665 struct_value_alias_set.
17666 (save_or_restore_regs): Use gen_frame_mem rather than calling
17667 set_mem_alias_set.
17668 (sparc_struct_value_rtx): Likewise.
17669
17670 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
17671
17672 PR target/47318
17673 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
17674 (_mm_maskstore_pd): Likewise.
17675 (_mm_maskload_ps): Likewise.
17676 (_mm_maskstore_ps): Likewise.
17677 (_mm256_maskload_pd): Change mask to __m256i.
17678 (_mm256_maskstore_pd): Likewise.
17679 (_mm256_maskload_ps): Likewise.
17680 (_mm256_maskstore_ps): Likewise.
17681
17682 * config/i386/i386-builtin-types.def: Updated.
17683 (ix86_expand_special_args_builtin): Likewise.
17684
17685 * config/i386/i386.c (bdesc_special_args): Update
17686 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
17687 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
17688 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
17689 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
17690
17691 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
17692 Use <avxpermvecmode> on mask register.
17693 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
17694
17695 2011-01-17 Olivier Hainque <hainque@adacore.com>
17696 Michael Haubenwallner <michael.haubenwallner@salomon.at>
17697 Eric Botcazou <ebotcazou@adacore.com>
17698
17699 PR target/46655
17700 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
17701 if <= USHRT_MAX in 32-bit mode.
17702
17703 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17704
17705 * doc/install.texi (Configuration, Specific): Wrap long
17706 lines in examples. Allow line wrapping in long options
17707 and URLs where beneficial for PDF output.
17708
17709 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
17710
17711 * config/mips/mips.c (mips_classify_symbol): Don't return
17712 SYMBOL_PC_RELATIVE for nonlocal labels.
17713
17714 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
17715
17716 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
17717
17718 2011-01-15 Jan Hubicka <jh@suse.cz>
17719
17720 PR tree-optimization/47276
17721 * ipa.c (function_and_variable_visibility): Do not try to mark alias
17722 declarations as needed.
17723
17724 2011-01-15 Martin Jambor <mjambor@suse.cz>
17725
17726 * common.opt (fdevirtualize): New flag.
17727 * doc/invoke.texi (Option Summary): Document it.
17728 * opts.c (default_options_table): Add devirtualize flag.
17729 * ipa-prop.c (detect_type_change): Return immediately if
17730 devirtualize flag is not set.
17731 (detect_type_change_ssa): Likewise.
17732 (compute_known_type_jump_func): Likewise.
17733 (ipa_analyze_virtual_call_uses): Likewise.
17734
17735 2011-01-14 Martin Jambor <mjambor@suse.cz>
17736
17737 PR tree-optimization/45934
17738 PR tree-optimization/46302
17739 * ipa-prop.c (type_change_info): New type.
17740 (stmt_may_be_vtbl_ptr_store): New function.
17741 (check_stmt_for_type_change): Likewise.
17742 (detect_type_change): Likewise.
17743 (detect_type_change_ssa): Likewise.
17744 (compute_complex_assign_jump_func): Check for dynamic type change.
17745 (compute_complex_ancestor_jump_func): Likewise.
17746 (compute_known_type_jump_func): Likewise.
17747 (compute_scalar_jump_functions): Likewise.
17748 (ipa_analyze_virtual_call_uses): Likewise.
17749 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
17750
17751 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17752
17753 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
17754 * config/i386/i386.opt (msse5): New Alias.
17755
17756 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17757
17758 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
17759 * config/sparc/linux64.h (CC1_SPEC): Likewise.
17760 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
17761 * config/sparc/sparc.h (CC1_SPEC): Likewise.
17762
17763 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17764
17765 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
17766 -mcpu options.
17767 * config/sparc/linux64.h (CC1_SPEC): Likewise.
17768 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
17769 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
17770 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
17771 Likewise.
17772 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
17773
17774 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17775
17776 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
17777
17778 2011-01-14 Mike Stump <mikestump@comcast.net>
17779
17780 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
17781 * config/fr30/fr30.md: Likweise
17782 (movsi_push): Likewise.
17783 (movsi_pop): Likewise.
17784 (enter_func): Likewise.
17785 * config/moxie/moxie.md (movsi_push): Likewise.
17786 (movsi_pop): Likewise.
17787
17788 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17789
17790 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
17791 %{no_archive} %{exact_version}.
17792 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
17793 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
17794 %{no_archive} %{exact_version}.
17795 * config/mips/openbsd.h (LINK_SPEC): Likewise.
17796 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
17797 * config/mips/vxworks.h: Likewise.
17798
17799 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17800
17801 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
17802
17803 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17804
17805 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
17806 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
17807
17808 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17809
17810 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
17811 -nodefaultlib.
17812
17813 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17814
17815 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
17816 for mcpu not cpu.
17817 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
17818 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
17819 not cpu.
17820 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
17821 Don't handle -shlib.
17822
17823 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17824
17825 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
17826 (CC1_SPEC): Don't handle -profile.
17827
17828 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17829
17830 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
17831 * config/mips/mips.h (CC1_SPEC): Likewise.
17832
17833 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17834
17835 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
17836 * config/mips/mips.h (CC1_SPEC): Likewise.
17837
17838 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17839
17840 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
17841 * config/m32r/linux.h (LINK_SPEC): Likewise.
17842 * config/mips/linux.h (LINK_SPEC): Likewise.
17843 * config/mips/linux64.h (LINK_SPEC): Likewise.
17844 * config/sparc/linux.h (LINK_SPEC): Likewise.
17845 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
17846 LINK_SPEC): Likewise.
17847 * config/xtensa/linux.h (LINK_SPEC): Likewise.
17848
17849 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17850
17851 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
17852 %{version:-v}.
17853 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
17854
17855 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17856
17857 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
17858 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
17859
17860 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17861
17862 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
17863
17864 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17865
17866 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
17867 supports -Bstatic/-Bdynamic.
17868 * configure: Regenerate.
17869
17870 2011-01-14 Jan Hubicka <jh@suse.cz>
17871 Jack Howarth <howarth@bromo.med.uc.edu>
17872
17873 PR target/46037
17874 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
17875 when checking debug_info_level. Test write_symbols instead of
17876 debug_hooks->var_location when setting flag_var_tracking_uninit.
17877
17878 2011-01-14 Richard Guenther <rguenther@suse.de>
17879
17880 PR tree-optimization/47179
17881 * target.def (ref_may_alias_errno): New target hook.
17882 * targhooks.h (default_ref_may_alias_errno): Declare.
17883 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
17884 (default_ref_may_alias_errno): New function.
17885 * target.h (struct ao_ref_s): Declare.
17886 * tree-ssa-alias.c: Include target.h.
17887 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
17888 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
17889 (targhooks.o): Likewise.
17890 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
17891 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
17892
17893 2011-01-14 Richard Guenther <rguenther@suse.de>
17894
17895 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
17896
17897 2011-01-14 Richard Guenther <rguenther@suse.de>
17898
17899 PR tree-optimization/47280
17900 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
17901 return CFG changes.
17902 (tree_ssa_forward_propagate_single_use_vars): Deal with
17903 CFG changes from associate_plusminus.
17904
17905 2011-01-14 Richard Guenther <rguenther@suse.de>
17906
17907 PR middle-end/47281
17908 Revert
17909 2011-01-11 Richard Guenther <rguenther@suse.de>
17910
17911 PR tree-optimization/46076
17912 * tree-ssa.c (useless_type_conversion_p): Conversions from
17913 unprototyped to empty argument list function types are useless.
17914
17915 2011-01-14 Richard Guenther <rguenther@suse.de>
17916
17917 PR tree-optimization/47286
17918 * tree-ssa-structalias.c (new_var_info): Register variables are global.
17919
17920 2011-01-14 Martin Jambor <mjambor@suse.cz>
17921
17922 PR middle-end/46823
17923 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
17924
17925 2011-01-13 Anatoly Sokolov <aesok@post.ru>
17926
17927 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
17928 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
17929 * config/xtensa/xtensa.c (xtensa_libcall_value,
17930 xtensa_function_value_regno_p): New functions.
17931 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
17932
17933 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
17934
17935 PR c++/47213
17936 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
17937 PE specific hook.
17938 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
17939 New function prototype.
17940 * config/i386/winnt.c (i386_pe_assemble_visibility):
17941 Warn only if attribute was specified by user.
17942
17943 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
17944
17945 PR target/47251
17946 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
17947 floating point.
17948 (floatunsdidf2_fcfidu): Ditto.
17949
17950 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17951
17952 * config/s390/s390.c (print_operand_address): Replace 'error' with
17953 'output_operand_lossage'.
17954 (print_operand): Likewise.
17955
17956 2011-01-13 Jeff Law <law@redhat.com>
17957
17958 PR rtl-optimization/39077
17959 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
17960 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
17961 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
17962 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
17963 * gcse.c (prune_insertions_deletions): New function.
17964 (compute_pre_data): Use it.
17965
17966 2011-01-13 Dodji Seketeli <dodji@redhat.com>
17967
17968 PR debug/PR46973
17969 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
17970 static function.
17971 (prune_unused_types_mark): Use it.
17972
17973 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
17974
17975 PR rtl-optimization/45352
17976 * sel-sched.c: Update copyright years.
17977 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
17978 in the advancing loop when we have issued issue_rate insns.
17979
17980 2011-01-12 Richard Henderson <rth@redhat.com>
17981
17982 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
17983 (TARGET_MD_ASM_CLOBBERS): New.
17984
17985 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
17986 (TARGET_DELEGITIMIZE_ADDRESS): New.
17987
17988 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
17989 (clzsi2, *bsch): New patterns.
17990
17991 * config/mn10300/mn10300.md (INT): New mode iterator.
17992 (*mov<INT>_clr): New pattern, and peep2 to generate it.
17993
17994 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
17995 flag_split_wide_types.
17996
17997 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
17998 (mn10300_trampoline_init): Rewrite without a template, an immediate
17999 load and a direct branch.
18000 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
18001
18002 2011-01-12 Anatoly Sokolov <aesok@post.ru>
18003
18004 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
18005 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
18006 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
18007 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
18008
18009 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
18010
18011 PR debug/47209
18012 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
18013 of type.
18014
18015 2011-01-12 Jan Hubicka <jh@suse.cz>
18016
18017 PR driver/47244
18018 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
18019 (PLUGIN_COND_CLOSE): New macro.
18020 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
18021
18022 2011-01-12 Richard Guenther <rguenther@suse.de>
18023
18024 PR lto/47259
18025 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
18026 register variables in a MEM_REF.
18027
18028 2011-01-12 Joseph Myers <joseph@codesourcery.com>
18029
18030 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
18031 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
18032 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
18033 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
18034 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
18035 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
18036 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
18037 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
18038 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
18039 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
18040 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
18041 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
18042 * config/gnu-user.h: New. Copied from linux.h.
18043 (LINUX_TARGET_STARTFILE_SPEC): Rename to
18044 GNU_USER_TARGET_STARTFILE_SPEC.
18045 (LINUX_TARGET_ENDFILE_SPEC): Rename to
18046 GNU_USER_TARGET_ENDFILE_SPEC.
18047 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
18048 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
18049 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
18050 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
18051 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
18052 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
18053 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
18054 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
18055 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
18056 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
18057 * config/arm/linux-eabi.h (CC1_SPEC): Use
18058 GNU_USER_TARGET_CC1_SPEC.
18059 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
18060 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
18061 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
18062 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
18063 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
18064 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
18065 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
18066 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
18067
18068 2011-01-12 Richard Guenther <rguenther@suse.de>
18069
18070 PR other/46946
18071 * doc/invoke.texi (ffast-math): Document it is turned on
18072 with -Ofast.
18073
18074 2011-01-12 Jan Hubicka <jh@suse.cz>
18075
18076 PR tree-optimization/47233
18077 * opts.c (common_handle_option): Disable ipa-reference with profile
18078 feedback.
18079
18080 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
18081
18082 * c-parser.c (c_parser_objc_at_property_declaration): Improved
18083 error message.
18084
18085 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
18086
18087 * c-parser.c (c_lex_one_token): Updated and reindented some
18088 comments. No changes in code.
18089
18090 2011-01-11 Ian Lance Taylor <iant@google.com>
18091
18092 * godump.c (go_output_var): Don't output the variable if there is
18093 already a type with the same name.
18094
18095 2011-01-11 Ian Lance Taylor <iant@google.com>
18096
18097 * godump.c (go_format_type): Don't generate float80.
18098
18099 2011-01-11 Richard Henderson <rth@redhat.com>
18100
18101 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
18102 declaration. Rewrite for both speed and size.
18103 (mn10300_address_cost_1): Remove.
18104 (mn10300_register_move_cost): New.
18105 (mn10300_memory_move_cost): New.
18106 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
18107 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
18108 extensions, shifts, BSWAP, CLZ.
18109 (mn10300_wide_const_load_uses_clr): Remove.
18110 (TARGET_REGISTER_MOVE_COST): New.
18111 (TARGET_MEMORY_MOVE_COST): New.
18112 * config/mn10300/mn10300-protos.h: Update.
18113 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
18114
18115 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
18116 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
18117 * config/mn10300/mn10300-protos.h: Update.
18118 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
18119 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
18120 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
18121 (*test_int_bitfield, *test_byte_bitfield): Remove.
18122 (*bit_test, *subreg_bit_test): Remove.
18123 * config/mn10300/predicates.md (const_8bit_operand): Remove.
18124
18125 * config/mn10300/constraints.md ("c"): Rename from "A".
18126 ("A", "D"): New constraint letters.
18127 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
18128 (fmssf4, fnmasf4, fnmssf4): Likewise.
18129
18130 * config/mn10300/mn10300.md (isa): New attribute.
18131 (enabled): New attribute.
18132
18133 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
18134 (abssf2, negsf2): Define only for hardware fp.
18135 (sqrtsf2): Reformat.
18136 (addsf3, subsf3, mulsf3): Merge expander and insn.
18137
18138 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
18139 (DEBUGGER_AUTO_OFFSET): Remove.
18140 (DEBUGGER_ARG_OFFSET): Remove.
18141
18142 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
18143 Emit register stores with the same offsets as the hardware.
18144 (mn10300_store_multiple_operation): Don't check that the register
18145 save offsets are monotonic.
18146 * config/mn10300/mn10300-protos.h: Update.
18147
18148 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
18149
18150 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
18151 in terms of the value on the stack, not the MDR register.
18152
18153 2011-01-11 Jan Hubicka <jh@suse.cz>
18154
18155 PR lto/45721
18156 PR lto/45375
18157 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
18158 (symbol_alias_set_destroy, symbol_alias_set_contains,
18159 propagate_aliases_backward): Declare.
18160 * lto-streamer-out.c (struct sets): New sturcture.
18161 (trivally_defined_alias): New function.
18162 (output_alias_pair_p): Rewrite.
18163 (output_unreferenced_globals): Fix output of alias pairs.
18164 (produce_symtab): Likewise.
18165 * ipa.c (function_and_variable_visibility): Set weak alias destination
18166 as needed in lto.
18167 * varasm.c (symbol_alias_set_t): Remove.
18168 (symbol_alias_set_destroy): Export.
18169 (propagate_aliases_forward, propagate_aliases_backward): New functions
18170 based on ...
18171 (compute_visible_aliases): ... this one; remove.
18172 (trivially_visible_alias): New
18173 (trivially_defined_alias): New.
18174 (remove_unreachable_alias_pairs): Rewrite.
18175 (finish_aliases_1): Reorganize code checking if alias is defined.
18176 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
18177 in LTO mode.
18178
18179 2011-01-11 Richard Guenther <rguenther@suse.de>
18180
18181 PR tree-optimization/46076
18182 * tree-ssa.c (useless_type_conversion_p): Conversions from
18183 unprototyped to empty argument list function types are useless.
18184
18185 2011-01-11 Richard Guenther <rguenther@suse.de>
18186
18187 PR middle-end/45235
18188 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
18189 volatile MEMs as MEM_READONLY_P.
18190
18191 2011-01-11 Richard Guenther <rguenther@suse.de>
18192
18193 PR tree-optimization/47239
18194 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
18195
18196 2011-01-11 Jeff Law <law@redhat.com>
18197
18198 PR tree-optimization/47086
18199 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
18200 IVs from statements that might throw.
18201
18202 2011-01-10 Jan Hubicka <jh@suse.cz>
18203
18204 PR lto/45375
18205 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
18206
18207 2011-01-10 Jan Hubicka <jh@suse.cz>
18208
18209 PR lto/45375
18210 * profile.c (read_profile_edge_counts): Ignore profile inconistency
18211 when correcting profile.
18212
18213 2011-01-10 Jan Hubicka <jh@suse.cz>
18214
18215 PR lto/46083
18216 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
18217 DECL_FINI_PRIORITY.
18218 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
18219 Restore DECL_FINI_PRIORITY.
18220
18221 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18222
18223 * doc/gimple.texi: Fix quoting of multi-word return values in
18224 @deftypefn statements. Ensure presence of return value. Wrap
18225 overlong @deftypefn lines.
18226 (is_gimple_operand, is_gimple_min_invariant_address): Remove
18227 descriptions of removed functions.
18228 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
18229 of multi-word return value in @deftypefn statement.
18230
18231 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18232
18233 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
18234 (Conditional Expressions, Logical Operators)
18235 (Statement and operand traversals): Do not indent smallexample
18236 code. Fix duplicate function argument in example.
18237
18238 2011-01-10 Jeff Law <law@redhat.com>
18239
18240 PR tree-optimization/47141
18241 * ipa-split.c (split_function): Handle case where we are
18242 returning a value and the return block has a virtual operand phi.
18243
18244 2011-01-10 Jan Hubicka <jh@suse.cz>
18245
18246 PR tree-optimization/47234
18247 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
18248 (pass_feedback_split_functions): Declare.
18249 * passes.c (init_optimization_passes): Add ipa-split as subpass of
18250 tree-profile.
18251 * ipa-split.c (gate_split_functions): Update comments; disable
18252 split-functions for profile_arc_flag and branch_probabilities.
18253 (gate_feedback_split_functions): New function.
18254 (execute_feedback_split_functions): New function.
18255 (pass_feedback_split_functions): New global var.
18256
18257 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
18258
18259 PR lto/46760
18260 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
18261 calling gimple_call_set_cannot_inline.
18262
18263 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
18264
18265 * config/darwin-sections.def: Remove unused section.
18266
18267 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
18268
18269 PR c++/47218
18270 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
18271
18272 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
18273
18274 PR objc/47232
18275 * c-parser.c (c_parser_declaration_or_fndef): Improved
18276 error message.
18277
18278 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
18279
18280 * config/i386/winnt.c (i386_pe_start_function): Make sure
18281 to switch back to function's section.
18282
18283 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
18284
18285 PR gcc/46902
18286 PR testsuite/46912
18287 * plugin.c: Move include of dlfcn.h from here...
18288 * system.h: ... to here.
18289
18290 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18291
18292 * doc/cpp.texi (C++ Named Operators): Fix markup for header
18293 file name.
18294 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
18295 two extra empty pages in PDF output.
18296
18297 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
18298
18299 PR objc/47078
18300 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
18301 for error recovery purposes behave as if it was not specified so
18302 that the default type is usd.
18303
18304 2011-01-07 Jan Hubicka <jh@suse.cz>
18305
18306 PR tree-optmization/46469
18307 * ipa.c (function_and_variable_visibility): Clear needed flags on
18308 nodes with external decls; handle weakrefs merging correctly.
18309
18310 2011-01-07 Joseph Myers <joseph@codesourcery.com>
18311
18312 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
18313 not false.
18314
18315 2011-01-07 Jan Hubicka <jh@suse.cz>
18316
18317 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
18318 and no longer claim that gold is required for linker plugin.
18319 * configure: Regenerate.
18320 * gcc.c (PLUGIN_COND): New macro.
18321 (LINK_COMMAND_SPEC): Use it.
18322 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
18323 * config.in (HAVE_LTO_PLUGIN): New.
18324 * configure.ac (--with-lto-plugin): New parameter; autodetect
18325 HAVE_LTO_PLUGIN.
18326
18327 2011-01-07 Jan Hubicka <jh@suse.cz>
18328
18329 PR tree-optimization/46367
18330 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
18331 when we can update original.
18332 (cgraph_mark_inline_edge): Sanity check.
18333 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
18334
18335 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18336
18337 * config/spu/spu.h (ASM_COMMENT_START): Define.
18338
18339 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
18340
18341 PR driver/42445
18342 * gcc.c (%>S): New.
18343 (SWITCH_KEEP_FOR_GCC): Likewise.
18344 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
18345 (do_spec_1): Handle "%>".
18346
18347 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
18348
18349 2011-01-07 Jakub Jelinek <jakub@redhat.com>
18350
18351 PR target/47201
18352 * config/i386/i386.c (ix86_delegitimize_address): If
18353 simplify_gen_subreg fails, return orig_x.
18354
18355 PR bootstrap/47187
18356 * value-prof.c (gimple_stringop_fixed_value): Handle
18357 lhs of the call properly.
18358
18359 2011-01-07 Jan Hubicka <jh@suse.cz>
18360
18361 PR lto/45375
18362 * lto-opt.c (lto_reissue_options): Set flag_shlib.
18363
18364 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
18365
18366 * target.def (function_switched_text_sections): New hook.
18367 * doc/tm.texi: Regenerated.
18368 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
18369 * final.c (default_function_switched_text_sections): New.
18370 (final_scan_insn): Call function_switched_text_sections when a
18371 mid-function section change occurs.
18372 * output.h (default_function_switched_text_sections): Declare.
18373 * config/darwin-protos.h (darwin_function_switched_text_sections):
18374 Likewise.
18375 * config/darwin.c (darwin_function_switched_text_sections): New.
18376 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
18377
18378 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
18379
18380 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
18381 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
18382 the secondary code fragment when outputting for DWARF == 2.
18383
18384 2011-01-07 Anatoly Sokolov <aesok@post.ru>
18385
18386 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
18387 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
18388 Remove.
18389 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
18390 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
18391
18392 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
18393
18394 PR debug/46704
18395 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
18396 when it is not empty.
18397
18398 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
18399
18400 Bobcat Enablement
18401 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
18402 (case ${target}): Add btver1.
18403 * config/i386/driver-i386.c (host_detect_local_cpu): Let
18404 -march=native recognize btver1 processors.
18405 * config/i386/i386-c.c (ix86_target_macros_internal): Add
18406 btver1 def_and_undef
18407 * config/i386/i386.c (struct processor_costs btver1_cost): New
18408 btver1 cost table.
18409 (m_BTVER1): New definition.
18410 (m_AMD_MULTIPLE): Includes m_BTVER1.
18411 (initial_ix86_tune_features): Add btver1 tune.
18412 (processor_target_table): Add btver1 entry.
18413 (static const char *const cpu_names): Add btver1 entry.
18414 (software_prefetching_beneficial_p): Add btver1.
18415 (ix86_option_override_internal): Add btver1 instruction sets.
18416 (ix86_issue_rate): Add btver1.
18417 (ix86_adjust_cost): Add btver1.
18418 * config/i386/i386.h (TARGET_BTVER1): New definition.
18419 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
18420 (enum processor_type): Add PROCESSOR_BTVER1.
18421 * config/i386/i386.md (define_attr "cpu"): Add btver1.
18422
18423 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18424
18425 PR target/43309
18426 * config/i386/i386.c (legitimize_tls_address)
18427 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
18428 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
18429 (tls_initial_exec_64_sun): New pattern.
18430
18431 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
18432
18433 * doc/invoke.texi (Overall Options): Improve wording and markup
18434 of the description of -wrapper.
18435
18436 2011-01-06 Joseph Myers <joseph@codesourcery.com>
18437
18438 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
18439 rdynamic, threads): New Driver options.
18440
18441 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18442
18443 PR target/38118
18444 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
18445 if coming from .tdata.
18446 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
18447
18448 2011-01-06 Jan Hubicka <jh@suse.cz>
18449
18450 PR lto/47188
18451 * collect2.c (main): Do not enable LTOmode when plugin is active.
18452
18453 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18454
18455 PR other/45915
18456 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
18457 --version output if supported.
18458 * configure: Regenerate.
18459
18460 2011-01-06 Joseph Myers <joseph@codesourcery.com>
18461
18462 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
18463 Driver options.
18464
18465 2011-01-06 Jakub Jelinek <jakub@redhat.com>
18466
18467 PR c/47150
18468 * c-convert.c (convert): When converting a complex expression
18469 other than COMPLEX_EXPR to a different complex type, ensure
18470 c_save_expr is called instead of save_expr, unless in_late_binary_op.
18471 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
18472 when converting COMPLEX_TYPE.
18473
18474 2011-01-06 Ira Rosen <irar@il.ibm.com>
18475
18476 PR tree-optimization/47139
18477 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
18478 only the last reduction value is used outside the loop. Update
18479 documentation.
18480
18481 2011-01-05 Joseph Myers <joseph@codesourcery.com>
18482
18483 * config/rtems.opt: New.
18484 * config.gcc (*-*-rtems*): Use rtems.opt.
18485
18486 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
18487
18488 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
18489 processors do not support 3DNow instructions.
18490
18491 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18492
18493 * config/spu/spu.c (spu_option_override): Set parameter
18494 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
18495
18496 2011-01-05 Jan Hubicka <jh@suse.cz>
18497
18498 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
18499 at the command line.
18500
18501 2011-01-05 Martin Jambor <mjambor@suse.cz>
18502
18503 PR lto/47162
18504 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
18505 deltas on streamed outgoing edges.
18506 (output_node_opt_summary): Output info for outgoing edges only when
18507 the node is in new parameter set.
18508 (output_cgraph_opt_summary): New parameter set, passed to the two
18509 aforementioned functions. Update its forward declaration and its
18510 callee too.
18511
18512 2011-01-05 Tom Tromey <tromey@redhat.com>
18513
18514 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
18515 operator to c_finish_omp_atomic.
18516 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
18517 (build_unary_op): Update.
18518 (build_modify_expr): Update.
18519 (build_asm_expr): Update.
18520
18521 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18522
18523 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
18524 newly inserted insns.
18525 (pad_bb): Likewise.
18526 (spu_emit_branch_hint): Likewise.
18527 (insert_hbrp_for_ilb_runout): Likewise.
18528 (spu_machine_dependent_reorg): Call df_finish_pass after
18529 schedule_insns returns.
18530
18531 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18532
18533 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
18534
18535 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
18536
18537 PR tree-optimization/47005
18538 * tree-sra.c (struct access): Add 'non_addressable' bit.
18539 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
18540 (decide_one_param_reduction): Return 0 if the parameter is passed by
18541 reference and one of the accesses in the group is non_addressable.
18542
18543 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
18544
18545 PR tree-optimization/47056
18546 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
18547 (mark_load): Likewise. Handle FUNCTION_DECL specially.
18548 (mark_store): Likewise. Pass STMT to ipa_record_reference.
18549
18550 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
18551
18552 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
18553 initializer. Skip view conversions from aggregate types.
18554
18555 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
18556
18557 PR bootstrap/47055
18558 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
18559
18560 2011-01-04 Philipp Thomas <pth@suse.de>
18561
18562 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
18563 obvious typo.
18564
18565 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18566
18567 * function.c (thread_prologue_and_epilogue_insns): Do not crash
18568 on empty epilogue sequences.
18569
18570 2011-01-04 Joseph Myers <joseph@codesourcery.com>
18571
18572 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
18573 non-static): New Driver options.
18574
18575 2011-01-04 Jie Zhang <jie@codesourcery.com>
18576
18577 PR driver/47137
18578 * gcc.c (default_compilers[]): Set combinable field to 0
18579 for all assembly languages.
18580
18581 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
18582
18583 * config/mips/loongson3a.md: New file.
18584 * config/mips/mips.md: Include loongson3a.md.
18585 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
18586 TUNE_LOONGSON_3A.
18587
18588 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
18589
18590 PR middle-end/47017
18591 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
18592 instead of convert_memory_address_addr_space on the base expression.
18593
18594 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18595
18596 * config/spu/spu.c (spu_option_override): Update error text
18597 for bad -march= / -mtune= values.
18598
18599 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18600
18601 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
18602 if branch-hint optimization will be performed.
18603
18604 2011-01-03 Jakub Jelinek <jakub@redhat.com>
18605
18606 PR tree-optimization/47148
18607 * ipa-split.c (split_function): Convert arguments to
18608 DECL_ARG_TYPE if possible.
18609
18610 PR tree-optimization/47155
18611 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
18612 when computing uns.
18613
18614 PR rtl-optimization/47157
18615 * combine.c (try_combine): If undobuf.other_insn becomes
18616 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
18617 and set *new_direct_jump_p too.
18618
18619 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
18620
18621 PR tree-optimization/47021
18622 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
18623
18624 2011-01-03 Jakub Jelinek <jakub@redhat.com>
18625
18626 * gcc.c (process_command): Update copyright notice dates.
18627 * gcov.c (print_version): Likewise.
18628 * gcov-dump.c (print_version): Likewise.
18629 * mips-tfile.c (main): Likewise.
18630 * mips-tdump.c (main): Likewise.
18631
18632 2011-01-03 Martin Jambor <mjambor@suse.cz>
18633
18634 PR tree-optimization/46801
18635 * tree-sra.c (type_internals_preclude_sra_p): Check whether
18636 aggregate fields start at byte boundary instead of the bit-field flag.
18637
18638 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
18639
18640 PR driver/47137
18641 * gcc.c (main): Revert revision 168407.
18642
18643 2011-01-03 Martin Jambor <mjambor@suse.cz>
18644
18645 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
18646
18647 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18648
18649 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
18650 vector optab to expand vector/scalar shift, update gimple to vector.
18651
18652 2011-01-03 Martin Jambor <mjambor@suse.cz>
18653
18654 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
18655 a thunk.
18656
18657 2011-01-03 Martin Jambor <mjambor@suse.cz>
18658
18659 PR tree-optimization/46984
18660 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
18661 HOST_WIDE_INT.
18662 (cgraph_create_indirect_edge): Fixed line length.
18663 (cgraph_indirect_call_info): Declare.
18664 (cgraph_make_edge_direct) Update declaration.
18665 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
18666 (cgraph_create_indirect_edge): Use it.
18667 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
18668 callees.
18669 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
18670 the new thunk_delta representation.
18671 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
18672 HOST_WIDE_INT.
18673 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
18674 (ipa_read_indirect_edge_info): Likewise.
18675 * lto-cgraph.c (output_edge_opt_summary): New function.
18676 (output_node_opt_summary): Call it on all outgoing edges.
18677 (input_edge_opt_summary): New function.
18678 (input_node_opt_summary): Call it on all outgoing edges.
18679
18680 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
18681
18682 PR driver/47137
18683 * gcc.c (main): Don't check have_o when settting combine_inputs.
18684
18685 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
18686
18687 * regrename.c: Add general comment describing the pass.
18688 (struct du_head): Remove 'length' field.
18689 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
18690 (regrename_optimize): Do not sort chains. Rework comments, add others.
18691 Force renaming to the preferred class (if any) in the first pass and do
18692 not consider registers that belong to it in the second pass.
18693 (create_new_chain): Do not set 'length' field.
18694 (scan_rtx_reg): Likewise.
18695
18696 2011-01-02 Jakub Jelinek <jakub@redhat.com>
18697
18698 PR tree-optimization/47140
18699 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
18700 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
18701 to bit_value_binop.
18702
18703 PR rtl-optimization/47028
18704 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
18705 parm_birth_insn instead of at the beginning of first bb.
18706
18707 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
18708
18709 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
18710 Remove the word "see" before "@pxref".
18711 * doc/rtl.texi: Remove the word "see" before "@pxref".
18712
18713 2011-01-01 Jan Hubicka <jh@suse.cz>
18714
18715 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
18716 memory.
18717
18718 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
18719
18720 PR target/38662
18721 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
18722
18723 \f
18724 Copyright (C) 2011 Free Software Foundation, Inc.
18725
18726 Copying and distribution of this file, with or without modification,
18727 are permitted in any medium without royalty provided the copyright
18728 notice and this notice are preserved.