1 2010-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
4 * doc/tm.texi.in: Update Copyright date.
5 * doc/tm.texi: Regenerate.
6 * targhooks.c (default_setup_incoming_varargs): Replace
7 CUMULATIVE_ARGS* argument type with cumulative_args_t.
8 (default_pretend_outgoing_varargs_named): Likewise.
9 (hook_pass_by_reference_must_pass_in_stack): Likewise.
10 (hook_callee_copies_named): Likewise.
11 (default_function_arg_advance): Likewise.
12 (default_function_arg): Likewise.
13 (default_function_incoming_arg): Likewise.
14 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
15 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
16 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
17 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
18 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
19 * targhooks.h (default_setup_incoming_varargs): Likewise.
20 (default_pretend_outgoing_varargs_named): Likewise.
21 (hook_pass_by_reference_must_pass_in_stack): Likewise.
22 (hook_callee_copies_named): Likewise.
23 (default_function_arg_advance): Likewise.
24 (default_function_arg): Likewise.
25 (default_function_incoming_arg): Likewise.
26 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
27 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
28 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
29 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
30 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
31 * target.def (pass_by_reference): Likewise.
32 (setup_incoming_varargs, strict_argument_naming): Likewise.
33 (pretend_outgoing_varargs_named, callee_copies): Likewise.
34 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
35 (function_incoming_arg): Likewise.
36 * target.h: Don't include "tm.h" .
37 (cumulative_args_t): New typedef.
38 [GCC_TM_H] (get_cumulative_args): New static inline function.
39 [GCC_TM_H] (pack_cumulative_args): Likewise.
40 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
41 argument type with cumulative_args_t.
42 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
43 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
44 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
45 (frv_arg_partial_bytes, frv_function_arg): Likewise.
46 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
47 (frv_function_arg_1): Likewise.
48 * config/s390/s390.c (s390_pass_by_reference): Likewise.
49 (s390_function_arg_advance, s390_function_arg): Likewise.
50 * config/m32c/m32c.c (m32c_function_arg): Likewise.
51 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
52 (m32c_strict_argument_naming): Likewise.
53 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
54 (spu_function_arg_advance): Likewise.
55 (spu_setup_incoming_varargs): Likewise. Make static.
56 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
58 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
59 CUMULATIVE_ARGS* argument type with cumulative_args_t.
60 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
61 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
62 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
63 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
64 (mep_pass_by_reference, mep_function_arg): Likewise.
65 (mep_function_arg_advance): Likewise.
66 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
67 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
68 (m32r_function_arg, m32r_function_arg_advance): Likewise.
69 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
70 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
71 (ix86_function_arg, ix86_pass_by_reference): Likewise.
72 (ix86_setup_incoming_varargs): Likewise.
73 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
74 (sh_strict_argument_naming): Likewise.
75 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
76 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
77 (sh_function_arg_advance, sh_function_arg): Likewise.
78 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
79 (pdp11_function_arg_advance): Likewise.
80 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
82 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
83 * config/avr/avr.c (avr_function_arg): Likewise.
84 (avr_function_arg_advance): Likewise.
85 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
86 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
87 (xtensa_function_arg_1): Likewise.
88 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Likewise.
89 (xstormy16_function_arg): Likewise.
90 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
91 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
92 (fr30_function_arg_advance): Likewise.
93 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
94 (lm32_function_arg, lm32_function_arg_advance): Likewise.
95 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
96 (moxie_function_arg, moxie_function_arg_advance): Likewise.
97 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
98 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
99 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
100 (cris_function_arg, cris_function_incoming_arg): Likewise.
101 (cris_function_arg_advance, cris_function_arg_1): Likewise.
102 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
103 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
104 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
105 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
106 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
107 (mn10300_arg_partial_bytes): Likewise.
108 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
109 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
110 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
111 (ia64_function_arg_1): Likewise.
112 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
113 (m68k_function_arg): Likewise.
114 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
115 (rs6000_function_arg, setup_incoming_varargs): Likewise.
116 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
117 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
118 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
119 (picochip_arg_advance): Likewise.
120 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
121 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
122 (mcore_function_arg_advance): Likewise.
123 * config/score/score.c (score_pass_by_reference): Likewise.
124 (score_function_arg_advance): Likewise.
125 (score_arg_partial_bytes): Likewise. Make static.
126 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
127 * config/arm/arm.c (arm_arg_partial_bytes): Replace
128 CUMULATIVE_ARGS* argument type with cumulative_args_t.
129 (arm_function_arg, arm_function_arg_advance): Likewise.
130 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
131 * config/pa/pa.c (pa_pass_by_reference): Likewise.
132 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
133 (pa_function_arg): Likewise.
134 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
135 (mips_function_arg, mips_function_arg_advance): Likewise.
136 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
137 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
138 * config/vax/vax.c (vax_function_arg): Likewise.
139 (vax_function_arg_advance): Likewise.
140 * config/h8300/h8300.c (h8300_function_arg): Likewise.
141 (h8300_function_arg_advance): Likewise.
142 * config/v850/v850.c (v850_pass_by_reference): Likewise.
143 (v850_strict_argument_naming, v850_function_arg): Likewise.
144 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
145 (v850_setup_incoming_varargs): Likewise.
146 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
147 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
148 (mmix_function_arg, mmix_pass_by_reference): Likewise.
149 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
151 * config/bfin/bfin.c (setup_incoming_varargs): Replace
152 CUMULATIVE_ARGS* argument type with cumulative_args_t.
153 (bfin_function_arg_advance, bfin_function_arg): Likewise.
154 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
155 * calls.c (emit_call_1): Change type of args_so_far to
156 cumulative_args_t. Changed all callers.
157 (initialize_argument_information): Likewise.
158 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
159 * dse.c (get_call_args): Likewise.
160 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
161 * function.c (pass_by_reference, reference_callee_copied): Likewise.
162 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
163 New member args_so_far_v. Changed all users.
164 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
165 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
166 * config/mips/mips.c (mips_output_args_xfer): Likewise.
167 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
168 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
169 * config/microblaze/microblaze.c (microblaze_expand_prologue): Likewise.
170 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
171 m32r_pass_by_reference.
173 2011-06-16 Ira Rosen <ira.rosen@linaro.org>
175 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
176 argument to be a VEC of statements.
177 * tree-vect-loop.c (vect_determine_vectorization_factor):
178 Remove the assert that pattern statements have to have their
180 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
181 Change the first argument to be a VEC of statements. Update
183 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
184 (vect_handle_widen_mult_by_const): New function.
185 (vect_recog_widen_mult_pattern): Change the first argument to
186 be a VEC of statements. Update documentation. Check that the
187 constant is INTEGER_CST. Support multiplication by a constant
188 that fits an intermediate type - call
189 vect_handle_widen_mult_by_const.
190 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
191 call. Handle additional pattern statements if necessary.
193 2011-06-16 Nick Clifton <nickc@redhat.com>
196 * config.gcc: Set cpu_type to v850 for any V850 architecture.
197 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
198 md_file, extra_modes, out_file and extra_options are these are all
199 deduced from cpu_type.
201 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
203 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
204 truncation mask to 63.
206 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
210 * longlong.h: Add AVR support:
211 (count_leading_zeros): New macro.
212 (count_trailing_zeros): New macro.
213 (COUNT_LEADING_ZEROS_0): New macro.
214 * config/avr/t-avr (LIB1ASMFUNCS): Add
215 _ffssi2, _ffshi2, _loop_ffsqi2,
216 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2,
217 _paritydi2, _paritysi2, _parityhi2,
218 _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
219 _bswapsi2, _bswapdi2,
220 _ashldi3, _ashrdi3, _lshrdi3
221 (LIB2FUNCS_EXCLUDE): Add _clz.
222 * config/avr/libgcc.S (XCALL): Move up in file.
224 (DEFUN): New asm macro.
225 (ENDF): New asm macro.
226 (__ffssi2): New function.
227 (__ffshi2): New function.
228 (__loop_ffsqi2): New function.
229 (__ctzsi2): New function.
230 (__ctzhi2): New function.
231 (__clzdi2): New function.
232 (__clzsi2): New function.
233 (__clzhi2): New function.
234 (__paritydi2): New function.
235 (__paritysi2): New function.
236 (__parityhi2): New function.
237 (__parityqi2): New function.
238 (__popcounthi2): New function.
239 (__popcountsi2): New function.
240 (__popcountdi2): New function.
241 (__popcountqi2): New function.
242 (__bswapsi2): New function.
243 (__bswapdi2): New function.
244 (__ashldi3): New function.
245 (__ashrdi3): New function.
246 (__lshrdi3): New function.
249 2011-06-16 Richard Guenther <rguenther@suse.de>
251 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
253 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0 to
255 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
256 equality compares against zero for the lower bit.
258 2011-06-16 Jakub Jelinek <jakub@redhat.com>
260 PR tree-optimization/49419
261 * tree-vrp.c (execute_vrp): Call init_range_assertions
262 before estimate_numbers_of_iterations, call
263 free_number_of_iterations_estimates before calling
264 remove_range_assertions.
266 2011-06-16 Revital Eres <revital.eres@linaro.org>
268 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
269 (struct partial_schedule): Add rows_length field.
270 (verify_partial_schedule): Check rows_length.
271 (ps_insert_empty_row): Handle rows_length.
272 (create_partial_schedule): Likewise.
273 (free_partial_schedule): Likewise.
274 (reset_partial_schedule): Likewise.
275 (create_ps_insn): Remove rest_count argument.
276 (remove_node_from_ps): Update rows_length.
277 (add_node_to_ps): Update rows_length and call create_ps_insn
278 without passing row_rest_count.
279 (rotate_partial_schedule): Update rows_length.
281 2011-06-16 Revital Eres <revital.eres@linaro.org>
283 * ddg.c (add_intra_loop_mem_dep): New function.
284 (build_intra_loop_deps): Call it.
286 2011-05-06 Jeff Law <law@redhat.com>
288 * df-problems.c (df_lr_local_compute): Manually CSE
289 PIC_OFFSET_TABLE_REGNUM.
290 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
291 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
293 2011-06-13 Jan Hubicka <jh@suse.cz>
295 * cgraphunit.c (handle_alias_pairs): New function.
296 (cgraph_finalize_compilation_unit): Use it.
297 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
298 as externally visible.
300 2011-06-15 Richard Guenther <rguenther@suse.de>
302 * expr.c (expand_expr_real_2): Reduce all integral types to
304 (expand_expr_real_1): Likewise.
306 2011-06-15 Martin Jambor <mjambor@suse.cz>
308 PR tree-optimization/48613
309 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
310 ipa_node_params_vector is NULL.
312 2011-06-15 Jakub Jelinek <jakub@redhat.com>
315 * dwarf2out.c (dw_loc_list_node): Add force field.
316 (add_var_loc_to_decl): For PARM_DECL, attempt to keep
317 the incoming location in the list, even if it is modified
318 before first real insn.
319 (output_loc_list): Emit empty ranges with force flag set.
320 (dw_loc_list): If first range of a PARM_DECL is empty,
323 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
326 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
327 (fence_to_rewind). Use it to notice when bookkeeping will be placed
328 above a fence. Update comments.
329 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
330 placed just above it. Do not allow NULL place_to_insert.
332 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
334 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
335 (slpeel_tree_peel_loop_to_edge): Don't call
336 remove_dead_stmts_from_loop.
337 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
338 remove irrelevant pattern statements. For irrelevant statements
339 check if it is the last statement of a detected pattern, use
340 corresponding pattern statement instead.
341 (destroy_loop_vec_info): No need to remove pattern statements,
342 only free stmt_vec_info.
343 (vect_transform_loop): For irrelevant statements check if it is
344 the last statement of a detected pattern, use corresponding
345 pattern statement instead.
346 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
347 pattern statements. Set basic block for the new statement.
348 (vect_pattern_recog): Update documentation.
349 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
350 operands of pattern statements.
351 (vectorizable_call): Fix printing. In case of a pattern statement
352 use the lhs of the original statement when creating a dummy
353 statement to replace the original call.
354 (vect_analyze_stmt): For irrelevant statements check if it is
355 the last statement of a detected pattern, use corresponding
356 pattern statement instead.
357 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
358 statements use gsi of the original statement.
360 2011-06-14 Joseph Myers <joseph@codesourcery.com>
362 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
363 common/common-target-def.h.
364 * target.def (default_target_flags, handle_option,
365 supports_split_stack, optimization_table, init_struct,
366 except_unwind_info, unwind_tables_default, have_named_sections):
367 Move to common/common-target.def.
368 * target.h (enum opt_levels, struct default_options): Move to
369 common/common-target.h.
370 * targhooks.c (default_except_unwind_info,
371 dwarf2_except_unwind_info, sjlj_except_unwind_info,
372 default_target_handle_option, empty_optimization_table): Move to
373 common/common-targhooks.c.
374 * targhooks.h (default_except_unwind_info,
375 dwarf2_except_unwind_info, sjlj_except_unwind_info,
376 default_target_handle_option, empty_optimization_table): Move to
377 common/common-targhooks.h.
378 * common/common-target-def.h: Include common/common-targhooks.h.
379 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
381 * common/common-target.def (handle_option, option_init_struct,
382 option_optimization_table, default_target_flags,
383 except_unwind_info, supports_split_stack, unwind_tables_default,
384 have_named_sections): Move from target.def.
385 (HOOK_PREFIX): Undefine at end of file.
386 * common/common-target.h: Include input.h.
387 (enum opt_levels, struct default_options): Move from target.h.
388 * common/common-targhooks.c, common/common-targhooks.h: New.
389 * config.gcc (target_has_targetm_common): Default to yes.
390 (moxie*): Set target_has_targetm_common=no.
391 (hppa*-*-*): Don't set target_has_targetm_common=yes.
392 * doc/tm.texi: Regenerate.
393 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
394 (C_TARGET_DEF_H): Add common/common-targhooks.h.
395 (GCC_OBJS): Remove vec.o.
396 (OBJS): Remove hooks.o and vec.o.
397 (OBJS-libcommon-target): Add vec.o, hooks.o and
398 common/common-targhooks.o.
399 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
400 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
401 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
402 cfglayout.o, $(out_object_file), $(common_out_object_file)):
404 (common/common-targhooks.o): New.
405 * common/config/default-common.c: Include tm.h. Add FIXME
407 * common/config/pa/pa-common.c: Include more headers. Take
408 copyright dates from pa.c.
409 (pa_option_optimization_table, pa_handle_option,
410 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
411 TARGET_HANDLE_OPTION): Move from pa.c.
412 * common/config/alpha/alpha-common.c,
413 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
414 common/config/bfin/bfin-common.c,
415 common/config/cris/cris-common.c,
416 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
417 common/config/h8300/h8300-common.c,
418 common/config/i386/i386-common.c,
419 common/config/ia64/ia64-common.c,
420 common/config/iq2000/iq2000-common.c,
421 common/config/lm32/lm32-common.c,
422 common/config/m32c/m32c-common.c,
423 common/config/m32r/m32r-common.c,
424 common/config/m68k/m68k-common.c,
425 common/config/mcore/mcore-common.c,
426 common/config/mep/mep-common.c,
427 common/config/microblaze/microblaze-common.c,
428 common/config/mips/mips-common.c,
429 common/config/mmix/mmix-common.c,
430 common/config/mn10300/mn10300-common.c,
431 common/config/pdp11/pdp11-common.c,
432 common/config/picochip/picochip-common.c,
433 common/config/rs6000/rs6000-common.c,
434 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
435 common/config/score/score-common.c, common/config/sh/sh-common.c,
436 common/config/sparc/sparc-common.c,
437 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
438 common/config/vax/vax-common.c,
439 common/config/xstormy16/xstormy16-common.c,
440 common/config/xtensa/xtensa-common.c: New.
441 * config/alpha/alpha.c: Include common/common-target.h.
442 (alpha_option_optimization_table, alpha_handle_option,
443 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
444 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
445 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
446 * config/arm/arm.c (arm_option_optimization_table,
447 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
448 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
450 * config/avr/avr.c (avr_option_optimization_table,
451 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
453 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
454 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
455 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
456 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
457 * config/cris/cris.c (cris_option_optimization_table,
458 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
459 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
461 * config/fr30/fr30.c (fr30_option_optimization_table,
462 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
464 * config/frv/frv.c (frv_option_optimization_table,
465 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
466 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
467 * config/h8300/h8300.c (h8300_option_optimization_table,
468 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
469 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
470 * config/i386/i386-protos.h (ix86_handle_option): Declare.
471 * config/i386/i386.c: Include common/common-target.h.
472 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
473 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
474 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
475 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
476 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
477 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
478 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
479 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
480 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
481 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
482 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
483 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
484 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
485 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
486 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
487 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
488 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
489 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
490 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
491 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
492 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
493 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
494 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
495 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
496 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
497 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
498 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
499 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
500 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
501 ix86_option_optimization_table, ix86_option_init_struct,
502 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
503 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
504 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
506 * config/i386/t-i386 (i386.o): Update dependencies.
507 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
508 * config/ia64/ia64.c (ia64_option_optimization_table,
509 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
510 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
511 ia64_handle_option): Move to ia64-common.c.
512 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
513 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
514 * config/lm32/lm32.c (lm32_option_optimization_table,
515 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
517 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
519 * config/m32r/m32r.c (m32r_option_optimization_table,
520 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
521 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
522 m32r_handle_option): Move to m32r-common.c.
523 (m32r_memory_move_cost): Remove comment referring to
524 TARGET_HANDLE_OPTION.
525 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
526 Move to m68k-common.c.
527 * config/mcore/mcore.c (mcore_option_optimization_table,
528 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
529 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
530 * config/mep/mep.c (mep_option_optimization_table,
531 mep_handle_option, TARGET_HANDLE_OPTION,
532 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
533 Move to mep-common.c.
534 * config/microblaze/microblaze.c
535 (microblaze_option_optimization_table,
536 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
537 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
538 * config/mips/mips.c (mips_handle_option,
539 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
540 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
542 * config/mmix/mmix.c (mmix_option_optimization_table,
543 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
544 Move to mmix-common.c.
545 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
546 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
547 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
548 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
549 * config/pa/pa.c: Include common/common-target.h.
550 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
551 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
552 pa_handle_option): Move to pa-common.c.
553 (pa_option_override): Use targetm_common.except_unwind_info.
554 (pa_asm_output_mi_thunk, pa_function_section): Use
555 targetm_common.have_named_sections.
556 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
557 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
558 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
559 pdp11_handle_option, pdp11_option_init_struct): Move to
561 * config/picochip/picochip.c (picochip_option_optimization_table,
562 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
563 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
564 * config/rs6000/rs6000.c: Include common/common-target.h.
565 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
566 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
567 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
568 rs6000_handle_option): Move to rs6000-common.c.
569 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
570 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
571 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
572 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
573 * config/s390/s390.c (processor_flags_table,
574 s390_option_optimization_table, s390_option_init_struct,
575 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
576 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
577 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
578 * config/s390/s390.h (processor_flags_table): Declare.
579 * config/score/score.c (score_option_optimization_table,
580 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
581 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
582 score_handle_option): Move to score-common.c.
583 * config/sh/sh.c (sh_option_optimization_table,
584 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
585 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
586 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
587 * config/sparc/sparc.c: Include common/common-target.h.
588 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
589 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
590 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
591 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
592 spu_option_init_struct): Move to spu-common.c.
593 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
594 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
595 * config/v850/v850.c (small_memory_physical_max,
596 v850_handle_memory_optionn v850_handle_option,
597 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
598 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
600 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to
602 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
603 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
604 Move to xtensa-common.c.
605 * cfglayout.c: Include common/common-target.h.
606 (fixup_reorder_chain): Use targetm_common.have_named_sections.
607 * cfgrtl.c: Include common/common-target.h.
608 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
609 targetm_common.have_named_sections.
610 * dbxout.c: Include common/common-target.h.
611 (dbxout_function_end): Use targetm_common.have_named_sections.
612 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
613 targetm_common.except_unwind_info.
614 * dwarf2out.c: Include common/common-target.h.
615 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
616 dwarf2out_begin_prologue, dwarf2out_frame_init,
617 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
618 targetm_common.except_unwind_info.
619 * except.c: Include common/common-target.h.
620 (init_eh, finish_eh_generation,
621 output_one_function_exception_table): Use
622 targetm_common.except_unwind_info.
623 (switch_to_exception_section): Use
624 targetm_common.have_named_sections.
625 * explow.c: Include common/common-target.h.
626 * expr.c: Include common/common-target.h.
627 (build_personality_function): Use
628 targetm_common.except_unwind_info.
629 * function.c: Include common/common-target.h.
630 (expand_function_end): Use targetm_common.except_unwind_info.
631 * haifa-sched.c: Include common/common-target.h.
632 (sched_create_recovery_edges): Use
633 targetm_common.have_named_sections.
634 * lto-opts.c: Include common/common-target.h instead of target.h.
635 (lto_reissue_options): Use targetm_common.handle_option.
636 * opts.c: Include common/common-target.h.
637 (target_handle_option): Use targetm_common.handle_option.
638 (init_options_struct): Update comment referring to
639 targetm.target_option.optimization. Use
640 targetm_common.default_target_flags,
641 targetm_common.unwind_tables_default and
642 targetm_common.option_init_struct.
643 (default_options_optimization): Use
644 targetm_common.option_optimization_table.
645 (finish_options): Use targetm_common.except_unwind_info,
646 targetm_common.unwind_tables_default,
647 targetm_common.have_named_sections and
648 targetm_common.supports_split_stack.
649 * toplev.c: Include common/common-target.h.
650 (process_options): Use targetm_common.have_named_sections.
651 * tree-tailcall.c: Include common/common-target.h.
652 (suitable_for_tail_call_opt_p): Use
653 targetm_common.except_unwind_info.
654 * tree.c: Include common/common-target.h.
655 (build_common_builtin_nodes): Use
656 targetm_common.except_unwind_info.
657 * varasm.c: Include common/common-target.h.
658 (resolve_unique_section, hot_function_section,
659 default_function_section): Use targetm_common.have_named_sections.
661 2011-06-14 Easwaran Raman <eraman@google.com>
663 PR rtl-optimization/44194
664 * dse.c: Include tree-flow.h
665 (insn_info): Add new field non_frame_wild_read.
666 (group_info): Add new fields escaped_n and escaped_p.
667 (kill_on_calls): New variable.
668 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
669 (dse_step0): Initialize kill_on_calls.
670 (can_escape): New function.
671 (set_usage_bits): Add additional parameter; record information
672 about escaped locations.
673 (record_store): Pass EXPR corresponding to MEM to
675 (dse_step2_nospill): Set kill_on_calls based on
676 group->escaped_n and group->escaped_n.
677 (add_wild_read): Refactor into...
678 (reset_active_stores): ... New function, and
679 (free_read_records): ... New function.
680 (add_non_frame_wild_read): New function.
681 (scan_insn): Call add_non_frame_wild_read on non-const calls.
682 (scan_reads_nospill): Handle instructions with
684 (dse_step5_nospill): Call scan_reads_nospill for instructions
685 marked as non_frame_wild_read.
686 (dse_step7): Free escaped_n, escaped_p and kill_on_calls
689 2011-06-14 Joseph Myers <joseph@codesourcery.com>
691 * common/common-target-def.h, common/common-target.def,
692 common/common-target.h, common/config/default-common.c,
693 common/config/pa/pa-common.c: New files.
694 * Makefile.in (common_out_file, common_out_object_file,
695 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
696 (OBJS-libcommon-target): Include $(common_out_object_file).
697 (prefix.o): Update dependencies.
698 ($(common_out_object_file), common/common-target-hooks-def.h,
699 s-common-target-hooks-def-h): New.
700 (s-tm-texi): Also check timestamp on common-target.def.
701 (build/genhooks.o): Update dependencies.
702 * config.gcc (common_out_file, target_has_targetm_common): Define.
703 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
704 TARGET_ALWAYS_STRIP_DOTDOT.
705 * configure.ac (common_out_object_file): Define.
706 (common_out_file, common_out_object_file): Substitute.
707 (common): Create directory.
708 * configure: Regenerate.
709 * doc/tm.texi.in (targetm_common): Document.
710 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
711 * doc/tm.texi: Regenerate.
712 * genhooks.c (hook_array): Also include common/common-target.def.
713 * prefix.c (tm.h): Don't include.
714 (common/common-target.h): Include.
715 (ALWAYS_STRIP_DOTDOT): Don't define.
716 (update_path): Use targetm_common.always_strip_dotdot instead of
718 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
720 2011-06-14 David Li <davidxl@google.com>
722 * passes.c (execute_function_todo): Remove TODO_dump_func.
723 (execute_one_pass): Remove TODO_dump_func.
724 (execute_function_dump): New function.
725 * tree-vrp.c: Remove TODO_dump_func.
726 * regrename.c: Remove TODO_dump_func.
727 * fwprop.c: Remove TODO_dump_func.
728 * tree-into-ssa.c: Remove TODO_dump_func.
729 * tree-complex.c: Remove TODO_dump_func.
730 * tracer.c: Remove TODO_dump_func.
731 * tree-loop-distribution.c: Remove TODO_dump_func.
732 * postreload-gcse.c: Remove TODO_dump_func.
733 * postreload.c: Remove TODO_dump_func.
734 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
735 * tree-tailcall.c: Remove TODO_dump_func.
736 * ipa-cp.c: Remove TODO_dump_func.
737 * final.c: Remove TODO_dump_func.
738 * tree-emutls.c: Remove TODO_dump_func.
739 * omp-low.c: Remove TODO_dump_func.
740 * tree-ssa-dse.c: Remove TODO_dump_func.
741 * tree-ssa-uncprop.c: Remove TODO_dump_func.
742 * auto-inc-dec.c: Remove TODO_dump_func.
743 * reorg.c: Remove TODO_dump_func.
744 * tree-ssa-copyrename.c: Remove TODO_dump_func.
745 * tree-ssa-ccp.c: Remove TODO_dump_func.
746 * compare-elim.c: Remove TODO_dump_func.
747 * mode-switching.c: Remove TODO_dump_func.
748 * modulo-sched.c: Remove TODO_dump_func.
749 * tree-call-cdce.c: Remove TODO_dump_func.
750 * cse.c: Remove TODO_dump_func.
751 * web.c: Remove TODO_dump_func.
752 * tree-stdarg.c: Remove TODO_dump_func.
753 * lto-streamer-out.c: Remove TODO_dump_func.
754 * tree-ssa-math-opts.c: Remove TODO_dump_func.
755 * tree-ssa-dom.c: Remove TODO_dump_func.
756 * tree-nrv.c: Remove TODO_dump_func.
757 * loop-init.c: Remove TODO_dump_func.
758 * gimple-low.c: Remove TODO_dump_func.
759 * ipa-inline.c: Remove TODO_dump_func.
760 * tree-ssa-sink.c: Remove TODO_dump_func.
761 * jump.c: Remove TODO_dump_func.
762 * ifcvt.c: Remove TODO_dump_func.
763 * tree-ssa-loop.c: Remove TODO_dump_func.
764 * recog.c: Remove TODO_dump_func.
765 * dse.c: Remove TODO_dump_func.
766 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
767 * matrix-reorg.c: Remove TODO_dump_func.
768 * tree-eh.c: Remove TODO_dump_func.
769 * regmove.c: Remove TODO_dump_func.
770 * function.c: Remove TODO_dump_func.
771 * tree-vectorizer.c: Remove TODO_dump_func.
772 * ipa-split.c: Remove TODO_dump_func.
773 * gcse.c: Remove TODO_dump_func.
774 * tree-if-conv.c: Remove TODO_dump_func.
775 * init-regs.c: Remove TODO_dump_func.
776 * tree-ssa-phiopt.c: Remove TODO_dump_func.
777 * implicit-zee.c: Remove TODO_dump_func.
778 * lower-subreg.c: Remove TODO_dump_func.
779 * bt-load.c: Remove TODO_dump_func.
780 * tree-dfa.c: Remove TODO_dump_func.
781 * except.c: Remove TODO_dump_func.
782 * emit-rtl.c: Remove TODO_dump_func.
783 * store-motion.c: Remove TODO_dump_func.
784 * cfgexpand.c: Remove TODO_dump_func.
785 * tree-cfgcleanup.c: Remove TODO_dump_func.
786 * cfgcleanup.c: Remove TODO_dump_func.
787 * tree-ssa-pre.c: Remove TODO_dump_func.
788 * tree-sra.c: Remove TODO_dump_func.
789 * tree-mudflap.c: Remove TODO_dump_func.
790 * tree-ssa-copy.c: Remove TODO_dump_func.
791 * cfglayout.c: Remove TODO_dump_func.
792 * tree-ssa-forwprop.c: Remove TODO_dump_func.
793 * tree-ssa-dce.c: Remove TODO_dump_func.
794 * ira.c: Remove TODO_dump_func.
795 * tree-ssa.c: Remove TODO_dump_func.
796 * integrate.c: Remove TODO_dump_func.
797 * tree-optimize.c: Remove TODO_dump_func.
798 * tree-ssa-phiprop.c: Remove TODO_dump_func.
799 * tree-object-size.c: Remove TODO_dump_func.
800 * combine.c: Remove TODO_dump_func.
801 * bb-reorder.c: Remove TODO_dump_func.
802 * cprop.c: Remove TODO_dump_func.
803 * var-tracking.c: Remove TODO_dump_func.
804 * tree-profile.c: Remove TODO_dump_func.
805 * tree-vect-generic.c: Remove TODO_dump_func.
806 * reg-stack.c: Remove TODO_dump_func.
807 * sched-rgn.c: Remove TODO_dump_func.
808 * tree-ssa-structalias.c: Remove TODO_dump_func.
809 * tree-switch-conversion.c: Remove TODO_dump_func.
810 * tree-cfg.c: Remove TODO_dump_func.
811 * tree-ssa-reassoc.c: Remove TODO_dump_func.
812 * combine-stack-adj.c: Remove TODO_dump_func.
813 * dce.c: Remove TODO_dump_func.
814 * tree-ssanames.c: Remove TODO_dump_func.
815 * regcprop.c: Remove TODO_dump_func.
817 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
820 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
821 and properly handle result not in Pmode.
823 2011-06-14 Robert Millan <rmh@gnu.org>
825 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
826 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
829 * config/i386/kfreebsd-gnu64.h: New file.
830 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
831 with `i386/kfreebsd-gnu64.h'.
833 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
834 (GNU_USER_LINK_EMULATION64): New macros.
835 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
836 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
837 of hardcoding `elf_i386' and `elf_x86_64'.
839 2011-06-14 Nick Clifton <nickc@redhat.com>
842 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
845 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
847 2011-06-14 Jakub Jelinek <jakub@redhat.com>
850 * tree.h (DECL_NONSHAREABLE): Define.
851 (struct tree_decl_common): Change decl_common_unused to
852 decl_nonshareable_flag.
853 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
854 Ignore vars with DECL_NONSHAREABLE bit set.
855 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
856 on stores to automatic aggregate vars.
858 PR rtl-optimization/49390
860 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
862 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
865 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
866 Tom de Vries <tom@codesourcery.com>
869 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
870 Document changed semantics.
871 (max_stmt_executions, max_stmt_executions_int): Declare.
872 * tree-data-ref.c (estimated_loop_iterations)
873 (estimated_loop_iterations_int): Move functions...
874 * tree-ssa-loop-niter.c (estimated_loop_iterations)
875 (estimated_loop_iterations_int): here.
876 (record_estimate): Change nb_iterations_upper_bound and
877 nb_iterations_estimate semantics.
878 (max_stmt_executions, max_stmt_executions_int): New function.
879 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
880 (max_stmt_executions_tree): this.
881 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
882 estimated_loop_iterations_tree.
883 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
884 max_stmt_executions_int instead of estimated_loop_iterations_int.
885 * predict.c (predict_loops): Idem.
886 * tree-parloops.c (parallelize_loops): Idem.
887 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
888 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
889 (init_omega_for_ddr_1): Idem.
890 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
891 (loop_prefetch_arrays): Idem
892 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
893 max_stmt_executions instead of estimated_loop_iterations.
894 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
895 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
896 instead of nb_iterations_upper_bound.
898 2011-06-13 Jan Hubicka <jh@suse.cz>
900 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
902 2011-06-14 Richard Henderson <rth@redhat.com>
905 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
906 (based_loc_descr): Assert it's true.
907 (compute_frame_pointer_to_fb_displacement): Set it, rather than
908 aborting immediately.
910 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
911 Mingfeng Wu <mingfeng@faraday-tech.com>
913 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
915 2011-06-13 Jan Hubicka <jh@suse.cz>
917 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
919 2011-06-13 Jan Hubicka <jh@suse.cz>
921 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
922 similarly to DECL_COMDAT.
923 * cgraphunit.c (cgraph_analyze_function): Likewise.
924 * ipa.c (function_and_variable_visibility): Likewise.
926 2011-06-13 Jan Hubicka <jh@suse.cz>
928 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
929 BINFO_VIRTUALS when streaming for ltrans unit.
931 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
933 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
934 (movdi_internal64): Same.
936 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
939 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
940 a set of similar patterns, where the MATCH_OPERAND for the function
941 argument is replaced with individual references to hardware registers.
942 (save_fpregs_<mode>): Ditto
943 (restore_gpregs_<mode>): Ditto
944 (return_and_restore_gpregs_<mode>): Ditto
945 (return_and_restore_fpregs_<mode>): Ditto
946 (return_and_restore_fpregs_aix_<mode>): Ditto
948 2011-06-13 Jan Hubicka <jh@suse.cz>
950 * ipa-utils.c (postorder_stack): New structure.
951 (ipa_reverse_postorder): Handle aliases.
953 2011-06-13 Jan Hubicka <jh@suse.cz>
955 * ipa-inline.c (reset_edge_caches): Walk aliases.
956 (update_caller_keys): Do not test inlinability of aliases.
957 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
958 (do_estimate_growth): Fix typo.
960 2011-06-13 Jan Hubicka <jh@suse.cz>
962 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
963 (can_remove_node_now_p): ... here; handle same comdat groups.
964 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
965 (inline_call): Update use of can_remove_node_now_p.
967 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
969 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
970 condition to disallow non-identical memory locations.
971 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
972 preference to bit manipulation instructions.
974 2011-06-13 Jan Hubicka <jh@suse.cz>
976 * cgraph.c (cgraph_for_node_thunks_and_aliases,
977 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
978 (nonremovable_p): New function.
979 (cgraph_can_remove_if_no_direct_calls_p): New function.
980 (used_from_object_file_p): New functoin.
981 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
982 references from aliases.
983 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
984 * ipa-inline.c (check_caller_edge): New function.
985 (want_inline_function_called_once_p): Use it; accept aliases called
987 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
989 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
992 * config/arm/neon.md (vec_pack_trunc): Set the lengths
993 correctly for the case with Quad vectors.
995 2011-06-13 Jakub Jelinek <jakub@redhat.com>
996 Ira Rosen <ira.rosen@linaro.org>
998 PR tree-optimization/49352
999 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
1000 all, make sure loop_use_stmt after the loop is a def stmt of a used
1001 SSA_NAME that is the only one defined inside of the loop. Don't
1002 check for COND_EXPR and GIMPLE_BINARY_RHS.
1003 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
1004 check_reduction is true.
1006 2011-06-11 Jan Hubicka <jh@suse.cz>
1009 * ipa.c (cgraph_externally_visible_p): Check resolution info.
1011 2011-06-11 Jan Hubicka <jh@suse.cz>
1014 * ipa-inline-transform.c: Include tree-pass.h
1015 (inline_transform): Set TODO_update_ssa_only_virtuals.
1016 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
1018 2011-06-11 Jan Hubicka <jh@suse.cz>
1021 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
1024 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
1026 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
1027 Take number of iterations to peel into account for equally frequent
1028 misalignment values.
1030 2011-06-11 Jan Hubicka <jh@suse.cz>
1032 * lto-streamer-out.c (produce_symtab): Stream out the newly represented
1035 2011-06-11 Jan Hubicka <jh@suse.cz>
1037 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting varying
1039 (ipa_update_after_lto_read): Likewise.
1040 (ipa_write_node_info): Do not sream call_with_var_arguments.
1041 (ipa_read_node_info): Likewise.
1043 2011-06-11 Jan Hubicka <jh@suse.cz>
1045 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
1047 2011-06-11 Jan Hubicka <jh@suse.cz>
1049 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
1050 (lto_symtab_resolve_can_prevail_p): Likewise.
1051 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
1052 * cgraph.c (same_body_aliases_done): New global var.
1053 (cgraph_same_body_alias_1): Rename to ...
1054 (cgraph_create_function_alias): ... this one; reorg to new
1056 (cgraph_same_body_alias): Use cgraph_create_function_alias;
1057 record references when asked to.
1058 (cgraph_add_thunk): Fix formating.
1059 (cgraph_get_node): Kill same body alias code.
1060 (cgraph_node_for_asm): Likewise.
1061 (cgraph_remove_same_body_alias): Remove.
1062 (cgraph_remove_node): Kill same body alias code.
1063 (cgraph_mark_address_taken_node): Mark also the aliased function
1064 as having address taken.
1065 (dump_cgraph_node): Dump same body aliases.
1066 (cgraph_for_node_thunks_and_aliases): Update for new alias
1068 (cgraph_for_node_and_aliases): Likewise.
1069 * cgraph.h (same_body): Kll pointer.
1070 (same_body_alias): Update comment.
1071 (same_body_aliases_done): Declare.
1072 (cgraph_remove_same_body_alias): Remove declaration.
1073 (cgraph_create_function_alias): Declare.
1074 (cgraph_process_same_body_aliases): Declare.
1075 (cgraph_function_with_gimple_body_p): Check for alias.
1076 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
1077 (cgraph_alias_aliased_node): New function.
1078 (cgraph_function_node): Update for new aliases.
1079 (cgraph_function_or_thunk_node): Likewise.
1080 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
1081 (inline_call): Remove dead aliases.
1082 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
1083 name hack for same body aliases.
1084 (clone_of_p): Look through aliases.
1085 (verify_cgraph_node): Verify aliases.
1086 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
1087 (cgraph_process_same_body_aliases): New function.
1088 (process_function_and_variable_attributes): Disable weakref warning on
1090 (cgraph_analyze_functions): Handle aliases.
1091 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
1092 (assemble_thunks): Rename to ...
1093 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
1094 (cgraph_expand_function): Remove alias output code.
1095 (cgraph_output_in_order): Skip aliases.
1096 (cgraph_preserve_function_body_p): Aliases don't need preserving.
1097 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
1098 (ipa_record_reference): Do not assert on alias references.
1099 (ipa_ref_has_aliases_p): New function.
1100 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
1101 (ipa_ref_has_aliases_p): Declare.
1102 * lto-cgraph.c (lto_output_node): Handle aliases.
1103 (input_node): Likewise.
1104 * lto-streamer-out.c (lto_output): Skip aliases.
1105 (produce_symtab): Kill same_body_alias code.
1106 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
1107 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
1108 * ipa-inline.c (update_caller_keys): Walk aliases.
1109 (inline_small_functions): Fix thinko in previous patch.
1110 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
1111 (function_and_variable_visibility): Do not walk same body aliases.
1112 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
1113 (ipa_pta_execute): Use it.
1115 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
1117 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
1118 (*vec_dupv2df): Rename from vec_dupv2df.
1119 (vec_dupv2df): New expander.
1121 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
1123 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
1125 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
1127 * config/i386/i386.md: Use default value in "isa" attribute.
1128 * config/i386/sse.md: Ditto.
1129 * config/i386/mmx.md: Ditto.
1131 2011-06-10 Wei Guozhi <carrot@google.com>
1134 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
1135 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
1136 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
1138 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
1140 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
1141 (arm_legitimate_ldrd_p): New prototype.
1142 (arm_output_ldrd): New prototype.
1143 * config/arm/arm.c (arm_check_ldrd_operands): New function.
1144 (arm_legitimate_ldrd_p): New function.
1145 (arm_output_ldrd): New function.
1147 2011-06-10 David Li <davidxl@google.com>
1149 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
1150 * passes.c (passr_eq): New function.
1151 (create_pass_tab): New function.
1152 (pass_traverse): New function.
1153 (dump_one_pass): New function.
1154 (dump_pass_list): New function.
1155 (dump_passes): New function.
1157 2011-06-10 Jan Hubicka <jh@suse.cz>
1159 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
1160 setting the nothrow flag.
1161 * ipa-reference.c (propagate): Skip aliases.
1162 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
1163 (propagate_nothrow): Skip aliases; do not update cgraph.
1164 (local_pure_const): Do not update cgraph.
1165 * tree-profile.c (tree_profiling): Do fixup_cfg.
1167 2011-06-10 Jan Hubicka <jh@suse.cz>
1169 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
1170 (cgraph_local_node_p): ... here; handle aliases.
1171 (has_addr_references_p): Break out from ...;
1172 (cgraph_remove_unreachable_nodes) ... here.
1174 2011-06-10 Jan Hubicka <jh@suse.cz>
1176 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
1177 * common.opt (flag_inline_functions_called_once): Do not
1180 2011-06-10 Jan Hubicka <jh@suse.cz>
1182 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
1183 (ipcp_initialize_node_lattices): Do not deal with aliases;
1184 Do not try to propagate through thunks.
1185 (ipcp_change_tops_to_bottom): Do not deal with aliases.
1187 2011-06-10 Jan Hubicka <jh@suse.cz>
1189 * ipa-prop.c (ipa_write_node_info): Stream jump functions
1191 (ipa_read_node_info): Likewise.
1193 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1196 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
1197 (build_and_insert_call): Likewise.
1198 (build_and_insert_ref): New.
1199 (gimple_expand_builtin_pow): Minor cleanup.
1200 (gimple_expand_builtin_cabs): New.
1201 (execute_cse_sincos): Add case for BUILT_IN_CABS.
1203 2011-06-10 Jan Hubicka <jh@suse.cz>
1205 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
1206 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
1207 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
1208 (ipcp_propagate_stage): Skip aliases when propagating.
1209 (ipcp_need_redirect_p): Skip aliases.
1210 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
1211 collect_callers_of_node.
1212 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
1214 (ipa_compute_jump_functions): Look through aliases.
1216 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1218 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
1220 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
1222 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
1224 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
1226 2011-06-10 Jan Hubicka <jh@suse.cz>
1228 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
1229 Update call of gimple_get_virt_method_for_binfo.
1230 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
1231 refuse_thunks parameter.
1232 (gimple_fold_call): Update.
1233 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
1235 2011-06-10 Jan Hubicka <jh@suse.cz>
1237 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
1238 (not_all_callers_have_enough_arguments_p): ... this one; turn into
1239 worker for cgraph_for_node_and_aliases.
1240 (convert_callers_for_node): Break out from ...
1241 (convert_callers): ... here.
1242 (modify_function): Use collect_callers_of_node.
1243 (ipa_early_sra): Use cgraph_for_node_and_aliases.
1245 2011-06-10 Richard Guenther <rguenther@suse.de>
1247 PR tree-optimization/49361
1248 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
1249 when not already in gimple form.
1251 2011-06-10 Richard Guenther <rguenther@suse.de>
1254 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
1255 FOR_EACH_PHI_OR_STMT_USE.
1257 2011-06-10 Jan Hubicka <jh@suse.cz>
1259 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
1260 (clone_inlined_nodes): ... here.
1261 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
1262 to real destination prior inlining.
1263 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
1264 can_early_inline_edge_p, want_early_inline_function_p,
1265 want_early_inline_function_p, want_inline_small_function_p,
1266 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
1267 edge_badness, update_all_callee_keys, lookup_recursive_calls,
1268 add_new_edges_to_heap, inline_small_functions, flatten_function,
1269 inline_always_inline_functions, early_inline_small_functions): Use
1270 cgraph_function_or_thunk_node.
1271 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
1272 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
1273 (do_estimate_edge_growth_1): Break out from ...
1274 (do_estimate_growth) ... here; walk aliases.
1275 (inline_generate_summary): Skip aliases.
1277 2011-06-10 Richard Guenther <rguenther@suse.de>
1279 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
1280 forward when combining, visit inserted stmts when a stmt was changed.
1282 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
1284 * tree.h (error_operand_p): Add.
1285 * dbxout.c (dbxout_type_fields): Use the latter.
1286 * c-decl.c (add_stmt): Likewise.
1287 * gimplify.c (omp_add_variable, omp_notice_variable,
1288 gimplify_scan_omp_clauses): Likewise.
1290 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
1292 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
1293 when a value is actually passed in regs.
1295 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
1296 Laurent Rougé <laurent.rouge@menta.fr>
1298 * doc/invoke.texi (SPARC options): Add -mflat.
1299 * config/sparc/sparc.opt: Likewise.
1300 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
1301 (sparc_flat_expand_prologue): Declare.
1302 (sparc_flat_expand_epilogue): Likewise.
1303 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
1304 (CPP_ENDIAN_SPEC): Replace with...
1305 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
1306 (CPP_SPEC): Adjust to above change.
1307 (EXTRA_SPECS): Likewise.
1308 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
1309 (INCOMING_REGNO): Likewise.
1310 (OUTGOING_REGNO): Likewise.
1311 (LOCAL_REGNO): Likewise.
1312 (SETUP_FRAME_ADDRESSES): Likewise.
1313 (FIXED_REGISTERS): Set 0 for %fp.
1314 (CALL_USED_REGISTERS): Likewise.
1315 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
1316 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
1317 (RETURN_ADDR_REGNUM): Define.
1318 (RETURN_ADDR_RTX): Use it.
1319 (INCOMING_RETURN_ADDR_REGNUM): Define.
1320 (INCOMING_RETURN_ADDR_RTX): Use it.
1321 (DWARF_FRAME_RETURN_COLUMN): Likewise.
1322 (EH_RETURN_REGNUM): Define.
1323 (EH_RETURN_STACKADJ_RTX): Use it.
1324 (EH_RETURN_HANDLER_RTX): Delete.
1325 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
1326 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
1328 (struct machine_function): Add frame_size, apparent_frame_size,
1329 frame_base_reg, frame_base_offset, n_global_fp_regs and
1330 save_local_in_regs_p fields.
1331 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
1332 sparc_frame_base_offset, sparc_n_global_fp_regs,
1333 sparc_save_local_in_regs_p): New macros.
1334 (sparc_option_override): Error out if -fcall-saved-REG is specified
1336 (eligible_for_restore_insn): Fix formatting.
1337 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
1338 (eligible_for_sibcall_delay): Likewise.
1339 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
1340 (sparc_legitimate_address_p): Adjust to above change.
1341 (save_global_or_fp_reg_p): New predicate.
1342 (return_addr_reg_needed_p): Likewise.
1343 (save_local_or_in_reg_p): Likewise.
1344 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
1345 (SORR_SAVE, SORR_RESTORE): Delete.
1346 (sorr_pred_t): New typedef.
1347 (sorr_act_t): New enum.
1348 (save_or_restore_regs): Rename to...
1349 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
1350 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
1351 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
1352 mechanism. Add CFI information for double-word saves in 32-bit mode.
1353 (emit_adjust_base_to_offset): New function extracted from...
1354 (emit_save_or_restore_regs): ...this. Rename the rest to...
1355 (emit_save_or_restore_regs_global_fp_regs): ...this.
1356 (emit_save_or_restore_regs_local_in_regs): New function.
1357 (gen_create_flat_frame_[123]): New functions.
1358 (sparc_expand_prologue): Use SIZE local variable. Adjust.
1359 (sparc_flat_expand_prologue): New function.
1360 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
1361 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
1362 (sparc_flat_expand_epilogue): New function.
1363 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
1364 (output_return): Likewise.
1365 (output_sibcall): Likewise.
1366 (sparc_output_mi_thunk): Likewise.
1367 (sparc_frame_pointer_required): Likewise.
1368 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
1369 function optimization.
1370 * config/sparc/sparc.md (flat): New attribute.
1371 (prologue): Add TARGET_FLAT handling.
1372 (save_register_window): Disable if TARGET_FLAT.
1373 (create_flat_frame_[123]): New patterns.
1374 (epilogue): Add TARGET_FLAT handling.
1375 (sibcall_epilogue): Likewise.
1376 (eh_return): New expander.
1377 (eh_return_internal): New insn and splitter.
1378 (return_internal): Add TARGET_FLAT handling.
1379 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
1380 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
1381 (nonlocal_goto): Add TARGET_FLAT handling.
1382 * config/sparc/t-elf: Add -mflat multilib.
1383 * config/sparc/t-leon: Likewise.
1385 2011-06-10 Jan Hubicka <jh@suse.cz>
1387 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
1388 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
1389 (self_recursive_p): Use cgraph_function_node.
1390 (propagate_pure_const): Likewise.
1391 (propagate_nothrow): Likewise.
1392 * ipa-reference.c (ipa_reference_get_not_read_global): Use
1393 cgraph_function_node.
1394 (propagate_bits): Likewise.
1395 (propagate): Likewise.
1397 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1398 Richard Earnshaw <rearnsha@arm.com>
1400 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
1401 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
1402 (*thumb2_movdi_vfp): Delete.
1403 (*arm_movdi_vfp_cortexa8): Delete.
1404 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
1405 (*movdi_vfp_cortexa8): Likewise.
1407 2011-06-10 Richard Guenther <rguenther@suse.de>
1409 * stor-layout.c (initialize_sizetypes): Give names to all
1412 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
1414 PR tree-optimization/49318
1415 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
1416 irrelevant pattern statements.
1418 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
1420 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
1423 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
1426 2011-06-09 Jan Hubicka <jh@suse.cz>
1428 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
1429 do not recompute reachable flag.
1430 (cgraph_finalize_function, cgraph_analyze_functions): Set
1431 redefined_extern_inline here.
1433 2011-06-09 Jan Hubicka <jh@suse.cz>
1435 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
1436 (cgraph_only_called_directly_p): ... this one; bring offline.
1437 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
1438 varpool_used_from_object_file_p): Drop names from the declaratoin.
1439 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
1440 collect_callers_of_node): New.
1441 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
1442 (cgraph_edge_recursive_p): Use cgraph_function_node.
1443 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
1444 (cgraph_node_cannot_be_local_p_1): Break out from ...
1445 (cgraph_node_can_be_local_p): ... here; walk aliases.
1446 (cgraph_for_node_thunks_and_aliases): New function.
1447 (cgraph_for_node_and_aliases): New function.
1448 (cgraph_make_node_local_1): Break out from ...
1449 (cgraph_make_node_local) ... here; use
1450 cgraph_for_node_thunks_and_aliases.
1451 (cgraph_set_nothrow_flag_1): Break out from ...
1452 (cgraph_set_nothrow_flag) ... here;
1453 use cgraph_for_node_thunks_and_aliases.
1454 (cgraph_set_const_flag_1): Break out from ...
1455 (cgraph_set_const_flag) ... here;
1456 use cgraph_for_node_thunks_and_aliases.
1457 (cgraph_set_pure_flag_1): Break out from ...
1458 (cgraph_set_pure_flag) ... here;
1459 use cgraph_for_node_thunks_and_aliases.
1460 (cgraph_propagate_frequency_1): Break out from ...
1461 (cgraph_propagate_frequency) ... here; use
1462 cgraph_for_node_thunks_and_aliases.
1463 (cgraph_used_from_object_file_p): Do not care about aliases.
1464 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
1466 (collect_callers_of_node_1, collect_callers_of_node): New functions.
1468 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
1470 PR rtl-optimization/49154
1471 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
1472 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
1473 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
1474 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
1475 * config/cris/cris.h (cris_register_move_cost): Remove
1476 !TARGET_V32 code. Tweak comments.
1478 2011-06-09 Jan Hubicka <jh@suse.cz>
1480 * cgraphbuild.c (record_eh_tables): Mark personality function as having
1483 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
1485 PR rtl-optimization/49154
1486 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
1487 is a matching slot in the hashtable, assign it to classes_ptr.
1489 PR rtl-optimization/49154
1490 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
1492 * doc/tm.texi: Regenerate.
1494 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
1497 * config/sh/sh.md (UNSPEC_CHKADD): New.
1498 (chk_guard_add): New define_insn_and_split.
1499 (symGOT_load): Use chk_guard_add instead of blockage.
1501 2011-06-09 Kai Tietz <ktietz@redhat.com>
1503 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
1505 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
1507 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
1509 2011-06-09 Wei Guozhi <carrot@google.com>
1512 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
1513 (peephole2 for conditional move): Generate 16 bit instructions.
1515 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
1517 * config/i386/i386.md (*movdi_internal_rex64): Merge
1518 alternatives 6 and 8.
1520 2011-06-09 David Li <davidxl@google.com>
1522 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
1523 * passes.c (passr_eq): New function.
1524 (create_pass_tab): New function.
1525 (pass_traverse): New function.
1526 (dump_one_pass): New function.
1527 (dump_pass_list): New function.
1528 (dump_passes): New function.
1530 2011-06-09 David Li <davidxl@google.com>
1532 * tree-complex.c (tree_lower_complex): Gate cleanup.
1533 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
1534 (execute_optimize_stdarg): Ditto.
1535 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
1536 (execute_cleanup_eh_1): Ditto.
1537 (execute_cleanup_eh): Ditto.
1538 * gcse.c (gate_rtl_pre): Ditto.
1539 (execute_rtl_pre): Ditto.
1540 * except.c (finish_eh_generation): Ditto.
1541 (convert_to_eh_region_ranges): Ditto.
1542 * cprop.c (one_cprop_pass): Ditto.
1544 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
1547 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
1548 in all basic blocks.
1550 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1552 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
1553 (HAVE_ENABLE_EXECUTE_STACK): Define.
1554 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
1555 (HAVE_ENABLE_EXECUTE_STACK): Define.
1556 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
1557 (HAVE_ENABLE_EXECUTE_STACK): Define.
1558 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
1559 (ENABLE_EXECUTE_STACK): Remove.
1560 (HAVE_ENABLE_EXECUTE_STACK): Define.
1561 [IN_LIBGCC2]: Don't include <windows.h>.
1562 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
1563 (HAVE_ENABLE_EXECUTE_STACK): Define.
1564 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
1565 (HAVE_ENABLE_EXECUTE_STACK): Define.
1566 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
1567 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
1568 (HAVE_ENABLE_EXECUTE_STACK): Define.
1569 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
1570 (HAVE_ENABLE_EXECUTE_STACK): Define.
1571 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
1572 (HAVE_ENABLE_EXECUTE_STACK): Define.
1573 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
1574 (HAVE_ENABLE_EXECUTE_STACK): Define.
1575 * config/alpha/alpha.c (alpha_trampoline_init): Test
1576 HAVE_ENABLE_EXECUTE_STACK.
1577 * config/i386/i386.c (ix86_trampoline_init): Likewise.
1578 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
1579 (sparc64_initialize_trampoline): Likewise.
1580 * libgcc2.c [L_enable_execute_stack]: Remove.
1581 * system.h (ENABLE_EXECUTE_STACK): Poison.
1582 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
1583 * doc/tm.texi: Regenerate.
1584 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
1586 2011-06-09 Jakub Jelinek <jakub@redhat.com>
1589 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
1590 variable. After resetting and rescanning insn continue with previous
1593 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1595 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
1596 (gcc_cv_ld_hidden): Likewise.
1597 * configure: Regenerate.
1598 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
1599 (ix86_stack_protect_fail): Mark unused.
1600 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
1601 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
1602 [TARGET_MACHO]: Don't define.
1603 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
1604 (TARGET_STACK_PROTECT_FAIL): Likewise.
1605 (rs6000_stack_protect_fail): Mark unused.
1606 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
1607 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
1609 2011-06-08 Andi Kleen <ak@linux.intel.com>
1611 * varasm.c (get_section): Print location of other conflict
1612 for section conflicts.
1614 2011-06-08 Andi Kleen <ak@linux.intel.com>
1616 * config/i386/driver-i386.c (host_detect_local_cpu):
1617 Add model 0x2d Intel CPU.
1619 2011-06-08 Andi Kleen <ak@linux.intel.com>
1621 * reginfo.c (global_regs_decl): Add.
1622 (globalize_reg): Add decl parameter. Compute location. Pass location
1623 to warnings and add inform. Store decl in global_regs_decl.
1624 * rtl.h (globalize_reg): Update prototype.
1625 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
1627 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
1629 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
1631 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
1634 * config/sh/predicates.md (general_movsrc_operand): Check
1635 mode for memory with indexed address for QI and HImode.
1636 (general_movdst_operand): Likewise.
1638 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
1640 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
1642 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
1644 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
1645 (num_ssa_operands): Likewise.
1646 (op_iter_init_phiuse): Forward-declare.
1647 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
1649 2011-06-08 Nick Clifton <nickc@redhat.com>
1651 * doc/invoke.texi (ARM Options): Update description of
1654 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
1656 * config/i386/driver-i386.c (host_detect_local_cpu): Support
1657 unknown Intel family 0x6 CPUs.
1659 2011-06-08 Martin Jambor <mjambor@suse.cz>
1661 * tree-sra.c (mark_rw_status): Removed.
1662 (analyze_access_subtree): New parameter parent instead of
1663 mark_read and mark_write, propagate from that.
1665 2011-06-08 Julian Brown <julian@codesourcery.com>
1667 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
1668 for double-precision helper functions in hard-float mode if only
1669 single-precision arithmetic is supported in hardware.
1671 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
1673 PR rtl-optimization/49303
1674 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
1675 code_motion_path_driver returned 0 or 1.
1676 (sel_region_finish): Clear h_d_i_d.
1678 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
1680 * config/sh/sh.c (prepare_move_operands): Set pic register
1681 appropriately for global and local dynamic tls models even
1682 if flag_pic is unset.
1684 2011-06-07 Jason Merrill <jason@redhat.com>
1686 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
1688 2011-06-07 Xinliang David Li <davidxl@google.com>
1689 * passes.c (enable_disable_pass): Handle assembler name.
1690 (is_pass_explicitly_enabled_or_disabled): Ditto.
1692 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1694 PR tree-optimization/48497
1695 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
1697 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1699 PR tree-optimization/46728
1700 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
1701 to use gimple_val_nonnegative_real_p.
1702 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
1703 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
1705 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
1707 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
1709 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
1711 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
1714 2011-06-07 Richard Guenther <rguenther@suse.de>
1716 * stor-layout.c (initialize_sizetypes): Initialize all
1717 sizetypes based on target definitions.
1718 (set_sizetype): Remove.
1719 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
1720 * tree.h (set_sizetype): Remove.
1722 2011-06-07 Nick Clifton <nickc@redhat.com>
1724 * config.gcc: Unify V850 architecture options and add support for
1725 newer V850 architectures.
1726 * config/v850/t-v850e: Delete.
1728 2011-06-07 Richard Guenther <rguenther@suse.de>
1730 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
1731 Call set_sizetype from here.
1733 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
1735 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
1736 (*maddhisi4tb, *maddhisi4tt): New define_insns.
1738 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
1739 Andrew Stubbs <ams@codesourcery.com>
1741 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
1743 * doc/md.texi (Canonicalization of Instructions): Document widening
1744 multiply canonicalization.
1746 2011-06-07 Jakub Jelinek <jakub@redhat.com>
1748 PR gcov-profile/49299
1749 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
1751 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
1753 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
1755 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
1756 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
1757 vect_recog_pow_pattern): Likewise.
1758 (vect_pattern_recog_1): Remove declaration.
1759 (widened_name_p): Remove declaration. Add new argument to specify
1760 whether to check that both types are either signed or unsigned.
1761 (vect_recog_widen_mult_pattern): Update documentation. Handle
1762 unsigned patterns and multiplication by constants.
1763 (vect_pattern_recog_1): Update vect_recog_func references. Use
1764 statement information from the statement returned from pattern
1765 detection functions.
1766 (vect_pattern_recog): Update vect_recog_func reference.
1767 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
1768 multiplication by a constant use the type of the other operand.
1770 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
1772 PR rtl-optimization/49145
1773 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
1775 2011-06-06 Jakub Jelinek <jakub@redhat.com>
1778 * dwarf2out.c (native_encode_initializer): Decrement count in each
1782 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
1786 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
1787 if stmt folded into nothing.
1788 * tree-inline.c (fold_marked_statements): If a builtin at the end of
1789 a bb folded into nothing, just update cgraph edges and move to next bb.
1790 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
1791 to be NULL. Don't compute count and frequency if new_call is NULL.
1793 2011-06-04 Diego Novillo <dnovillo@google.com>
1795 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
1796 (cgraph.o): Likewise.
1797 (cgraphunit.o): Likewise.
1798 * cgraphunit.c: Include lto-streamer.h
1799 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
1801 * lto-streamer-in.c (unpack_value_fields): Call
1802 streamer_hooks.unpack_value_fields if set.
1803 (lto_materialize_tree): For unhandled nodes, first try to
1804 call lto_streamer_hooks.alloc_tree, if it exists.
1805 (lto_input_ts_decl_common_tree_pointers): Move reading of
1806 DECL_INITIAL to lto_streamer_read_tree.
1807 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
1808 (lto_streamer_read_tree): New.
1809 (lto_reader_init): Rename from lto_init_reader.
1810 Move initialization code to lto/lto.c.
1811 * lto-streamer-out.c (pack_value_fields): Call
1812 streamer_hooks.pack_value_fields if set.
1813 (lto_output_tree_ref): For tree nodes that are not normally indexable,
1814 call streamer_hooks.indexable_with_decls_p before giving up.
1815 (lto_output_ts_decl_common_tree_pointers): Move handling
1816 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
1817 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
1818 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
1819 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
1820 (lto_streamer_write_tree): New.
1821 (lto_output): Call lto_streamer_init directly.
1822 (lto_writer_init): Remove.
1823 * lto-streamer.c (streamer_hooks): New.
1824 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
1825 instead of lto_preload_common_nodes.
1826 (lto_is_streamable): Move from lto-streamer.h
1827 (lto_streamer_hooks_init): New.
1828 (streamer_hooks): New.
1829 (streamer_hooks_init): New.
1830 * lto-streamer.h (struct output_block): Forward declare.
1831 (struct lto_input_block): Likewise.
1832 (struct data_in): Likewise.
1833 (struct bitpack_d): Likewise.
1834 (struct streamer_hooks): Declare.
1835 (streamer_hooks): Declare.
1836 (lto_streamer_hooks_init): Declare.
1837 (lto_streamer_write_tree): Declare.
1838 (lto_streamer_read_tree): Declare.
1839 (streamer_hooks_init): Declare.
1840 (lto_is_streamable): Move to lto-streamer.c
1842 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1844 * longlong.h (smul_ppmm): The resulting register pair contains the
1845 higher order word first.
1847 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1849 PR tree-optimization/46728
1850 * builtins.c (powi_table): Remove.
1851 (powi_lookup_cost): Remove.
1852 (powi_cost): Remove.
1853 (expand_powi_1): Remove.
1854 (expand_powi): Remove.
1855 (expand_builtin_pow_root): Remove.
1856 (expand_builtin_pow): Remove.
1857 (expand_builtin_powi): Eliminate handling of constant exponent.
1858 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
1860 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
1862 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
1864 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
1866 * dce.c (reset_unmarked_insns_debug_uses): New.
1867 (delete_unmarked_insns): Skip debug insns.
1868 (prescan_insns_for_dce): Likewise.
1869 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
1870 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
1871 active reg can be found.
1872 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
1873 (convert_regs_1): Use it.
1875 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
1877 * tree-pretty-print.c (dump_function_header): Add flags.
1878 Don't dump decl_uid with nouid.
1879 * tree-pretty-print.h (dump_function_header): Adjust.
1880 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
1881 * passes.c (pass_init_dump_file): Pass dump_flags on.
1882 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
1884 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
1887 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
1889 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
1891 PR tree-optimization/49243
1892 * calls.c (setjmp_call_p): Also check if fndecl has the
1893 returns_twice attribute.
1895 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1897 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
1900 2011-06-06 Richard Henderson <rth@redhat.com>
1901 Georg-Johann Lay <avr@gjlay.de>
1904 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
1906 * config/avr/avr.md ("insv"): New insn expander.
1907 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
1908 "*insv.not.io", "*insv.reg"): New insns.
1910 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
1913 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
1914 to nonimmediate_operand from memory_operand for the operand that is to
1915 be forced to memory by the expander. Lose the constraints.
1917 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
1919 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
1920 EH return when delayed branches are disabled.
1922 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
1924 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
1925 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
1927 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
1928 Simplify MODE_V1DF and MODE_V2SF handling.
1929 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
1930 Simplify MODE_SF handling.
1932 2011-06-04 Jan Hubicka <jh@suse.cz>
1934 PR tree-optimization/48893
1935 PR tree-optimization/49091
1936 PR tree-optimization/49179
1937 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
1940 2011-06-04 Jan Hubicka <jh@suse.cz>
1943 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
1946 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
1948 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
1950 2011-06-04 Jakub Jelinek <jakub@redhat.com>
1953 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
1954 to be strictly smaller than 1 << shiftcount.
1956 2011-06-04 Jan Hubicka <jh@suse.cz>
1958 PR tree-optimize/48929
1959 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
1962 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
1965 * calls.c (emit_call_1): Prefer the __builtin declaration of
1968 2011-06-03 Diego Novillo <dnovillo@google.com>
1970 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
1971 (lto_input_tree_pointers): Likewise.
1972 * lto-streamer-out.c (pack_value_fields): Likewise.
1973 (lto_output_tree_pointers): Likewise.
1974 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
1975 and OPTIMIZATION_NODE.
1977 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1979 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
1980 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
1981 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
1982 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
1983 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
1984 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
1985 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
1986 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
1987 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
1988 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
1989 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
1990 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
1991 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
1992 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
1993 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
1994 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
1995 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
1996 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
1997 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
1998 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
1999 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
2000 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
2001 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
2002 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
2003 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
2004 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
2005 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
2006 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
2007 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
2008 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
2009 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
2010 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
2011 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
2012 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
2013 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
2014 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
2015 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
2016 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
2017 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
2018 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
2019 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
2020 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
2021 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
2022 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
2023 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
2024 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
2025 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
2026 * system.h (MD_UNWIND_SUPPORT): Poison.
2027 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
2028 * doc/tm.texi: Regenerate.
2029 * unwind-dw2.c: Include md-unwind-support.h instead of
2031 * config/ia64/unwind-ia64.c: Likewise.
2032 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
2034 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
2036 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
2038 2011-06-03 Richard Henderson <rth@redhat.com>
2039 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2041 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
2042 (sigill_hdlr): Correct insn, insn size.
2043 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
2045 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2047 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
2049 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
2050 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
2051 * config/mips/t-iris: Remove.
2052 * config/mips/t-irix6: New file.
2053 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
2055 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2057 * Makefile.in (LIB2ADDEHDEP): Remove.
2058 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
2059 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
2060 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
2061 * config/t-darwin (LIB2ADDEHDEP): Remove.
2062 * config/t-freebsd (LIB2ADDEHDEP): Remove.
2063 * config/t-linux (LIB2ADDEHDEP): Remove.
2065 2011-06-03 Diego Novillo <dnovillo@google.com>
2067 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
2068 (lto_register_var_decl_in_symtab): Likewise.
2069 (lto_register_function_decl_in_symtab): Likewise.
2070 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
2071 logic to uniquify_nodes.
2073 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2075 * config/alpha/t-osf5: Remove.
2076 * config/alpha/t-osf-pthread: Remove.
2077 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
2078 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
2080 2011-06-03 Julian Brown <julian@codesourcery.com>
2082 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
2083 (strongarm1110): Use strongarm tuning.
2084 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
2085 * config/arm/arm.c (arm_strongarm_tune): New.
2086 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
2087 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
2088 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
2089 setting, using previous defaults or 1 for Cortex-A5.
2090 (arm_option_override): Set max_insns_skipped from current tuning.
2092 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
2094 * doc/install.texi (Options specification): Document --with-specs.
2096 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2098 * config/arm/neon.md (orndi3_neon): Actually split it.
2100 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
2102 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
2103 * var-tracking.c (reverse_op): Limite recurse depth to 5.
2105 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
2108 * target.def (delay_sched2, delay_vartrack): New.
2109 * doc/tm.texi.in: Update.
2110 * doc/tm.texi: Rebuild.
2111 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
2112 * var-tracking.c (gate_handle_var_tracking): Likewise.
2113 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
2114 (bfin_flag_var_tracking): Drop.
2115 (output_file_start): Don't save and override flag_var_tracking.
2116 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
2117 (bfin_reorg): Test original variables.
2118 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
2119 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
2120 (ia64_flag_var_tracking): Drop.
2121 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
2122 (ia64_file_start): Don't save and override flag_var_tracking.
2123 (ia64_override_options_after_change): Ditto
2124 flag_schedule_insns_after_reload.
2125 (ia64_reorg): Test original variables.
2126 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
2127 (picochip_flag_var_tracking): Drop.
2128 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
2129 (picochip_option_override): Don't save and override
2130 flag_schedule_insns_after_reload.
2131 (picochip_asm_file_start): Ditto flag_var_tracking.
2132 (picochip_reorg): Test original variables.
2133 * config/spu/spu.c (spu_flag_var_tracking): Drop.
2134 (TARGET_DELAY_VARTRACK): Define.
2135 (spu_var_tracking): New.
2136 (spu_machine_dependent_reorg): Call it.
2137 (asm_file_start): Don't save and override flag_var_tracking.
2139 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
2142 * config/sh/predicates.md (general_movsrc_operand): Return 0
2143 for memory and memory subreg of which address is an invalid
2144 indexed address for QI and HImode.
2145 (general_movdst_operand): Likewise.
2147 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
2149 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
2150 edges only, when there is a non-local label in the function.
2151 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
2153 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
2155 * config/i386/constraints.md (Y3): New register constraint.
2156 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
2157 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
2158 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
2159 *sse2_interleave_lowv2df.
2161 2011-06-02 Julian Brown <julian@codesourcery.com>
2163 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
2164 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
2165 (arm_cortex_a5_tune): New.
2167 2011-06-02 Julian Brown <julian@codesourcery.com>
2169 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
2170 * config/arm/arm.c (arm_default_branch_cost): New.
2171 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
2172 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
2173 (arm_fa726_tune): Set branch_cost field using
2174 arm_default_branch_cost.
2175 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
2176 current_tune structure.
2177 * dojump.c (tm_p.h): Include file.
2179 2011-06-02 Julian Brown <julian@codesourcery.com>
2181 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
2183 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
2184 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
2185 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
2187 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
2188 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
2189 (arm_fa726te_tune): Add prefer_constant_pool setting.
2190 (arm_v6t2_tune, arm_cortex_tune): New.
2191 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
2192 prefer_constant_pool setting.
2194 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
2196 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
2198 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
2199 (*movdf_internal) <case 6,7,8>: Ditto.
2201 * config/i386/constraints.md (Y4): New register constraint.
2202 * config/i386/sse.md (vec_set<mode>_0): Merge with
2203 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
2204 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
2205 *vec_extractv2di_1_sse.
2206 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
2207 and *vec_concatv2di_rex64_sse.
2209 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
2212 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
2213 of cgraph_local_info for null before attempting to use it.
2215 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
2217 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
2218 (current_function_dynamic_alloc_count): Delete.
2219 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
2220 (expand_builtin_nonlocal_goto): Remove obsolete comment.
2221 (expand_builtin_update_setjmp_buf): Remove dead code.
2222 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
2223 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
2225 * function.c (instantiate_virtual_regs): Likewise.
2226 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
2227 for a block with a single abnormal incoming edge.
2228 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
2229 (SETJMP_VIA_SAVE_AREA): Delete.
2230 * config/sparc/sparc-protos.h (load_got_register): Declare.
2231 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
2232 (load_got_register): Make global.
2233 (sparc_frame_pointer_required): Add 'static'.
2234 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
2235 (sparc_builtin_setjmp_frame_value): New function.
2236 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
2237 (save_stack_nonlocal): New expander.
2238 (restore_stack_nonlocal): Likewise.
2239 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
2240 (nonlocal_goto_internal): New insn.
2241 (goto_handler_and_restore): Delete.
2242 (builtin_setjmp_setup): Likewise.
2243 (do_builtin_setjmp_setup): Likewise.
2245 (builtin_setjmp_receiver): New expander.
2247 2011-06-01 David Li <davidxl@google.com>
2250 * tree-pretty-print.c (dump_function_header): Format cleanup.
2252 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
2255 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
2256 needed when original operands are used for msw_skip comparison.
2258 2011-06-01 Jakub Jelinek <jakub@redhat.com>
2261 * var-tracking.c (add_uses, add_stores): Don't call
2262 cselib_subst_to_values on ENTRY_VALUE.
2264 2011-06-01 Diego Novillo <dnovillo@google.com>
2266 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
2267 output_record_start with LTO_null instead of output_zero.
2268 (lto_output_ts_binfo_tree_pointers): Likewise.
2269 (lto_output_tree): Likewise.
2270 (output_eh_try_list): Likewise.
2271 (output_eh_region): Likewise.
2272 (output_eh_lp): Likewise.
2273 (output_eh_regions): Likewise.
2274 (output_bb): Likewise.
2275 (output_function): Likewise.
2276 (output_unreferenced_globals): Likewise.
2277 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
2278 instead of NUM_TREE_CODES.
2279 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
2280 (lto_output_int_in_range): Change << to >> when shifting VAL.
2282 2011-06-01 Diego Novillo <dnovillo@google.com>
2284 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
2285 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
2287 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
2290 * optabs.h (valid_multiword_target_p): Declare.
2291 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
2292 doing multi-word operations.
2293 * optabs.c (expand_binop): Likewise.
2294 (expand_doubleword_bswap): Likewise.
2295 (expand_absneg_bit): Likewise.
2296 (expand_unop): Likewise.
2297 (expand_copysign_bit): Likewise.
2298 (multiword_target_p): New function.
2300 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
2302 PR rtl-optimization/48830
2303 PR rtl-optimization/48808
2304 PR rtl-optimization/48792
2305 * reload.c (push_reload): Check contains_reg_of_mode.
2306 * reload1.c (strip_paradoxical_subreg): New function.
2307 (gen_reload_chain_without_interm_reg_p): Use it to handle
2308 paradoxical subregs.
2309 (emit_output_reload_insns, gen_reload): Likewise.
2311 2011-06-01 David Li <davidxl@google.com>
2313 * predict.c : Change pass name
2316 * tree-profile.c: Ditto.
2319 2011-06-01 David Li <davidxl@google.com>
2321 * tree-pretty-print.c (dump_function_header): New function.
2322 * final.c (rest_of_clean_state): Use header dumper.
2323 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
2324 * passes.c (pass_init_dump_file): Use header dumper.
2326 2011-06-01 Jakub Jelinek <jakub@redhat.com>
2328 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
2329 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
2330 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
2332 (mem_loc_descriptor): Use them.
2334 * var-tracking.c (create_entry_value): New function.
2335 (vt_add_function_parameter): Use it.
2337 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2339 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
2340 Include <signal.h>, <ucontext.h>.
2341 (sigill_caught): Define.
2342 (sigill_hdlr): New function.
2343 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
2344 insns can be executed.
2345 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
2346 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
2348 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2350 * config/t-slibgcc-darwin: Move to ...
2351 * config/t-slibgcc-dummy: ... this. Clarify comments.
2352 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
2353 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
2354 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
2355 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
2356 Remove i386/t-crtstuff from tmake_file.
2357 (i[34567]86-*-solaris2*): Remove t-svr4,
2358 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
2360 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
2361 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
2362 sparc/t-crtfm from tmake_file.
2363 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
2364 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
2366 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
2367 * config/i386/t-nwld (SHLIB_LINK): Remove.
2368 * config/i386/t-rtems-i386: Rename to ...
2369 * config/i386/t-rtems: ... this.
2370 ($(T)crti.o, $(T)crtn.o): Remove.
2371 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
2372 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
2373 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
2374 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
2375 EXTRA_MULTILIB_PARTS): Remove.
2376 * config/sparc/t-sol2-64: Likewise.
2377 * config/sparc/t-sol2: Remove.
2378 * config/sparc/t-crtin: Remove.
2379 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
2380 * config/i386/gmon-sol2.c: Remove.
2381 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
2382 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
2383 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
2384 * config/i386/sol2-gc1.asm: Remove.
2385 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
2386 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
2387 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
2388 * config/t-slibgcc-sld: Remove.
2390 2011-06-01 Jakub Jelinek <jakub@redhat.com>
2392 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
2393 base_type_for_mode with op_mode instead of mode.
2395 2011-06-01 Paul Brook <paul@cpodesourcery.com>
2397 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
2399 * config/arm/arm-tune.md: Regenerate.
2400 * config/arm/arm-tables.opt: Regenerate.
2401 * config/arm/arm.c (FL_DIV): Rename...
2402 (FL_THUMB_DIV): ... to this.
2403 (FL_ARM_DIV): Define.
2404 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
2405 (arm_arch_hwdiv): Remove.
2406 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
2407 (arm_issue_rate): Add cortexr5.
2408 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
2409 __ARM_ARCH_EXT_IDIV__.
2410 (TARGET_IDIV): Define.
2411 (arm_arch_hwdiv): Remove.
2412 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
2413 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
2414 (divsi3, udivsi3): New patterns.
2415 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
2416 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
2418 2011-06-01 Martin Jambor <mjambor@suse.cz>
2420 * ipa-utils.c (ipa_dfs_info): New field scc_no.
2421 * ipa-utils.c (searchc): Set scc_no.
2423 2011-06-01 Martin Jambor <mjambor@suse.cz>
2425 * ipa-utils.c (searchc_env): New field allow_overwritable.
2426 (searchc): do not ignore edges to overwritable nodes if indicated
2427 by env->allow_overwritable.
2428 (ipa_reduced_postorder): Set env.allow_overwritable.
2430 2011-06-01 Richard Guenther <rguenther@suse.de>
2432 * tree.c (free_lang_data): Do not reset boolean_type_node nor
2434 * lto-streamer.c (lto_record_common_node): Take node pointer,
2435 do not register types.
2436 (lto_preload_common_nodes): Explicitly skip preloading nodes
2437 that differ between frontends.
2439 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
2441 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
2444 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
2446 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
2447 parameter value for dump. Dump cost on outermost call only.
2448 (rs6000_memory_move_cost): Dump cost on outermost call only.
2450 2011-05-31 Jakub Jelinek <jakub@redhat.com>
2452 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
2453 DW_OP_GNU_convert ops.
2455 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
2456 cselib_preserve_constants.
2457 (cselib_lookup_1): If cselib_preserve_constants,
2458 a new VALUE is being created for REG and there is a VALUE for the
2459 same register in wider mode, add another loc with lowpart SUBREG of
2461 (cselib_subst_to_values): Handle ENTRY_VALUE.
2462 * var-tracking.c (replace_expr_with_values): Return NULL for
2464 * dwarf2out.c (convert_descriptor_to_signed): New function.
2465 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
2466 instead of two shifts.
2467 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
2468 the right mode if needed.
2469 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
2470 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
2471 convert_descriptor_to_signed.
2472 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
2473 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
2476 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
2478 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
2480 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
2481 of X87MODEI12 and SWI48x instead of SSEMODEI24.
2482 (SWI248x): New mode iterator, rename from X87MODEI.
2483 (X87MODEI): Remove mode iterator.
2484 (X87MODEI12): Ditto.
2485 (SSEMODEI24): Ditto.
2487 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
2489 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
2490 * doc/invoke.texi: Document max-vartrack-expr-depth.
2491 * var-tracking.c (EXPR_DEPTH): New.
2492 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
2494 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
2496 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
2497 * config/i386/sse.md: Add n to negated FMA pattern names.
2499 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
2501 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
2503 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
2505 * gengtype-state.c (read_state_params_structs): Initialize previous.
2507 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
2509 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
2510 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
2512 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
2514 * config/i386/i386.md (*movtf_internal): Avoid allocating general
2515 registers. Penalize F*r->o alternative to prevent partial memory
2516 stalls. Slightly penalize *roF->*r alternative. Generate SSE
2517 CONST_DOUBLE immediates when optimizing function for size. Do not move
2518 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
2519 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
2520 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
2521 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
2523 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
2525 (fp_register_operand splitters): Use fp_register_operand
2526 constraint. Do not use FP_REG_P in insn condition.
2527 (any_fp_register_operand splitters): Use any_fp_register_operand
2528 constraint. Do not use ANY_FP_REG_P in insn condition.
2530 2011-05-31 Jan Hubicka <jh@suse.cz>
2532 * cgraph.h (cgraph_inline_failed_t): Give enum a name
2533 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
2534 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
2535 (lto_output_edge): Use output_enum and var_len_unsigned.
2536 (lto_output_varpool_node): Likewise.
2537 (input_overwrite_node): Do not take resolution parameter;
2538 extract it from a bitpack.
2539 (input_node): Do not read resolution; use input_enum and
2541 (input_varpool_node): Likewise.
2542 (input_edge): Likewise.
2543 (input_cgraph_1): Likewise.
2545 2011-05-31 Richard Guenther <rguenther@suse.de>
2547 * gimple.c (gimple_register_canonical_type): Do not register
2548 any types via gimple_register_type.
2550 2011-05-31 Jan Hubicka <jh@suse.cz>
2552 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
2555 2011-05-31 Jakub Jelinek <jakub@redhat.com>
2557 PR rtl-optimization/49235
2558 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
2559 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
2561 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
2563 PR tree-optimization/49093
2564 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
2567 2011-05-31 Dodji Seketeli <dodji@redhat.com>
2570 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
2571 for concrete functions containing the code of cloned functions.
2573 2011-05-31 Richard Guenther <rguenther@suse.de>
2575 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
2577 (forward_propagate_into_comparison_1): ... this.
2578 (forward_propagate_comparison): Rename to ...
2579 (forward_propagate_into_comparison): ... this. Split out
2580 real forward propagation code to ...
2581 (forward_propagate_comparison): ... this.
2582 (forward_propagate_into_gimple_cond): Remove looping.
2583 (forward_propagate_into_cond): Likewise.
2584 (simplify_not_neg_expr): Return whether we have done something.
2585 (simplify_gimple_switch): Likewise.
2586 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
2587 (ssa_forward_propagate_and_combine): ... this. Re-structure
2588 to do a forward forward-propagation walk on BBs and a backward
2589 stmt combining walk on BBs. Consistently re-scan changed statements.
2590 (pass_forwprop): Adjust.
2592 2011-05-30 Ian Lance Taylor <iant@google.com>
2594 * godump.c (go_format_type): Correct length of name added to
2595 obstack for anonymous field.
2597 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
2600 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
2601 part of the second operand is 0.
2603 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
2605 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
2606 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
2607 to memory for !TARGET_MEMORY_MISMATCH_STALL.
2608 (*movdf_internal_rex64): Do not penalize F->r alternative.
2609 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
2610 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
2611 when optimizing function for size. Do not move CONST_DOUBLEs
2612 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
2613 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
2614 SUBREGs. Do not check for MEM_P operands in the insn condition,
2615 check for ANY_FP_REGNO_P instead.
2616 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
2617 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
2619 * config/i386/i386.c (ix86_option_override_internal): Do not
2620 set TARGET_INTEGER_DFMODE_MOVES here.
2622 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
2625 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
2627 2011-05-30 Jakub Jelinek <jakub@redhat.com>
2629 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
2630 DW_TAG_rvalue_reference_type even for
2631 -gdwarf-4 -fno-debug-types-section.
2633 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2635 PR tree-optimization/46728
2636 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
2637 (build_and_insert_binop): New.
2638 (gimple_expand_builtin_pow): Reorder args for
2639 build_and_insert_call; use build_and_insert_binop; add more
2640 optimizations for fractional exponents.
2642 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
2647 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2649 * tree.h (struct tree_identifier): Inherit from tree_typed, not
2651 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
2652 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
2653 TS_BASE instead of TS_COMMON.
2654 * varasm.c (assemble_name): Remove assert.
2656 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
2658 * config.gcc: Keep obselete list sorted.
2660 2011-05-30 Jakub Jelinek <jakub@redhat.com>
2661 Eric Botcazou <ebotcazou@adacore.com>
2663 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
2664 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
2665 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
2666 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
2667 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
2669 2011-05-30 Richard Guenther <rguenther@suse.de>
2671 * gimple.c (gimple_types_compatible_p_1): Compare record
2672 and union type members properly.
2674 2011-05-30 Richard Guenther <rguenther@suse.de>
2676 PR tree-optimization/49210
2677 * ipa-split.c (split_function): Care for the case where the call
2678 result is not trivially convertible to the result holding variable.
2680 2011-05-30 Richard Guenther <rguenther@suse.de>
2682 PR tree-optimization/49218
2683 * tree-vrp.c (adjust_range_with_scev): Properly check whether
2686 2011-05-30 Richard Guenther <rguenther@suse.de>
2688 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
2689 New function split out from ...
2690 (forward_propagate_into_gimple_cond): ... here. Adjust.
2691 (forward_propagate_into_cond): Likewise.
2692 (forward_propagate_comparison): Also propagate into
2693 comparisons on assignment RHS. Change return value to
2694 behave similar to forward_propagate_into_cond.
2695 (tree_ssa_forward_propagate_single_use_vars): Handle
2696 strict-overflow warnings properly for forward_propagate_comparison.
2698 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2700 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
2702 * configure: Regenerate.
2704 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
2706 PR tree-optimization/49199
2707 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
2708 non-reduction operands are either defined in the loop or by induction.
2710 2011-05-29 Xinliang David Li <davidxl@google.com>
2712 * opts-global.c (handle_common_deferred_options): Handle new options.
2713 * passes.c (register_one_dump_file): Call register_pass_name.
2714 (execute_one_pass): Check explicit enable/disable flag.
2715 (passr_hash): New function.
2717 (register_pass_name): Ditto.
2718 (get_pass_by_name): Ditto.
2721 (enable_pass): Ditto.
2722 (disable_pass): Ditto.
2723 (is_pass_explicitly_enabled_or_disabled): Ditto.
2725 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
2727 * config/i386/i386.md (*movoi_internal_avx): Use
2728 standard_sse_constant_opcode for alternative 0.
2729 (*movti_internal_sse): Ditto.
2730 (*movti_internal_rex64): Use standard_sse_constant_opcode for
2732 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
2734 (*movsi_internal): Ditto.
2735 (*movdi_internal): Ditto. Add ssecvt type moves.
2737 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
2740 * rtlanal.c (simplify_subreg_regno): Adjust comment.
2742 2011-05-29 Jakub Jelinek <jakub@redhat.com>
2744 PR rtl-optimization/49095
2745 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
2746 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
2748 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
2751 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
2752 recurse_p argument. Only follow register copies if it is set,
2753 and prevent mips_find_pic_call_symbol from recursing.
2754 (mips_find_pic_call_symbol): Add a recurse_p argument.
2755 Pass it to mips_pic_call_symbol_from_set.
2756 (mips_annotate_pic_calls): Update accordingly.
2758 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
2760 * emit-rtl.c (try_split): Use a loop to search for
2761 NOTE_INSN_CALL_ARG_LOCATIONs.
2763 2011-05-29 Richard Guenther <rguenther@suse.de>
2765 PR tree-optimization/49217
2766 * ipa-pure-const.c (propagate_pure_const): Fix typos.
2768 2011-05-28 Jan Hubicka <jh@suse.cz>
2770 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
2772 (string_slot_free): Remove
2773 (create_output_block): Initialize obstack.
2774 (destroy_output_block): Free obstack.
2775 (lto_string_index): Add PERSISTENT parameter; do not duplicate
2776 the string unless it needs to be added into the hash.
2777 (lto_output_string_with_length): Add persistent attribute;
2778 handle NULL strings.
2779 (lto_output_string): Add PERSISTENT parameter.
2780 (output_string_cst, output_identifier): Simplify.
2781 (lto_output_location_bitpack): Update.
2782 (lto_output_builtin_tree): Update.
2783 * lto-streamer.h (struct output_block): Add obstack.
2784 (lto_output_string, lto_output_string_with_length): Remove
2785 declarations; functions are static now.
2787 2011-05-28 Jan Hubicka <jh@suse.cz>
2789 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
2790 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
2791 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
2792 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
2793 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
2794 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
2795 unpack_ts_decl_with_vis_value_fields,
2796 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
2797 lto_get_builtin_tree): Use enum and variable length i/o.
2798 * basic-block.h (profile_status_d): Add PROFILE_LAST.
2799 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
2801 (bp_pack_enum, bp_unpack_enum): New macros.
2803 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
2805 * genrecog.c: Remove redundant forward declarations.
2807 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
2809 * config.gcc: Deprecate mips*-*-openbsd*.
2811 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
2814 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
2817 2011-05-27 Andrew Pinski <pinskia@gmail.com>
2820 * gengtype.c (vec_prefix_type): New function.
2821 (note_def_vec): Use vec_prefix_type and change the length
2822 attribute to be based on the prefix.
2823 * vec.c: Include coretypes.h before vec.h.
2824 (struct vec_prefix): Remove.
2825 (vec_gc_p_reserve): Change the offsetof to sizeof.
2826 (vec_gc_p_reserve_exact): Likewise.
2827 (vec_heap_p_reserve): Likewise.
2828 (vec_heap_p_reserve_exact): Likewise.
2829 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
2830 (vec_stack_p_reserve): Change the offsetof to sizeof.
2831 (vec_stack_p_reserve_exact): Likewise.
2832 * vec.h (struct vec_prefix): New struct definition.
2833 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
2834 (VEC_T_GTY(T,B)): Likewise.
2835 (DEF_VEC_FUNC_P(T)): Use prefix field.
2836 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
2837 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
2839 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2841 PR tree-optimization/46728
2842 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
2843 (powi_as_mults): Add gimple_set_location.
2844 (build_and_insert_call): New.
2845 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
2846 0.5, 0.25, 0.75, 1./3., or 1./6.
2848 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
2850 * doc/contrib.texi: Update copyright years.
2851 (Contributors): Add Zdenek Sojka.
2853 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
2855 * c-decl.c (c_push_function_context): Copy the current statement
2857 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
2858 (finish_struct): Call building_stmt_list_p instead of checking
2860 * c-parser.c (c_parser_postfix_expression): Likewise.
2861 * c-typeck.c (c_end_compound_stmt): Likewise.
2862 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
2863 * tree-iterator.c (stmt_list_cache): Change to a VEC.
2864 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
2865 (free_stmt_list): Likewise.
2866 * tree.h (struct tree_statement_list): Include typed_tree instead
2868 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
2869 as TS_TYPED instead of TS_COMMON.
2871 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2872 Uros Bizjak <ubizjak@gmail.com>
2874 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
2875 (HAVE_AS_IX86_TLSGDPTL): Define.
2876 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
2877 (HAVE_AS_IX86_TLSLDMPLT): Define.
2878 * configure: Regenerate.
2879 * config.in: Regenerate.
2880 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
2881 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
2882 TARGET_SUN_TLS, use @tlsgdplt or @plt.
2883 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
2884 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
2886 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
2888 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
2890 * sched-int.h (struct _haifa_deps_insn_data): New members cond
2892 (INSN_COND, INSN_REVERSE_COND): New macros.
2893 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
2895 (sched_get_condition_with_rev): Cache the results, and look them up
2897 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
2898 are clobbered by the current insn.
2899 * target.def (exposed_pipline): New sched data hook.
2900 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
2901 * doc/tm.texi: Regenerate.
2903 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2905 PR tree-optimization/49170
2906 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
2909 2011-05-27 Richard Guenther <rguenther@suse.de>
2912 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
2915 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
2917 * haifa-sched.c (sched_scan_info): Remove.
2918 (schedule_block): Call sched_extend_luids rather than sched_init_luids
2920 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
2922 (sched_scan): Remove.
2923 (sched_extend_luids): Renamed from luids_extend_insn and no longer
2924 static. All callers changed.
2925 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
2926 static. All callers changed.
2927 (sched_init_luids): Remove all arguments except the first. All
2928 callers changed. Don't use sched_scan.
2929 (haifa_init_h_i_d): Likewise.
2930 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
2931 manually rather than using sched_init_luids. Likewise with
2932 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
2933 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
2934 rather than sched_init_luids with NULL args.
2935 * sel-sched-ir.c (new_insns): Remove variable.
2936 (sched_scan): New static function, previously in haifa-sched.c. Remove
2937 all arguments but the first two; all callers changed.
2938 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
2939 rather than sched_init_luids.
2940 (sel_init_bbs): Remove second argument. All callers changed.
2941 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
2942 with NULL arguments.
2943 (create_insn_rtx_from_pattern): Likewise.
2944 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
2945 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
2946 (sched_init_insn_luid, sched_extend_luids): Declare.
2947 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
2950 2011-05-27 Richard Guenther <rguenther@suse.de>
2953 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
2954 A CMP B ? (T) true : (T) false for non-integral types T again.
2956 2011-05-27 Jan Hubicka <jh@suse.cz>
2958 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
2959 so 0 means NULL string.
2960 (lto_output_string_with_length): ... here.
2961 (lto_output_string, output_string_cst, output_identifier): Update
2962 handling of NULL strings.
2963 (lto_output_location_bitpack): New function.
2964 (lto_output_location): Use it.
2965 (lto_output_tree_ref): Use output_record_start.
2966 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
2968 * lto-streamer-in.c (string_for_index): Break out from ...; offset
2970 (input_string_internal): ... here;
2971 (input_string_cst, input_identifier, lto_input_string): Update handling
2973 (lto_input_location_bitpack): New function
2974 (lto_input_location): Use it.
2975 (unpack_ts_type_common_value_fields): Pack align & alias in var len
2977 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
2978 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
2979 (bp_pack_value): Sanity check the value range.
2980 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
2982 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
2985 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
2987 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
2988 call_arg_location instructions down the floor.
2990 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
2992 PR rtl-optimization/49154
2993 * ira.c (setup_pressure_classes): Process class without sublcasses
2994 as a candidate for pressure classes.
2996 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
2998 PR rtl-optimization/48575
2999 * genrecog.c (position_type): New enum.
3000 (position): New structure.
3001 (decision): Use position structure instead of a string.
3002 (root_pos, peep2_insn_pos_list): New variables.
3003 (next_position, compare_positions): New functions.
3004 (new_decision): Use position structures instead of strings.
3005 (maybe_both_true): Likewise.
3006 (change_state): Likewise.
3007 (write_tree): Likewise.
3008 (make_insn_sequence): Likewise.
3010 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3012 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
3013 TS_BASE instead of TS_COMMON.
3014 (find_decls_types_r): Check for TS_TYPED structure before looking at
3016 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
3018 (BLOCK_CHAIN): Use new chain field.
3020 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
3022 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
3023 moves expensive on Power7 also.
3025 2011-05-26 Richard Guenther <rguenther@suse.de>
3027 * fold-const.c (fold_unary_loc): Remove bogus code.
3029 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3031 * tree.h (struct tree_identifier): Inherit from tree_typed, not
3033 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
3034 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
3035 TS_BASE instead of TS_COMMON.
3036 * varasm.c (assemble_name): Remove assert.
3038 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
3040 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
3042 * libgcc-std.ver: Delete file.
3044 2011-05-26 Richard Guenther <rguenther@suse.de>
3046 PR tree-optimization/48702
3047 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
3048 only when we know the base address is within bounds.
3049 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
3050 assume the base address of TARGET_MEM_REFs is in bounds.
3052 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3055 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
3056 declaration in TARGET_SOLARIS.
3058 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
3060 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
3061 The instruction is then expanded explicitly.
3062 (supported_compare): Callable instruction.
3063 (compare): Likewise.
3065 2011-05-26 Jakub Jelinek <jakub@redhat.com>
3068 * gimplify.c (shortcut_cond_r): Don't special case
3069 COND_EXPRs if they have void type on one of their arms.
3071 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
3073 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
3074 to reduce duplication, and to achieve a slightly more logical order
3077 2011-05-26 Jakub Jelinek <jakub@redhat.com>
3079 PR tree-optimization/49161
3080 * tree-vrp.c (struct case_info): New type.
3081 (compare_case_labels): Sort case_info structs instead of
3082 trees, and not primarily by CASE_LABEL uids but by
3083 label_for_block indexes.
3084 (find_switch_asserts): Put case labels into struct case_info
3085 array instead of TREE_VEC, adjust sorting, compare label_for_block
3086 values instead of CASE_LABELs.
3088 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3090 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
3091 ("orndi3_neon"): Likewise.
3092 ("bic<mode>3_neon"): Likewise.
3094 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
3096 PR tree-optimization/49038
3097 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
3098 Ensure at least one epilogue iteration if required by data
3100 * tree-vectorizer.h (struct _loop_vec_info): Add new field
3101 to mark loops that require peeling for gaps.
3102 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
3103 (vect_get_known_peeling_cost): Take peeling for gaps into
3105 (vect_transform_loop): Generate epilogue if required by data
3107 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
3108 loop as requiring an epilogue if there are gaps in the end of
3111 2011-05-25 Ian Lance Taylor <iant@google.com>
3113 * godump.c (go_format_type): Output the first field with a usable
3116 2011-05-25 Ian Lance Taylor <iant@google.com>
3118 * godump.c (go_format_type): Check for invalid type names, pointer
3119 target types, and struct field types.
3121 2011-05-25 Jason Merrill <jason@redhat.com>
3123 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
3125 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
3127 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
3129 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
3131 * config/i386/i386.md (*movqi_extv_1)): Put back
3132 "register_operand" check in "type" calculation.
3133 (*movqi_extzv_2): Likewise.
3135 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
3137 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
3139 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
3142 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
3143 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
3144 __divxc3, __divtc3): Wrap definitions in #ifndef.
3146 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
3149 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
3150 "register_operand" check and replace q_regs_operand with
3151 QIreg_operand in "type" calculation.
3152 (*movqi_extv_1): Likewise.
3153 (*movqi_extzv_2_rex64): Likewise.
3154 (*movqi_extzv_2): Likewise.
3156 * config/i386/predicates.md (QIreg_operand): New.
3158 2011-05-25 Richard Guenther <rguenther@suse.de>
3160 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
3161 type-based offset disambiguation, streamline MEM_REF and
3162 TARGET_MEM_REF handling.
3164 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
3166 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
3167 (bdesc_special_args): Add pause intrinsic.
3169 * config/i386/i386.md (UNSPEC_PAUSE): New.
3172 * config/i386/ia32intrin.h (__pause): Likewise.
3174 * doc/extend.texi (X86 Built-in Functions): Add documentation for
3177 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3179 PR tree-optimization/46728
3180 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
3181 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
3183 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
3185 * tree.h (struct tree_exp): Inherit from struct tree_typed.
3186 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
3187 instead of TS_COMMON.
3189 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
3191 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
3192 LIBGCC2_GNU_PREFIX is defined.
3194 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
3195 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
3196 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
3197 __clz_tab): Define using __N.
3198 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
3199 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
3200 * target.def (libfunc_gnu_prefix): New hook.
3201 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
3202 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
3203 * doc/tm.texi: Regenerate.
3204 * system.h (LIBGCC2_GNU_PREFIX): Poison.
3205 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
3207 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
3208 (init_optabs): Likewise for the bswap libfuncs.
3209 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
3211 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
3212 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
3213 * libgcc-std.ver: Remove.
3214 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
3215 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
3217 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
3218 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
3219 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
3220 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
3221 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
3222 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
3223 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
3224 * config/fixed-bit.h (FIXED_OP): Define differently depending on
3225 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
3226 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
3228 2011-05-25 Jan Hubicka <jh@suse.cz>
3230 * lto-streamer-out.c (output_record_start): Use lto_output_enum
3231 (lto_output_tree): Use output_record_start.
3232 * lto-streamer-in.c (input_record_start): Use lto_input_enum
3233 (lto_get_pickled_tree): Use input_record_start.
3234 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
3235 (lto_value_range_error): New function.
3236 * lto-streamer.h (lto_value_range_error): Declare.
3237 (lto_output_int_in_range, lto_input_int_in_range): New functions.
3238 (lto_output_enum, lto_input_enum): New macros.
3240 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
3242 * common.opt (flag_stack_usage_info): New variable.
3243 (-Wstack-usage): New option.
3244 * doc/invoke.texi (Warning options): Document -Wstack-usage.
3245 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
3246 <OPT_fstack_usage>: Likewise.
3247 * toplev.c (output_stack_usage): Handle -Wstack-usage.
3248 * calls.c (expand_call): Test flag_stack_usage_info variable instead
3249 of flag_stack_usage.
3250 (emit_library_call_value_1): Likewise.
3251 * explow.c (allocate_dynamic_stack_space): Likewise.
3252 * function.c (instantiate_virtual_regs ): Likewise.
3253 (prepare_function_start): Likewise.
3254 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
3255 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
3256 * config/arm/arm.c (arm_expand_prologue): Likewise.
3257 (thumb1_expand_prologue): Likewise.
3258 * config/avr/avr.c (expand_prologue): Likewise.
3259 * config/i386/i386.c (ix86_expand_prologue): Likewise.
3260 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
3261 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
3262 * config/mips/mips.c (mips_expand_prologue): Likewise.
3263 * config/pa/pa.c (hppa_expand_prologue): Likewise.
3264 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
3265 * config/s390/s390.c (s390_emit_prologue): Likewise.
3266 * config/sh/sh.c (sh_expand_prologue): Likewise.
3267 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
3268 * config/spu/spu.c (spu_expand_prologue): Likewise.
3270 2011-05-25 Richard Guenther <rguenther@suse.de>
3272 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
3273 (gimple_canonical_types_compatible_p): Likewise.
3275 2011-05-25 Jan Hubicka <jh@suse.cz>
3278 * ipa.c (function_and_variable_visibility): Only add to same
3279 comdat group list if DECL_ONE_ONLY.
3281 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
3283 PR rtl-optimization/49014
3284 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
3286 2011-05-25 Jakub Jelinek <jakub@redhat.com>
3289 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
3291 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
3293 PR rtl-optimization/48757
3294 * ira-build.c (loop_with_eh_edge_p): Rename to
3295 loop_with_complex_edge_p, check edges on complexity, make function
3297 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
3300 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
3302 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
3303 force flag_ira_share_save_slots to 0.
3305 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
3307 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
3308 (vt_initialize): Set PROLOGUE_BB unconditionally.
3309 Add block comment about CFA_BASE_RTX machinery.
3310 Reset FP_CFA_OFFSET to -1 on all invalid paths.
3311 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
3313 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
3316 * c-parser.c (c_parser_objc_class_instance_variables): More robust
3317 parsing of syntax error in ObjC instance variable lists. In
3318 particular, avoid an infinite loop if there is a stray ']'.
3319 Updated error message.
3321 2011-05-24 Ian Lance Taylor <iant@google.com>
3323 * godump.c (go_define): Don't accept a string immediately after
3326 2011-05-24 Ian Lance Taylor <iant@google.com>
3328 * godump.c (struct godump_container): Add invalid_hash field.
3329 (go_format_type): Return false if type is found in invalid_hash.
3330 (go_output_typedef): Add invalid type to invalid_hash.
3331 (go_finish): Create and delete invalid_hash.
3333 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3335 PR tree-optimization/46728
3336 * tree-ssa-math-opts.c (powi_table): New.
3337 (powi_lookup_cost): New.
3339 (powi_as_mults_1): New.
3340 (powi_as_mults): New.
3341 (gimple_expand_builtin_powi): New.
3342 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
3343 (gate_cse_sincos): Remove sincos/cexp restriction.
3345 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3348 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
3350 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
3351 * mips-tdump.c: Likewise.
3353 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
3356 * config/i386/driver-i386.c (host_detect_local_cpu): Always
3357 add -mno-XXX. Handle FMA.
3359 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
3361 PR rtl-optimization/48633
3362 * ira-build.c (loop_with_eh_edge_p): New function.
3363 (mark_loops_for_removal): Use it.
3365 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
3367 PR rtl-optimization/48971
3368 * ira.c (setup_pressure_classes): Don't check register move cost
3369 for classes with one registers. Don't add pressure class if there
3370 is a pressure class with the same available hard registers.
3371 Check contains_reg_of_mode. Fix a typo in collecting
3372 temp_hard_regset. Ignore hard registers not belonging to a class.
3374 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
3377 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
3379 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
3380 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3382 PR gcov-profile/48845
3383 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
3385 2011-05-24 Richard Guenther <rguenther@suse.de>
3387 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
3388 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
3389 (gimple_types_compatible_p_1): Adjust.
3390 (iterative_hash_canonical_type): Do not bother about complete vs.
3392 (gimple_canonical_types_compatible_p): Likewise.
3394 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3396 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
3398 2011-05-24 Richard Guenther <rguenther@suse.de>
3401 * gimple.c (gimple_register_canonical_type): Revert
3403 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
3404 does not for a tree for the case where it matters. Cache
3405 pointer-type alias-sets.
3407 2011-05-24 Joseph Myers <joseph@codesourcery.com>
3409 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
3410 (OBJS): Remove options.o, opts-common.o and prefix.o.
3411 (OBJS-libcommon-target): New.
3412 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
3413 (BACKEND): Include libcommon-target.a.
3414 (MOSTLYCLEANFILES): Include libcommon-target.a.
3415 (libcommon-target.a): New.
3416 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
3419 2011-05-23 Joseph Myers <joseph@codesourcery.com>
3421 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
3422 parts of output shared with the driver.
3423 * optc-gen.awk: Don't generate parts of output not shared with the
3425 * opth-gen.awk: Remove GCC_DRIVER conditionals.
3426 * doc/options.texi (SourcerInclude): Mention options-save.c.
3427 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
3428 (OBJS): Add options-save.o.
3429 (options-save.c, options-save.o): New.
3430 (options.o): Update dependencies.
3431 (gcc-options.o): Remove.
3432 (mostlyclean): Remove options-save.c.
3434 2011-05-23 Jakub Jelinek <jakub@redhat.com>
3437 * dbxout.c: Include cgraph.h.
3438 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
3439 and without value expr, return NULL if no varpool node exists for
3440 it or if it is not needed.
3441 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
3444 * c-decl.c (start_decl): Convert expr to void_type_node.
3446 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
3448 PR rtl-optimization/48826
3449 * emit-rtl.c (try_split): When splitting a call that is followed
3450 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
3452 2011-05-23 Jakub Jelinek <jakub@redhat.com>
3454 * cfgexpand.c (expand_debug_expr): For unused non-addressable
3455 parameters passed in memory prefer using DECL_INCOMING_RTL over
3456 the pseudos it will be copied into.
3458 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
3461 * config/i386/i386.c (ix86_option_override_internal): Save the
3462 initial options after checking vzeroupper.
3464 2011-05-23 David Li <davidxl@google.com>
3466 PR tree-optimization/48988
3467 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
3468 Initialize has_valid_pred for each pred chain.
3470 2011-05-23 Richard Guenther <rguenther@suse.de>
3472 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
3473 (iterative_hash_gimple_type): Always hash type names.
3475 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
3477 * c-typeck.c (build_function_call_vec): Tweak call to
3478 check_function_arguments.
3480 2011-05-23 Richard Guenther <rguenther@suse.de>
3482 PR tree-optimization/49115
3483 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
3484 is not necessarily carried out, do not claim it kills the ref.
3485 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
3487 2011-05-23 Richard Guenther <rguenther@suse.de>
3490 * builtins.c (fold_builtin_memory_op): Be less restrictive about
3491 what pointer types we accept for folding.
3493 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3495 * gthr-gnat.c: Remove.
3496 * gthr-gnat.h: Remove.
3497 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
3498 * config/t-freebsd (LIB2ADDEH): Likewise.
3499 * config/t-linux (LIB2ADDEH): Likewise.
3500 * config/t-sol2 (LIB2ADDEH): Likewise.
3501 * config/ia64/t-vms (LIB2ADDEH): Likewise.
3502 * configure.ac (target_thread_file): Remove gnat handling.
3503 * configure: Regenerate.
3504 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
3506 2011-05-23 Tristan Gingold <gingold@adacore.com>
3507 Eric Botcazou <ebotcazou@adacore.com>
3509 * gcov.c (create_file_names): If no object directory is specified,
3510 keep the directory of the file.
3512 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3514 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
3515 * configure: Regenerate.
3517 2011-05-23 Jakub Jelinek <jakub@redhat.com>
3520 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
3521 failed and the comparison has a single bit signed type, use
3522 constm1_rtx instead of const1_rtx for true value.
3523 (do_store_flag): If ops->type is single bit signed type, disable
3524 signel bit test optimization and pass -1 instead of 1 as last
3525 parameter to emit_store_flag_force.
3527 2011-05-23 Tom de Vries <tom@codesourcery.com>
3530 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
3532 (infer_loop_bounds_from_undefined): Use new function.
3534 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
3536 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
3537 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
3538 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
3540 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
3542 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
3544 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
3545 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
3548 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
3550 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
3552 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
3554 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
3555 UNSPEC_MOVE_PIC pattern.
3557 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
3559 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
3560 (sparc-*-rtems*): Likewise.
3561 (sparc64-*-elf*): Likewise.
3562 (sparc64-*-rtems*): Likewise.
3563 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
3564 * config/sparc/t-crtin: New file.
3565 * config/sparc/t-sol2 (crti.o): Delete rule.
3567 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
3568 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
3569 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
3570 (ENDFILE_SPEC): Add crtn.o.
3572 2011-05-22 Tom de Vries <tom@codesourcery.com>
3575 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
3576 CODE_CONTAINS_STRUCT (TS_COMMON).
3578 2011-05-22 Jakub Jelinek <jakub@redhat.com>
3581 * expmed.c (extract_fixed_bit_field): Test whether target can be used
3582 only after deciding which mode to use.
3584 2011-05-22 Tom de Vries <tom@codesourcery.com>
3587 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
3588 for call to get_shiftadd_cost.
3590 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
3593 * config/i386/cpuid.h (bit_MMXEXT): New define.
3595 2011-05-22 Nick Clifton <nickc@redhat.com>
3597 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
3598 initialisation of non-existant args[2] element. Use args[] array
3599 not arg[] array to pass arguments to build_function_type_list.
3601 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
3603 PR tree-optimization/49087
3604 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
3606 2011-05-21 Jason Merrill <jason@redhat.com>
3609 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
3610 static storage duration.
3612 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
3614 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
3617 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
3619 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
3620 false if there are call-saved registers here...
3621 (sparc_can_use_return_insn_p): ...but here instead.
3622 (save_or_restore_regs): Fix thinko.
3623 (sparc_expand_prologue): Use current_function_is_leaf.
3624 (sparc_frame_pointer_required): Likewise.
3626 2011-05-21 Nick Clifton <nickc@redhat.com>
3629 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
3631 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
3633 * gengtype.c (walk_type): Implemented "atomic" GTY option.
3634 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
3636 2011-05-21 Joseph Myers <joseph@codesourcery.com>
3638 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
3639 * optc-gen.awk: Move common code to opt-read.awk.
3640 * opth-gen.awk: Likewise.
3641 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
3643 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
3645 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
3647 2011-05-20 Tom de Vries <tom@codesourcery.com>
3650 * tree-ssa-loop-ivopts.c: Include expmed.h.
3651 (get_shiftadd_cost): New function.
3652 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
3654 2011-05-20 Jakub Jelinek <jakub@redhat.com>
3657 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
3658 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
3660 2011-05-20 Joseph Myers <joseph@codesourcery.com>
3662 * Makefile.in: Update comment referring to $(OBJS-common).
3664 2011-05-20 Ian Lance Taylor <iant@google.com>
3666 * godump.c (go_output_typedef): Put enum constants in the macro
3667 hash table to avoid duplicate Go const definitions.
3669 2011-05-20 Joseph Myers <joseph@codesourcery.com>
3671 * Makefile.in (LIBDEPS): Add libcommon.a.
3673 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
3674 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
3675 pretty-print.o and version.o.
3676 (OBJS-libcommon): New.
3677 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
3678 (BACKEND): Add libcommon.a.
3679 (MOSTLYCLEANFILES): Likewise.
3681 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
3682 (cpp$(exeext)): Likewise.
3683 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
3684 pretty-print.o and input.o.
3685 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
3686 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
3688 (mips-tfile): Don't explicitly use version.o.
3689 (mips-tdump): Likewise.
3690 (gcov.o): Depend on $(DIAGNOSTIC_H).
3691 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
3692 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
3693 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
3694 * gcov-dump.c: Include intl.h and diagnostic.h.
3695 (main): Initialize diagnostics.
3696 * gcov.c: Include diagnostic.h.
3698 (main): Initialize diagnostics.
3699 * lto-wrapper.c: Include diagnostic.h.
3700 (main): Initialize diagnostics.
3702 2011-05-20 Michael Matz <matz@suse.de>
3704 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
3706 2011-05-20 Michael Matz <matz@suse.de>
3707 Richard Guenther <rguenther@suse.de>
3709 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
3710 use lto_streamer_cache_append directly instead of returning a VEC.
3711 (preload_common_node): Remove.
3712 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
3714 (lto_streamer_cache_create): Call lto_preload_common_nodes.
3716 2011-05-20 Richard Guenther <rguenther@suse.de>
3718 PR tree-optimization/49079
3719 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
3720 MEM_REFs correctly for the trailing array access detection.
3721 Special case constants the same way as decls for overall size
3724 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
3726 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
3729 2011-05-20 Jakub Jelinek <jakub@redhat.com>
3731 PR tree-optimization/49073
3732 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
3733 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
3734 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
3736 2011-05-20 Richard Guenther <rguenther@suse.de>
3739 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
3740 of pointer types the same way the middle-end does.
3742 2011-05-20 Richard Guenther <rguenther@suse.de>
3744 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
3745 or pointer-to chains. Delay all fixup to uniquify_nodes.
3747 2011-05-19 Quentin Neill <quentin.neill@amd.com>
3749 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
3750 (fma4_fmaddsub): Likewise
3752 2011-05-19 Jan Hubicka <jh@suse.cz>
3754 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
3755 (GIMPLE_TYPE_PAIR_SIZE): New macro.
3756 (type_pair_cache): New static var.
3757 (lookup_type_pair): Use fixed sized custom hash; make inline.
3758 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
3759 calls of lookup_type_pair.
3760 (print_gimple_types_stats): Remove cache stats.
3761 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
3764 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
3766 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
3767 when TARGET_RDRND is active.
3768 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
3769 Generate dummy SImode target register when target is NULL.
3771 2011-05-19 Joseph Myers <joseph@codesourcery.com>
3773 * config/arm/arm-fpus.def: New.
3774 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
3776 * config/arm/arm-tables.opt: Regenerate.
3777 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
3778 (arm_option_override): Don't decode FPU name to string here.
3779 * config/arm/arm.opt (mfpu=): Use Enum.
3780 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
3781 Update dependencies.
3783 2011-05-19 Joseph Myers <joseph@codesourcery.com>
3785 * collect2.c: Include diagnostic.h.
3786 (fatal_perror, fatal, error, fancy_abort): Remove.
3787 (main): Set progname. Call xmalloc_set_program_name and
3788 diagnostic_initialize.
3789 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
3790 scan_libraries, resolve_lib_name): Call fatal_error instead of
3791 fatal and fatal_perror.
3792 * collect2.h (error, fatal, fatal_perror): Don't declare.
3793 * tlink.c: Include diagnostic-core.h.
3794 (recompile_files): Call fatal_error instead of fatal_perror.
3795 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
3796 pretty-print.o and input.o.
3797 (collect2.o, tlink.o): Update dependencies.
3799 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3801 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
3803 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3806 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
3807 COMDAT group syntax, both SPARC and x86 variants.
3808 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
3809 * configure: Regenerate.
3810 * config/sol2.h (TARGET_SOLARIS): Define.
3811 (PUSHSECTION_FORMAT): Remove.
3812 (SECTION_NAME_FORMAT): Define.
3813 * config/sol2.c: Include hashtab.h.
3814 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
3815 expansion, using SECTION_NAME_FORMAT.
3816 (solaris_comdat_htab): New variable.
3817 (struct comdat_entry): Define.
3818 (comdat_hash): New function.
3819 (comdat_eq): New function.
3820 (solaris_elf_asm_comdat_section): New function.
3821 (solaris_define_comdat_signature): New function.
3822 (solaris_code_end): New function.
3823 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
3824 (solaris_code_end): Declare.
3825 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
3826 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
3828 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
3829 Remove ATTRIBUTE_UNUSED.
3830 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
3831 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
3832 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
3833 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
3834 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
3835 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
3836 (PUSHSECTION_FORMAT): Remove.
3837 (SECTION_NAME_FORMAT): Redefine.
3839 2011-05-19 Kai Tietz <ktietz@redhat.com>
3841 * tree-cfg.c (verify_gimple_assign_binary): Barf on
3842 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
3843 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
3845 2011-05-19 Anatoly Sokolov <aesok@post.ru>
3846 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3848 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
3850 2011-05-19 Richard Guenther <rguenther@suse.de>
3853 * tree-object-size.c (addr_object_size): If the pointed-to
3854 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
3856 2011-05-19 Richard Guenther <rguenther@suse.de>
3858 * gimple.c (gimple_types_compatible_p_1): Compare names of
3859 the types themselves.
3860 (iterative_hash_gimple_type): And hash them that way.
3861 (gimple_register_type_1): If we register a main variant properly
3862 initialize the leader to ourselves.
3864 2011-05-19 Tom de Vries <tom@codesourcery.com>
3867 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
3868 get_loop_invariant_expr_id.
3869 (get_loop_invariant_expr_id): Use get_expr_id.
3870 (parm_decl_cost): New function.
3871 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
3872 Improve bound cost estimation. Use different inv_expr_id for elim and
3875 2011-05-19 Tom de Vries <tom@codesourcery.com>
3878 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
3879 cost_base.cost == 0.
3881 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
3884 * config/i386/sse.md
3885 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
3888 2011-05-18 Jakub Jelinek <jakub@redhat.com>
3890 PR tree-optimization/49039
3891 * tree-vrp.c (extract_range_from_binary_expr): For
3892 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
3893 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
3895 2011-05-18 Tom de Vries <tom@codesourcery.com>
3898 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
3900 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
3902 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
3903 (*tls_global_dynamic_64): Ditto.
3904 (*tls_local_dynamic_base_32_gnu): Ditto.
3905 (*tls_local_dynamic_base_64): Ditto.
3906 (tls_initial_exec_64_sun): Ditto.
3908 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
3910 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
3911 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
3913 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
3914 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
3915 * config/bfin/bfin.c (bfin_cpus): Add bf592.
3916 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
3917 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
3918 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
3919 * config/bfin/elf.h (LIB_SPEC): Add bf592.
3921 2011-05-18 Joseph Myers <joseph@codesourcery.com>
3923 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
3924 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
3925 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
3926 target_thread_pointer, arm_structure_size_boundary, struct
3927 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
3928 struct abi_name, arm_all_abis): Remove.
3929 (arm_option_override) Don't process most enumerated option values here.
3930 Don't process target_fpe_name here. Work with integer not string for
3931 structure size boundary; use separate diagnostics for each case.
3932 * config/arm/arm.h (enum float_abi_type, enum
3933 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
3935 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
3936 arm_structure_size_boundary): Remove.
3937 * config/arm/arm.opt (mabi=): Use Enum and Init.
3938 (arm_abi_type): New Enum and EnumValue entries.
3939 (mfloat-abi=): Use Enum and Init.
3940 (float_abi_type): New Enum and EnumValue entries.
3941 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
3942 (mfp16-format=): Use Enum and Init.
3943 (arm_fp16_format_type): New Enum and EnumValue entries.
3944 (mstructure-size-boundary=): Use UInteger and Init.
3945 (mtp=): Use Enum and Init.
3946 (arm_tp_type): New Enum and EnumValue entries.
3948 2011-05-18 Richard Guenther <rguenther@suse.de>
3950 PR tree-optimization/49018
3951 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
3952 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
3953 gimple_has_side_effects.
3955 2011-05-18 Richard Guenther <rguenther@suse.de>
3957 * gimple.c (gimple_register_type_1): New function, split out from ...
3958 (gimple_register_type): ... here. Avoid infinite recursion.
3960 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
3962 PR tree-optimization/41881
3963 * tree-vectorizer.h (struct _loop_vec_info): Add new field
3964 reduction_chains along with a macro for its access.
3965 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
3966 (destroy_loop_vec_info): Free reduction chains.
3967 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
3968 (vect_is_slp_reduction): New function.
3969 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
3970 (vect_create_epilog_for_reduction): Support SLP reduction chains.
3971 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
3972 definition types for reduction chains.
3973 (vect_supported_load_permutation_p): Don't allow permutations for
3975 (vect_analyze_slp_instance): Support reduction chains.
3976 (vect_analyze_slp): Try to build SLP instance from reduction chains.
3977 (vect_get_constant_vectors): Handle reduction chains.
3978 (vect_schedule_slp_instance): Mark the first statement of the
3979 reduction chain as reduction.
3981 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
3983 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
3984 names for group elements access.
3985 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
3986 reduction chains as well. Remove data reference and interleaving
3987 related words from the fields names.
3988 * tree-vect-loop.c (vect_transform_loop): Use new names for group
3990 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
3991 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
3992 vect_update_interleaving_chain, vect_same_range_drs,
3993 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
3994 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
3995 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
3996 vect_analyze_group_access, vect_analyze_data_ref_access,
3997 vect_create_data_ref_ptr, vect_transform_strided_load,
3998 vect_record_strided_load_vectors): Likewise.
3999 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
4000 vect_model_load_cost, vectorizable_store, vectorizable_load,
4001 vect_remove_stores, new_stmt_vec_info): Likewise.
4002 * tree-vect-slp.c (vect_build_slp_tree,
4003 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
4005 2011-05-18 Richard Guenther <rguenther@suse.de>
4008 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
4009 operand verification.
4010 (verify_gimple_assign_binary): Likewise.
4011 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
4012 to non-1-precision BOOLEAN_TYPEs.
4014 2011-05-18 Tom de Vries <tom@codesourcery.com>
4017 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
4019 2011-05-18 Jakub Jelinek <jakub@redhat.com>
4021 PR tree-optimization/49000
4022 * tree-ssa.c (execute_update_addresses_taken): Call
4023 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
4024 be rewritten and decl has been marked for renaming, reset
4027 2011-05-17 Joseph Myers <joseph@codesourcery.com>
4029 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
4030 enum_opts_set when testing if attributes have set -mfpmath=.
4032 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
4034 * config/mips/mips.c (mips_handle_option): Remove unused variable.
4036 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
4038 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
4040 * tree-inline.c (maybe_inline_call_in_expr): Initialize
4041 id.transform_lang_insert_block with NULL.
4043 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
4045 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
4046 (output_fp_compare): Change args 3 and 4 to bool.
4047 (ix86_expand_call): Change arg 6 to bool.
4048 (ix86_attr_length_immediate_default): Change arg 2 to bool.
4049 (ix86_attr_length_vex_default): Change arg 3 to bool.
4050 * config/i386/i386.md: Update all uses.
4051 * config/i386/i386.c: Ditto.
4052 (ix86_flags_dependent): Change return type to bool.
4054 2011-05-17 Richard Guenther <rguenther@suse.de>
4056 * gimple.c (type_hash_pair_compare): Fix comparison.
4058 2011-05-17 Richard Guenther <rguenther@suse.de>
4060 * gimple.c (iterative_hash_gimple_type): Simplify singleton
4061 case some more, fix final hash value of the non-singleton case.
4063 2011-05-17 Richard Guenther <rguenther@suse.de>
4067 2011-05-16 Richard Guenther <rguenther@suse.de>
4069 * gimple.c (gimple_types_compatible_p_1): Use names of the
4070 type itself, not its main variant.
4071 (iterative_hash_gimple_type): Likewise.
4073 2011-05-17 Richard Guenther <rguenther@suse.de>
4075 * gimple.c (gimple_register_canonical_type): Use the main-variant
4076 leader for computing the canonical type.
4078 2011-05-17 Nick Clifton <nickc@redhat.com>
4080 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
4083 * config/rx/rx.md: Add peephole to remove redundant extensions
4085 (bitset_in_memory): Use rx_restricted_mem_operand.
4086 (bitinvert_in_memory): Likewise.
4087 (bitclr_in_memory): Likewise.
4089 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
4090 Nick Clifton <nickc@redhat.com>
4092 * config/rx/rx.md: Add peepholes to match a register move followed
4093 by a comparison of the moved register. Replace these with an
4094 addition of zero that does both actions in one instruction.
4096 2011-05-17 Jakub Jelinek <jakub@redhat.com>
4099 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
4100 predicate to allow CONST_INT.
4101 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
4103 2011-05-16 Joseph Myers <joseph@codesourcery.com>
4105 * opts-common.c (opt_enum_arg_to_value): New.
4106 * opts.h (opt_enum_arg_to_value): Declare.
4107 * config/i386/i386.opt (fpmath): Remove.
4108 (mfpmath=): Use Enum, Init and Save.
4109 (fpmath_unit): New Enum and EnumValue entries.
4110 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
4111 name for function fpmath state.
4112 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
4113 * config/i386/i386.c: Include diagnostic.h.
4114 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
4115 (ix86_target_string): Take enum fpmath_unit value instead of string.
4116 (ix86_debug_options): Update call to ix86_target_string.
4117 (ix86_option_override_internal): Don't process fpmath strings here.
4118 (x86_function_specific_save, ix86_function_specific_restore):
4119 Don't handle fpmath state specially.
4120 (ix86_function_specific_print): Pass fpmath state to
4121 ix86_target_string instead of printing in this function.
4122 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
4123 Handle enum attributes.
4124 (IX86_ATTR_ENUM, ix86_opt_enum): New.
4125 (ix86_valid_target_attribute_tree): Update option_strings
4126 handling. Handle fpmath as enum option.
4127 (ix86_can_inline_p): Update field names for function fpmath state.
4128 (ix86_expand_builtin): Update call to ix86_target_string.
4129 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
4130 (ix86_fpmath): Remove.
4131 * config/i386/t-i386 (i386.o): Update dependencies.
4133 2011-05-16 Joseph Myers <joseph@codesourcery.com>
4135 PR preprocessor/48677
4136 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
4137 from decoded_options[0], not from itself.
4139 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
4141 * config/i386/constraints.md (z): New constraint.
4142 * config/i386/i386.c (c): New mode attribute.
4143 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
4144 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
4145 constraint for operand 0.
4146 (*call_vzeroupper): Ditto.
4147 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
4148 (*call_rex64_ms_sysv_vzeroupper): Ditto.
4149 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
4150 Use "lzm" constraint for operand 0.
4151 (*call_pop_vzeroupper): Ditto.
4152 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
4153 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
4154 constraint for operand 0.
4155 (*sibcall_vzeroupper): Ditto.
4156 (*sibcall_rex64_ms_sysv): Ditto.
4157 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
4158 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
4159 *sibcall_pop_1. Use "Uz" constraint for operand 0.
4160 (*sibcall_pop_vzeroupper): Ditto.
4161 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
4162 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
4163 mode iterator. Use "<c>zm" constraint for operand 1.
4164 (*call_value_vzeroupper): Ditto.
4165 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
4167 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
4168 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
4169 *call_value_pop_1. Use "lzm" constraint for operand 1.
4170 (*call_value_pop_vzeroupper): Ditto.
4171 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
4172 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
4173 mode iterator. Use "Uz" constraint for operand 1.
4174 (*sibcall_value_vzeroupper): Ditto.
4175 (*sibcall_value_rex64_ms_sysv): Ditto.
4176 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
4177 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
4178 constraint for operand 1.
4179 (*sibcall_value_pop_vzeroupper): Ditto.
4180 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
4181 and "z" constraint for operand 2.
4182 (*tls_global_dynamic_32_gnu): Ditto.
4183 (*tls_local_dynamic_base_32_gnu): Ditto.
4184 (*tls_local_dynamic_base_64): Ditto.
4185 (*tls_local_dynamic_32_once): Ditto.
4186 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
4188 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
4190 2011-05-16 Richard Guenther <rguenther@suse.de>
4192 * gimple.c (gimple_types_compatible_p_1): Use names of the
4193 type itself, not its main variant.
4194 (iterative_hash_gimple_type): Likewise.
4196 2011-05-16 Richard Guenther <rguenther@suse.de>
4198 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
4199 always visit pointer target and function result and argument types.
4201 2011-05-16 Jason Merrill <jason@redhat.com>
4204 * tree-inline.c (copy_statement_list): Put back recursion.
4206 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
4210 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
4211 * config/avr/avr.md ("*ior<mode>qi.byte0",
4212 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
4214 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
4217 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
4218 register is needed for a function argument.
4220 2011-05-16 Richard Guenther <rguenther@suse.de>
4222 * gimple.c (struct type_hash_pair): New type.
4223 (type_hash_pair_compare): New function.
4224 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
4226 2011-05-16 Revital Eres <revital.eres@linaro.org>
4228 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
4230 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
4232 * config/i386/i386.md (floating point move splitters): Fix
4233 usage of standard_80387_constant_p.
4234 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
4236 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
4238 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
4240 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
4242 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
4243 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
4244 (tree_ssa_lim_finalize): Likewise.
4246 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
4248 * config/i386/constraint.md (Yd, Yx): New register constraints.
4249 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
4250 Yd conditional register constraint.
4251 (*movtf_internal): Use standard_sse_constant_opcode.
4252 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
4253 Yx conditional register constraint.
4254 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
4255 Yd conditional register constraint. Use standard_sse_constant_p to
4256 check for valid SSE constants and call standard_sse_constant_opcode to
4258 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
4259 constants and call standard_sse_constant_opcode to output SSE insn.
4260 * config/i386/i386.c (ix86_option_ovverride_internal): Set
4261 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
4262 optimize_size is set.
4263 (standard_sse_constant_opcode): Output conditional AVX insn templates.
4265 2011-05-14 Tobias Burnus <burnus@net-b.de>
4267 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
4269 2011-05-13 Martin Jambor <mjambor@suse.cz>
4271 * ipa-prop.c (ipa_cst_from_jfunc): New function.
4272 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
4273 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
4274 (evaluate_conditions_for_ipcp_clone): Removed.
4275 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
4276 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
4277 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
4279 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
4281 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
4282 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
4283 lieu of MAY_HAVE_DEBUG_STMTS.
4284 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
4285 debug statements if !MAY_HAVE_DEBUG_STMTS.
4287 2011-05-13 Martin Thuresson <martint@google.com>
4289 PR gcov-profile/47793
4290 * libgcov.c (gcov_exit): Support relative profile paths.
4291 * doc/invoke.texi (-fprofile-dir): Update for above change.
4293 2011-05-13 Richard Guenther <rguenther@suse.de>
4295 * gimple.c (gimple_canonical_types_compatible_p): Do not use
4296 type-pair caching, do not compare hashes.
4298 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
4301 * tree-cfg.c (edge_to_cases_cleanup): Return true.
4302 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
4304 2011-05-13 Kai Tietz <ktietz@redhat.com>
4306 * gimplify.c (gimplify_expr): Make sure operand is boolified.
4307 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
4308 compatible type for TRUTH_NOT_EXPR.
4310 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
4312 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
4313 (ix86_hard_regno_mode_ok): Change return value to bool. Use
4314 can_create_pseudo_p ().
4316 2011-05-13 Richard Guenther <rguenther@suse.de>
4319 * gimple.c (iterative_hash_gimple_type): Revert change in
4320 pointer target and function result and argument hashing.
4322 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
4324 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
4325 (*movxf_internal_nointeger): Ditto.
4326 (*movdf_internal_rex64): Ditto.
4327 (*movdf_internal): Ditto.
4328 (*movdf_internal_nointeger): Ditto.
4329 (*movsf_internal): Ditto.
4330 (sincos splitters): Use can_create_pseudo ().
4332 2011-05-13 Joseph Myers <joseph@codesourcery.com>
4334 * config/i386/i386-opts.h: New.
4335 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
4336 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
4337 ix86_section_threshold): Remove.
4338 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
4339 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
4341 (ix86_option_override_internal): Don't decode strings for options
4342 other than -march=, -mtune= and -mfpmath=. Don't allow for
4343 __attribute__ uses in remaining diagnostics for options with
4344 string arguments. Don't check for integer arguments being negative.
4345 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
4346 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
4347 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
4348 ix86_branch_cost, ix86_section_threshold): Remove.
4349 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
4351 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
4353 (masm=): Use Enum and Init.
4354 (asm_dialect): New Enum and EnumValue entries.
4355 (mbranch-cost=): Use UInteger.
4356 (mlarge-data-threshold=): Use UInteger and Init.
4357 (mcmodel=): Use Enum and Init.
4358 (cmodel): New Enum and EnumValue entries.
4359 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
4360 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
4361 mregparm=): Use UInteger.
4362 (mstringop-strategy=): Use Enum and Init.
4363 (stringop_alg): New Enum and EnumValue entries.
4364 (mtls-dialect=): Use Enum and Init.
4365 (tls_dialect): New Enum and EnumValue entries.
4366 (mabi=): Use Enum and Init.
4367 (calling_abi): New Enum and EnumValue entries.
4368 (mveclibabi=): Use Enum and Init.
4369 (ix86_veclibabi): New Enum and EnumValue entries.
4371 2011-05-13 Nick Clifton <nickc@redhat.com>
4373 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
4374 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
4376 2011-05-13 Kai Tietz <ktietz@redhat.com>
4379 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
4380 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
4381 (gimple_boolify): Check for cast for boolean_type_node instead for
4384 2011-05-13 Richard Guenther <rguenther@suse.de>
4386 PR tree-optimization/48172
4387 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
4388 multiplying by number of iterations for equal step.
4389 (vect_create_cond_for_alias_checks): Likewise.
4391 2011-05-13 Andreas Schwab <schwab@redhat.com>
4393 * configure.ac: Use AS_HELP_STRING throughout.
4394 * configure: Regenerate.
4396 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
4398 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
4399 (ix86_emit_restore_regs_using_mov): Likewise.
4400 (ix86_emit_restore_sse_regs_using_mov): Likewise.
4402 2011-05-12 Anatoly Sokolov <aesok@post.ru>
4404 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
4405 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
4406 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
4407 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
4408 RTX_OK_FOR_OLO10_P): ...here.
4409 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
4412 2011-05-12 Kai Tietz <ktietz@redhat.com>
4414 * gimplify.c (gimple_boolify): Re-boolify expression
4415 arguments even if expression type is of kind BOOLEAN_TYPE.
4416 (gimplify_boolean_expr): Removed.
4417 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
4418 and XOR. Additional take care that we keep expression's type.
4419 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
4420 of TRUTH_AND|OR|XOR_EXPR.
4422 2011-05-12 Jakub Jelinek <jakub@redhat.com>
4424 PR tree-optimization/48975
4425 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
4426 on all bbs here and free and clear ifc_bbs at the end.
4428 2011-05-12 Richard Guenther <rguenther@suse.de>
4430 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
4431 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
4432 until after simple checks.
4433 (gimple_types_compatible_p): Likewise.
4434 (iterative_hash_gimple_type): Always hash pointer targets
4435 and function return and argument types.
4436 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
4437 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
4438 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
4439 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
4440 completely in the simple compare section.
4441 (gimple_register_canonical_type): Query the cache again after
4444 2011-05-12 Richard Guenther <rguenther@suse.de>
4446 PR tree-optimization/48172
4447 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
4448 the number of iterations from the segment size calculation.
4449 (vect_create_cond_for_alias_checks): Adjust.
4451 2011-05-12 Jakub Jelinek <jakub@redhat.com>
4454 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
4455 if validate_subreg fails.
4457 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
4459 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
4460 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
4463 2011-05-12 DJ Delorie <dj@redhat.com>
4465 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
4466 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
4467 created builtin into rx_builtins array.
4468 (rx_builtin_decl): New function.
4469 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
4471 2011-05-12 DJ Delorie <dj@redhat.com>
4472 Nick Clifton <nickc@redhat.com>
4474 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
4475 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
4476 (rx_is_legitimate_address): Add pre-decrement and post-increment
4477 addressing in HImode and QImode. Fix test for out of range
4479 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
4480 (rx_align_for_label): Test label before extracting its usage count.
4481 (rx_adjust_insn_lengths): Fix selection of insn codes.
4482 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
4484 2011-05-11 Jason Merrill <jason@redhat.com>
4486 * tree.c (type_hash_canon): Use struct tree_type_non_common.
4488 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
4490 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
4491 reindent the subsequent block.
4493 2011-05-11 Satoru Takabayashi <satorux@google.com>
4494 Paul Pluzhnikov <ppluzhnikov@google.com>
4496 * doc/install.texi (Configuration): Document --with-linker-hash-style.
4497 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
4498 * config.in: Add LINKER_HASH_STYLE.
4499 * configure.ac: Add --with-linker-hash-style.
4500 * configure: Regenerate.
4502 2011-05-11 Richard Guenther <rguenther@suse.de>
4505 * gimple.c (iterative_hash_canonical_type): Fix typo.
4507 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
4509 * config/i386/i386.c (legitimize_tls_address)
4510 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
4511 expanders directly for TARGET_GNU2_TLS. Determine pic and
4512 __tls_get_addr symbol reference here. Update call to
4513 gen_tls_global_dynamic_{32,64} for added arguments.
4514 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
4515 expanders directly for TARGET_GNU2_TLS. Determine
4516 __tls_get_addr symbol reference here. Update call to
4517 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
4518 unique UNSPEC REG_EQUIV to libcall block.
4519 (ix86_tls_get_addr): Declare static.
4520 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
4521 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
4522 Do not determine pic and __tls_get_addr symbol reference here. Do not
4523 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
4524 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
4525 (tls_global_dynamic_64): Add operand 2. Do not determine
4526 __tls_get_addr symbol reference here. Do not call
4527 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
4528 (tls_local_dynamic_base64): Ditto for operand 1.
4530 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
4532 * function.c (expand_function_start): Initialize stack_check_probe_note
4533 only if the generic stack checking mechanism is used.
4535 2011-05-11 Richard Guenther <rguenther@suse.de>
4537 PR tree-optimization/15256
4538 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
4539 (A & B) | C, combine (A op CST1) op CST2.
4540 (tree_ssa_forward_propagate_single_use_vars): Only bother to
4541 visit assigns that have uses.
4543 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
4545 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
4546 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
4547 (unpack_ts_type_common_value_fields): ...this. Update comment.
4548 (unpack_value_fields): Adjust for renaming.
4549 (lto_input_ts_type_tree_pointers): Split into...
4550 (lto_input_ts_type_common_tree_pointer): ...this and...
4551 (lto_input_ts_type_non_common_tree_pointers): ...this.
4552 (lto_input_tree_pointers): Adjust for above split.
4553 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
4554 (pack_ts_type_common_value_fields): ...this. Update comment.
4555 (lto_output_ts_type_tree_pointers): Split into...
4556 (lto_output_ts_type_common_tree_pointers): ...this and...
4557 (lto_output_ts_type_non_common_tree_pointers): ...this.
4558 (lto_output_tree_pointers): Adjust for above split.
4559 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
4560 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
4561 * stor-layout.c (vector_type_mode): Adjust location of mode field.
4562 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
4564 (struct tree_type): Split into...
4565 (struct tree_type_common: ...this and...
4566 (struct tree_type_with_lang_specific): ...this and...
4567 (struct tree_type_non_common): ...this. Adjust accessor macros
4569 (TYPE_VALUES_RAW): Define.
4570 (union tree_node): Update for above changes.
4571 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
4573 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
4574 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
4575 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
4576 * treestructu.def (TS_TYPE): Remove.
4577 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
4580 2011-05-11 Jakub Jelinek <jakub@redhat.com>
4583 * tree-ssa.c (reset_debug_uses): New function.
4584 * tree-flow.h (reset_debug_uses): New prototype.
4585 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
4586 * tree-loop-distribution.c (generate_loops_for_partition): Call
4587 reset_debug_uses on the stmts that will be removed. Keep around
4588 all debug stmts, don't count them as bits in partition bitmap.
4589 (generate_builtin): Don't count debug stmts or labels as bits in
4592 2011-05-11 Richard Guenther <rguenther@suse.de>
4594 * gimple.c (gimple_type_hash_1): Merge with ...
4595 (gimple_type_hash): ... this.
4596 (gtc_visit): Remove mode parameter and simplify accordingly.
4597 (gimple_types_compatible_p_1): Likewise.
4598 (gimple_types_compatible_p): Likewise.
4599 (iterative_hash_gimple_type): Likewise.
4601 (gimple_type_eq): Adjust.
4603 2011-05-11 Revital Eres <revital.eres@linaro.org>
4605 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
4606 enters the branch create an anti edge in the opposite direction
4607 to prevent the creation of reg-moves.
4608 * modulo-sched.c: Adjust comment to reflect the fact we are
4609 scheduling closing branch.
4610 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
4611 (stage_count): New field in struct partial_schedule.
4612 (calculate_stage_count): New function.
4613 (normalize_sched_times): Rename to reset_sched_times and handle
4614 incrementing the sched time of the nodes by a constant value
4615 passed as parameter.
4616 (duplicate_insns_of_cycles): Skip closing branch.
4617 (sms_schedule_by_order): Schedule closing branch.
4618 (ps_insn_find_column): Handle closing branch.
4619 (sms_schedule): Call reset_sched_times and adjust the code to
4620 support scheduling of the closing branch.
4621 (ps_insert_empty_row): Update calls to normalize_sched_times
4622 and rotate_partial_schedule functions.
4624 2011-05-11 Richard Guenther <rguenther@suse.de>
4627 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
4629 2011-05-11 Joseph Myers <joseph@codesourcery.com>
4631 * opts.c (finish_options): Move warning settings from process_options.
4632 * toplev.c (process_options): Move warning settings to finish_options.
4634 2011-05-11 Richard Guenther <rguenther@suse.de>
4636 PR tree-optimization/18041
4637 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
4638 (simplify_bitwise_binary): ... this. Handle operand conversions
4639 by applying them to the result instead.
4640 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
4642 2011-05-11 Richard Guenther <rguenther@suse.de>
4644 * gimple.c (gimple_canonical_types_compatible_p): Split out
4645 from gimple_types_compatible_p and friends. Do not recurse
4646 to pointed-to types.
4647 (gimple_canonical_type_eq): Use it.
4648 (iterative_hash_canonical_type): Split out from
4649 iterative_hash_gimple_type and friends. Do not recurse
4650 to pointed-to types.
4651 (gimple_canonical_type_hash): Use it, allocate the hash here.
4653 2011-05-11 Revital Eres <revital.eres@linaro.org>
4655 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
4658 2011-05-11 Revital Eres <revital.eres@linaro.org>
4660 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
4661 instead of PREV_INSN.
4663 2011-05-11 Revital Eres <revital.eres@linaro.org>
4665 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
4666 * loop-doloop.c (doloop_condition_get): Likewise.
4667 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
4669 * config/arm/arm.md (*addsi3_compare0): Remove "*".
4671 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
4673 * tree.def (CASE_LABEL_EXPR): Add an operand.
4674 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
4676 2011-05-10 Joseph Myers <joseph@codesourcery.com>
4678 * c-decl.c (c_override_global_bindings_to_false): Remove.
4679 (global_bindings_p): Don't check
4680 c_override_global_bindings_to_false.
4681 * c-tree.h (c_override_global_bindings_to_false): Remove.
4682 * c-typeck.c (composite_type): Don't set
4683 c_override_global_bindings_to_false.
4685 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
4687 PR target/48857, 48495
4688 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
4690 (VSX_MOVE_MODE): Ditto.
4691 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
4692 VSX vector types. Add V2DImode.
4693 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
4694 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
4695 (MODES_TIEABLE_P): Ditto.
4697 * config/rs6000/rs6000.c (rs6000_emit_move): Use
4698 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
4700 (init_cumulative_args): Ditto.
4701 (rs6000_function_arg_boundary): Ditto.
4702 (rs6000_function_arg_advance_1): Ditto.
4703 (rs6000_function_arg): Ditto.
4704 (rs6000_function_ok_for_sibcall): Ditto.
4705 (emit_frame_save): Ditto.
4706 (rs6000_function_value): Ditto.
4707 (rs6000_libcall_value): Ditto.
4709 2011-05-10 Joseph Myers <joseph@codesourcery.com>
4711 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
4712 i386/darwin-lib.h to $libgcc_tm_file.
4713 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
4715 2011-05-10 Joseph Myers <joseph@codesourcery.com>
4717 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
4719 2011-05-10 Joseph Myers <joseph@codesourcery.com>
4721 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
4722 * config/rs6000/rs6000-tables.opt: New file (generated).
4723 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
4724 rs6000/rs6000-tables.opt to extra_options.
4725 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
4726 * config/rs6000/rs6000.c (rs6000_select): Remove.
4727 (processor_target_table): Move contents to rs6000-cpus.def.
4728 (darwin_rs6000_override_options): Check
4729 global_options_set.x_rs6000_cpu_index instead of
4730 rs6000_select[1].string.
4731 (rs6000_option_override_internal): Likewise.
4732 (rs6000_handle_option): Don't assert that global structures are in
4733 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
4734 (rs6000_default_cpu): New variable.
4735 (rs6000_file_start): Set it instead of local default_cpu. Check
4736 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
4737 global_options_set.x_rs6000_tune_index instead of rs6000_select.
4738 (rs6000_darwin_file_start): Check rs6000_default_cpu and
4739 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
4740 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
4741 rs6000_select): Remove.
4742 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
4744 (mcpu=, mtune=): Use Var, Init, Enum and Save.
4745 * config/rs6000/t-rs6000
4746 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
4747 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
4748 global_options_set.x_rs6000_cpu_index instead of
4749 rs6000_select[1].string.
4750 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
4751 global_options_set.x_rs6000_cpu_index instead of
4752 rs6000_select[1].string.
4754 2011-05-10 Joseph Myers <joseph@codesourcery.com>
4756 * config.gcc (libgcc_tm_file): Define instead of including files
4757 from ../../libgcc/config/ in tm_file.
4758 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
4759 * configure: Regenerate.
4760 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
4761 libgcc_tm.h, cs-libgcc_tm.h): New.
4762 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
4763 (clean): Remove libgcc_tm.h.
4764 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
4765 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
4766 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
4768 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
4771 * config/avr/avr.c (avr_ret_register): Return unsigned int
4773 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
4774 it to avr_libcall_value.
4775 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
4777 (avr_expand_binop_builtin): Ditto.
4778 (avr_expand_unop_builtin): Ditto.
4780 2011-05-10 DJ Delorie <dj@redhat.com>
4782 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
4783 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
4784 * config/rx/rx.c (rx_align_for_label): Add label and
4785 uses_threshold parameters. Do not align when the label is not
4787 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
4789 2011-05-10 Richard Guenther <rguenther@suse.de>
4791 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
4792 a series of conversions and apply foldings similar to what
4794 (tree_ssa_forward_propagate_single_use_vars): Call it.
4796 2011-05-10 Jakub Jelinek <jakub@redhat.com>
4798 PR tree-optimization/48611
4799 PR tree-optimization/48794
4800 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
4801 referenced from RESX or EH_DISPATCH arguments.
4804 * dfp.c (decimal_to_decnumber): Handle conversion from
4805 dconst{1,2,m1,half}.
4807 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
4809 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
4810 for !flag_prefer_avx128.
4811 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
4813 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
4815 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
4816 (fold_ternary_loc): Use expr_location_or.
4818 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
4821 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
4822 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
4823 Pmode and mem_mode is not VOIDmode.
4825 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
4827 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
4828 TYPE_QUAL_RESTRICT): Convert to enum.
4830 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
4832 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
4833 (const_pow2_1_to_8_operand): Ditto.
4834 (const_pow2_1_to_128_operand): Ditto.
4835 (const_pow2_1_to_32768_operand): Ditto.
4836 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
4837 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
4838 in insn constraint to check integer value of operand 3.
4839 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
4841 (PINSR_MODE): New mode iterator.
4842 (sse2p4_1): New mode attribute.
4843 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
4844 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
4845 iterator. Use const_int_operand instead of
4846 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
4847 exact_log2 in insn constraint to check integer value of operand 3.
4849 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
4851 * config/i386/sse.md (blendbits): Remove mode attribute.
4852 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
4853 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
4854 Check integer value of operand 3 in insn constraint.
4856 2011-05-09 Richard Guenther <rguenther@suse.de>
4858 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
4860 (lto_symtab_merge): Likewise. Do not register types here.
4861 (lto_symtab_merge_decls_2): Likewise.
4862 (lto_symtab_merge_decls_1): Likewise.
4863 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
4864 * gimple.c (enum gtc_mode): Declare.
4865 (gimple_types_compatible_p): Make static.
4867 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4869 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
4870 temporary register to match Pmode.
4872 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
4874 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
4875 and *vec_concatv4si_1_avx.
4877 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
4879 PR rtl-optimization/48927
4880 * ira-conflicts.c (commutative_constraint_p): Use
4881 recog_data.alternative_enabled_p to disable alternatives where
4882 "enabled" attribute is false.
4883 (get_dup_num): Ditto.
4884 * ira-lives.c (single_reg_class): Ditto.
4885 (ira_implicitly_set_insn_hard_regs): Ditto.
4887 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
4889 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
4890 (dataflow_set_preserve_mem_locs): Likewise.
4892 2011-05-09 Philipp Thomas <pth@suse.de>
4894 * config/mep/mep.c (mep_validate_vliw): Syntax description
4895 should not be translated.
4897 2011-05-09 Joseph Myers <joseph@codesourcery.com>
4899 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
4900 * config/mips/mips-tables.opt: New file (generated).
4901 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
4902 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
4903 MIPS_ARCH_OPTION_NATIVE): Define.
4904 * config/mips/mips.c (mips_cpu_info_table): Move contents to
4906 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
4907 mips_parse_cpu): Remove.
4908 (mips_cpu_info_from_opt, mips_default_arch): New.
4909 (mips_handle_option): Don't assert that global structures are in
4910 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
4911 (mips_option_override): Use new variables and functions to set
4912 state of these options. Use strcmp to check for individual CPU names.
4913 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
4915 * config/mips/mips.opt (march=): Use ToLower and Enum.
4916 (mips): Use ToLower, Enum and Var.
4917 (mtune=): Use ToLower and Enum.
4918 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
4920 2011-05-08 Jan Hubicka <jh@suse.cz>
4922 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
4923 Arrange type pairs to be UID ordered.
4924 (gimple_lookup_type_leader): Make inline.
4926 2011-05-09 Nick Clifton <nickc@redhat.com>
4929 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
4933 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
4936 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
4938 * combine.c (simplify_comparison): Abstract out parts into...
4939 (simplify_compare_const): ... new function.
4940 (try_combine): Generalize parallel arithmetic/compare combining
4941 to call simplify_compare_const() and CANONICALIZE_COMPARE().
4943 2011-05-08 Jan Hubicka <jh@suse.cz>
4945 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
4946 (cgraph_create_virtual_clone): Call hooks once virtual clone
4948 * cgraph.h (cgraph_clone_node): Update prototype.
4949 * ipa-cp.c (ipcp_estimate_growth): Use
4950 estimate_ipcp_clone_size_and_time.
4951 * ipa-inline-transform.c (clone_inlined_nodes): Update.
4952 * lto-cgraph.c (input_node): Update.
4953 * ipa-inline.c (recursive_inlining): Update.
4954 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
4955 (evaluate_conditions_for_known_args): Break out from ...
4956 (evaluate_conditions_for_edge): ... here.
4957 (evaluate_conditions_for_ipcp_clone): New function.
4958 (inline_node_duplication_hook): Update clone summary based
4960 (estimate_callee_size_and_time): Rename to ...
4961 (estimate_node_size_and_time): take NODE instead of EDGE;
4962 take POSSIBLE_TRUTHS as argument.
4963 (estimate_callee_size_and_time): Update.
4964 (estimate_ipcp_clone_size_and_time): New function.
4965 (do_estimate_edge_time): Update.
4967 2011-05-08 Richard Guenther <rguenther@suse.de>
4971 * expmed.c (expand_shift_1): Compute adjusted constant shift
4974 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
4976 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
4978 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
4980 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
4982 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
4984 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
4986 2011-05-07 Jan Hubicka <jh@suse.cz>
4988 * ipa-inline-transform.c (inline_call): Account when program size
4990 * ipa-inline.c (relative_time_benefit): New function.
4991 (edge_badness): Reorganize to be power 2 based; fix thinko when
4992 computing badness for negative growth; update comments to match
4993 reality; better dumps.
4995 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
4997 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
4998 type to bool and adjust comment.
4999 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
5000 (fold_mathfn_compare): Remove calls to global_bindings_p.
5001 (fold_inf_compare): Likewise.
5002 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
5003 * c-tree.h (global_bindings_p): Adjust prototype.
5004 * c-decl.c (global_bindings_p): Return bool and simplify.
5006 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
5008 PR tree-optimization/48837
5009 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
5010 when accumulator transformation is performed.
5012 2011-05-06 Jan Hubicka <jh@suse.cz>
5014 * i386.h (ix86_tune_indices): Add
5015 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
5016 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
5017 * i386.c (initial_ix86_tune_features): Add
5018 X86_SOFTARE_PREFETCHING_BENEFICIAL.
5019 (software_prefetching_beneficial_p): Remove predicate.
5020 (ix86_option_override_internal): Use new macro.
5022 2011-05-06 Jan Hubicka <jh@suse.cz>
5024 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
5026 2011-05-06 Jan Hubicka <jh@suse.cz>
5028 * cgraph.c (cgraph_add_thunk): Create real function node instead
5029 of alias node; finalize it and mark needed/reachale; arrange visibility
5030 to be right and add it into the corresponding same comdat group list.
5031 (dump_cgraph_node): Dump thunks.
5032 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
5033 cgraph_function_with_gimple_body_p,
5034 cgraph_first_function_with_gimple_body,
5035 cgraph_next_function_with_gimple_body): New functions.
5036 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
5038 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
5039 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
5040 * cgraphunit.c (cgraph_finalize_function): Only look into possible
5041 devirtualization when optimizing.
5042 (verify_cgraph_node): Verify thunks.
5043 (cgraph_analyze_function): Analyze thunks.
5044 (cgraph_mark_functions_to_output): Output thunks only in combination
5045 with function they are assigned to.
5046 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
5047 alias into normal node.
5048 (assemble_thunks): New functoin.
5049 (cgraph_expand_function): Use it.
5050 * lto-cgraph.c (lto_output_node): Stream thunks.
5051 (input_overwrite_node): Stream in thunks.
5052 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
5053 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
5054 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
5055 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
5056 (inline_analyze_function): Do not care about thunk jump functions.
5057 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
5058 * ipa-prop.c (ipa_prop_write_jump_functions): Use
5059 cgraph_function_with_gimple_body_p.
5060 * passes.c (do_per_function_toporder): Use
5061 cgraph_function_with_gimple_body_p.
5062 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
5063 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
5064 (function_called_by_processed_nodes_p): Likewise.
5066 2011-05-06 Joseph Myers <joseph@codesourcery.com>
5068 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
5069 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
5071 (mabi=): Replace with separate entries for mabi=altivec,
5072 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
5073 mabi=ieeelongdouble and mabi=ibmlongdouble.
5074 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
5075 check for -mabi=spe without SPE ABI support here.
5076 (rs6000_handle_option): Replace OPT_mabi_ handling with
5077 OPT_mabi_altivec and OPT_mabi_spe handling.
5079 2011-05-06 Cary Coutant <ccoutant@google.com>
5081 * dwarf2out.c (contains_subprogram_definition): New function.
5082 (should_move_die_to_comdat): Call it.
5084 2011-05-06 Jeff Law <law@redhat.com>
5086 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
5087 remove_ctrl_stmt_and_useless_edges.
5088 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
5089 (fixup_template_block, thread_single_edge): Likewise.
5090 (mark_threaded_blocks): Use THREAD_TARGET.
5092 2011-05-06 Alan Modra <amodra@gmail.com>
5095 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
5096 const0_rtx as the arg to the dummy __tls_get_addr libcall.
5098 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
5100 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
5101 constraint modifier to "r".
5103 2011-05-06 Joseph Myers <joseph@codesourcery.com>
5105 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
5106 fall through for OPT_mcmodel_.
5108 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5110 * config/s390/s390.c (s390_asm_trampoline_template): Comment
5112 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
5114 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5117 * config/arm/arm.opt (marm): Document it.
5118 (mthumb): Reject negative variant.
5120 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
5123 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
5124 Fix typo in "ccvt" variable name.
5126 2011-05-06 Tristan Gingold <gingold@adacore.com>
5129 * config/vms/vms-ar.c (main): Remove cwd variable.
5131 2011-05-06 Jakub Jelinek <jakub@redhat.com>
5134 * var-tracking.c (prepare_call_arguments): Move else before #endif.
5136 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
5138 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
5139 * gimplify.c (gimplify_switch_expr): Likewise.
5140 * omp-low.c (expand_omp_sections): Likewise.
5141 * tree-eh.c (lower_try_finally_switch): Likewise.
5142 (lower_eh_dispatch): Likewise.
5143 * tree.h (build_case_label): Declare.
5144 * tree.c (build_case_label): Define.
5146 2011-05-05 Jason Merrill <jason@redhat.com>
5149 * tree-inline.c (copy_tree_r): Use copy_statement_list.
5150 (copy_statement_list): Don't recurse.
5151 * stor-layout.c (copy_self_referential_tree_r): Don't allow
5154 2011-05-05 Joseph Myers <joseph@codesourcery.com>
5156 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
5157 through from -mfpu= handling.
5158 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
5160 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
5162 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
5165 2011-05-05 Steve Ellcey <sje@cup.hp.com>
5167 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
5169 (hppa[12]*-*-hpux11*): Ditto.
5170 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
5171 * config/ia64/hpux-unix2003.h: New.
5172 * config/pa/pa-hpux1131.opt: New.
5173 * config/pa/pa-hpux1131.h: New.
5174 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
5175 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
5176 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
5178 2011-05-05 Jakub Jelinek <jakub@redhat.com>
5181 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
5182 instead of mode as 3rd argument to recursive call.
5183 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
5184 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
5186 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
5187 don't give up if mode is Pmode and mem_mode is not VOIDmode.
5188 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
5189 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
5191 2011-05-05 Julian Brown <julian@codesourcery.com>
5193 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
5194 parenthesis in D-register case.
5196 2011-05-05 Joseph Myers <joseph@codesourcery.com>
5198 * opt-functions.awk (var_type_struct): Handle Enum options.
5199 * optc-gen.awk: Don't check range of variables of character type.
5200 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
5201 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
5202 rs6000_sdata_name, rs6000_explicit_options): Remove.
5203 (rs6000_option_override_internal): Check for -malign-power here.
5204 Use global_options_set instead of rs6000_explicit_options.
5205 (rs6000_parse_fpu_option): Remove.
5206 (rs6000_handle_option): Access variables via opts and opts_set
5207 pointers. Use error_at and warning_at. Add fall-through
5208 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
5209 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
5210 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
5211 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
5212 here. Don't use rs6000_parse_fpu_option.
5213 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
5214 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
5215 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
5217 (mspe): Use Var and Save.
5218 (mtraceback=): Use Enum and Var.
5219 (rs6000_traceback_type): New Enum and EnumValue entries.
5220 (mfloat-gprs=): Use Enum, Var and Save.
5221 (rs6000_float_gprs): New Enum and EnumValue entries.
5222 (mlong-double-): use Var and Save.
5223 (msched-costly-dep=, minsert-sched-nops=): Use Var.
5224 (malign-): Use Enum and Var.
5225 (rs6000_alignment_flags): New Enum and EnumValue entries.
5227 (fpu_type_t): New Enum and EnumValue entries.
5228 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
5229 global_options_set instead of rs6000_explicit_options.
5230 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
5231 global_options_set instead of rs6000_explicit_options.
5232 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
5233 global_options_set instead of rs6000_explicit_options.
5234 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
5235 global_options_set instead of rs6000_explicit_options.
5236 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
5237 global_options_set instead of rs6000_explicit_options.
5238 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
5239 global_options_set instead of rs6000_explicit_options.
5240 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
5242 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
5243 global_options_set instead of rs6000_explicit_options.
5244 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
5245 (rs6000_cmodel): New Enum and EnumValue entries.
5246 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
5247 global_options_set instead of rs6000_explicit_options.
5248 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
5249 (mtls-size=): Use Enum and Var.
5250 (rs6000_tls_size): New Enum and EnumValue entries.
5252 2011-05-05 Michael Matz <matz@suse.de>
5254 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
5255 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
5256 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
5257 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
5258 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
5259 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
5260 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
5261 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
5262 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
5263 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
5264 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
5265 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
5266 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
5267 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
5268 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
5269 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
5271 2011-05-05 Richard Guenther <rguenther@suse.de>
5273 * expmed.c (expand_variable_shift): Rename to ...
5274 (expand_shift_1): ... this. Take an expanded shift amount.
5275 For rotates recurse directly not building trees for the shift amount.
5276 (expand_variable_shift): Wrap around expand_shift_1.
5277 (expand_shift): Adjust.
5279 2011-05-05 Jakub Jelinek <jakub@redhat.com>
5281 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
5283 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
5285 * tree.h (get_pending_sizes): Remove prototype.
5286 (put_pending_size): Likewise.
5287 (put_pending_sizes): Likewise.
5288 * stor-layout.c (pending_sizes): Delete.
5289 (get_pending_sizes): Likewise.
5290 (put_pending_size): Likewise.
5291 (put_pending_sizes): Likewise.
5292 (variable_size): Do not call put_pending_size and tidy up.
5293 * function.h (struct function): Remove dont_save_pending_sizes_p.
5294 * lto-streamer-in.c (input_function): Do not stream it.
5295 * lto-streamer-out.c (output_function): Likewise.
5296 * tree-inline.c (initialize_cfun): Do not copy it.
5297 * c-decl.c (store_parm_decls): Do not set it.
5298 * omp-low.c (create_task_copyfn): Likewise.
5299 * tree-optimize.c (tree_rest_of_compilation): Likewise.
5301 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
5303 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
5305 (*movdf_internal): Ditto.
5306 (*movdf_internal_nointeger): Ditto.
5307 (*movsf_internal): Ditto.
5309 2011-05-05 Joseph Myers <joseph@codesourcery.com>
5311 * c-decl.c (finish_decl): Don't call get_pending_sizes.
5312 (grokparm): Add parameter expr. Pass it to grokdeclarator.
5313 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
5314 (c_variable_size): Remove.
5315 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
5316 call put_pending_sizes.
5317 (get_parm_info): Add parameter expr. Use it to set
5318 arg_info->pending_sizes.
5319 (store_parm_decls): Use arg_info->pending_sizes instead or calling
5321 * c-parser.c (c_parser_parms_declarator): Update call to
5322 c_parser_parms_list_declarator.
5323 (c_parser_parms_list_declarator): Take parameter expr. Update
5324 call to push_parm_decl. Update recursive call. Don't call
5325 get_pending_sizes. Update calls to get_parm_info.
5326 (c_parser_objc_method_definition): Update calls to
5327 c_parser_objc_method_decl and objc_start_method_definition.
5328 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
5329 (c_parser_objc_method_decl): Add parameter expr. Update call to
5331 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
5332 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
5333 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
5335 2011-05-05 Michael Hope <michael.hope@linaro.org>
5338 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
5341 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5343 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
5344 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
5345 (spu_output_mi_thunk): New function.
5347 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5349 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
5350 targetm.asm_out.print_operand.
5351 * config/sol2.c: Include target.h.
5353 2011-05-04 Jan Hubicka <jh@suse.cz>
5355 * ipa-inline.c (reset_edge_caches): New function.
5356 (update_caller_keys): Add check_inlinablity_for; do not
5357 reset edge caches; remove now unnecesary loop.
5358 (update_callee_keys): Add comments; reset node_growth_cache of callee.
5359 (update_all_callee_keys): Likewise.
5360 (inline_small_functions): Sanity check cache; update code
5363 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
5365 PR rtl-optimization/47612
5366 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
5367 as the last insn of the sequence to be moved.
5369 2011-05-04 Tobias Burnus <burnus@net-b.de>
5372 * doc/invoke.texi (Ofast): Document that it
5373 enables Fortran's -fno-protect-parens.
5375 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
5377 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
5379 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
5381 * stor-layout.c (variable_size): Do not issue errors.
5383 2011-05-04 Richard Guenther <rguenther@suse.de>
5385 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
5386 for array-ref indices.
5387 (tree_coverage_counter_addr): Likewise.
5388 (build_fn_info_type): Use size_int for index types.
5389 (build_gcov_info): Likewise.
5391 2011-05-04 Richard Guenther <rguenther@suse.de>
5393 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
5395 * c-typeck.c (really_start_incremental_init): Use bitsize_int
5396 for constructor indices.
5397 (push_init_level): Likewise.
5399 2011-05-04 Richard Guenther <rguenther@suse.de>
5401 * explow.c (promote_mode): Move variable declarations before code.
5403 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
5405 * tree.h (build_function_type_array): Declare.
5406 (build_varargs_function_type_array): Declare.
5407 (build_function_type_vec, build_varargs_function_type_vec): Define.
5408 * tree.c (build_function_type_array_1): New function.
5409 (build_function_type_array): New function.
5410 (build_varargs_function_type_array): New function.
5412 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
5414 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
5415 before setting STMT_VINFO_TYPE.
5417 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5419 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
5420 instead of spu_pass_by_reference.
5422 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5424 * calls.c (emit_library_call_value_1): Invoke
5425 promote_function_mode hook on libcall arguments.
5426 * explow.c (promote_function_mode, promote_mode): Handle TYPE
5427 argument being NULL.
5428 * targhooks.c (default_promote_function_mode): Lisewise.
5429 * config/s390/s390.c (s390_promote_function_mode): Likewise.
5430 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
5432 * doc/tm.texi: Document that TYPE argument might be NULL.
5434 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
5436 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
5438 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
5441 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
5443 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5445 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
5446 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
5448 * mips-tfile.c: ... here.
5449 Don't include coretypes.h, tm.h, filenames.h.
5450 (saber_stop): Remove definition and all calls.
5451 [__SABER__]: Remove.
5452 (__LINE__): Remove default.
5453 (Size_t, Ptrdiff_t): Remove definitions.
5454 Replace by size_t, ptrdiff_t.
5455 [!MIPS_DEBUGGING_INFO]: Remove.
5456 (SHASH_SIZE, THASH_SIZE): Remove defaults.
5457 (progname): Add const.
5459 Replace all uses by static.
5460 (ALIGN_SYMTABLE_OFFSET): Remove default.
5461 * mips-tdump.c: Don't include coretypes.h, tm.h.
5462 Remove !MIPS_IS_STAB guard.
5463 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
5464 $(TM_H), filenames.h dependencies.
5465 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
5467 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
5470 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
5471 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
5473 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
5476 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
5477 account and save/restore RETS.
5478 (PROFILE_BEFORE_PROLOGUE): Define.
5479 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
5480 the push insn to use predecrement.
5482 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
5485 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
5487 2011-05-04 Nick Clifton <nickc@redhat.com>
5489 * config/mn10300/mn10300.c: Include cfgloop.h.
5491 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
5492 Lcc or a FLcc insn into the instruction stream.
5493 (mn10300_block_contains_call): New function. Returns true if the
5494 given basic block contains a CALL insn.
5495 (mn10300_loop_contains_call_insn): New function. Returns true if
5496 the given loop contains a CALL insn.
5497 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
5498 to use the SETLB and Lcc or FLcc insns.
5499 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
5500 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
5501 * config/mn10300/mn10300.opt (msetlb): New option. Used to
5502 disable the SETLB optimization.
5503 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
5504 __SETLB__ or __NO_SETLB__.
5505 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
5506 (movsf_internal): Handle MDR register.
5507 (cmpsi): Make visible.
5508 (setlb): New pattern.
5510 (FLcc): New pattern.
5512 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
5515 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
5516 for reg<->xmm moves.
5517 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
5518 (vec_concatv2di_rex64_sse): Ditto.
5519 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
5520 (*vec_extractv2di_1_rex64): Ditto.
5523 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
5525 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
5527 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
5529 2011-05-04 Richard Guenther <rguenther@suse.de>
5531 * tree.h (int_const_binop): Remove notrunc argument.
5532 * fold-const.c (int_const_binop): Remove notrunc argument. Always
5533 create integer constants that are properly truncated.
5534 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
5535 (const_binop): Remove zero notrunc argument to int_const_binop.
5536 (size_binop_loc): Likewise.
5537 (fold_div_compare): Likewise.
5538 (maybe_canonicalize_comparison_1): Likewise.
5539 (fold_comparison): Likewise.
5540 (fold_binary_loc): Likewise.
5541 (multiple_of_p): Likewise.
5542 * expr.c (store_constructor): Likewise.
5543 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
5544 (maybe_fold_stmt_addition): Likewise.
5545 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
5546 * stor-layout.c (layout_type): Likewise.
5547 * tree-data-ref.c (tree_fold_divides_p): Likewise.
5548 * tree-sra.c (build_ref_for_offset): Likewise.
5549 (build_user_friendly_ref_for_offset): Likewise.
5550 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
5551 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
5552 * tree-ssa-loop-niter.c (inverse): Likewise.
5553 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
5554 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
5555 * tree-switch-conversion.c (check_range): Likewise.
5556 (build_constructors): Likewise.
5557 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
5558 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
5559 (extract_range_from_assert): Likewise.
5560 (vrp_int_const_binop): Likewise.
5561 (extract_range_from_binary_expr): Likewise.
5562 (extract_range_from_unary_expr): Likewise.
5563 (check_array_ref): Likewise.
5564 (find_case_label_range): Likewise.
5565 (simplify_div_or_mod_using_ranges): Likewise.
5566 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
5567 comparing case labels for merging.
5569 2011-05-03 Mark Wielaard <mjw@redhat.com>
5571 * dwarf2out.c (debug_str_hash_forced): Removed.
5572 (gen_label_for_indirect_string): Removed.
5573 (get_debug_string_label): Removed.
5574 (AT_string_form): Generate label directly.
5575 (output_indirect_string): Test indirect_string_node for
5576 DW_FORM_strp instead of checking label and refcount.
5577 (prune_indirect_string): Removed.
5578 (prune_unused_types): Don't check debug_str_hash_forced or
5579 call prune_indirect_string.
5581 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
5584 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
5586 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
5590 * combine.c (try_combine): Skip debug insns at m_split tests.
5592 2011-04-26 Mark Wielaard <mjw@redhat.com>
5595 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
5596 when info_section_emitted.
5598 2011-05-03 Joseph Myers <joseph@codesourcery.com>
5600 * config/mips/mips-opts.h: New.
5601 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
5603 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
5604 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
5605 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
5607 * config/mips/mips.h (enum mips_code_readable_setting): Move to
5609 (mips_abi, mips_code_readable): Don't declare.
5610 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
5611 (mabi=): Use Enum and Var.
5612 (mips_abi): New Enum and EnumValue entries.
5613 (mcode-readable=): Use Enum and Var.
5614 (mips_code_readable_setting): New Enum and EnumValue entries.
5615 (mr10k-cache-barrier=): Use Enum and Var.
5616 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
5618 2011-05-03 Jan Hubicka <jh@suse.cz>
5620 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
5621 replace hash by pointer map.
5622 (cgraph_node_set_element_def, cgraph_node_set_element,
5623 const_cgraph_node_set_element, varpool_node_set_element_def,
5624 varpool_node_set_element, const_varpool_node_set_element): Remove.
5625 (free_cgraph_node_set, free_varpool_node_set): New function.
5626 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
5627 * tree-emutls.c: Free varpool node set.
5628 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
5629 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
5630 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
5631 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
5632 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
5633 Move here from ipa.c; implement using pointer_map
5634 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
5635 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
5636 debug_cgraph_node_set, varpool_node_set_new,
5637 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
5638 dump_varpool_node_set, debug_varpool_node_set):
5639 Move to ipa-uitls.c.
5640 * passes.c (ipa_write_summaries): Update.
5642 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5644 From Mike Frysinger:
5645 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
5646 bf542/bf544/bf547/bf548/bf549.
5648 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
5650 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
5652 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5655 * config/bfin/bfin.md (MOVCC): New mode_macro.
5656 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
5657 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
5658 comments from generated assembly.
5660 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5663 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
5664 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
5665 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
5666 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
5667 * config/bfin/lib1funcs.asm (___muldi3): New function.
5669 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5671 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
5672 build_function_type_list instead of build_function_type.
5673 Rearrange initialization of `args' to do so.
5675 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5677 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
5678 instead of build_function_type.
5680 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5682 * config/rs6000/rs6000.c (spe_init_builtins): Call
5683 build_function_type_list instead of build_function_type.
5684 (paired_init_builtins, altivec_init_builtins): Likewise.
5685 (builtin_function_type): Likewise.
5687 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5689 * config/sh/sh.c (sh_media_init_builtins): Call
5690 build_function_type_list instead of build_function_type.
5692 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5694 * config/sparc/sparc.c (sparc_file_end): Call
5695 build_function_type_list instead of build_function_type.
5697 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5699 * config/alpha/alpha.c (alpha_init_builtins): Call
5700 build_function_type_list instead of build_function_type.
5702 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5704 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
5705 build_function_type_list instead of build_function_type.
5707 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5709 * config/iq2000/i2000.c (iq2000_init_builtins): Call
5710 build_function_type_list instead of build_function_type.
5711 Delete `endlink' variable.
5713 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5715 * config/avr/avr.c (avr_init_builtins): Call
5716 build_function_type_list instead of build_function_type.
5718 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5720 * config/picochip/picochip.c (picochip_init_builtins): Call
5721 build_function_type_list instead of build_function_type.
5722 Delete `endlink' variable.
5724 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5726 * config/bfin/bfin.c (bfin_init_builtins): Call
5727 build_function_type_list instead of build_function_type.
5729 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5732 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
5733 that's not CONST_INT. Seemingly redundant check is due to PR39768.
5735 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5738 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
5739 libbffastfp overrides libgcc when -mfast-fp.
5741 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5743 Originally from Bernd Schmidt
5744 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
5745 * config/bfin/bfin.c (override_options): Test it and error if
5748 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5750 Originally From Bernd Schmidt
5751 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
5754 2011-05-03 Jeff Law <law@redhat.com>
5756 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
5757 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
5758 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
5759 than accessing AUX field directly. Free the AUX field before
5761 (thread_block, thread_through_loop_header): Likewise.
5762 (thread_single_edge, mark_threaded_blocks): Likewise.
5763 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
5764 (register_jump_thread): Do not attempt to thread to a NULL edge.
5766 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
5768 * function.c (init_function_start): Call decide_function_section.
5769 * varasm.c (decide_function_section): New function.
5770 (assemble_start_function): When not using
5771 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
5772 or first_function_block_is_cold.
5773 * rtl.h (decide_function_section): Declare.
5775 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
5776 Jakub Jelinek <jakub@redhat.com>
5779 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
5780 only succeed if req_mode is the same as set_mode.
5782 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
5784 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
5785 * genemit.c (gen_exp): Handle RETURN.
5786 * emit-rtl.c (verify_rtx_sharing): Likewise.
5787 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
5788 * rtl.c (copy_rtx): RETURN is shared.
5789 * rtl.h (enum global_rtl_index): Add GR_RETURN.
5791 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
5792 * config/s390/s390.c (s390_emit_epilogue): Likewise.
5793 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
5794 * config/cris/cris.c (cris_expand_return): Likewise.
5795 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
5796 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
5797 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
5798 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
5799 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
5801 * config/v850/v850.c (expand_epilogue): Likewise.
5802 * config/bfin/bfin.c (bfin_expand_call): Likewise.
5803 * config/arm/arm.md (epilogue): Likewise.
5804 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
5805 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
5806 variable to ret_reg.
5808 2011-05-03 Richard Guenther <rguenther@suse.de>
5811 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
5812 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
5813 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
5815 2011-05-03 Richard Guenther <rguenther@suse.de>
5817 * c-decl.c (grokdeclarator): Instead of looking at
5818 TREE_OVERFLOW check if the constant fits in the index type.
5820 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
5822 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
5823 (vec_store_lanes<mode><mode>): Likewise.
5825 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
5827 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
5828 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
5829 convert_optab_index values.
5830 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
5831 * genopinit.c (optabs): Initialize the new optabs.
5832 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
5833 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
5834 (expand_STORE_LANES): New functions.
5835 * tree.h (build_array_type_nelts): Declare.
5836 * tree.c (build_array_type_nelts): New function.
5837 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
5838 (vect_model_load_cost): Likewise.
5839 (vect_store_lanes_supported, vect_load_lanes_supported)
5840 (vect_record_strided_load_vectors): Declare.
5841 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
5842 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
5843 (vect_transform_strided_load): Split out statement recording into...
5844 (vect_record_strided_load_vectors): ...this new function.
5845 * tree-vect-stmts.c (create_vector_array, read_vector_array)
5846 (write_vector_array, create_array_ref): New functions.
5847 (vect_model_store_cost): Add store_lanes_p argument.
5848 (vect_model_load_cost): Add load_lanes_p argument.
5849 (vectorizable_store): Try to use store-lanes functions for
5851 (vectorizable_load): Likewise load-lanes and loads.
5852 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
5853 to vect_model_store_cost.
5854 (vect_build_slp_tree): Likewise vect_model_load_cost.
5856 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
5858 * hooks.h (hook_bool_mode_uhwi_false): Declare.
5859 * hooks.c (hook_bool_mode_uhwi_false): New function.
5860 * target.def (array_mode_supported_p): New hook.
5861 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
5862 * doc/tm.texi: Regenerate.
5863 * stor-layout.c (mode_for_array): New function.
5864 (layout_type): Use it.
5865 * config/arm/arm.c (arm_array_mode_supported_p): New function.
5866 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
5868 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
5871 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
5872 for -fstack-check if the size to allocate is negative.
5874 2011-05-02 Lawrence Crowl <crowl@google.com>
5876 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
5877 (timevar_cond_start): New for starting a timer only when it is not
5879 (timevar_cond_stop): New for stopping a timer when it was not already
5882 * timevar.c (timevar_stop): Enable start/stop timers to start again.
5883 (timevar_cond_start): New as above.
5884 (timevar_cond_stop): New as above.
5886 * timevar.def: Add start/stop timers for compiler phases,
5887 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
5888 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
5889 and TV_PHASE_FINALIZE.
5890 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
5891 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
5892 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
5893 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
5894 Make unused TV_OVERLOAD into a start/stop timer.
5896 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
5897 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
5898 to indicate that they are start/stop timers.
5900 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
5901 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
5902 Move initialization to do_compile.
5903 (do_compile): Add initialization from above.
5904 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
5906 * c-decl.c (c_write_global_declarations): Add start/stop of
5907 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
5909 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
5910 or TV_PARSE_INLINE, as appropriate.
5911 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
5912 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
5914 2011-05-02 Jason Merrill <jason@redhat.com>
5917 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
5919 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
5922 * c-decl.c (finish_decl): Only create a composite if the types are
5925 2011-05-02 Joseph Myers <joseph@codesourcery.com>
5927 * config/fr30/fr30-protos.h (Mmode): Don't define.
5928 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
5929 definition where used.
5930 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
5931 define. Expand definitions where used.
5932 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
5933 Expand definitions where used.
5934 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
5935 rx_function_arg, rx_function_arg_advance,
5936 rx_function_arg_boundary): Expand definitions of those macros.
5937 * config/v850/v850-protos.h (Mmode): Don't define. Expand
5938 definition where used.
5940 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
5942 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
5944 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
5945 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
5946 with *movv2sf_internal_rex64_avx.
5947 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
5948 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
5949 Use %v prefix in insn mnemonic to handle TARGET_AVX.
5950 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
5951 "vex" in "prefix" attribute calculation.
5952 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
5954 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
5957 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
5958 inputs match the output.
5960 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
5963 * config/m68k/m68k.c (m68k_expand_prologue): Set
5964 current_function_static_stack_size.
5966 2011-05-02 Jan Hubicka <jh@suse.cz>
5968 * lto-streamer.c (lto_streamer_cache_insert_1,
5969 lto_streamer_cache_lookup, lto_streamer_cache_create,
5970 lto_streamer_cache_delete): Use pointer map instead of hashtable.
5971 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
5973 2011-05-02 Joseph Myers <joseph@codesourcery.com>
5975 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
5976 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
5977 config/m68k/t-opts: New files.
5978 * config/m68k/m68k-tables.opt: New file (generated).
5979 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
5980 extra_options and m68k/t-opts to tmake_file.
5981 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
5982 (all_isas): Initialize using m68k-isas.def.
5983 (all_microarchs): Initialize using m68k-microarchs.def.
5984 (m68k_find_selection): Remove.
5985 (m68k_handle_option): Don't assert that global structures are in
5986 use. Use error_at. Access variables via opts pointer. Don't
5987 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
5988 directly for -m68020-40 and -m68020-60.
5989 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
5990 m68k_tune_entry here.
5991 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
5993 (m68k_library_id_string): Remove declaration.
5994 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
5995 (m68k_library_id_string): New Variable.
5996 (march=, mcpu=, mtune=): Use Enum and Var.
5998 2011-05-02 Richard Guenther <rguenther@suse.de>
6000 * varasm.c (output_constructor_regular_field): Compute zero-based
6001 index with double-ints. Make sure to ICE instead of producing
6003 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
6004 in asserts. Properly use a signed type.
6006 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
6008 * config/i386/sse.md (V): New mode iterator.
6009 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
6011 (V_256): Rename from AVX256MODE.
6012 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
6013 condition to all users.
6015 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
6016 condition to all users.
6017 (VF_128): Make V4SF mode unconditional.
6018 (VF_256): Rename from AVX256MODEF2P.
6019 (VI4F_128): Rename from SSEMODE4S.
6020 (VI8F_128): Rename from SSEMODE2D.
6021 (VI4F_256): Rename from AVX256MODE8P.
6022 (VI8F_256): Rename from AVX256MODE4P.
6023 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
6024 (ssescalarmodesuffix): Remove SF and DF modes.
6025 (SSEMODE124): Remove.
6026 (SSEMODE1248): Ditto.
6027 (SSEMODEF2P): Ditto.
6028 (AVXMODEF2P): Ditto.
6029 (AVXMODEFDP): Ditto.
6030 (AVXMODEFSP): Ditto.
6031 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
6033 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
6035 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
6036 xop_pcmov_<mode>256. Use V mode iterator.
6038 Adjust RTX patterns globally for renamed mode attributes.
6040 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6042 * haifa-sched.c (sched_emit_insn): Emit insn before first
6043 non-scheduled insn. Inform back-end about new insn. Add
6044 new insn to scheduled_insns list.
6046 2011-05-02 Richard Guenther <rguenther@suse.de>
6048 PR tree-optimization/48822
6049 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
6050 (process_scc): Indicate which iteration we start.
6052 2011-05-02 Jan Hubicka <jh@suse.cz>
6054 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
6055 (lto_section_overrun): New.
6056 * lto-section-out.c (append_block): Rename to ...
6057 (lto_append_block): ... this one; export.
6058 (lto_output_1_stream): Move lto lto-streamer.h
6059 (lto_output_data_stream): Update.
6060 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
6061 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
6064 2011-05-02 Richard Guenther <rguenther@suse.de>
6066 * tree.c (tree_code_counts): New global array.
6067 (record_node_allocation_statistics): Count individual tree codes.
6068 (dump_tree_statistics): Dump individual code stats.
6070 2011-05-01 Jan Hubicka <jh@suse.cz>
6072 * ipa-inline.c (caller_growth_limits): Fix thinko when
6073 looking for largest stack frame.
6074 * ipa-inline.h (dump_inline_summary): Declare.
6075 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
6077 (dump_inline_summary): Export.
6078 (debug_inline_summary): Declare as DEBUG_FUNCTION.
6080 2011-05-01 Anatoly Sokolov <aesok@post.ru>
6082 * reginfo.c (memory_move_cost): Change rclass argument type form
6083 'enum reg_class' to reg_class_t.
6084 * reload.h (memory_move_cost): Update prototype.
6085 * postreload.c reload_cse_simplify_set): Change type dclass var to
6087 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
6089 (ira_allocate_and_set_costs): Change aclass argument type form
6090 'enum reg_class' to reg_class_t.
6091 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
6092 Change aclass argument type to reg_class_t.
6093 (update_conflict_hard_reg_costs): Change type aclass and pref vars
6095 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
6096 memory_move_cost call.
6098 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
6099 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
6100 Change type tmp var to reg_class_t.
6102 2011-04-30 Jan Hubicka <jh@suse.cz>
6104 * ipa-inline.c (can_inline_edge_p): Disregard limits when
6105 inlining into function with flatten attribute.
6106 (want_inline_small_function_p): Be more realistic about inlining
6107 cold calls where callee size grows.
6109 2011-04-30 Jan Hubicka <jh@suse.cz>
6111 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
6114 2011-04-30 Anatoly Sokolov <aesok@post.ru>
6116 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
6117 PRINT_OPERAND_PUNCT_VALID_P): Remove.
6118 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
6119 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
6120 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
6121 (print_operand): Rename to...
6122 (sparc_print_operand): ...this. Make static. Adjust
6123 sparc_print_operand function call.
6124 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
6127 2011-04-30 Jan Hubicka <jh@suse.cz>
6130 * ipa-inline.c (early_inliner): Disable when doing late
6131 addition of function.
6133 2011-04-30 Jakub Jelinek <jakub@redhat.com>
6135 * dwarf2out.c (get_address_mode): New inline.
6136 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
6137 if not dwarf_strict emit
6138 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
6139 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
6140 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
6141 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
6142 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
6143 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
6144 mem_loc_descriptor callers.
6145 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
6146 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
6147 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
6148 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
6149 (base_types): New variable.
6150 (get_base_type_offset, calc_base_type_die_sizes,
6151 base_type_for_mode, mark_base_types, base_type_cmp,
6152 move_marked_base_types): New functions.
6153 (calc_die_sizes): Assert that die_offset is 0 or equal to
6155 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
6156 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
6157 callers. If not dwarf_strict, call mem_loc_descriptor even for
6158 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
6159 (gen_subprogram_die): Don't give up on call site parameters
6160 with non-integral or large integral modes. Adjust
6161 mem_loc_descriptor callers.
6162 (prune_unused_types): Call prune_unused_types_mark on base_types
6164 (resolve_addr): Call mark_base_types.
6165 (dwarf2out_finish): Call move_marked_base_types.
6167 PR tree-optimization/48809
6168 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
6170 (gen_inbound_check): Don't compute index_expr - range_min in utype
6171 again, instead reuse SSA_NAME initialized in build_arrays.
6172 Remove two useless gsi_for_stmt calls.
6174 2011-04-29 Jeff Law <law@redhat.com>
6176 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
6178 2011-04-29 Martin Jambor <mjambor@suse.cz>
6180 * cgraph.h (cgraph_postorder): Remove declaration.
6181 * ipa-utils.h (ipa_free_postorder_info): Declare.
6182 (ipa_reverse_postorder): Likewise.
6183 * cgraphunit.c: Include ipa-utils.h.
6184 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
6185 * ipa-inline.c: Include ipa-utils.h.
6186 (ipa_inline): Update call to ipa_reverse_postorder.
6187 * ipa-pure-const.c (propagate_pure_const): Update call to
6188 ipa_reduced_postorder and ipa_print_order. Call
6189 ipa_free_postorder_info to clean up.
6190 (propagate_nothrow): Likewise.
6191 * ipa-reference.c (propagate): Removed a useless call to
6192 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
6193 and ipa_print_order. Call ipa_free_postorder_info to clean up.
6194 * ipa.c: Include ipa-utils.h.
6195 (ipa_profile): Update call to ipa_reverse_postorder.
6196 (cgraph_postorder): Moved to...
6197 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
6198 (ipa_utils_print_order): Renamed to ipa_print_order.
6199 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
6201 (ipa_free_postorder_info): New function.
6202 * passes.c: Include ipa-utils.h.
6203 (do_per_function_toporder): Update call to ipa_reverse_postorder.
6204 (ipa_write_summaries): Likewise.
6205 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
6206 (cgraphunit.o): Likewise.
6208 (ipa-inline.o): Likewise.
6210 2011-04-29 Jan Hubicka <jh@suse.cz>
6212 * gcc.dg/tree-ssa/inline-10.c: New testcase.
6213 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
6214 * ipa-inline.h (clause_t): Turn into unsigned int.
6215 * ipa-inline-analysis.c (add_clause): Do more simplification.
6216 (and_predicates): Shortcut more cases.
6217 (predicates_equal_p): Move forward; check that clauses are properly
6219 (or_predicates): Shortcut more cases.
6220 (edge_execution_predicate): Rewrite as...
6221 (set_cond_stmt_execution_predicate): ... this function; handle
6222 __builtin_constant_p.
6223 (set_switch_stmt_execution_predicate): New .
6224 (compute_bb_predicates): New.
6225 (will_be_nonconstant_predicate): Update TODO.
6226 (estimate_function_body_sizes): Use compute_bb_predicates
6227 and free them later, always try to estimate if stmt is constant.
6228 (estimate_time_after_inlining, estimate_size_after_inlining):
6229 Gracefully handle optimized out edges.
6230 (read_predicate): Fix off by one error.
6232 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
6234 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
6236 2011-04-27 Xinliang David Li <davidxl@google.com>
6238 * tree-profile.c (init_ic_make_global_vars): Set
6239 tls attribute on ic vars.
6240 * coverage.c (coverage_end_function): Initialize
6241 function_list with zero.
6243 2011-04-29 Richard Guenther <rguenther@suse.de>
6245 * builtins.c (fold_builtin_classify_type): Use integer_type_node
6246 for the type of the result.
6247 (fold_builtin_isascii): Likewise.
6248 (fold_builtin_toascii): Use integer_type_node where appropriate.
6249 (fold_builtin_logb): Likewise.
6250 (fold_builtin_frexp): Likewise.
6251 (fold_builtin_strstr): Likewise.
6252 (fold_builtin_strpbrk): Likewise.
6253 (fold_builtin_fputs): Likewise.
6254 (fold_builtin_sprintf): Likewise.
6255 (fold_builtin_snprintf): Likewise.
6256 (fold_builtin_printf): Likewise.
6257 (do_mpfr_remquo): Use a proper type for the assigned constant.
6258 (do_mpfr_lgamma_r): Likewise.
6259 * dwarf2out.c (resolve_one_addr): Use size_int.
6260 * except.c (init_eh): Likewise.
6261 (assign_filter_values): Use integer_type_node for filter values.
6262 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
6264 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
6265 for EH region numbers.
6266 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
6267 for the shift amount.
6269 2011-04-29 Richard Guenther <rguenther@suse.de>
6271 * expr.h (expand_shift): Rename to ...
6272 (expand_variable_shift): ... this.
6273 (expand_shift): Take a constant shift amount.
6274 * expmed.c (expand_shift): Rename to ...
6275 (expand_variable_shift): ... this.
6276 (expand_shift): New wrapper around expand_variable_shift.
6277 * expr.c (convert_move, emit_group_load_1, emit_group_store,
6278 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
6279 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
6280 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
6281 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
6282 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
6283 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
6284 emit_store_flag_1, emit_store_flag): Likewise.
6285 * builtins.c (expand_builtin_signbit): Likewise.
6286 * calls.c (load_register_parameters): Likewise.
6287 * function.c (assign_parm_setup_block): Likewise.
6288 * lower-subreg.c (resolve_shift_zext): Likewise.
6289 * optabs.c (widen_bswap, expand_abs_nojump,
6290 expand_one_cmpl_abs_nojump, expand_float): Likewise.
6291 * spu/spu.c (spu_expand_extv): Likewise.
6292 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
6294 2011-04-29 Richard Guenther <rguenther@suse.de>
6296 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
6297 for the remapped region number.
6298 * predict.c (build_predict_expr): Use integer_type_node for the
6300 * fold-const.c (fold_binary_loc): Use integer_type_node for
6301 the shift amount. Use a proper type for the PLUS_EXPR operand.
6303 2011-04-29 Michael Matz <matz@suse.de>
6305 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
6306 other trees that just builtins.
6307 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
6309 2011-04-29 Richard Guenther <rguenther@suse.de>
6311 * tree-nested.c (get_trampoline_type): Use size_int.
6312 (get_nl_goto_field): Likewise.
6313 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
6315 (lower_eh_constructs_2): Likewise.
6316 (lower_resx): Likewise.
6317 (lower_eh_dispatch): Likewise.
6318 * tree-mudflap.c (mf_build_string): Use size_int.
6319 (mudflap_register_call): Use integer_type_node for the flag.
6320 (mudflap_enqueue_constant): Use size_int.
6321 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
6322 instead of rebuilding it.
6324 2011-04-29 Richard Guenther <rguenther@suse.de>
6326 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
6327 Handle OBJ_TYPE_REF.
6328 (find_func_aliases_for_call): Use it more consistently.
6330 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
6332 * haifa-sched.c (last_nondebug_scheduled_insn): New.
6333 (rank_for_schedule): Use it.
6334 (schedule_block): Set it.
6336 2011-04-28 David Li <davidxl@google.com>
6338 * tree.c (crc32_string): Use crc32_byte.
6339 (crc32_byte): New function.
6340 * tree.h (crc32_byte): New function.
6341 * gcov.c (read_graph_file): Handle new cfg_cksum.
6342 (read_count_file): Ditto.
6343 * profile.c (instrument_values): Ditto.
6344 (get_exec_counts): Ditto.
6345 (read_profile_edge_counts): Ditto.
6346 (compute_branch_probabilities): Ditto.
6347 (compute_value_histograms): Ditto.
6348 (branch_prob): Ditto.
6349 (end_branch_prob): Ditto.
6350 * coverage.c (read_counts_file): Ditto.
6351 (get_coverage_counts): Ditto.
6352 (tree_coverage_counter_addr): Ditto.
6353 (coverage_checksum_string): Ditto.
6354 (coverage_begin_output): Ditto.
6355 (coverage_end_function): Ditto.
6356 (build_fn_info_type): Ditto.
6357 (build_fn_info_value): Ditto.
6358 * libgcov.c (gcov_exit): Ditto.
6359 * gcov-dump.c (tag_function): Ditto.
6360 (compute_checksum): Remove.
6362 2011-04-29 Alan Modra <amodra@gmail.com>
6364 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
6365 unspec plus offset. Tidy macho code.
6367 2011-04-29 Martin Jambor <mjambor@suse.cz>
6369 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
6370 node instead of a decl. Update all callers.
6371 * cgraph.h: Update declaration.
6373 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
6375 PR tree-optimization/48765
6376 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
6377 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
6378 to indicate if loop aware SLP is being used. Scan the statements
6379 and update the vectorization factor according to the type of
6380 vectorization before statement analysis.
6381 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
6382 pass it to vect_analyze_loop_operations.
6383 (vectorizable_reduction): Set number of copies to 1 in case of pure
6385 * tree-vect-stmts.c (vectorizable_conversion,
6386 vectorizable_assignment, vectorizable_shift,
6387 vectorizable_operation, vectorizable_type_demotion,
6388 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
6390 (vectorizable_condition): Move the check that it is not SLP
6391 vectorization before the number of copies check.
6392 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
6393 to vectorize the loop using SLP.
6395 2011-04-28 Jakub Jelinek <jakub@redhat.com>
6398 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
6401 2011-04-28 Joseph Myers <joseph@codesourcery.com>
6403 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
6404 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
6405 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
6406 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
6407 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
6409 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
6410 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6411 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6412 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6413 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6414 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
6416 * config/i386/linux.h (REG_NAME): Don't define.
6417 * config/i386/linux64.h (REG_NAME): Don't define.
6418 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
6419 Undefine before defining.
6421 2011-04-28 Jan Hubicka <jh@suse.cz>
6423 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
6424 nonconstant_names array.
6425 (estimate_function_body_sizes): Build nonconstant_names array; handle
6426 BUILT_IN_CONSTANT_P.
6428 2011-04-28 Richard Guenther <rguenther@suse.de>
6432 2011-04-28 Richard Guenther <rguenther@suse.de>
6434 * tree-ssa-structalias.c (solve_constraints): Build succ graph
6435 as late as possible.
6437 2011-04-28 Richard Guenther <rguenther@suse.de>
6439 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
6440 (debug_constraint): Do it here.
6441 (dump_constraints): And here.
6442 (rewrite_constraints): And here.
6443 (dump_constraint_edge): Remove.
6444 (dump_constraint_graph): Rewrite to produce DOT output.
6445 (solve_constraints): Build succ graph as late as possible.
6446 Dump constraint graphs before and after solving.
6448 2011-04-28 Richard Guenther <rguenther@suse.de>
6450 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
6451 New function split out from ...
6452 (find_func_aliases): ... here. Call it.
6453 (find_func_aliases_for_call): Likewise.
6455 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
6457 * internal-fn.h (internal_fn_name_array): Declare.
6458 (internal_fn_flags_array): Likewise.
6460 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
6462 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
6463 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
6465 (ssemodefsuffix): Remove.
6466 (ssevecmodesuffix): New mode attribute.
6467 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
6468 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
6469 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
6470 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
6471 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
6472 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
6473 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
6474 ssemodesuffix mode attribute.
6475 (float splitters): Use ssevecmodesuffix mode attribute.
6476 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
6477 (sseinsmode): Rename from avxvecmode.
6478 (avxsizesuffix): Rename from avxmodesuffix.
6479 (sseintvecmode): Rename from avxpermvecmode.
6480 (ssedoublevecmode): Rename from ssedoublesizemode.
6481 (ssehalfvecmode): Rename from avxhalfvecmode.
6482 (ssescalarmode): Rename from avxscalarmode.
6483 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
6484 templates for ssemodesuffix mode attribute.
6485 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
6488 Adjust RTX patterns globally for renamed mode attributes.
6490 2011-04-27 Jan Hubcika <jh@suse.cz>
6492 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
6493 * ipa-inline-analysis.c: Include alloc-pool.h.
6494 (edge_predicate_pool): New.
6495 (trye_predicate_p): New function
6496 (false_predicate_p): New function.
6497 (add_clause): Sanity check that false clauses are "optimized";
6498 never add clauses to predicate that is already known to be false.
6499 (and_predicate): Use flase_predicate_p.
6500 (evaulate_predicate): Rename to ...
6501 (evaluate_predicate): ... this one; update all callers; assert
6502 that false is not listed among possible truths.
6503 (dump_predicate): Use true_predicate_p.
6504 (account_size_time): Use false_predicate_p.
6505 (evaulate_conditions_for_edge): Rename to ...
6506 (evaluate_conditions_for_edge) ... this one.
6507 (edge_set_predicate): New function.
6508 (inline_edge_duplication_hook): Duplicate edge predicates.
6509 (inline_edge_removal_hook): Free edge predicates.
6510 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
6511 (dump_inline_summary): Update.
6512 (estimate_function_body_sizes): Set edge predicates.
6513 (estimate_calls_size_and_time): Handle predicates.
6514 (estimate_callee_size_and_time): Update.
6515 (remap_predicate): Add toplev_predicate; update comment.
6516 (remap_edge_predicates): New function.
6517 (inline_merge_summary): Compute toplev predicate; update.
6518 (read_predicate): New function.
6519 (read_inline_edge_summary): Use it.
6520 (inline_read_section): Likewise.
6521 (write_predicate): New function.
6522 (write_inline_edge_summary): Use it.
6523 (inline_write_summary): Likewise.
6524 (inline_free_summary): Free alloc pool and edge summary vec.
6526 2011-04-27 Richard Guenther <rguenther@suse.de>
6528 * tree-ssa-structalias.c (changed_count): Remove.
6529 (changed): Use a bitmap.
6530 (unify_nodes): Adjust.
6531 (do_sd_constraint): Likewise.
6532 (do_ds_constraint): Likewise.
6533 (do_complex_constraint): Likewise.
6534 (solve_graph): Likewise.
6536 2011-04-27 Jan Hubicka <jh@suse.cz>
6538 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
6540 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
6542 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
6543 (avx_vperm2f128_*_operand): Ditto.
6544 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
6545 Use avx_vpermilp_parallel in insn condition.
6546 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
6547 Use avx_vperm2f128_parallel in insn condition.
6549 2011-04-27 Richard Guenther <rguenther@suse.de>
6551 * Makefile.in (tree-ssa-structalias.o): Remove
6552 gt-tree-ssa-structalias.h dependency.
6553 (GTFILES): Remove tree-ssa-structalias.c.
6554 * tree.c (allocate_decl_uid): New function.
6555 (make_node_stat): Use it.
6556 (copy_node_stat): Likewise.
6557 * tree.h (allocate_decl_uid): Declare.
6558 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
6559 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
6560 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
6561 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
6562 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
6563 (struct heapvar_map): Likewise.
6564 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
6565 heapvar_insert): Likewise.
6566 (make_heapvar_for): Rename to ...
6567 (make_heapvar): ... this. Simplify.
6568 (fake_var_decl_obstack): New global var.
6569 (build_fake_var_decl): New function.
6570 (make_constraint_from_heapvar): Adjust.
6571 (handle_lhs_call): Likewise.
6572 (create_function_info_for): Likewise.
6573 (intra_create_variable_infos): Likewise.
6574 (init_alias_vars): Allocate fake_var_decl_obstack.
6575 (init_alias_heapvars, delete_alias_heapvars): Remove.
6576 (compute_points_to_sets): Do not call init_alias_heapvars.
6577 (ipa_pta_execute): Likewise.
6578 (delete_points_to_sets): Free fake_var_decl_obstack.
6580 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6582 * config/spu/divmovti4.c (union qword_UTItype): New data type.
6583 (si_from_UTItype, si_to_UTItype): New functions.
6584 (__udivmodti4): Use them to implement type-punning.
6585 * config/spu/multi3.c (union qword_TItype): New data type.
6586 (si_from_TItype, si_to_TItype): New functions.
6587 (__multi3): Use them to implement type-punning.
6589 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6591 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
6593 2011-04-27 Jan Hubicka <jh@suse.cz>
6595 * ipa-prop.c (function_insertion_hook_holder): New holder.
6596 (ipa_add_new_function): New function.
6597 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
6598 Register/deregister holder.
6600 2011-04-27 Richard Guenther <rguenther@suse.de>
6602 PR tree-optimization/48772
6603 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
6605 2011-04-27 Richard Guenther <rguenther@suse.de>
6607 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
6608 TARGET_MEM_REF handling.
6610 2011-04-27 Nick Clifton <nickc@redhat.com>
6612 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
6613 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
6614 (REG_CLASS_NAMES): Likewise.
6615 (REG_CLASS_CONTENTS): Likewise.
6616 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
6617 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
6618 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
6619 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
6620 (EVEN_REGS): New macro. Alias for QUAD_REGS.
6621 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
6622 duplicate register classes.
6623 (frv_class_likely_spilled_p): Likewise.
6624 (frv_register_move_cost): Likewise.
6626 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
6627 end of the regno_reg_class array.
6629 2011-04-27 Jakub Jelinek <jakub@redhat.com>
6632 * c-typeck.c (build_binary_op): Don't wrap arguments if
6633 int_operands is true.
6635 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
6638 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
6639 targetm.calls.must_pass_in_stack for void type.
6641 2011-04-26 Jan Hubicka <jh@suse.cz>
6643 * cgraphbuild.c (build_cgraph_edges): Update call
6644 of cgraph_create_edge and cgraph_create_indirect_edge.
6645 * cgraph.c (cgraph_create_edge_including_clones,
6646 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
6647 cgraph_update_edges_for_call_stmt_node): Do not take nest
6648 argument; do not initialize call_stmt_size/time.
6649 (dump_cgraph_node): Do not dump nest.
6650 (cgraph_clone_edge): Do not take loop_nest argument;
6651 do not propagate it; do not clone call_stmt_size/time.
6652 (cgraph_clone_node): Likewise.
6653 (cgraph_create_virtual_clone): Update.
6654 * cgraph.h (struct cgraph_edge): Remove
6655 call_stmt_size/call_stmt_time/loop_nest.
6656 (cgraph_create_edge, cgraph_create_indirect_edge,
6657 cgraph_create_edge_including_clones, cgraph_clone_node): Update
6659 * tree-emutls.c (gen_emutls_addr): Update.
6660 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
6661 loop_nest; handle indirect calls, too.
6662 (clone_inlined_nodes): Do not care about updating inline summaries.
6663 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
6664 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
6665 stream call_stmt_size/call_stmt_time/loop_nest.
6666 * ipa-inline.c (edge_badness): Update.
6667 (ipa_inline): dump summaries after inlining.
6668 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
6670 (inline_edge_summary): New function.
6671 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
6672 (inline_edge_removal_hook): Handle edge summaries.
6673 (inline_edge_duplication_hook): New hook.
6674 (inline_summary_alloc): Alloc hooks.
6675 (initialize_growth_caches): Do not register removal hooks.
6676 (free_growth_caches); Do not free removal hook.
6677 (dump_inline_edge_summary): New function.
6678 (dump_inline_summary): Use it.
6679 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
6680 (inline_update_callee_summaries): New function.
6681 (inline_merge_summary): Use it.
6682 (do_estimate_edge_time, do_estimate_edge_growth): Update.
6683 (read_inline_edge_summary): New function.
6684 (inline_read_section): Use it.
6685 (write_inline_edge_summary): New function.
6686 (inline_write_summary): Use it.
6687 (inline_free_summary): Free edge new holders.
6688 * tree-inline.c (copy_bb): Update.
6690 2011-04-26 Jason Merrill <jason@redhat.com>
6692 * tree-eh.c (lower_try_finally_switch): Create the label along with
6693 the CASE_LABEL_EXPR.
6695 2011-04-26 David S. Miller <davem@davemloft.net>
6696 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6698 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
6699 * configure: Regenerate.
6701 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
6704 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
6706 (VEC_reduc): New code iterator and splitters for vector reduction.
6707 (VEC_reduc_name): Ditto.
6708 (VEC_reduc_rtx): Ditto.
6709 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
6710 (reduc_<VEC_reduc_name>_v4sf): Ditto.
6712 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
6713 support for extracting SF on VSX.
6715 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
6716 generating xscvspdp.
6717 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
6718 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
6719 double add, minimum, maximum vector reduction.
6720 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
6721 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
6722 optimize double vector reduction.
6723 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
6725 2011-04-26 Joseph Myers <joseph@codesourcery.com>
6727 * config/fr30/fr30.h (inhibit_libc): Don't define.
6728 * config/m32r/m32r-protos.h: Correct comment.
6729 * config/v850/v850.h (GHS_default_section_names,
6730 GHS_current_section_names): Use tree, not union tree_node *.
6732 2011-04-26 Xinliang David Li <davidxl@google.com>
6734 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
6735 * c-family/c-opts.c (c_common_handle_option): Set
6736 warn_maybe_uninitialized.
6737 * opts.c (common_handle_option): Ditto.
6738 * common.opt: New option.
6739 * tree-ssa.c (warn_uninit): Add one more parameter.
6740 (warn_uninitialized_var): Pass warning code.
6741 * tree-flow.h: Interface change.
6743 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6745 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
6746 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
6747 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
6749 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6751 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
6752 * config/mips/mips.opt (mmips-tfile): Remove.
6754 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
6755 mips-tdump reference to ...
6756 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
6757 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
6758 reference by Tru64 UNIX.
6760 2011-04-26 Jakub Jelinek <jakub@redhat.com>
6763 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
6764 is error_mark_node, set value to NULL.
6766 PR tree-optimization/48734
6767 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
6768 if return value from maybe_fold_*_comparsions isn't something
6769 the code is prepared to handle.
6771 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
6773 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
6775 (ext_QIreg_nomode_operands): Remove.
6776 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
6780 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
6782 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
6784 2011-04-26 Richard Guenther <rguenther@suse.de>
6786 * c-typeck.c (build_unary_op): Do not expand array-refs via
6787 pointer arithmetic. Only adjust qualifiers for function types.
6789 2011-04-26 Richard Guenther <rguenther@suse.de>
6792 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
6793 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
6794 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
6795 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
6797 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
6799 * doc/extend.texi: Document __underlying_type.
6801 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
6803 * config/rs6000/titan.md (automata_option "progress"): Remove.
6805 2011-04-25 Jeff Law <law@redhat.com>
6807 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
6809 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6811 * system.h (ENUM_BITFIELD): Remove.
6813 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
6814 Eric Botcazou <ebotcazou@adacore.com>
6816 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
6817 for STORE_FLAG_VALUE==-1 case.
6819 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
6822 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
6823 LEGITIMATE_PIC_OPERAND_P.
6825 2011-04-24 Jan Hubicka <jh@suse.cz>
6827 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
6829 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
6830 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
6831 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
6832 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
6833 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
6834 Sanity check predicate length.
6835 (remap_predicate): Likewise; sanity check jump functions.
6836 (inline_read_section, inline_write_summary): Sanity check
6839 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
6842 * doc/extend.texi (Type Traits): Document __is_standard_layout,
6843 __is_literal_type, and __is_trivial; update throughout about
6844 possibly cv-qualified void types.
6846 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
6848 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
6849 testsuite and make it version agnostic.
6851 2011-04-22 Jan Hubicka <jh@suse.cz>
6853 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
6855 2011-04-23 Jakub Jelinek <jakub@redhat.com>
6858 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
6859 to VOID_TYPE even around MODIFY_EXPR.
6861 2011-04-22 Mike Stump <mikestump@comcast.net>
6863 * gensupport.c (read_md_rtx): Fix typo in comment.
6864 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
6867 2011-04-22 Jan Hubicka <jh@suse.cz>
6869 * gengtype.c (open_base_files): Add ipa-inline.h include.
6870 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
6871 ipa-prop.c; update all uses.
6872 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
6873 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
6874 merge summary of inlined function into former caller.
6875 * ipa-inline.c (max_benefit): Remove.
6876 (edge_badness): Compensate for removal of benefits.
6877 (update_caller_keys): Use
6878 reset_node_growth_cache/reset_edge_growth_cache.
6879 (update_callee_keys): Likewise.
6880 (update_all_callee_keys): Likewise.
6881 (inline_small_functions): Do not collect max_benefit; do not reset
6882 estimated_growth; call free_growth_caches and initialize_growth_caches.
6883 * ipa-inline.h (struct condition, type clause_t, struct predicate,
6884 struct size_time_entry): New structures.
6885 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
6886 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
6887 and estimated_growth.
6888 (edge_growth_cache_entry): New structure.
6889 (node_growth_cache, edge_growth_cache): New global vars.
6890 (estimate_growth): Turn into inline.
6891 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
6892 initialize_growth_caches, free_growth_caches): Declare.
6893 (estimate_edge_growth): Rewrite.
6894 (estimate_edge_time): Implement as inline cache lookup.
6895 (reset_node_growth_cache, reset_edge_growth_cache): New inline
6897 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
6898 (NUM_CONDITIONS): New constant.
6899 (predicate_conditions): New enum.
6900 (IS_NOT_CONSTANT): New constant.
6901 (edge_removal_hook_holder): New var.
6902 (node_growth_cache, edge_growth_cache): New global vars.
6903 (true_predicate, single_cond_predicate, false_predicate,
6904 not_inlined_predicate, add_condition, add_clause, and_predicates,
6905 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
6906 dump_clause, dump_predicate, account_size_time,
6907 evaulate_conditions_for_edge): New functions.
6908 (inline_summary_alloc): Move to heap.
6909 (inline_node_removal_hook): Clear condition and entry vectors.
6910 (inline_edge_removal_hook): New function.
6911 (initialize_growth_caches, free_growth_caches): New function.
6912 (dump_inline_summary): Update.
6913 (edge_execution_predicate): New function.
6914 (will_be_nonconstant_predicate): New function.
6915 (estimate_function_body_sizes): Compute BB and constantness predicates.
6916 (compute_inline_parameters): Do not clear estimated_growth.
6917 (estimate_edge_size_and_time): New function.
6918 (estimate_calls_size_and_time): New function.
6919 (estimate_callee_size_and_time): New function.
6920 (remap_predicate): New function.
6921 (inline_merge_summary): New function.
6922 (do_estimate_edge_time): New function based on...
6923 (estimate_edge_time): ... this one.
6924 (do_estimate_edge_growth): New function.
6925 (do_estimate_growth): New function based on....
6926 (estimate_growth): ... this one.
6927 (inline_analyze_function): Analyze after deciding on jump functions.
6928 (inline_read_section): New function.
6929 (inline_read_summary): Use it.
6930 (inline_write_summary): Write all the new data.
6931 * ipa-prop.c (ipa_get_param_decl_index): Export.
6932 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
6933 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
6935 (ipa_get_lattice): Move here from ipa-cp.c
6936 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
6937 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
6938 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
6939 cgraph_edge_inlinable_p): Remove.
6940 * cgraphunit.c: Include ipainline.h
6941 (cgraph_process_new_functions): Update call of
6942 compute_inline_parameters.
6944 2011-04-22 Richard Guenther <rguenther@suse.de>
6946 * tree.c (build_int_cst): Properly create canonicalized integer
6948 (build_int_cst_type): Remove scary comments.
6950 2011-04-22 Xinliang David Li <davidxl@google.com>
6952 * toplev.c (process_options): Enable -Werror=coverage-mismatch
6953 by default when -Wno-error is not specified.
6954 * opts-global.c (decode_options): Remove call to
6955 control_warning_options.
6957 2011-04-22 Jakub Jelinek <jakub@redhat.com>
6959 PR tree-optimization/48717
6960 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
6961 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
6963 2011-04-22 Joseph Myers <joseph@codesourcery.com>
6965 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
6966 definition where used.
6968 2011-04-22 Jakub Jelinek <jakub@redhat.com>
6971 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
6972 TREE_STATIC variables declared inside of some OpenMP construct.
6974 2011-04-22 Martin Jambor <mjambor@suse.cz>
6977 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
6979 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
6982 * c-typeck.c (pop_init_level): Do not warn about initializing
6985 2011-04-22 Alan Modra <amodra@gmail.com>
6987 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
6988 when returning call_cookie.
6989 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
6990 pointers, to functions with no more vector args than the current
6991 function, and some non-local calls for ABI_V4.
6992 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
6993 sibcall_nonlocal_aix64): Combine to ..
6994 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
6995 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
6996 (sibcall_value_nonlocal_aix<mode>): ..likewise.
6997 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
6998 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
7000 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
7001 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
7002 sibcall_value_symbolic_64): Delete.
7004 2011-04-21 Xinliang David Li <davidxl@google.com>
7006 * cgraph.h: Remove pid.
7007 * cgraph.c: Remove pid.
7008 * value-prof.c (init_node_map): New function.
7009 (del_node_map): New function.
7010 (find_func_by_funcdef_no): New function.
7011 (gimple_ic_transform): Call new function.
7012 * cgraphunit.c (cgraph_finalize_function): Remove pid.
7013 * function.c (get_last_funcdef_no): New function.
7014 * function.h (get_last_funcdef_no): New function.
7015 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
7016 to libgcov function.
7017 (tree-profiling): Call node map init and delete function.
7019 2011-04-21 Ian Lance Taylor <iant@google.com>
7021 * godump.c (go_format_type): Use exported Go name for anonymous
7024 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
7026 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
7027 Call builtin_function_type_list instead of builtin_function_type.
7028 (UNARY, BINARY, TRINARY, QUAD): Likewise.
7030 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
7032 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
7033 build_function_type_list instead of build_function_type.
7034 Delete variable `endlink'.
7036 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
7038 * config/s390/s390.c (s390_init_builtins): Call
7039 build_function_type_list instead of build_function_type.
7041 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
7043 * config/ia64/ia64.c (ia64_init_builtins): Call
7044 build_function_type_list instead of builtin_function_type.
7046 2011-04-21 Easwaran Raman <eraman@google.com>
7048 * cfgexpand.c (stack_var): Remove OFFSET...
7049 (add_stack_var): ...and its reference here...
7050 (expand_stack_vars): ...and here.
7051 (stack_var_cmp): Sort by descending order of size.
7052 (partition_stack_vars): Change heuristic.
7053 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
7054 (dump_stack_var_partition): Add newline after each partition.
7056 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
7057 Jeff Law <law@redhat.com>
7059 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
7060 * gengtype.c (matching_file_name_substitute): Likewise.
7062 2011-04-21 Richard Guenther <rguenther@suse.de>
7065 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
7067 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
7069 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
7071 2011-04-21 Richard Guenther <rguenther@suse.de>
7073 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
7076 2011-04-21 Richard Guenther <rguenther@suse.de>
7078 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
7079 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
7080 Use DECL_P, not SSA_VAR_P.
7081 (ptr_derefs_may_alias_p): Likewise.
7082 (ptr_deref_may_alias_ref_p_1): Likewise.
7083 (decl_refs_may_alias_p): Likewise.
7084 (refs_may_alias_p_1): Likewise.
7085 (ref_maybe_used_by_call_p_1): Likewise.
7086 (call_may_clobber_ref_p_1): Likewise.
7087 (indirect_ref_may_alias_decl_p): Assume indirect refrences
7088 are either MEM_REF or TARGET_MEM_REF.
7089 (indirect_refs_may_alias_p): Likewise.
7090 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
7091 for MEM_EXPR of indirect calls.
7093 2011-04-21 Tristan Gingold <gingold@adacore.com>
7095 * vmsdbgout.c (write_srccorr): Compute file length from the string.
7096 (dst_file_info_struct): Remove flen field.
7097 (lookup_filename): Remove code that set flen field.
7099 2011-04-21 Tristan Gingold <gingold@adacore.com>
7101 * config/ia64/ia64.c (ia64_start_function): Add a guard.
7103 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
7106 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
7107 vec_extract and vec_concat for non-SSE4_1 targets.
7109 2011-04-21 Richard Guenther <rguenther@suse.de>
7111 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
7114 2011-04-21 Joseph Myers <joseph@codesourcery.com>
7116 * config/i386/cygming.h (union tree_node, TREE): Don't define or
7118 (FILE): Don't undefine.
7120 2011-04-21 Joseph Myers <joseph@codesourcery.com>
7122 * config/alpha/alpha.c (struct machine_function): Use rtx, not
7124 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
7126 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
7127 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
7128 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
7130 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
7131 definitions where used.
7132 * config/microblaze/microblaze.h (struct microblaze_args): Use
7133 rtx, not struct rtx_def *.
7134 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
7136 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
7137 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
7138 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
7139 not struct rtx_def *.
7140 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
7142 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
7144 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
7146 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
7148 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
7149 operand_equal_p to compare DR_BASE_ADDRESSes.
7150 (vect_check_interleaving): Likewise.
7152 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
7155 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
7156 for all Neon struct constants.
7158 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
7160 * target.def (legitimate_constant_p): New hook.
7161 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
7162 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
7163 * doc/tm.texi: Regenerate.
7164 * hooks.h (hook_bool_mode_rtx_true): Declare.
7165 * hooks.c (hook_bool_mode_rtx_true): Define.
7166 * system.h (LEGITIMATE_CONSTANT_P): Poison.
7167 * calls.c (precompute_register_parameters): Replace uses of
7168 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
7169 (emit_library_call_value_1): Likewise.
7170 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
7171 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
7172 * ira-costs.c (scan_one_insn): Likewise.
7173 * recog.c (general_operand, immediate_operand): Likewise.
7174 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
7175 * reload1.c (init_eliminable_invariants): Likewise.
7177 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
7179 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
7180 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
7182 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7183 * config/alpha/predicates.md (input_operand): Update call to
7184 alpha_legitimate_constant_p.
7186 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
7187 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
7188 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
7189 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7190 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
7191 (arm_legitimate_constant_p): New functions.
7192 (arm_cannot_force_const_mem): Make static.
7194 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
7196 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
7197 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
7198 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
7199 instead of bfin_legitimate_constant_p.
7200 (bfin_legitimate_constant_p): Make static. Add a mode argument.
7201 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7203 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
7205 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
7207 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
7208 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
7209 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7210 (frv_legitimate_constant_p): Make static. Add a mode argument.
7212 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
7213 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
7214 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
7216 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
7217 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
7218 * config/i386/i386.c (legitimate_constant_p): Rename to...
7219 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
7221 (ix86_cannot_force_const_mem): Update accordingly.
7222 (ix86_legitimate_address_p): Likewise.
7223 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7224 * config/i386/i386.md: Update commentary.
7226 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
7227 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
7228 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7229 (ia64_legitimate_constant_p): Make static. Add a mode argument.
7231 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
7233 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
7234 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
7235 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7236 (lm32_legitimate_constant_p): Make static. Add a mode argument.
7238 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
7239 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
7240 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
7242 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
7243 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7244 (m32r_legitimate_constant_p): New function.
7246 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
7247 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
7248 LEGITIMATE_CONSTANT_P.
7249 (LEGITIMATE_CONSTANT_P): Delete.
7250 * config/m68k/m68k.c (m68k_expand_prologue): Call
7251 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
7252 (m68k_legitimate_constant_p): New function.
7253 * config/m68k/m68k.md: Update comments.
7255 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
7256 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7257 (mcore_legitimate_constant_p): New function.
7259 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
7260 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
7261 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
7262 Add a mode argument.
7263 (mep_legitimate_address): Update accordingly.
7264 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7266 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
7268 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
7269 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
7270 static. Check OP's mode for VOIDmode.
7271 (microblaze_legitimate_constant_p): New function.
7272 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7274 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
7275 * config/mips/mips.c (mips_legitimate_constant_p): New function.
7276 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
7277 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7278 * config/mips/predicates.md: Update comments.
7280 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
7281 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
7282 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7283 (mmix_legitimate_constant_p): Make static, return a bool, and take
7285 (mmix_print_operand_address): Update accordingly.
7287 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
7289 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
7290 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
7291 static. Add a mode argument.
7292 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7294 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
7296 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
7297 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7298 (pa_legitimate_constant_p): New function.
7300 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
7302 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
7303 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7304 (pdp11_legitimate_constant_p): New function.
7306 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
7307 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7308 (rs6000_legitimate_constant_p): New function.
7310 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
7311 (rx_legitimate_constant_p): ...this.
7312 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
7313 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
7314 (rx_legitimate_constant_p): ...this.
7315 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7316 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
7318 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
7319 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
7320 * config/s390/s390.c (legitimate_constant_p): Rename to...
7321 (s390_legitimate_constant_p): ...this. Make static, return a bool,
7322 and add a mode argument.
7323 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7325 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
7327 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
7328 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7329 (sh_legitimate_constant_p): New function.
7331 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
7332 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
7333 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7334 (legitimate_constant_p): Rename to...
7335 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
7337 (constant_address_p): Update accordingly.
7339 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
7340 argument and return a bool.
7341 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
7342 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7343 (spu_legitimate_constant_p): Add a mode argument and return a bool.
7344 (spu_rtx_costs): Update accordingly.
7345 * config/spu/predicates.md (vec_imm_operand): Likewise.
7347 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
7349 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
7350 * config/v850/v850.c (v850_legitimate_constant_p): New function.
7351 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7353 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
7354 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
7355 * config/vax/vax.c (legitimate_constant_p): Likewise.
7357 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
7358 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7359 (xtensa_legitimate_constant_p): New function.
7361 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
7363 * target.def (cannot_force_const_mem): Add a mode argument.
7364 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
7365 * doc/tm.texi: Regenerate.
7366 * hooks.h (hook_bool_mode_rtx_false): Declare.
7367 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
7368 (hook_bool_mode_const_rtx_true): Likewise.
7369 (hook_bool_mode_rtx_false): New function.
7370 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
7371 to be non-VOID. Update call to cannot_force_const_mem.
7372 (find_reloads): Update accordingly.
7373 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
7374 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
7376 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
7377 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
7378 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
7379 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
7380 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
7381 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
7382 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
7383 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
7384 (m68k_cannot_force_const_mem): ...this new function.
7385 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
7387 (mips_const_insns, mips_legitimize_const_move): Update calls.
7388 (mips_secondary_reload_class): Likewise.
7389 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
7390 (pa_cannot_force_const_mem): ...this new function.
7391 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
7392 (rs6000_cannot_force_const_mem): ...this new function.
7393 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
7395 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
7396 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
7398 (xtensa_cannot_force_const_mem): ...this new function.
7400 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
7402 * config/mips/mips.c (mips16_build_function_stub): Call
7403 build_function_type_list instead of build_function_type.
7404 (mips16_build_call_stub): Likewise.
7406 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
7408 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
7409 instead of build_function_type.
7411 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
7413 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
7414 instead of build_function_type.
7416 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
7419 * config/i386/i386.md (insv): Change operand 0 constraint to
7420 "register_operand". Change operand 1 and 2 constraint to
7421 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
7422 * config/i386/sse.md (sse4_1_pinsrb): Export.
7423 (sse2_pinsrw): Ditto.
7424 (sse4_1_pinsrd): Ditto.
7425 (sse4_1_pinsrq): Ditto.
7426 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
7427 * config/i386/i386.c (ix86_expand_pinsr): New.
7429 2011-04-20 Easwaran Raman <eraman@google.com>
7431 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
7432 containing union type only with -fstrict-aliasing.
7434 2011-04-20 Jim Meyering <meyering@redhat.com>
7436 Remove useless if-before-free tests.
7437 * calls.c (expand_call, save_area): Likewise.
7438 * cfgcleanup.c (try_forward_edges): Likewise.
7439 * collect2.c (collect_execute): Likewise.
7440 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
7441 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
7442 * coverage.c (coverage_checksum_string): Likewise.
7443 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
7444 * cselib.c (cselib_init): Likewise.
7445 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
7446 (df_set_clean_cfg): Likewise.
7447 * function.c (free_after_compilation): Likewise.
7448 * gcc.c (do_spec_1, main): Likewise.
7449 * gcov.c (create_file_names): Likewise.
7450 * gensupport.c (identify_predicable_attribute): Likewise.
7451 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
7452 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
7453 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
7454 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
7455 * ipa-pure-const.c (local_pure_const): Likewise.
7456 * ipa-reference.c (propagate): Likewise.
7457 * ira-costs.c (free_ira_costs): Likewise.
7458 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
7459 * matrix-reorg.c (mat_free): Likewise.
7460 * prefix.c (get_key_value): Likewise.
7461 * profile.c (compute_value_histograms): Likewise.
7462 * reload1.c (free_reg_equiv): Likewise.
7463 * sched-deps.c (free_deps): Likewise.
7464 * sel-sched-ir.c (fence_clear): Likewise.
7465 * sese.c (set_rename, if_region_set_false_region): Likewise.
7466 * tree-data-ref.c (free_rdg): Likewise.
7467 * tree-eh.c (lower_try_finally): Likewise.
7468 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
7469 * tree-ssa-live.c (delete_var_map): Likewise.
7470 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
7471 * tree-ssa-pre.c (phi_trans_add): Likewise.
7473 2011-04-20 Jakub Jelinek <jakub@redhat.com>
7475 PR tree-optimization/48611
7476 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
7477 beyond ERT_MUST_NOT_THROW region.
7479 2011-04-20 Catherine Moore <clm@codesourcery.com>
7481 * config/mips/mips.opt (mfix-24k): New.
7482 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
7483 * config/mips/mips.md (length): Increase by 4 for stores if
7485 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
7486 all noreorder if fixing 24K errata.
7487 * doc/invoke.texi: Document mfix-24k.
7489 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
7491 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
7492 quad-word modes, reduce to 9-bit index range when above 1016 limit.
7494 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
7496 * config/arm/arm.c (arm_gen_constant): Move movw support ....
7497 (const_ok_for_op): ... to here.
7499 2011-04-20 Kai Tietz <ktietz@redhat.com>
7501 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
7502 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
7504 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
7506 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
7508 2011-04-20 Richard Guenther <rguenther@suse.de>
7510 PR tree-optimization/47892
7511 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
7514 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
7516 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
7518 2011-04-20 Tristan Gingold <gingold@adacore.com>
7520 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
7522 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
7526 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
7527 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
7528 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
7529 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
7530 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
7532 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
7535 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
7536 (avr_asm_named_section, avr_asm_output_aligned_common,
7537 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
7538 New functions to update...
7539 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
7540 (avr_asm_init_sections): Overwrite section callbacks for
7541 data_section, bss_section.
7542 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
7544 (avr_file_end): ...here.
7546 2011-04-20 Richard Guenther <rguenther@suse.de>
7549 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
7550 objects and types here. Adjust for their offset before comparing.
7552 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
7554 * tree-vect-stmts.c (vectorizable_store): Only chain one related
7557 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
7559 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
7560 (GIMPLE_H): Include $(INTERNAL_FN_H).
7561 (OBJS-common): Add internal-fn.o.
7562 (internal-fn.o): New rule.
7563 * internal-fn.def: New file.
7564 * internal-fn.h: Likewise.
7565 * internal-fn.c: Likewise.
7566 * gimple.h: Include internal-fn.h.
7567 (GF_CALL_INTERNAL): New gf_mask.
7568 (gimple_statement_call): Put fntype into a union with a new
7570 (gimple_build_call_internal): Declare.
7571 (gimple_build_call_internal_vec): Likewise.
7572 (gimple_call_same_target_p): Likewise.
7573 (gimple_call_internal_p): New function.
7574 (gimple_call_internal_fn): Likewise.
7575 (gimple_call_fntype): Return null for internal calls.
7576 (gimple_call_set_fntype): Assert that the function is not internal.
7577 (gimple_call_set_fn): Likewise.
7578 (gimple_call_set_fndecl): Likewise.
7579 (gimple_call_set_internal_fn): New function.
7580 (gimple_call_addr_fndecl): Handle null functions.
7581 (gimple_call_return_type): Likewise null types.
7582 * gimple.c (gimple_build_call_internal_1): New function.
7583 (gimple_build_call_internal): Likewise.
7584 (gimple_build_call_internal_vec): Likewise.
7585 (gimple_call_same_target_p): Likewise.
7586 (gimple_call_flags): Handle calls to internal functions.
7587 (gimple_call_fnspec): New function.
7588 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
7589 (gimple_has_side_effects): Handle null functions.
7590 (gimple_rhs_has_side_effects): Likewise.
7591 (gimple_call_copy_skip_args): Handle calls to internal functions.
7592 * cfgexpand.c (expand_call_stmt): Likewise.
7593 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
7594 * gimple-fold.c (gimple_fold_call): Handle null functions.
7595 (gimple_fold_stmt_to_constant_1): Don't fold
7596 calls to internal functions.
7597 * gimple-low.c (gimple_check_call_args): Handle calls to internal
7599 * gimple-pretty-print.c (dump_gimple_call): Likewise.
7600 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
7601 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
7602 (do_warn_unused_result): Likewise.
7603 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
7604 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
7605 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
7606 the target of a call.
7607 (initialize_hash_element): Update accordingly.
7608 (hashable_expr_equal_p): Use gimple_call_same_target_p.
7609 (iterative_hash_hashable_expr): Handle calls to internal functions.
7610 (print_expr_hash_elt): Likewise.
7611 * tree-ssa-pre.c (can_value_number_call): Likewise.
7612 (eliminate): Handle null functions.
7613 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
7614 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
7615 (find_func_aliases): Likewise.
7616 * value-prof.c (gimple_ic_transform): Likewise.
7617 (gimple_indirect_call_to_profile): Likewise.
7618 * lto-streamer-in.c (input_gimple_stmt): Likewise.
7619 * lto-streamer-out.c (output_gimple_stmt): Likewise.
7621 2011-04-19 Jan Hubicka <jh@suse.cz>
7623 * ipa-inline-transform.c (save_inline_function_body): Add comments.
7624 * ipa-inline.c (inline_small_functions): Compute summaries first,
7625 populate heap later.
7627 2011-04-19 Jan Hubicka <jh@suse.cz>
7629 * cgraph.h (save_inline_function_body): Remove.
7630 * ipa-inline-transform.c: New file, broke out of...
7631 * ipa-inline.c: ... this one; Update toplevel comment.
7632 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
7634 (update_noncloned_frequencies): Move to ipa-inline-transform.c
7635 (cgraph_mark_inline_edge): Rename to inline_call; move to
7636 ipa-inline-transform.c.
7637 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
7638 move to ipa-inline-transform.c
7639 (recursive_inlining, inline_small_functions, flatten_function,
7640 ipa_inline, inline_always_inline_functions,
7641 early_inline_small_functions): Update.
7642 (inline_transform): Move to ipa-inline-transform.c.
7643 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
7645 * Makefile.in (ipa-inline-transform.o): New file.
7646 * cgraphunit.c (save_inline_function_body): Move to
7647 ipa-inline-transform.c
7649 2011-04-19 DJ Delorie <dj@redhat.com>
7651 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
7652 registers if we already know there aren't any.
7653 (m32c_emit_epilogue): Don't emit a barrier here.
7654 (m32c_emit_eh_epilogue): Likewise.
7655 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
7656 operands at expand time.
7657 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
7659 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
7660 duplicates. Provide aliases instead.
7661 * config/m32c/prologue.md (eh_return): Emit a barrier here.
7662 (eh_epilogue): Add a "(return)" here as a hint to other parts of
7665 2011-04-19 Anatoly Sokolov <aesok@post.ru>
7667 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
7668 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
7669 (general_or_i64_p, sparc_register_move_cost): New function.
7671 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7673 * doc/install.texi (Configuration, --enable-threads): Remove mach.
7674 Add lynx, mipssde. Sort table.
7676 2011-04-19 Xinliang David Li <davidxl@google.com>
7678 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
7681 2011-04-19 Jakub Jelinek <jakub@redhat.com>
7684 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
7685 is a SUBREG with non-MODE_INT mode inside of it.
7687 2011-04-19 Martin Jambor <mjambor@suse.cz>
7689 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
7690 also according to actual contants.
7691 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
7692 (gimple_fold_call): Use it.
7693 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
7695 2011-04-19 Martin Jambor <mjambor@suse.cz>
7697 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
7698 non-pointer assignments.
7700 2011-04-19 Martin Jambor <mjambor@suse.cz>
7702 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
7703 account anc_offset and otr_type from the indirect edge info.
7704 * ipa-prop.c (get_ancestor_addr_info): New function.
7705 (compute_complex_ancestor_jump_func): Assignment analysis moved to
7706 get_ancestor_addr_info, call it.
7707 (ipa_note_param_call): Do not initialize information about polymorphic
7708 calls, return the indirect call graph edge. Remove the last
7709 parameter, adjust all callers.
7710 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
7711 parameters. Initialize polymorphic information in the indirect edge.
7713 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
7716 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
7717 the types if they have different enumeration identifiers.
7719 2011-04-19 Jan Hubicka <jh@suse.cz>
7721 * cgraph.h (cgraph_optimize_for_size_p): Declare.
7722 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
7723 * predict.c (cgraph_optimize_for_size_p): Break out from ...
7724 (optimize_function_for_size_p) ... here.
7726 2011-04-19 Richard Guenther <rguenther@suse.de>
7729 * tree.c (free_lang_data): Do not reset the decl-assembler-name
7732 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
7734 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
7735 if DECL_NO_INLINE_WARNING_P is set on the function.
7737 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
7740 * reload1.c (inc_for_reload): Return void. All callers changed.
7741 (emit_input_reload_insns): Don't try to delete previous output
7742 reloads to a register, or record spill_reg_store for autoincs.
7744 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
7746 * gengtype.h: Updated copyright year.
7747 (struct input_file_st): Add inpisplugin field.
7748 (type_fileloc): New function.
7750 (write_typed_struct_alloc_def): Add gcc_assert.
7751 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
7752 (write_typed_alloc_defns): Don't output for plugin files.
7753 (input_file_by_name): Clear inpisplugin field.
7754 (main): Set inpisplugin field for plugin files.
7756 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
7758 * gengtype-state.c (string_eq): New.
7759 (read_state): Use string_eq instead of strcmp when creating the
7762 2011-04-19 Wei Guozhi <carrot@google.com>
7765 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
7766 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
7768 * config/arm/constraints.md (Uu): New constraint.
7769 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
7771 2011-04-19 Tristan Gingold <gingold@adacore.com>
7773 * config.gcc (-*-*-*vms): Added.
7774 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
7776 * config/vms/vms-ld.c: New file.
7777 * config/vms/vms-ar.c: New file.
7778 * config/vms/t-vmsnative: New file.
7780 2011-04-18 Xinliang David Li <davidxl@google.com>
7782 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
7784 2011-04-18 Jakub Jelinek <jakub@redhat.com>
7787 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
7788 if TREE_TYPE (v) is non-NULL.
7790 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
7791 gimple_get_virt_mehtod_for_binfo.
7792 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
7793 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
7795 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
7797 2011-04-18 Michael Matz <matz@suse.de>
7798 Steve Ellcey <sje@cup.hp.com>
7800 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
7801 use its mode as source mode if it isn't VOIDmode.
7803 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
7805 * doc/passes.texi: Fill crossref nodes.
7807 2011-04-18 Jim Meyering <meyering@redhat.com>
7809 Fix doubled-word typos in comments and strings
7810 * config/alpha/vms-unwind.h: s/for for/for/
7811 * config/arm/unwind-arm.h: Likewise.
7812 * config/microblaze/microblaze.c: Likewise.
7813 * config/sh/constraints.md: s/in in/in/
7814 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
7816 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
7818 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
7819 (AVX_FLOAT_MODE_P): Ditto.
7820 (AVX128_VEC_FLOAT_MODE_P): Ditto.
7821 (AVX256_VEC_FLOAT_MODE_P): Ditto.
7822 (AVX_VEC_FLOAT_MODE_P): Ditto.
7823 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
7824 (UNSPEC_MASKSTORE): Ditto.
7825 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
7826 Merge from <sse>_movmsk<ssemodesuffix> and
7827 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
7828 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
7830 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
7831 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
7832 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
7834 2011-04-18 Jan Hubicka <jh@suse.cz>
7836 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
7838 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
7839 (want_inline_function_called_once_p): Break out the logic from
7841 (edge_badness): Ensure that profile is not misupdated.
7842 (lookup_recursive_calls): Prioritize by call frequencies.
7843 (inline_small_functions): Move program size estimates here;
7844 actually process whole queue even when unit growth has been
7845 met. (to properly compute inline_failed reasons and for the
7846 case unit size decrease.) Revisit comments on recursive inlining.
7847 (ipa_inline): Remove unit summary code; first inline hot calls
7848 of functions called once, cold calls next.
7849 (order, nnodes): Remove unused variables.
7850 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
7851 (GTFILES): Remove ipa-inline.c
7852 * sel-sched.c (fill_insns): Silence uninitialized var warning.
7854 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
7856 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
7858 2011-04-18 Jie Zhang <jie@codesourcery.com>
7859 Richard Earnshaw <rearnsha@arm.com>
7861 * arm.c (neon_builtin_type_bits): Remove.
7862 (typedef enum neon_builtin_mode): New.
7863 (T_MAX): Don't define.
7864 (typedef enum neon_builtin_datum): Remove bits, codes[],
7865 num_vars and base_fcode. Add mode, code and fcode.
7866 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
7867 VAR10): Change accordingly.
7868 (neon_builtin_data[]): Change accordingly
7869 (arm_init_neon_builtins): Change accordingly.
7870 (neon_builtin_compare): Remove.
7871 (locate_neon_builtin_icode): Remove.
7872 (arm_expand_neon_builtin): Change accordingly.
7874 * arm.h (enum arm_builtins): Move to ...
7875 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
7877 * arm.c (arm_builtin_decl): Declare.
7878 (TARGET_BUILTIN_DECL): Define.
7879 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
7880 (arm_builtin_decls[]): New.
7881 (arm_init_neon_builtins): Store builtin declarations in
7882 arm_builtin_decls[].
7883 (arm_init_tls_builtins): Likewise.
7884 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
7885 (arm_builtin_decl): New.
7887 2011-04-18 Richard Guenther <rguenther@suse.de>
7889 * tree.c (upper_bound_in_type): Build properly canonicalized
7891 (lower_bound_in_type): Likewise.
7893 2011-04-18 Richard Guenther <rguenther@suse.de>
7895 * gimple.h (gimple_call_addr_fndecl): New function.
7896 (gimple_call_fndecl): Use it.
7897 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
7899 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
7900 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
7902 2011-04-18 Richard Guenther <rguenther@suse.de>
7905 * tree.c (build_string): STRING_CST is now derived from tree_typed.
7907 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
7910 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
7911 DECL_IN_CONSTANT_POOL without RTL.
7913 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
7914 Ira Rosen <ira.rosen@linaro.org>
7917 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
7918 to match neon_vzip/vuzp/vtrn_internal.
7919 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
7920 outputs explicitly dependent on both inputs.
7921 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
7923 2011-04-18 Jakub Jelinek <jakub@redhat.com>
7925 PR tree-optimization/48616
7926 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
7927 whether the shift is by scalar or vector based on whether all SLP
7928 scalar stmts have the same rhs.
7930 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
7932 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
7935 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
7938 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
7941 2011-04-17 Jan Hubicka <jh@suse.cz>
7943 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
7944 * cgrpahunit.c (cgraph_finalize_function): Do not set
7945 finalized_by_frontend.
7946 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
7947 finalized_by_frontend.
7949 2011-04-17 Jan Hubicka <jh@suse.cz>
7951 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
7952 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
7953 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
7954 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
7956 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
7958 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
7960 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
7963 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
7964 is non-null before accessing it.
7965 (input_cgraph): Remove trailing spaces.
7967 2011-04-17 Revital Eres <revital.eres@linaro.org>
7969 * params.def (sms-min-sc): New param flag.
7970 * modulo-sched.c (sms_schedule): Use it.
7971 * doc/invoke.texi (sms-min-sc): Document it.
7973 2011-04-17 Jan Hubicka <jh@suse.cz>
7975 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
7976 present, also set gimple_call_set_cannot_inline.
7977 * ipa-inline.c: Update toplevel comment.
7979 (cgraph_clone_inlined_nodes): Fix linebreaks.
7980 (cgraph_check_inline_limits): Restructure to ...
7981 (caller_growth_limits): ... this one; be more tolerant
7982 on growth in nested inline chains; add explanatory comment;
7983 fix stack accounting thinko introduced by previous patch.
7984 (cgraph_default_inline_p): Remove.
7985 (report_inline_failed_reason): New function.
7986 (can_inline_edge_p): New function.
7987 (can_early_inline_edge_p): New function.
7988 (leaf_node_p): Move upwards in file.
7989 (want_early_inline_function_p): New function.
7990 (want_inline_small_function_p): New function.
7991 (want_inline_self_recursive_call_p): New function.
7992 (cgraph_edge_badness): Rename to ...
7993 (edge_badness) ... this one; fix linebreaks.
7994 (update_edge_key): Update call of edge_baddness; add
7995 detailed dump about queue updates.
7996 (update_caller_keys): Use can_inline_edge_p and
7997 want_inline_small_function_p.
7998 (cgraph_decide_recursive_inlining): Rename to...
7999 (recursive_inlining): Use can_inline_edge_p and
8000 want_inline_self_recursive_call_p; simplify and remove no longer
8002 (cgraph_set_inline_failed): Remove.
8003 (add_new_edges_to_heap): Use can_inline_edge_p and
8004 want_inline_small_function_p.
8005 (cgraph_decide_inlining_of_small_functions): Rename to ...
8006 (inline_small_functions): ... this one; cleanup; use
8007 can/want predicates; cleanup debug ouput; work edges till fibheap
8008 is exhausted and do not stop once unit growth is reached; remove
8009 later loop processing remaining edges.
8010 (cgraph_flatten): Rename to ...
8011 (flatten_function): ... this one; use can_inline_edge_p
8012 and can_early_inline_edge_p predicates.
8013 (cgraph_decide_inlining): Rename to ...
8014 (ipa_inline): ... this one; remove unreachable nodes before
8015 inlining functions called once; simplify the pass.
8016 (cgraph_perform_always_inlining): Rename to ...
8017 (inline_always_inline_functions): ... this one; use
8018 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
8019 (cgraph_decide_inlining_incrementally): Rename to ...
8020 (early_inline_small_functions): ... this one; simplify
8021 using new predicates; cleanup; make dumps prettier.
8022 (cgraph_early_inlining): Rename to ...
8023 (early_inliner): newer inline regular functions into always-inlines;
8024 fix updating of call stmt summaries.
8025 (pass_early_inline): Update for new names.
8026 (inline_transform): Fix formating.
8027 (gate_cgraph_decide_inlining): Rename to ...
8028 (pass_ipa_inline): ... this one.
8029 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
8030 * ipa-inline-analysis.c (dump_inline_summary): Update.
8031 (compute_inline_parameters): Do not compute disregard_inline_limits;
8032 look for mismatching arguments.
8033 (estimate_growth): Fix handlig of non-trivial self recursion.
8034 (inline_read_summary): Do not read info->disregard_inline_limits.
8035 (inline_write_summary): Do not write info->disregard_inline_limits.
8036 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
8037 and move all checks into can_inline_edge_p predicate; re-enable code
8038 comparing optimization levels.
8039 (expand_call_inline): Do not test inline_forbidden_into_p.
8040 * Makefile.in (ipa-inline.o): Update arguments.
8042 2011-04-17 Revital Eres <revital.eres@linaro.org>
8044 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
8046 2011-04-17 Revital Eres <revital.eres@linaro.org>
8048 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
8050 2011-04-17 Michael Matz <matz@suse.de>
8052 PR tree-optimization/48622
8054 * ipa-inline-analysis.c (inline_read_summary): Read size/time
8055 in same order as they're written.
8057 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8059 * config/pa/predicates.md: Reorganize and simplify predicates.
8060 Eliminate duplicate code checks.
8061 (arith_operand): Rename to arith14_operand
8062 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
8063 * config/pa/pa.md: Use renamed operands.
8064 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
8065 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
8066 arith11_operand, adddi3_operand, indexed_memory_operand,
8067 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
8068 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
8069 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
8070 move_dest_operand, move_src_operand, prefetch_cc_operand,
8071 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
8072 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
8073 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
8074 div_operand, int5_operand, movb_comparison_operator,
8075 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
8076 arith_double_operand, ireg_operand, lhs_lshift_operand,
8077 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
8078 integer_store_memory_operand): Likewise.
8079 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
8080 (integer_store_memory_operand, read_only_operand,
8081 function_label_operand, borx_reg_operand,
8082 non_hard_reg_operand): Likewise.
8083 (eq_neq_comparison_operator): Delete unused operator.
8084 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
8085 function_label_operand.
8086 (emit_move_sequence): Likewise.
8088 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
8090 * config/i386/sse.md (sseunpackmode): New mode attribute.
8091 (ssepackmode): Ditto.
8092 (vec_pack_trunc_<mode>): Macroize expander from
8093 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
8094 (vec_unpacks_lo_<mode>): Macroize expander from
8095 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
8096 (vec_unpacks_hi_<mode>): Macroize expander from
8097 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
8098 (vec_unpacku_lo_<mode>): Macroize expander from
8099 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
8100 (vec_unpacku_hi_<mode>): Macroize expander from
8101 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
8102 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
8103 ix86_expand_sse4_unpack.
8104 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
8106 2011-04-16 Jan Hubicka <jh@suse.cz>
8108 * cgraphbuild.c: Include ipa-inline.h.
8109 (reset_inline_failed): Use initialize_inline_failed.
8110 * cgraph.c: Include ipa-inline.h.
8111 (cgraph_create_node_1): Do not initialize estimated_growth.
8112 (initialize_inline_failed): More to ipa-inline-analysis.c
8113 (dump_cgraph_node): Do not dump inline flags.
8114 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
8115 and disregard_inline_limits flags.
8116 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
8117 time, size, estimated_growth.
8118 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
8120 * cgraphunit.c (cgraph_decide_is_function_needed): Use
8121 DECL_DISREGARD_INLINE_LIMITS.
8122 (cgraph_analyze_function): Do not initialize
8123 node->local.disregard_inline_limits.
8124 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
8125 inlinable, versionable and disregard_inline_limits.
8126 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
8127 cgraph_check_inline_limits, cgraph_default_inline_p,
8128 cgraph_edge_badness, update_caller_keys, update_callee_keys,
8129 add_new_edges_to_heap): Update.
8130 (cgraph_decide_inlining_of_small_function): Update; set
8131 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
8132 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
8133 cgraph_decide_inlining_incrementally): Update.
8134 * ipa-inline.h (inline_summary): Add inlinable, versionable,
8135 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
8136 time, size and estimated_growth parameters.
8137 (estimate_edge_growth): Update.
8138 (initialize_inline_failed): Declare.
8139 * ipa-split.c: Include ipa-inline.h
8140 (execute_split_functions): Update.
8141 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
8142 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
8143 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
8144 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
8145 estimated_growth to INT_MIN.
8146 (inline_node_duplication_hook): Likewise.
8147 (dump_inline_summary): Dump new fields.
8148 (compute_inline_parameters): Update.
8149 (estimate_edge_time, estimate_time_after_inlining,
8150 estimate_size_after_inlining, estimate_growth, inline_read_summary,
8151 inline_write_summary):
8152 (initialize_inline_failed): Move here from cgraph.c.
8153 * tree-sra.c: Include ipa-inline.h.
8154 (ipa_sra_preliminary_function_checks): Update.
8155 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
8158 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
8160 * config/i386/sse.md (V16): New mode iterator.
8162 (AVXMODEQI, AVXMODEDI): Remove.
8163 (sse2, sse3): New mode attribute.
8164 (mov<mode>): Use V16 mode iterator.
8165 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
8166 (push<mode>1): Use V16 mode iterator.
8167 (movmisalign<mode>): Ditto.
8168 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
8169 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
8170 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
8171 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
8172 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
8173 avx_movdqu<avxmodesuffix>.
8174 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
8175 *avx_movdqu<avxmodesuffix>.
8176 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
8177 avx_lddqu<avxmodesuffix>.
8178 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
8179 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
8180 avx_movnt<AVXMODEDI:mode>.
8181 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
8182 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
8184 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
8187 * haifa-sched.c (prune_ready_list, schedule_block): Use
8188 sched_pressure_p rather than flag_sched_pressure.
8190 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
8192 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
8193 cgraph_get_node instead of cgraph_get_create_node.
8195 2011-04-15 Jakub Jelinek <jakub@redhat.com>
8197 * cfgexpand.c (expand_debug_expr): Use
8198 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
8200 2011-04-15 Michael Matz <matz@suse.de>
8202 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
8203 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
8204 * function.c (gimplify_parameters): Ditto.
8205 * gimplify.c (gimplify_vla_decl): Ditto.
8207 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
8208 (gimple_call_set_alloca_for_var): New inline function.
8209 (gimple_call_alloca_for_var_p): Ditto.
8210 * gimple.c (gimple_build_call_from_tree): Remember
8211 CALL_ALLOCA_FOR_VAR_P state.
8212 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
8214 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
8215 calls if they were for VLA objects.
8217 2011-04-15 Martin Jambor <mjambor@suse.cz>
8219 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
8222 2011-04-15 Martin Jambor <mjambor@suse.cz>
8225 * tree-emutls.c (lower_emutls_function_body): Call
8226 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
8229 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
8231 * c-decl.c (detect_field_duplicates): Call
8232 objc_detect_field_duplicates instead of objc_get_interface_ivars.
8234 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
8236 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
8237 * gimple.c (gimple_asm_clobbers_memory_p): Define.
8238 * ipa-pure-const.c (check_stmt): Call it.
8239 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
8241 2011-04-15 Richard Guenther <rguenther@suse.de>
8243 PR tree-optimization/48290
8244 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
8245 Properly decide inhibiting propagation based on the valueized
8246 operand. Do loop-closed SSA form preserving here ...
8247 (init_copy_prop): ... not here.
8249 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
8252 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
8253 (*ieee_smax<mode>3): Likewise.
8255 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8257 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
8258 Replace match_operand with match_dup for the third operand in
8261 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
8263 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
8264 to track processing of conditionals. Update all callers.
8265 (try_combine, simplify_if_then_else): Update.
8267 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
8269 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
8272 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
8274 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
8275 instead of match_operand for operand 3.
8277 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
8279 * recog.h (insn_operand_data): Add an "allows_mem" field.
8280 * genoutput.c (output_operand_data): Initialize it.
8281 * optabs.c (maybe_legitimize_operand_same_code): New function.
8282 (maybe_legitimize_operand): Use it when matching the original
8285 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
8287 * gimplify.c: Fix issues in comments throughout.
8288 (voidify_wrapper_expr): Fix long line.
8289 (build_stack_save_restore): Likewise.
8290 (gimplify_loop_expr): Likewise.
8291 (gimplify_compound_lval): Likewise.
8292 (gimplify_init_ctor_eval): Likewise.
8293 (gimplify_modify_expr_rhs): Likewise.
8294 (omp_notice_threadprivate_variable): Likewise.
8296 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
8298 * cfgexpand.c (expand_call_stmt): Convert the function type to the
8299 original one if this is not a builtin function.
8301 2011-04-14 Jakub Jelinek <jakub@redhat.com>
8304 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
8305 offset it as needed based on top 2 bits in operands[3], change
8306 MEM mode to SFmode and mask those 2 bits away from operands[3].
8308 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
8310 * c-parser.c (c_parser_objc_protocol_definition): Updated for
8311 change from objc_declare_protocols() to objc_declare_protocol().
8313 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
8315 * config/i386/sse.md (sse4_1): New mode attribute.
8316 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
8317 avx_blend<ssemodesuffix><avxmodesuffix> and
8318 sse4_1_blend<ssemodesuffix> using VF mode iterator.
8319 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
8320 avx_blendv<ssemodesuffix><avxmodesuffix> and
8321 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
8322 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
8323 avx_dp<ssemodesuffix><avxmodesuffix> and
8324 sse4_1_dp<ssemodesuffix> using VF mode iterator.
8325 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
8326 (sse4_1_packusdw): Merge with *avx_packusdw.
8327 (sse4_1_pblendvb): Merge with *avx_pblendvb.
8328 (sse4_1_pblendw): Merge with *avx_pblendw.
8329 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
8330 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
8331 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
8333 (sse4_1_round<ssescalarmodesuffix>): Merge with
8334 *avx_round<ssescalarmodesuffix>.
8335 (aesenc): Merge with *avx_aesenc.
8336 (aesenclast): Merge with *avx_aesenclast.
8337 (aesdec): Merge with *avx_aesdec.
8338 (aesdeclast): Merge with *avx_aesdeclast.
8339 (pclmulqdq): Merge with *pclmulqdq.
8340 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
8342 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
8344 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
8347 * cfgexpand.c (get_decl_align_unit): Renamed to ...
8348 (align_local_variable): This. Update DECL_ALIGN.
8349 (add_stack_var): Updated.
8350 (expand_one_stack_var): Likewise.
8352 2011-04-14 Richard Guenther <rguenther@suse.de>
8354 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
8356 (dse_initialize_block_local_data, dse_leave_block,
8357 record_voperand_set, get_stmt_uid): Likewise.
8358 (dse_possible_dead_store_p): Allow any kind of killing stmt.
8359 (dse_optimize_stmt): Remove voperand set handling code.
8360 Simplify and improve to handle any kind of killing stmt.
8361 (dse_record_phi): Remove.
8362 (dse_enter_block): Simplify.
8363 (tree_ssa_dse): Likewise.
8364 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
8366 2011-04-14 Jan Hubicka <jh@suse.cz>
8368 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
8369 * cgraph.h (struct inline_summary): Move to ipa-inline.h
8370 (cgraph_local_info): Remove inline_summary.
8371 * ipa-cp.c: Include ipa-inline.h.
8372 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
8373 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
8375 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
8376 (input_overwrite_node): Do not set inline summary.
8377 (input_node): Do not stream inline summary.
8378 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
8379 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
8380 growth; we do not have inline parameters computed for that anyway.
8381 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
8382 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
8383 (inline_summary_t): New type and VECtor.
8384 (debug_inline_summary, dump_inline_summaries): Declare.
8385 (inline_summary): Use VOCtor.
8386 (estimate_edge_growth): Kill hack computing call stmt size directly.
8387 * lto-section-in.c (lto_section_name): Add inline section.
8388 * ipa-inline-analysis.c: Include lto-streamer.h
8389 (node_removal_hook_holder, node_duplication_hook_holder): New holders
8390 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
8391 (inline_summary_vec): Define.
8392 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
8393 dump_inline_summaries): New functions.
8394 (estimate_function_body_sizes): Properly compute size/time of outgoing
8396 (compute_inline_parameters): Alloc inline_summary; do not compute
8397 size/time of incomming calls.
8398 (estimate_edge_time): Avoid missing time summary hack.
8399 (inline_read_summary): Read inline summary info.
8400 (inline_write_summary): Write inline summary info.
8401 (inline_free_summary): Free all hooks and inline summary vector.
8402 * lto-streamer.h: Add LTO_section_inline_summary section.
8403 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
8404 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
8406 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
8408 * tree-vectorizer.h (vect_strided_store_supported): Add a
8409 HOST_WIDE_INT argument.
8410 (vect_strided_load_supported): Likewise.
8411 (vect_permute_store_chain): Return void.
8412 (vect_transform_strided_load): Likewise.
8413 (vect_permute_load_chain): Delete.
8414 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
8415 count argument. Check that the count is a power of two.
8416 (vect_strided_load_supported): Likewise.
8417 (vect_permute_store_chain): Return void. Update after above changes.
8418 Assert that the access is supported.
8419 (vect_permute_load_chain): Likewise.
8420 (vect_transform_strided_load): Return void.
8421 * tree-vect-stmts.c (vectorizable_store): Update calls after
8422 above interface changes.
8423 (vectorizable_load): Likewise.
8424 (vect_analyze_stmt): Don't check for strided powers of two here.
8426 2011-04-14 Richard Guenther <rguenther@suse.de>
8428 PR tree-optimization/48590
8429 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
8430 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
8431 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
8432 BUILT_IN_STACK_SAVE.
8433 * tree-ssa-dce.c (propagate_necessity): Handle
8434 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
8436 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
8438 * c-parser.c (c_parser_objc_class_declaration): Updated call to
8441 2011-04-14 Richard Guenther <rguenther@suse.de>
8443 * tree.h (get_object_alignment_1): Declare.
8444 * builtins.c (get_object_alignment_1): Split out worker from ...
8445 (get_object_alignment): ... here.
8446 * fold-const.c (get_pointer_modulus_and_residue): Use
8447 get_object_alignment_1.
8449 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
8451 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
8453 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
8454 parameter. Generalise code to handle arrays as well as vectors.
8455 (vect_setup_realignment): Update accordingly.
8456 * tree-vect-stmts.c (vectorizable_store): Likewise.
8457 (vectorizable_load): Likewise.
8459 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
8461 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
8462 within the per-copy loop.
8464 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
8466 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
8469 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
8471 * doc/options.texi (Negative): Explicitly mention that the
8472 Negative chain must be circular.
8474 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
8476 * function.h (block_chainon): Declare.
8477 * function.c (block_chainon): Define.
8479 2011-04-14 Anatoly Sokolov <aesok@post.ru>
8480 Eric Weddington <eric.weddington@atmel.com>
8481 Georg-Johann Lay <avr@gjlay.de>
8483 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
8485 (avr_init_builtins, avr_expand_builtin,
8486 avr_expand_delay_cycles, avr_expand_unop_builtin,
8487 avr_expand_binop_builtin ): New functions.
8488 (avr_builtin_id): New enum
8489 (struct avr_builtin_description): New struct
8490 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
8491 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
8493 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
8494 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
8495 UNSPECV_DELAY_CYCLES): new enumeration values
8496 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
8497 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
8498 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
8499 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
8500 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
8501 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
8502 "fmulsu"): New insns
8504 * config/avr/avr-c.c: fix line endings
8505 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
8506 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
8507 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
8508 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
8509 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
8511 * doc/extend.texi (AVR Built-in Functions): New node
8512 (Target Builtins): Add documentation of AVR
8515 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
8518 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
8519 alone. Error if non-const data has attribute progmem.
8521 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
8523 * tree.h (struct tree_constructor): Include tree_typed instead of
8525 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
8526 TS_TYPED instead of TS_COMMON.
8528 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
8530 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
8531 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
8532 (sse2_psadbw): Merge with *avx_psadbw.
8533 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
8534 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
8535 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
8536 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
8537 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
8538 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
8539 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
8540 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
8541 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
8542 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
8543 (ssse3_palignrti): Merge with *avx_palignrti.
8545 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
8547 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
8548 * tree-ssanames.c (fini_ssanames): VEC_free it.
8549 (make_ssa_name_fn): Update for VECness of free_ssanames.
8550 (release_ssa_name, release_dead_ssa_names): Likewise.
8551 * tree.h (struct tree_ssa_name): Include tree_typed instead of
8553 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
8554 TS_TYPED instead of TS_COMMON.
8556 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
8558 * postreload-gcse.c (gcse_after_reload_main): Add calls to
8559 statistics_counter_event.
8560 * tree-ssa-copyrename.c (stats): Define.
8561 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
8562 statistics_counter_event.
8563 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
8564 (bswap_stats, widen_mul_stats): Define.
8565 (insert_reciprocals): Increment rdivs_inserted.
8566 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
8567 rfuncs_inserted. Add calls to statistics_counter_event.
8568 (execute_cse_sincos_1): Increment inserted.
8569 (execute_cse_sincos): Zeroize sincos_stats. Add call to
8570 statistics_counter_event.
8571 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
8572 of bswap_stats. Add calls to statistics_counter_event.
8573 (convert_mult_to_widen): Increment widen_mults_inserted.
8574 (convert_plusminus_to_widen): Increment maccs_inserted.
8575 (convert_mult_to_fma): Increment fmas_inserted.
8576 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
8577 calls to statistics_counter_event.
8579 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
8581 PR rtl-optimization/48455
8582 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
8583 `temp_costs->mem_cost'.
8585 2011-04-13 Jan Hubicka <jh@suse.cz>
8587 * ipa-inline.h: New file.
8588 * ipa-inline-analysis.c: New file. Broken out of ...
8589 * ipa-inline.c: ... this file; update toplevel comment;
8590 include ipa-inline.h
8591 (inline_summary): Move to ipa-inline.h
8592 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
8593 ipa-inline-analysis.c.
8594 (cgraph_estimate_time_after_inlining): Rename to
8595 estiamte_time_after_inlining; move to ipa-inline-analysis.c
8596 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
8597 to estimate_edge_growth.
8598 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
8599 rename to estimate_size_after_inlining.
8600 (cgraph_mark_inline_edge): Update for new naming convention.
8601 (cgraph_check_inline_limits): Likewise.
8602 (cgraph_edge_badness): Likewise.
8603 (cgraph_decide_recursive_inlining): Likewise.
8604 (cgraph_decide_inlining_of_small_functions): Likewise.
8605 (cgraph_decide_inlining_incrementally): Likewise.
8606 (cgraph_estimate_growth): Rename to estimate_growth; move to
8607 ipa-inline-analysis.c.
8608 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
8609 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
8610 (compute_inline_parameters): Likewise.
8611 (compute_inline_parameters_for_current): Likewise.
8612 (pass_inline_parameters): Likewise.
8613 (inline_indirect_intraprocedural_analysis): Likewise.
8614 (analyze_function): Rename to inline_analyze_function; likewise.
8615 (add_new_function): Move to ipa-inline-analysis.c.
8616 (inline_generate_summary): Likewise.
8617 (inline_read_summary): Likewise.
8618 (inline_write_summary): Likewise.
8619 * Makefile.in (ipa-inline-analysis.c): New file.
8621 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8623 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
8624 * configure: Regenerate.
8626 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
8628 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
8629 instead of tree_common.
8630 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
8632 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
8633 TS_TYPED rather than TS_COMMON.
8634 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
8636 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
8639 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
8640 r20 around calls of __tablejump_elpm__
8642 2011-04-13 Jakub Jelinek <jakub@redhat.com>
8645 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
8647 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
8649 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
8651 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
8652 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
8653 (cfi_vec): New typedef.
8654 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
8655 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
8656 (cie_cfi_vec): New static variable.
8657 (cie_cfi_head): Delete.
8658 (add_cfi): Accept a cfi_vec * as first argument. All callers and
8659 declaration changed. Use vector rather than list operations.
8660 (new_cfi): Don't initialize the dw_cfi_next field.
8661 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
8662 rather than list operations.
8663 (lookup_cfa): Use vector rather than list operations.
8664 (output_cfis): New argument upto. Accept a cfi_vec rather than
8665 a dw_cfi_ref list head as argument. All callers changed.
8666 Iterate over the vector using upto as a maximum index.
8667 (output_all_cfis): New static function.
8668 (output_fde): Use vector rather than list operations. Use the
8669 new upto argument for output_cfis rather than manipulating a
8671 (dwarf2out_begin_prologue): Change initializations to match
8673 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
8674 from the vector length rather than searching for the end of a list.
8675 Use output_all_cfis.
8676 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
8678 2011-04-13 Nick Clifton <nickc@redhat.com>
8680 * config/rx/rx.md (movmemsi): Do not use this pattern when
8681 volatile pointers are involved.
8683 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
8685 * config/i386/sse.md (pinsrbits): Remove.
8686 (sse2_packsswb): Merge with *avx_packsswb.
8687 (sse2_packssdw): Merge with *avx_packssdw.
8688 (sse2_packuswb): Merge with *avx_packuswb.
8689 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
8690 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
8691 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
8692 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
8693 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
8694 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
8695 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
8696 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
8697 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
8698 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
8699 (sse2_loadld): Merge with *avx_loadld.
8700 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
8701 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
8702 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
8703 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
8704 (vec_concatv2di): Merge with *vec_concatv2di_avx.
8706 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
8708 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
8710 * print-tree.c (print_node): Likewise.
8711 * tree-inline.c (copy_tree_r): Likewise.
8712 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
8713 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
8714 instead of TS_COMMON.
8715 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
8716 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
8717 (copy_node_stat): Zero TREE_CHAIN only if necessary.
8718 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
8719 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
8721 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
8723 (TREE_CHAIN): Check for a TS_COMMON structure.
8724 (TREE_TYPE): Check for a TS_TYPED structure.
8726 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
8728 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
8729 cgraph_get_create_node instead of cgraph_node.
8731 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
8733 * c-parser.c (c_parser_initelt): Updated call to
8734 objc_build_message_expr.
8735 (c_parser_postfix_expression): Likewise.
8737 2011-04-12 Kai Tietz <ktietz@redhat.com>
8739 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
8740 MASK_MS_BITFIELD_LAYOUT bit.
8742 2011-04-12 Jakub Jelinek <jakub@redhat.com>
8744 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
8745 assert it is always true.
8746 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
8749 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
8751 * c-parser.c (c_lex_one_token): Rewritten conditional used when
8752 compiling Objective-C to be more efficient.
8754 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
8756 * opts-common.c (decode_cmdline_options_to_array): Remove variable
8759 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
8761 * recog.h, genoutput.c, optabs.c: Revert last patch.
8763 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8766 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
8768 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
8770 * recog.h (insn_operand_data): Add an "allows_mem" field.
8771 * genoutput.c (output_operand_data): Initialize it.
8772 * optabs.c (maybe_legitimize_operand_same_code): New function.
8773 (maybe_legitimize_operand): Use it when matching the original
8776 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
8778 * genpreds.c (process_define_predicate): Move most processing
8779 to gensupport.c. Continue to validate the expression.
8780 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
8781 (process_define_predicate): Move processing to gensupport.c.
8782 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
8783 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
8784 (compute_predicate_codes): Moved from genrecog.c. Add lineno
8786 (valid_predicate_name_p): New function, split out from old
8787 genpreds.c:process_define_predicate.
8788 (process_define_predicate): New function, combining code from
8789 old genpreds.c and genrecog.c functions.
8790 (process_rtx): Call it for DEFINE_PREDICATE and
8791 DEFINE_SPECIAL_PREDICATE.
8793 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
8795 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
8796 size of a '%A' memory reference.
8797 (T_DREG, T_QREG): New neon_builtin_type_bits.
8798 (arm_init_neon_builtins): Assert that the load and store operands
8799 are neon_struct_operands.
8800 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
8801 (NEON_ARG_MEMORY): New builtin_arg.
8802 (neon_dereference_pointer): New function.
8803 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
8804 Handle NEON_ARG_MEMORY.
8805 (arm_expand_neon_builtin): Update after above interface changes.
8806 Use NEON_ARG_MEMORY for loads and stores.
8807 * config/arm/predicates.md (neon_struct_operand): New predicate.
8808 * config/arm/iterators.md (V_two_elem): Tweak formatting.
8809 (V_three_elem): Use BLKmode for accesses that have no associated mode.
8810 (V_four_elem): Tweak formatting.
8811 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
8812 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
8813 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
8814 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
8815 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
8816 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
8817 (neon_vst4<mode>): Replace pointer operand with a memory operand.
8818 Use %A in the output template.
8819 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
8820 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
8821 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
8822 the width of the memory access. Remove post-increment.
8823 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
8825 2011-04-12 Nick Clifton <nickc@redhat.com>
8827 * config/v850/v850.c (expand_prologue): Do not use the CALLT
8828 instruction for interrupt handlers if the target is the basic V850
8830 (expand_epilogue): Likewise.
8832 2011-04-12 Jakub Jelinek <jakub@redhat.com>
8834 PR rtl-optimization/48549
8835 * combine.c (propagate_for_debug): Also stop after BB_END of
8836 this_basic_block. Process LAST and just stop processing after it.
8837 (combine_instructions): If last_combined_insn has been deleted,
8838 set last_combined_insn to its PREV_INSN.
8840 2011-04-12 Richard Guenther <rguenther@suse.de>
8842 PR tree-optimization/46076
8843 * gimple.h (struct gimple_statement_call): Add fntype field.
8844 (gimple_call_fntype): Adjust.
8845 (gimple_call_set_fntype): New function.
8846 * gimple.c (gimple_build_call_1): Set the call function type.
8847 * gimplify.c (gimplify_call_expr): Preserve the function
8848 type the frontend used for the call.
8849 (gimplify_modify_expr): Likewise.
8850 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
8852 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
8854 * tree-ssa.c (useless_type_conversion_p): Function pointer
8855 conversions are useless.
8857 2011-04-12 Martin Jambor <mjambor@suse.cz>
8859 * cgraph.h (cgraph_node): Remove function declaration.
8860 (cgraph_create_node): Declare.
8861 (cgraph_get_create_node): Likewise.
8862 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
8863 Updated all callers.
8864 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
8865 the decl does not already exist. Call cgraph_get_create_node instead
8867 (cgraph_get_create_node): New function.
8868 (cgraph_same_body_alias): Update comment.
8869 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
8870 assert it does not return NULL.
8871 (cgraph_update_edges_for_call_stmt): Likewise.
8872 (cgraph_clone_edge): Likewise.
8873 (cgraph_create_virtual_clone): Likewise.
8874 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
8875 instead of cgraph_node.
8876 (cgraph_add_new_function): Call cgraph_create_node or
8877 cgraph_get_create_node instead of cgraph_node.
8878 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
8879 instead of cgraph_node.
8880 (record_eh_tables): Likewise.
8881 (mark_address): Likewise.
8882 (mark_load): Likewise.
8883 (build_cgraph_edges): Call cgraph_get_create_node instead
8885 (rebuild_cgraph_edges): Likewise.
8886 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
8887 instead of cgraph_node.
8888 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
8890 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
8891 cgraph_create_node instead of cgraph_node.
8892 * c-decl.c (finish_function): Call cgraph_get_create_node instead
8894 * lto-cgraph.c (input_node): Likewise.
8895 * lto-streamer-in.c (input_function): Likewise.
8896 * varasm.c (mark_decl_referenced): Likewise.
8897 (assemble_alias): Likewise.
8899 2011-04-12 Martin Jambor <mjambor@suse.cz>
8901 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
8902 instead of cgraph_node and assert it does not return NULL.
8903 * lto-streamer-in.c (lto_read_body): Likewise.
8904 * omp-low.c (new_omp_context): Likewise.
8905 (create_task_copyfn): Likewise.
8906 * tree-emutls.c (lower_emutls_function_body): Likewise.
8907 * matrix-reorg.c (transform_allocation_sites): Likewise.
8909 2011-04-12 Jakub Jelinek <jakub@redhat.com>
8912 * c-typeck.c (build_asm_expr): Error out on attempts to use
8913 void type outputs or inputs for constraints that allow reg or
8916 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
8917 Richard Earnshaw <rearnsha@arm.com>
8920 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
8921 to use sign-magnitude offsets. Reject unsupported unaligned
8922 cases. Add detailed description in comments.
8923 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
8924 condition from TARGET_32BIT to TARGET_ARM.
8926 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
8928 * tree.h (struct typed_tree): New.
8929 (struct tree_common): Include it instead of tree_base.
8930 (TREE_TYPE): Update for new location of type field.
8931 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
8932 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
8933 (union tree_node): Add typed field.
8934 * treestruct.def (TS_TYPED): New.
8935 * lto-streamer.c (check_handled_ts_structures): Handle it.
8936 * tree.c (MARK_TS_TYPED): New macro.
8937 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
8939 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
8941 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
8942 (force_nonfallthru): Do not alter the loop nest if no basic block
8945 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
8947 * config/i386/sse.md (VI): New mode iterator.
8949 (AVX256MODEI): Ditto.
8950 (AVXMODEF4P): Ditto.
8951 (avxvecpsmode): Ditto.
8952 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
8953 (sse2_andnot<mode>3): New expander.
8954 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
8955 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
8956 (<any_logic:code><mode>3): Use VI mode iterator.
8957 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
8958 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
8959 (*andnottf3): Handle AVX three-operand constraints.
8960 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
8962 2011-04-11 Joseph Myers <joseph@codesourcery.com>
8963 Robert Millan <rmh@gnu.org>
8965 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
8966 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
8967 GNU_USER_DYNAMIC_LINKER64): Define.
8968 (REG_NAME): Don't undefine.
8969 (MD_UNWIND_SUPPORT): Undefine.
8970 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
8971 (REG_NAME): Don't undefine.
8972 (MD_UNWIND_SUPPORT): Undefine.
8973 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
8975 2011-04-11 Joseph Myers <joseph@codesourcery.com>
8977 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
8978 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
8980 2011-04-11 Xinliang David Li <davidxl@google.com>
8982 * value-profile.c (check_ic_target): New function.
8983 (gimple_ic_transform): Sanity check indirect call target.
8984 * gimple-low.c (gimple_check_call_args): Interface change.
8985 (gimple_check_call_matching_types): New function.
8986 * tree-inline.c (tree_can_inline_p): Call new function.
8988 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
8990 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
8991 tree-pretty-print.h & realmpfr.h.
8993 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
8996 * ira.c (setup_pressure_classes): Fix typo in loop condition.
8997 (setup_allocno_and_important_classes): Ditto.
8999 2011-04-11 Joseph Myers <joseph@codesourcery.com>
9001 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
9002 GNU_USER_DYNAMIC_LINKER.
9003 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
9004 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9005 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
9006 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
9007 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
9008 GNU_USER_TARGET_OS_CPP_BUILTINS.
9009 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
9010 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9011 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
9012 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9013 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
9014 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
9015 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
9016 GNU_USER_TARGET_OS_CPP_BUILTINS.
9017 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9018 GNU_USER_DYNAMIC_LINKER.
9019 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
9020 GNU_USER_TARGET_OS_CPP_BUILTINS.
9021 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
9022 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9023 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
9024 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9025 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
9026 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
9027 GNU_USER_DYNAMIC_LINKER64): Remove.
9028 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
9029 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9030 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9031 GNU_USER_DYNAMIC_LINKER.
9032 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
9033 GNU_USER_TARGET_OS_CPP_BUILTINS.
9034 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
9035 GNU_USER_TARGET_OS_CPP_BUILTINS.
9036 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
9037 to GNU_USER_TARGET_OS_CPP_BUILTINS.
9038 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
9039 GNU_USER_TARGET_OS_CPP_BUILTINS.
9040 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
9041 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
9042 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
9043 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
9044 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9045 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9046 GNU_USER_DYNAMIC_LINKER.
9047 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
9048 GNU_USER_TARGET_OS_CPP_BUILTINS.
9049 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
9050 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9051 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9052 GNU_USER_DYNAMIC_LINKER.
9053 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
9054 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9055 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
9056 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9057 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9058 GNU_USER_DYNAMIC_LINKER.
9059 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
9060 GNU_USER_DYNAMIC_LINKERN32.
9061 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
9062 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
9063 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
9064 GNU_USER_DYNAMIC_LINKER32.
9065 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
9066 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9067 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9068 GNU_USER_DYNAMIC_LINKER.
9069 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
9070 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9071 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
9072 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9073 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
9074 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
9075 GNU_USER_DYNAMIC_LINKER32.
9076 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
9077 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
9078 GNU_USER_DYNAMIC_LINKER.
9079 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
9080 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9081 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
9082 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
9083 GNU_USER_DYNAMIC_LINKER64.
9084 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
9085 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9086 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9087 GNU_USER_DYNAMIC_LINKER.
9088 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
9089 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9090 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9091 GNU_USER_DYNAMIC_LINKER.
9092 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
9093 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9094 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
9095 GNU_USER_DYNAMIC_LINKER32.
9096 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
9097 GNU_USER_DYNAMIC_LINKER64.
9098 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
9099 GNU_USER_DYNAMIC_LINKER64.
9100 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
9101 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9102 * config/xtensa/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.
9106 2011-04-11 Joseph Myers <joseph@codesourcery.com>
9108 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
9109 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
9110 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
9111 GNU_USER_DYNAMIC_LINKER.
9112 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
9113 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
9114 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
9115 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
9116 GNU_USER_DYNAMIC_LINKER64.
9117 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
9118 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
9119 GNU_USER_LINK_EMULATION.
9120 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
9121 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
9122 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
9123 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
9124 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
9125 CPP_SPEC, CC1_SPEC): Remove.
9126 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
9127 (GNU_USER_DYNAMIC_LINKER): Define.
9128 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
9129 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
9130 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
9131 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
9132 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
9133 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
9134 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
9135 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
9136 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
9137 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
9138 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
9139 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
9140 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
9141 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
9142 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
9143 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
9144 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
9145 GNU_USER_DYNAMIC_LINKER.
9146 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
9147 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
9148 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
9149 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
9150 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
9151 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
9152 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
9153 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
9154 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
9155 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
9157 2011-04-11 Kai Tietz <ktietz@redhat.com>
9161 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
9162 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
9164 (ix86_is_msabi_thiscall): Removed.
9165 (ix86_is_type_thiscall): Likewise.
9166 (ix86_get_callcvt): New function.
9167 (ix86_comp_type_attributes): Simplify check.
9168 (ix86_function_regparm): Use ix86_get_callcvt for calling
9169 convention attribute checks.
9170 (ix86_return_pops_args): Likewise.
9171 (ix86_static_chain): Likewise.
9172 (x86_this_parameter): Likewise.
9173 (x86_output_mi_thunk): Likewise.
9174 (ix86_function_type_abi): Optimize check for types without attributes.
9175 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
9176 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
9177 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
9179 (IX86_BASE_CALLCVT): Helper macro.
9180 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
9181 Use ix86_get_callcvt for calling convention attribute checks and avoid
9182 symbol-decoration for stdcall in TARGET_RTD case.
9183 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
9185 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
9188 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
9190 * config/i386/sse.md (VI_128): New mode iterator.
9191 (VI12_128): Rename from SSEMODE12.
9192 (VI14_128): Rename from SSEMODE14.
9193 (VI124_128): New mode iterator.
9194 (VI24_128): Rename from SSEMODE248.
9195 (VI248_128): Rename from SSEMODE248.
9196 (SSEMODE124C8): Remove.
9197 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
9198 (*sse2_<plusminus_insn><mode>3): Merge with
9199 *avx_<plusminus_insn><mode>3.
9200 (*mulv8hi3): Merge with *avx_mulv8hi3.
9201 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
9202 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
9203 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
9204 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
9205 (ashr<mode>3): Merge with *avx_ashr<mode>3.
9206 (lshr<mode>3): Merge with *avx_lshr<mode>3.
9207 (ashl<mode>3): Merge with *avx_ashl<mode>3.
9208 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
9209 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
9210 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
9211 (*<smaxmin:code>v8hi3): Ditto.
9212 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
9213 (*<smaxmin:code>v16qi3): Ditto.
9214 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
9215 (*sse2_eq<mode>3): Ditto.
9216 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
9217 (*sse2_gt<mode>3): Ditto.
9218 (vcondv2di): Split out of vcond<mode>.
9219 (vconduv2di): Split out of vcondu<mode>.
9221 2011-04-11 Richard Guenther <rguenther@suse.de>
9223 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
9224 before calling tree_low_cst.
9226 2011-04-11 Richard Guenther <rguenther@suse.de>
9228 * stor-layout.c (layout_type): Compute all array index size operations
9229 in the original type.
9230 (initialize_sizetypes): Add comment.
9231 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
9233 2011-04-11 Joseph Myers <joseph@codesourcery.com>
9235 * common.opt (Tbss=, Tdata=, Ttext=): New options.
9237 2011-04-11 Martin Jambor <mjambor@suse.cz>
9239 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
9240 of cgraph_node, handle NULL return value.
9241 (cgraph_global_info): Likewise.
9242 (cgraph_rtl_info): Likewise.
9243 * tree-inline.c (estimate_num_insns): Likewise.
9244 * gimplify.c (unshare_body): Likewise.
9245 (unvisit_body): Likewise.
9246 (gimplify_body): Likewise.
9247 * predict.c (optimize_function_for_size_p): Likewise.
9248 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
9249 (call_may_clobber_ref_p_1): Likewise.
9250 * varasm.c (function_section_1): Likewise.
9251 (assemble_start_function): Likewise.
9253 2011-04-11 Martin Jambor <mjambor@suse.cz>
9255 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
9257 * final.c (rest_of_clean_state): Likewise.
9258 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
9259 * passes.c (pass_init_dump_file): Likewise.
9260 (execute_all_ipa_transforms): Likewise.
9261 (function_called_by_processed_nodes_p): Likewise.
9262 * predict.c (maybe_hot_frequency_p): Likewise.
9263 (probably_never_executed_bb_p): Likewise.
9264 (compute_function_frequency): Likewise.
9265 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
9266 (unnest_nesting_tree_1): Likewise.
9267 (lower_nested_functions): Likewise.
9268 * tree-optimize.c (execute_fixup_cfg): Likewise.
9269 (tree_rest_of_compilation): Likewise.
9270 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
9271 * tree-sra.c (ipa_early_sra): Likewise.
9272 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
9273 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
9274 * ipa.c (record_cdtor_fn): Likewise.
9275 * ipa-inline.c (cgraph_early_inlining): Likewise.
9276 (compute_inline_parameters_for_current): Likewise.
9277 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
9278 * ipa-pure-const.c (local_pure_const): Likewise.
9279 * ipa-split.c (split_function): Likewise.
9280 (execute_split_functions): Likewise.
9281 * cgraphbuild.c (build_cgraph_edges): Likewise.
9282 (rebuild_cgraph_edges): Likewise.
9283 (cgraph_rebuild_references): Likewise.
9284 (remove_cgraph_callee_edges): Likewise.
9285 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
9286 (verify_cgraph_node): Likewise.
9287 (cgraph_analyze_functions): Likewise.
9288 (cgraph_preserve_function_body_p): Likewise.
9289 (save_inline_function_body): Likewise.
9290 (save_inline_function_body): Likewise.
9291 * tree-inline.c (copy_bb): Likewise.
9292 (optimize_inline_calls): Likewise.
9294 2011-04-11 Martin Jambor <mjambor@suse.cz>
9296 PR tree-optimization/48195
9297 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
9298 ipa_check_create_edge_args.
9299 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
9300 ipa_check_create_edge_args.
9301 * ipa-inline.c (inline_generate_summary): Do not call
9302 ipa_check_create_node_params and ipa_check_create_edge_args.
9303 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
9304 ipa_check_create_edge_args.
9306 2011-04-09 Anatoly Sokolov <aesok@post.ru>
9308 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
9310 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
9311 * function.c (record_hard_reg_sets): Likewise.
9312 * ira.c (compute_regs_asm_clobbered): Likewise.
9313 * sched-deps.c (sched_analyze_1): Likewise.
9314 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
9316 2011-04-09 Xinliang David Li <davidxl@google.com>
9318 PR tree-optimization/PR48484
9319 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
9320 has_valid_pred lazily
9322 2011-04-09 Duncan Sands <baldrick@free.fr>
9324 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
9326 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
9328 * combine.c (combine_validate_cost): Adjust comments. Set registered
9329 cost of I0 to zero at the end, if any.
9331 2011-04-08 Xinliang David Li <davidxl@google.com>
9333 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
9334 to insane profile data.
9336 2011-04-08 Xinliang David Li <davidxl@google.com>
9338 * ipa-cp.c (ipcp_update_profiling): Correct
9339 negative scale factor due to insane profile data.
9341 2011-04-08 Xinliang David Li <davidxl@google.com>
9343 * final.c (dump_basic_block_info): New function.
9344 (final): Dump basic block.
9345 (final_scan_insn): Remove old dump.
9347 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
9350 * config.gcc (i386-*-freebsd): Disable unwind table generation for
9353 2011-04-08 Michael Matz <matz@suse.de>
9356 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
9358 (rebuild_jump_labels): Call rebuild_jump_labels_1.
9359 * rtl.h (rebuild_jump_labels_chain): Declare.
9360 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
9361 insns inserted on edges.
9363 2011-04-08 Joseph Myers <joseph@codesourcery.com>
9365 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
9366 * config/arm/arm-arches.def: New.
9367 * config/arm/arm-opts.h: New.
9368 * config/arm/genopt.sh: New.
9369 * config/arm/arm-tables.opt: New (generated).
9370 * config/arm/arm.c (arm_handle_option, arm_target_help,
9371 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
9372 (all_architectures): Get most table contents from arm-arches.def.
9373 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
9374 arm_selected_tune here.
9375 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
9376 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
9377 (march=, mcpu=, mtune=): Use Enum and Var.
9378 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
9379 (arm.o): Update dependencies.
9381 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
9383 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
9385 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
9386 (write_typed_alloc_defns): Likewise.
9387 (main): Calls write_typed_alloc_defns with output_header.
9389 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
9392 * ira-color.c (setup_profitable_hard_regs): Add comments.
9393 Don't take prohibited hard regs into account.
9394 (setup_conflict_profitable_regs): Rename to
9395 get_conflict_profitable_regs.
9396 (check_hard_reg_p): Check prohibited hard regs.
9398 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
9400 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
9401 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
9402 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
9404 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9407 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
9408 move from floating point to shift amount register.
9409 (emit_move_sequence): Remove secondary reload support for floating
9410 point to shift amount amount register copies.
9411 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
9412 amount register copies.
9413 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
9414 register, return false if mode isn't a scalar integer mode.
9415 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
9417 2011-04-08 Richard Guenther <rguenther@suse.de>
9419 * gimple.c (gimple_call_flags): Remove kludge.
9421 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
9423 * sel-sched.c (sel_region_init): Move call to
9424 sel_setup_region_sched_flags after setup_current_loop_nest.
9426 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
9428 PR rtl-optimization/48272
9429 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
9430 init_insn_reg_pressure_info. Adjust a caller.
9431 * sched-int.h (init_insn_reg_pressure_info): Declare.
9432 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
9433 when sched-pressure is enabled.
9435 2011-04-08 Richard Guenther <rguenther@suse.de>
9437 * gimple.c (gimple_set_modified): Do not queue calls to
9438 MODIFIED_NORETURN_CALLS here ...
9439 * tree-ssa-operands.c (update_stmt_operands): ... but here.
9441 2011-04-08 Richard Guenther <rguenther@suse.de>
9444 * toplev.c (lang_dependent_init): Do not open asm_out_file
9445 in WPA mode, nor perform debug machinery initialization.
9446 (finalize): Do not unlink asm_out_file in WPA mode.
9448 2011-04-08 Richard Guenther <rguenther@suse.de>
9450 * gimple.h (gimple_call_fntype): New function.
9451 (gimple_call_return_type): Use it.
9452 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
9453 * gimple-low.c (gimple_check_call_args): Likewise.
9454 * gimple.c (gimple_call_flags): Likewise.
9455 (gimple_call_arg_flags): Likewise.
9456 (gimple_call_return_flags): Likewise.
9457 * tree-cfg.c (verify_gimple_call): Likewise.
9458 (do_warn_unused_result): Likewise.
9459 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
9460 * value-prof.c (gimple_ic_transform): Fix fndecl check.
9462 2011-04-08 Dmitry Melnik <dm@ispras.ru>
9464 PR rtl-optimization/48235
9465 * sel-sched.c (code_motion_process_successors): Recompute the last
9466 insn in basic block if control flow changed.
9467 (code_motion_path_driver): Ditto. Recompute the first insn as well.
9468 Update condition for ilist_remove.
9470 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
9472 PR rtl-optimization/48302
9473 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
9474 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
9475 it to record added preheader blocks.
9476 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
9477 on to sel_add_loop_preheaders.
9478 (sel_region_init): Move call to setup_current_loop_nest after
9481 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
9484 * cfgloop.h (loop_has_exit_edges): New helper.
9485 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
9487 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
9488 that have no exit edges.
9490 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
9492 PR rtl-optimization/48442
9493 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
9494 all callers. Adjust assert.
9496 2011-04-08 Jakub Jelinek <jakub@redhat.com>
9498 PR tree-optimization/48377
9499 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
9500 is_packed to true even for types with smaller TYPE_ALIGN than
9503 2011-04-08 Richard Guenther <rguenther@suse.de>
9506 * doc/tm.texi: Re-generate.
9508 2011-04-08 Wei Guozhi <carrot@google.com>
9511 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
9512 * config/arm/arm.c (arm_attr_length_push_multi): New function.
9513 * config/arm/arm.md (*push_multi): Change the length computation to
9516 2011-04-08 Anatoly Sokolov <aesok@post.ru>
9518 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
9519 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
9520 * doc/tm.texi: Regenerate.
9521 * system.h (ASM_OUTPUT_BSS): Poison.
9522 * varasm.c (asm_output_bss): Remove function.
9523 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
9525 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
9526 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
9527 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
9528 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
9530 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
9532 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
9534 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
9536 2011-04-07 Joseph Myers <joseph@codesourcery.com>
9538 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
9541 2011-04-07 Joseph Myers <joseph@codesourcery.com>
9543 * config/m68k/m68k.c (m68k_handle_option): Don't handle
9544 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
9545 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
9547 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
9548 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
9549 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
9550 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
9551 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
9552 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
9553 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
9554 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
9555 options. Don't map other m68k options manually. Don't handle
9556 old-style options as canonical.
9557 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
9558 * doc/install.texi (m68k-*-*): Document binutils version requirement.
9560 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
9562 * basic-block.h (force_nonfallthru): Move to...
9563 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
9564 (force_nonfallthru): ...here.
9565 * cfghooks.c (force_nonfallthru): New function.
9566 * cfgrtl.c (force_nonfallthru): Rename into...
9567 (rtl_force_nonfallthru): ...this.
9568 (commit_one_edge_insertion): Do not set AUX field.
9569 (commit_edge_insertions): Do not discover new basic blocks.
9570 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
9571 (cfg_layout_rtl_cfg_hooks): Likewise.
9572 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
9573 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
9574 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
9576 2011-04-07 Anatoly Sokolov <aesok@post.ru>
9578 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
9581 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
9583 * config/i386/sse.md: Update copyright year.
9584 (avxcvtvecmode): Remove.
9585 (sse_movhlps): Merge with *avx_movhlps.
9586 (sse_movlhps): Merge with *avx_movlhps.
9587 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
9588 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
9589 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
9590 (sse_loadhps): Merge with *avx_loadhps.
9591 (sse_storelps): Merge with *avx_storelps.
9592 (sse_loadlps): Merge with *avx_loadlps.
9593 (sse_movss): Merge with *avx_movss.
9594 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
9595 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
9596 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
9597 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
9598 (vec_set<mode>_0): Ditto.
9599 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
9600 (sse4_1_insertps): Merge with *avx_insertps.
9601 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
9602 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
9603 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
9604 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
9605 (sse2_storehpd): Merge with *avx_storehpd.
9606 (sse2_loadhpd): Merge with *avx_loadhpd.
9607 (sse2_loadlpd): Merge with *avx_loadlpd.
9608 (sse2_movsd): Merge with *avx_movsd.
9609 (*vec_concatv2df): Merge with *vec_concatv2df.
9611 2011-04-07 Jakub Jelinek <jakub@redhat.com>
9614 * combine.c (combine_instructions): Add last_combined_insn,
9615 update it if insn is after it, pass it to all try_combine calls.
9616 (try_combine): Add last_combined_insn parameter, pass it instead of
9617 i3 to propagate_for_debug.
9619 2011-04-07 Nick Clifton <nickc@redhat.com>
9621 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
9622 to handle MDR <-> data register transfers.
9623 (movhi_internal): Likewise.
9625 2011-04-07 Alan Modra <amodra@gmail.com>
9627 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
9628 previous stack info.
9630 2011-04-07 Tom de Vries <tom@codesourcery.com>
9633 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
9634 flow_find_cross_jump. Swap variables to implement backward replacement.
9635 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
9637 2011-04-07 Tom de Vries <tom@codesourcery.com>
9640 * cfgcleanup.c (walk_to_nondebug_insn): New function.
9641 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
9643 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
9644 src1 or src2. Redirect edges to the last basic block. Update
9645 frequency and count on multiple basic blocks in case of fallthru.
9647 2011-04-07 Tom de Vries <tom@codesourcery.com>
9650 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
9652 (old_insns_match_p): Change return type. Replace return false/true
9653 with return dir_none/dir_both. Use can_replace_by.
9654 (flow_find_cross_jump): Add dir_p parameter. Init replacement
9655 direction from dir_p. Register replacement direction in dir, last_dir
9656 and afterlast_dir. Handle new return type of old_insns_match_p using
9657 merge_dir. Return replacement direction in dir_p.
9658 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
9659 return type of old_insns_match_p.
9660 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
9661 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
9662 flow_find_cross_jump.
9663 * basic-block.h (enum replace_direction): New type.
9664 (flow_find_cross_jump): Add parameter to declaration.
9666 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
9668 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
9669 (AVXMODEDCVTPS2DQ): Ditto.
9670 (VEC_FLOAT_MODE): Ditto.
9671 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
9672 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
9673 (<any_logic:code><mode>3): Use VF mode iterator.
9674 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
9675 Use VF mode iterator.
9676 (copysign<mode>3): Use VF mode iterator.
9677 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
9678 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
9679 (*<any_logic:code><MODEF:mode>3): Merge with
9680 *avx_<any_logic:code><MODEF:mode>3.
9681 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
9682 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
9683 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
9684 (avx_cvtdq2ps<avxmodesuffix>): Remove.
9685 (sse2_cvtdq2ps): Use %v modifier.
9686 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
9687 (avx_cvtps2dq<avxmodesuffix>): Remove.
9688 (sse2_cvtps2dq): Use %v modifier.
9689 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
9690 (avx_cvttps2dq<avxmodesuffix>): Remove.
9691 (sse2_cvttps2dq): Use %v modifier.
9692 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
9693 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
9694 (sse2_cvtsd2siq): Fix insn template.
9695 (sse2_cvtsd2siq_2): Ditto.
9696 (sse2_cvttsd2siq): Ditto.
9697 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
9698 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
9700 2011-04-06 Joseph Myers <joseph@codesourcery.com>
9702 * gcov-io.c: Use GCC Runtime Library Exception.
9704 2011-04-06 Jakub Jelinek <jakub@redhat.com>
9707 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
9708 as base_reg whatever register reg has been eliminated to, instead
9709 of hardcoding STACK_POINTER_REGNUM.
9711 2011-04-06 Joseph Myers <joseph@codesourcery.com>
9713 * doc/tm.texi.in: Document C target hooks as separate from general
9715 * doc/tm.texi: Regenerate.
9716 * genhooks.c (struct hook_desc): Add docname field.
9717 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
9719 (hook_array): Include c-target.def.
9720 (emit_documentation): Use docname field in output.
9721 (emit_init_macros): Take docname argument. Only emit definitions
9722 for hooks matching docname.
9723 (main): Expect additional arguments in all cases. Pass argument
9724 to emit_init_macros.
9725 * target.def: Move initial macro definitions and comments to
9726 target-hooks-macros.h.
9727 (gcc_targetcm): Move to c-family/c-target.def.
9728 * target.h (targetcm): Move declaration to c-family/c-target.h.
9729 * targhooks.c (default_handle_c_option): Move to
9731 * targhooks.h (default_handle_c_option): Move declaration to
9732 c-family/c-common.h.
9733 * target-hooks-macros.h: New file.
9734 * config.gcc (target_has_targetcm): Define and use to add to
9735 c_target_objs and cxx_target_objs.
9736 * config/default-c.c: New file.
9737 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
9738 of target.h and target-def.h.
9739 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
9740 (darwin_objc_construct_string, darwin_cfstring_ref_p,
9741 darwin_check_cfstring_format_arg): Make static.
9742 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
9743 TARGET_STRING_OBJECT_REF_TYPE_P,
9744 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
9745 * config/darwin-protos.h (darwin_objc_construct_string,
9746 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
9748 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
9749 TARGET_STRING_OBJECT_REF_TYPE_P,
9750 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
9751 * config/t-darwin (darwin-c.o): Update dependencies.
9752 * system.h (TARGET_HAS_TARGETCM): Poison.
9753 * Makefile.in (TARGET_H): Update.
9754 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
9755 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
9756 (default-c.o): New target.
9757 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
9758 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
9759 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
9761 (build/genhooks.o): Update dependencies.
9763 2011-04-06 Richard Guenther <rguenther@suse.de>
9765 * ipa-inline.c (enum inlining_mode): Remove.
9766 (cgraph_flatten): Use some other token.
9767 (cgraph_edge_early_inlinable_p): New function, split out from ...
9768 (cgraph_perform_always_inlining): New function, split out from ...
9769 (cgraph_decide_inlining_incrementally): ... here.
9770 (cgraph_mark_inline_edge): Adjust.
9771 (cgraph_early_inlining): Re-structure.
9772 (pass_early_inline): Require SSA form.
9774 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
9775 Julian Brown <julian@codesourcery.com>
9776 Mark Shinwell <shinwell@codesourcery.com>
9778 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
9779 LO_REGS only for Thumb-1.
9780 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
9781 be used in short instructions when optimising for size on Thumb-2.
9783 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
9785 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
9786 associated with user returns to be preserved.
9788 2011-04-06 Tristan Gingold <gingold@adacore.com>
9790 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
9791 symbol_queue_size, DBXOUT_DECR_NESTING,
9792 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
9793 if XCOFF_DEBUGGING_INFO.
9795 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
9797 * config/i386/i386.md (attribute isa): New.
9798 (attribute enabled): New.
9799 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
9800 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
9801 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
9802 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
9803 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
9804 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
9805 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
9806 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
9808 * config/i386/sse.md (VF): New mode iterator.
9812 (SSEMODEF4): Remove.
9813 (attribute sse): Handle V8SF and V4DF modes.
9814 (<absneg:code><mode>2): Use VF mode iterator.
9815 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
9817 (<plusminus_insn><mode>3): Use VF mode iterator.
9818 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
9819 Use VF mode iterator.
9820 (<sse>_vm<plusminus_insn><mode>3): Merge with
9821 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
9822 (mul<mode>3): Use VF mode iterator.
9823 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
9824 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
9826 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
9827 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
9828 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
9829 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
9831 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
9832 Use VF1 mode iterator.
9833 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
9834 (sqrt<VF2:mode>2): New expander.
9835 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
9836 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
9837 and sqrtv2df2. Use VF mode iterator.
9838 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
9840 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
9841 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
9842 Use VF1 mode iterator.
9843 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
9844 (<smaxmin:code><mode>3): Use VF mode iterator.
9845 (*<smaxmin:code><mode>3_finite): Merge with
9846 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
9847 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
9848 (<sse>_vm<smaxmin:code><mode>2): Merge with
9849 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
9850 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
9852 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
9854 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
9855 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
9856 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
9857 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
9858 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
9860 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
9861 Use VF_128 mode iterator.
9862 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
9864 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
9865 VF_128 mode iterator.
9866 (vcond<mode>): Use VF mode iterator.
9867 * config/i386/predicates.md (sse_comparison_operator): Merge with
9868 avx_comparison_float_operator. Do not declare as special_predicate.
9869 * config/i386/i386.c (struct builtin_description): Update for renamed
9871 (ix86_expand_args_builtin): Ditto.
9872 (ix86_expand_sse_compare_mask): Ditto.
9874 2011-04-06 Richard Guenther <rguenther@suse.de>
9876 * tree-inline.c (estimate_num_insns): For calls simply account
9877 for all passed arguments and a used return value.
9879 2011-04-06 Richard Guenther <rguenther@suse.de>
9881 PR tree-optimization/47663
9882 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
9883 call_stmt_time fields.
9884 (cgraph_edge_inlinable_p): Declare.
9885 (cgraph_edge_recursive_p): New inline function.
9886 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
9887 (cgraph_clone_edge): Copy it.
9888 * ipa-inline.c (cgraph_estimate_edge_time): New function.
9889 Account for call stmt time.
9890 (cgraph_estimate_time_after_inlining): Take edge argument.
9891 (cgraph_estimate_edge_growth): Account call stmt size.
9892 (cgraph_estimate_size_after_inlining): Take edge argument.
9893 (cgraph_mark_inline_edge): Adjust.
9894 (cgraph_check_inline_limits): Likewise.
9895 (cgraph_recursive_inlining_p): Remove.
9896 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
9897 (cgraph_decide_recursive_inlining): Take edge argument and
9899 (cgraph_decide_inlining_of_small_functions): Do not avoid
9900 diags for recursive inlining here.
9901 (cgraph_flatten): Adjust.
9902 (cgraph_decide_inlining_incrementally): Likewise.
9903 (estimate_function_body_sizes): Remove call cost handling.
9904 (compute_inline_parameters): Initialize caller edge call costs.
9905 (cgraph_estimate_edge_growth): New function.
9906 (cgraph_estimate_growth): Use it.
9907 (cgraph_edge_badness): Likewise.
9908 (cgraph_check_inline_limits): Take an edge argument.
9909 (cgraph_decide_inlining_of_small_functions): Adjust.
9910 (cgraph_decide_inlining): Likewise.
9911 * tree-inline.c (estimate_num_insns): Only account for call
9912 return value if it is used.
9913 (expand_call_inline): Avoid diagnostics on recursive inline
9915 * lto-cgraph.c (lto_output_edge): Output edge call costs.
9916 (input_edge): Input edge call costs.
9918 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9920 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
9922 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
9924 * doc/invoke.texi (Spec Files): Fix typo.
9926 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
9928 * profile.c (branch_prob): Move declaration of local variable. Remove
9929 obsolete ??? comment. Expand the location explicitly instead of using
9930 the LOCATION_FILE and LOCATION_LINE macros.
9932 2011-04-06 Wei Guozhi <carrot@google.com>
9935 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
9936 (arm_cond_branch): Likewise.
9937 (arm_cond_branch_reversed): Likewise.
9938 (arm_jump): Likewise.
9939 (push_multi): Likewise.
9940 * config/arm/constraints.md (Py): New constraint.
9942 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9945 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
9947 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
9948 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
9949 #ifdef DBX_DEBUGGING_INFO.
9951 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
9954 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
9955 if old and new states differ.
9957 2011-04-05 Joseph Myers <joseph@codesourcery.com>
9959 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
9960 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
9961 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
9962 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
9963 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
9965 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
9966 ColdFire options to -mcpu= options.
9968 2011-04-05 Jeff Law <law@redhat.com>
9970 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
9971 check if BB is a successor of LOOP->header and return
9972 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
9974 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
9976 * cprop.c (struct reg_use): Remove.
9977 (reg_use_table): Make an array of RTX.
9978 (find_used_regs, constprop_register, local_cprop_pass,
9979 bypass_block): Simplify users of reg_use_table.
9980 (cprop_insn): Likewise. Iterate if copy propagation succeeded
9981 on one of the uses found by find_used_regs.
9983 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9986 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
9989 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9991 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
9993 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
9995 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
9998 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
10000 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10002 * combine.c: Include obstack.h.
10003 (struct insn_link): Define.
10004 (uid_log_links): Adjust type.
10005 (FOR_EACH_LOG_LINK): New macro.
10006 (insn_link_obstack): Declare.
10007 (alloc_insn_link): Define.
10008 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
10009 type of link variables.
10010 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
10011 (try_combine, record_promoted_values, distribute_notes): Likewise.
10012 (distribute_links): Likewise. Tweak prototype.
10013 (clear_log_links): Delete.
10014 (adjust_for_new_dest): Call alloc_insn_link.
10015 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
10017 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10019 * gcse.c (modify_mem_list): Convert to an array of VECs.
10020 (canon_modify_mem_list, compute_transp): Tweak formatting.
10021 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
10022 (load_killed_in_block_p): Likewise.
10023 (record_last_mem_set_info): Likewise.
10024 (clear_modify_mem_tables): Likewise.
10026 2011-04-05 Tom de Vries <tom@codesourcery.com>
10028 PR middle-end/48461
10029 * function.c (emit_use_return_register_into_block): Only define if
10032 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
10034 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
10036 2011-04-05 Joseph Myers <joseph@codesourcery.com>
10038 * config/rx/rx-opts.h: New.
10039 * config/rx/rx.c (rx_cpu_type): Remove.
10040 (rx_handle_option): Don't assert that global structures are in
10041 use. Access variables via opts pointer. Defer most handling of
10042 OPT_mint_register_. Use error_at.
10043 (rx_option_override): Handle deferred OPT_mint_register_ here.
10044 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
10045 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
10046 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
10047 (rx_cpu_types): New Enum and EnumValue entries.
10048 (mint-register=): Use Defer and use Var accordingly.
10050 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10052 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
10053 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
10054 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
10056 (debug_free_queue, debug_nesting, symbol_queue_index):
10058 * dbxout.c: ...to here. Make static.
10060 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10062 * gcse.c (modify_pair): Define. Define a VEC of it.
10063 (canon_modify_mem_list): Convert to an array of VECs.
10064 (free_insn_expr_list_list): Delete.
10065 (clear_modify_mem_tables): Call VEC_free instead.
10066 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
10067 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
10068 (canon_list_insert, compute_transp): Likewise.
10070 2011-04-05 Tom de Vries <tom@codesourcery.com>
10073 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
10076 2011-04-05 Tom de Vries <tom@codesourcery.com>
10079 * function.c (emit_use_return_register_into_block): New function.
10080 (thread_prologue_and_epilogue_insns): Use
10081 emit_use_return_register_into_block.
10083 2011-04-05 Tom de Vries <tom@codesourcery.com>
10086 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
10089 2011-04-05 Tom de Vries <tom@codesourcery.com>
10091 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
10093 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
10095 * config/arm/arm.md (define_constants for unspec): Replace with
10097 (define_constants for unspecv): Replace with define_c_enum.
10098 * config/arm/neon.md (define_constants for unspec): Replace with
10101 2011-04-04 Richard Henderson <rth@redhat.com>
10104 * dwarf2out.c (output_line_info): Always emit line info from
10105 at least one section.
10106 (dwarf2out_init): Create text_section_line_info here ...
10107 (set_cur_line_info_table): ... not here.
10109 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
10112 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
10115 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
10117 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
10119 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
10120 (expr_equiv_p): Remove.
10121 (insert_set_in_table): Look at <dest, src> pair instead of expr.
10122 (hash_scan_set): Update call to insert_set_in_table.
10123 (dump_hash_table): Dump <dest, src> pair.
10124 (lookup_set): Simplify. Lookup <dest, src> pair.
10125 (compute_transp): Remove, fold heavily simplified code into...
10126 (compute_local_properties): ...here. Expect COMP and TRANSP
10128 (find_avail_set): Take set directly from struct expr.
10129 (find_bypass-set): Likewise.
10130 (bypass_block): Likewise.
10131 (cprop_insn): Likewise. Remove redundant INSN_P test.
10133 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
10134 checks on form of COND from find_implicit_sets to here.
10135 (find_implicit_sets): Cleanup control flow. Split critical edges
10136 if it exposes implicit sets. Allocate/resize implicit_sets as
10138 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
10139 changed something. Run df_analyze after find_implicit_sets if any
10140 edges were split. Do not allocate implicit_sets here.
10142 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
10143 (gcse_obstack): Renamed to cprop_obstack.
10144 (GNEW, GNEWVEC, GNEWVAR): Remove.
10146 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
10147 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
10148 (gcse_alloc): Likewise, and rename to cprop_alloc.
10149 (alloc_gcse_men, free_gcse_mem): Remove.
10150 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
10151 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
10152 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
10154 * cprop.c (oprs_not_set_p): Remove.
10155 (mark_set, mark_clobber): Remove.
10156 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
10157 (reg_not_set_p): New function.
10158 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
10159 (cprop_insn): Likewise.
10160 (cprop_jump): Use FOR_EACH_EDGE.
10162 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
10165 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
10166 (rank_for_schedule): Use scheduled_insns vector instead of
10167 last_scheduled_insn.
10168 (ok_for_early_queue_removal): Likewise.
10169 (queue_to_ready): Search forward in nonscheduled_insns_begin if
10171 (choose_ready): Likewise.
10172 (commit_schedule): Use VEC_iterate.
10173 (schedule_block): Initialize nonscheduled_insns_begin. If we have
10174 a dbg_cnt, use it and ensure the first insn is in the ready list.
10175 (haifa_sched_init): Allocate scheduled_insns.
10176 (sched_extend_ready_list): Don't allocate it; reserve space.
10177 (haifa_sched_finish): Free it.
10179 2011-04-04 Joseph Myers <joseph@codesourcery.com>
10181 * optc-gen.awk: Always remove type from Variable entry before
10182 recording in var_seen.
10184 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
10186 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
10187 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
10188 call to tidy_fallthru_edges.
10190 2011-04-04 Joseph Myers <joseph@codesourcery.com>
10192 * doc/options.texi (ToLower): Document.
10193 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
10194 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
10195 * opts.h (cl_option): Add cl_tolower field.
10196 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
10197 arguments with lowercase strings.
10198 * config/rx/rx.opt (mcpu=): Add ToLower.
10199 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
10202 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
10204 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
10206 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
10208 * config/vax/vax.c: Include reload.h.
10210 2011-04-04 Anatoly Sokolov <aesok@post.ru>
10212 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
10213 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
10214 (sparc_preferred_reload_class): New function.
10216 2011-04-04 Jakub Jelinek <jakub@redhat.com>
10219 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
10220 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
10222 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
10224 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
10225 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
10227 2011-04-03 Anatoly Sokolov <aesok@post.ru>
10229 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
10230 (ASM_OUTPUT_ALIGNED_BSS): Define.
10232 2011-04-03 Michael Matz <matz@suse.de>
10234 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
10235 and next_slot members.
10236 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
10237 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
10238 (lto_streamer_cache_append): Declare.
10239 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
10240 unsigned index, remove offset parameter, ensure that we append
10241 or update existing entries.
10242 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
10243 parameter, update next_slot for append.
10244 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
10246 (lto_streamer_cache_insert_at): Likewise.
10247 (lto_streamer_cache_append): New function.
10248 (lto_streamer_cache_lookup): Use unsigned index.
10249 (lto_streamer_cache_get): Likewise.
10250 (lto_record_common_node): Don't test tree_node_can_be_shared.
10251 (preload_common_node): Adjust call to lto_streamer_cache_insert.
10252 (lto_streamer_cache_delete): Don't free offsets member.
10253 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
10254 (lto_output_string_with_length): Use lto_output_data_stream.
10255 (lto_output_tree_header): Remove ix parameter, don't write it.
10256 (lto_output_builtin_tree): Likewise.
10257 (lto_write_tree): Adjust callers to above, don't track and write
10258 offset, write unsigned index.
10259 (output_unreferenced_globals): Don't emit all global vars.
10260 (write_global_references): Use unsigned indices.
10261 (lto_output_decl_state_refs): Likewise.
10262 (write_symbol): Likewise.
10263 * lto-streamer-in.c (lto_input_chain): Move earlier.
10264 (input_function): Use unsigned index.
10265 (input_alias_pairs): Don't read and then ignore all global vars.
10266 (lto_materialize_tree): Remove ix_p parameter, don't read index,
10267 don't pass it back, use lto_streamer_cache_append.
10268 (lto_register_var_decl_in_symtab): Use unsigned index.
10269 (lto_register_function_decl_in_symtab): Likewise.
10270 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
10272 (lto_get_builtin_tree): Don't read index, use
10273 lto_streamer_cache_append.
10274 (lto_read_tree): Adjust call to lto_materialize_tree.
10276 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
10277 don't use function calls in arguments to MIN.
10279 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
10282 * gimple.c (gimple_type_leader_entry): Mark deletable.
10284 2011-04-03 Alan Modra <amodra@gmail.com>
10286 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
10288 2011-04-03 Michael Matz <matz@suse.de>
10290 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
10292 * tree.h (tree_decl_non_common.vindex): Adjust comment.
10294 2011-04-03 Michael Matz <matz@suse.de>
10296 * cgraphbuild.c (record_reference): Canonicalize constructor values.
10297 * gimple-fold.c (canonicalize_constructor_val): Accept being called
10298 without function context.
10299 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
10300 current_function_decl and cfun.
10302 2011-04-03 Michael Matz <matz@suse.de>
10304 * tree.c (decl_init_priority_insert): Don't create entry for
10306 (decl_fini_priority_insert): Ditto.
10307 (fields_compatible_p, find_compatible_field): Remove.
10308 * tree.h (fields_compatible_p, find_compatible_field): Remove.
10309 * gimple.c (gimple_compare_field_offset): Adjust block comment.
10311 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
10313 * combine.c (try_combine): Remove useless local variable.
10315 2011-04-03 Richard Guenther <rguenther@suse.de>
10316 Ira Rosen <ira.rosen@linaro.org>
10318 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
10319 non-variable offsets and compare the remaining bases of the two
10320 accesses instead of looking for exact same data-ref.
10322 2011-04-02 Kai Tietz <ktietz@redhat.com>
10325 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
10327 * i386.c (ix86_is_msabi_thiscall): New helper function.
10328 (ix86_is_type_thiscall): New helper function.
10329 (ix86_comp_type_attributes): Handle thiscall for method-functions
10331 (init_cumulative_args): Likewise.
10332 (find_drap_reg): Likewise.
10333 (ix86_static_chain): Likewise.
10334 (x86_this_parameter): Likewise.
10335 (x86_output_mi_thunk): Likewise.
10337 2011-04-01 Olivier Hainque <hainque@adacore.com>
10338 Nicolas Setton <setton@adacore.com>
10339 Eric Botcazou <ebotcazou@adacore.com>
10341 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
10342 (add_gnat_descriptive_type_attribute): New function.
10343 (gen_array_type_die): Call it.
10344 (gen_enumeration_type_die): Likewise.
10345 (gen_struct_or_union_type_die): Likewise.
10346 (modified_type_die): Likewise.
10347 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
10348 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
10349 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
10351 2011-04-01 Jakub Jelinek <jakub@redhat.com>
10354 * dwarf2out.c (resolve_addr): Don't call force_decl_die
10355 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
10358 2011-03-17 Richard Guenther <rguenther@suse.de>
10361 * lto-cgraph.c (input_overwrite_node): Clear the abstract
10362 origin for decls in other ltrans units.
10363 (input_varpool_node): Likewise.
10365 2011-04-01 Jakub Jelinek <jakub@redhat.com>
10367 PR middle-end/48335
10368 * expr.c (expand_assignment): Handle all possibilities
10369 if TO_RTX is CONCAT.
10370 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
10371 (store_split_bit_field): If SUBREG_REG (op0) or
10372 op0 itself has smaller mode than word, return it
10373 for offset 0 and const0_rtx for out-of-bounds stores.
10374 If word is const0_rtx, skip it.
10376 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
10378 * config/h8300/h8300.c (print_operand_address): Rename to...
10379 (h8300_print_operand_address): ...this. Make static. Adjust comments.
10380 Call h8300_print_operand and h8300_print_operand_address instead of
10381 print_operand and print_operand_address. Declare.
10382 (print_operand): Renake to...
10383 (h8300_print_operand): ...this. Make static. Adjust comments.
10384 Call h8300_print_operand instead of print_operand. Declare.
10385 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
10386 (h8300_register_move_cost): Likewise.
10387 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
10388 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
10389 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
10390 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
10391 * config/h8300/h8300-protos.h (print_operand): Delete.
10392 (print_operand_address): Delete.
10394 2011-04-01 Richard Henderson <rth@redhat.com>
10397 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
10398 in strict mode before dwarf4. Re-order tests to early out
10399 before switching sections.
10401 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
10403 * config/h8300/constraints.md: New file.
10404 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
10405 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
10406 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
10407 * config/h8300/predicates.md (bit_operand): Likewise.
10408 (incdec_operand): Use satisfies_constraint_M and
10409 satisfies_constraint_O. Don't use C code block.
10410 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
10411 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
10412 (compute_mov_length): Use satisfies_constraint_G.
10413 (fix_bit_operand): Use satisfies_constraint_U.
10414 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
10415 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
10416 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
10417 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
10418 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
10419 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
10420 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10421 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
10422 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
10423 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
10424 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
10425 (EXTRA_MEMORY_CONSTRAINT): Delete.
10427 2011-04-01 Andrew Pinski <pinskia@gmail.com>
10428 Michael Meissner <meissner@linux.vnet.ibm.com>
10431 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
10432 operands, as per the specifications.
10434 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
10435 (vec_extract_evenv4sf): Ditto.
10436 (vec_extract_evenv8hi): Ditto.
10437 (vec_extract_evenv16qi): Ditto.
10438 (vec_extract_oddv4si): Ditto.
10440 2011-03-31 Mark Wielaard <mjw@redhat.com>
10442 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
10443 high_pc attribute if the CU has no associated code. Only output
10444 DW_AT_entry_pc for CU if not generating strict dwarf and
10447 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
10449 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
10450 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
10452 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
10453 * final.c (final_start_function): Call the new function rather
10454 than using a NULL argument for dwarf2out_frame_debug.
10456 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
10457 that contains the prologue.
10459 * haifa-sched.c (queue_insn): New arg REASON. All callers
10460 changed. Print it in debugging output.
10462 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
10464 * sched-ebb.c (begin_schedule_ready): Remove second argument.
10465 Split most of the code into...
10466 (begin_move_insn): ... here. New function.
10467 (ebb_sched_info): Add a pointer to it.
10468 * haifa-sched.c (scheduled_insns): New static variable.
10469 (sched_extend_ready_list): Allocate it.
10470 (schedule_block): Use it to record the order of scheduled insns.
10471 Perform RTL changes to move insns only after all scheduling
10472 decisions have been made.
10473 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
10474 begin_move_insn field.
10475 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
10476 * sched-int.h (struct haifa_sched_info): Remove second argument
10477 from begin_schedule_ready hook. Add new member begin_move_insn.
10478 * sched-rgn.c (begin_schedule_ready): Remove second argument.
10479 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
10481 * haifa-sched.c (prune_ready_list): New function, broken out of
10483 (schedule_block): Use it.
10485 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10487 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
10489 2011-04-01 Kai Tietz <ktietz@redhat.com>
10491 * config.gcc (*-*-mingw*): Allow as option the
10492 posix threading model.
10493 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
10494 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
10496 (CPP_SPEC): Add pthread/no-pthread handling.
10497 (LIB_SPEC): Likewise.
10498 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
10499 (LIB_SPEC): Likewise.
10500 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
10501 flag to pass -pthread option for shared libgcc build.
10502 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
10503 for shared libgcc build.
10504 * config/i386/t-mingw-pthread: New file.
10505 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
10506 New define to enable use of library pthread by default.
10507 * config/i386/mingw.opt (pthread): New driver option.
10508 (no-pthread): New driver option.
10509 * config/i386/cygming.opt: Make sure trailing empty line is retained.
10510 * config/i386/mingw-w64.opt: Likewise.
10512 2011-04-01 Gary Funck <gary@intrepid.com>
10514 * c-decl.c (grokdeclarator): Fix formatting.
10516 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
10518 * expr.c (emit_block_move_via_movmem): Use n_generator_args
10519 instead of n_operands.
10520 (set_storage_via_setmem): Likewise.
10521 * optabs.c (maybe_gen_insn): Likewise.
10522 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
10523 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
10524 (mips_expand_builtin_direct): Likewise.
10525 * config/spu/spu.c (expand_builtin_args): Likewise.
10527 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
10529 * recog.h (insn_data_d): Add n_generator_args.
10530 * genoutput.c (data): Likewise.
10531 (output_insn_data): Print it.
10532 (max_opno, num_dups): Delete.
10533 (scan_operands): Just fill in "d->operand[...]".
10534 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
10536 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
10538 * gensupport.h (pattern_stats): New structure.
10539 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
10540 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
10541 (max_operand_1, max_operand_vec): Delete.
10542 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
10544 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
10546 * emit-rtl.c (emit_pattern_after_setloc): New function.
10547 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
10548 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
10549 (emit_pattern_after): New function.
10550 (emit_insn_after, emit_jump_insn_after): Call it.
10551 (emit_call_insn_after, emit_debug_insn_after): Likewise.
10552 (emit_pattern_before_setloc): New function.
10553 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
10554 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
10556 (emit_pattern_before): New function.
10557 (emit_insn_before, emit_jump_insn_before): Call it.
10558 (emit_call_insn_before, emit_debug_insn_before): Likewise.
10560 2011-03-31 Richard Henderson <rth@redhat.com>
10562 * dwarf2out.c (dw_separate_line_info_ref): Remove.
10563 (dw_separate_line_info_entry): Remove.
10564 (enum dw_line_info_opcode): New.
10565 (dw_line_info_entry): Use it.
10566 (dw_line_info_table, dw_line_info_table_p): New.
10567 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
10568 (line_info_table, line_info_label_num): Remove.
10569 (line_info_table_in_use): Remove.
10570 (separate_line_info_table): Remove.
10571 (separate_line_info_table_allocated): Remove.
10572 (separate_line_info_table_in_use): Remove.
10573 (LINE_INFO_TABLE_INCREMENT): Remove.
10574 (line_info_label_num): New.
10575 (cur_line_info_table): New.
10576 (text_section_line_info, cold_text_section_line_info): New.
10577 (separate_line_info): New.
10578 (SEPARATE_LINE_CODE_LABEL): Remove.
10579 (print_dwarf_line_table): Remove.
10580 (debug_dwarf): Don't dump it.
10581 (output_one_line_info_table): New.
10582 (output_line_info): Use it.
10583 (new_line_info_table): New.
10584 (set_cur_line_info_table): New.
10585 (dwarf2out_switch_text_section): Use it.
10586 (dwarf2out_begin_function): Likewise.
10587 (push_dw_line_info_entry): New.
10588 (dwarf2out_source_line): Rewrite for new line info tables.
10589 (dwarf2out_init): Remove dead initailizations.
10591 2011-03-31 Joseph Myers <joseph@codesourcery.com>
10593 * opts.h (cl_option): Add comments to fields. Add bit-fields for
10595 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
10596 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
10597 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
10598 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
10599 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
10600 * opt-functions.awk (flag_init, switch_bit_fields): New.
10601 (switch_flags): Don't handle flags moved to bit-fields. Don't
10602 generate CL_MISSING_OK or CL_SAVE.
10603 * optc-gen.awk: Update to generate bit-field output as well as
10605 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
10606 bit-field instead of CL_REJECT_DRIVER flag.
10607 * opts-common.c (generate_canonical_option,
10608 decode_cmdline_option): Use bit-fields instead of CL_* flags.
10609 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
10610 instead of CL_REJECT_NEGATIVE flag.
10611 * toplev.c (print_switch_values): Use cl_report bit-field instead
10614 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
10616 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
10617 a zero minimum index only if it is redundant.
10619 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
10621 PR rtl-optimization/48381
10622 * ira-color.c (assign_hard_reg): Use hard reg set intersection
10623 instead of ira_class_hard_reg_index for calculating conflicting
10626 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
10628 * cprop.c: Clean up hash table building.
10629 (reg_avail_info): Remove.
10630 (oprs_available_p): Remove.
10631 (record_last_reg_set_info): Remove.
10632 (record_last_set_info): Remove.
10633 (reg_available_p): New function.
10634 (gcse_constant_p): Do not treat unfolded conditions as constants.
10635 (make_set_regs_unavailable): New function.
10636 (hash_scan_set): Simplify with new reg_available_p.
10637 (compute_hash_table_work): Traverse insns stream only once.
10638 Do not compute reg_avail_info. Traverse insns in reverse order.
10639 Record implicit sets after recording explicit sets from the block.
10641 2011-03-31 Michael Matz <matz@suse.de>
10643 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
10645 2011-03-31 Anatoly Sokolov <aesok@post.ru>
10647 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
10648 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
10649 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10650 (h8300_mode_dependent_address_p): New function.
10651 (h8300_get_index): Make static.
10653 2011-03-31 Jeff Law <law@redhat.com>
10655 * reload1.c (elimination_effects): Fix typo in recent change.
10657 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
10658 typo potentially leading to null pointer dereference.
10660 * caller-save.c (new_saved_hard_reg): Eliminate return value.
10661 (setup_save_areas): Corresponding changes to avoid useless
10664 * jump.c (reversed_comparison_code_parts): Avoid successive return
10665 statements when REVERSE_CONDITION is defined.
10667 * expr.c (expand_assignment): Avoid useless assignments.
10668 (expand_expr_real_1): Likewise.
10669 (expand_expr_real_2): Avoid useless statements.
10671 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
10673 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
10675 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
10678 * stmt.c (expand_expr_stmt): Avoid useless assignment.
10680 2011-03-31 Joseph Myers <joseph@codesourcery.com>
10683 * doc/tm.texi.in (TARGET_VERSION): Remove.
10684 * doc/tm.texi: Regenerate.
10685 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
10686 * collect2.c (main): Don't use TARGET_VERSION.
10687 * mips-tdump.c (main): Don't use TARGET_VERSION.
10688 * mips-tfile.c (main): Don't use TARGET_VERSION.
10689 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
10690 * config/rs6000/vxworksae.h: Remove.
10691 * config/alpha/alpha.h (TARGET_VERSION): Remove.
10692 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
10693 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
10694 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
10695 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
10696 * config/arm/arm.h (TARGET_VERSION): Remove.
10697 * config/arm/coff.h (TARGET_VERSION): Remove.
10698 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
10699 * config/arm/elf.h (TARGET_VERSION): Remove.
10700 * config/arm/freebsd.h (TARGET_VERSION): Remove.
10701 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
10702 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
10703 * config/arm/pe.h (TARGET_VERSION): Remove.
10704 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
10705 * config/arm/semi.h (TARGET_VERSION): Remove.
10706 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
10707 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
10708 * config/arm/vxworks.h (TARGET_VERSION): Remove.
10709 * config/avr/avr.h (TARGET_VERSION): Remove.
10710 * config/bfin/bfin.h (TARGET_VERSION): Remove.
10711 * config/fr30/fr30.h (TARGET_VERSION): Remove.
10712 * config/frv/frv.h (TARGET_VERSION): Remove.
10713 * config/h8300/h8300.h (TARGET_VERSION): Remove.
10714 * config/i386/cygwin.h (TARGET_VERSION): Remove.
10715 * config/i386/darwin.h (TARGET_VERSION): Remove.
10716 * config/i386/darwin64.h (TARGET_VERSION): Remove.
10717 * config/i386/djgpp.h (TARGET_VERSION): Remove.
10718 * config/i386/freebsd.h (TARGET_VERSION): Remove.
10719 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
10720 * config/i386/gnu.h (TARGET_VERSION): Remove.
10721 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
10722 * config/i386/i386elf.h (TARGET_VERSION): Remove.
10723 * config/i386/linux.h (TARGET_VERSION): Remove.
10724 * config/i386/linux64.h (TARGET_VERSION): Remove.
10725 * config/i386/lynx.h (TARGET_VERSION): Remove.
10726 * config/i386/mingw32.h (TARGET_VERSION): Remove.
10727 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
10728 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
10729 * config/i386/netware.h (TARGET_VERSION): Remove.
10730 * config/i386/nto.h (TARGET_VERSION): Remove.
10731 * config/i386/openbsd.h (TARGET_VERSION): Remove.
10732 * config/i386/vxworks.h (TARGET_VERSION): Remove.
10733 * config/ia64/elf.h (TARGET_VERSION): Remove.
10734 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
10735 * config/ia64/hpux.h (TARGET_VERSION): Remove.
10736 * config/ia64/linux.h (TARGET_VERSION): Remove.
10737 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
10738 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
10739 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
10740 * config/lm32/lm32.h (TARGET_VERSION): Remove.
10741 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
10742 * config/m32c/m32c.h (TARGET_VERSION): Remove.
10743 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
10744 * config/m32r/m32r.h (TARGET_VERSION): Remove.
10745 * config/m68k/linux.h (TARGET_VERSION): Remove.
10746 * config/m68k/m68k.h (TARGET_VERSION): Remove.
10747 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
10748 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
10749 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
10750 * config/mep/mep.h (TARGET_VERSION): Remove.
10751 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
10752 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
10753 * config/mips/iris6.h (MACHINE_TYPE): Remove.
10754 * config/mips/linux.h (TARGET_VERSION): Remove.
10755 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
10756 * config/mips/vxworks.h (TARGET_VERSION): Remove.
10757 * config/mmix/mmix.h (TARGET_VERSION): Remove.
10758 * config/mn10300/linux.h (TARGET_VERSION): Remove.
10759 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
10760 * config/pa/pa.h (TARGET_VERSION): Remove.
10761 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
10762 * config/picochip/picochip.h (TARGET_VERSION): Remove.
10763 * config/rs6000/aix.h (TARGET_VERSION): Remove.
10764 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
10765 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
10766 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
10767 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
10768 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
10769 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
10770 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
10771 * config/rs6000/linux.h (TARGET_VERSION): Remove.
10772 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
10773 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
10774 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
10775 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
10776 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
10777 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
10778 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
10779 * config/s390/linux.h (TARGET_VERSION): Remove.
10780 * config/s390/s390.h (TARGET_VERSION): Remove.
10781 * config/s390/tpf.h (TARGET_VERSION): Remove.
10782 * config/score/score.h (TARGET_VERSION): Remove.
10783 * config/sh/linux.h (TARGET_VERSION): Remove.
10784 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
10785 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
10786 * config/sh/sh.h (TARGET_VERSION): Remove.
10787 * config/sh/sh64.h (TARGET_VERSION): Remove.
10788 * config/sh/superh.h (TARGET_VERSION): Remove.
10789 * config/sh/vxworks.h (TARGET_VERSION): Remove.
10790 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
10791 * config/sparc/linux.h (TARGET_VERSION): Remove.
10792 * config/sparc/linux64.h (TARGET_VERSION): Remove.
10793 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
10794 TARGET_NAME32, TARGET_NAME): Remove.
10795 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
10796 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
10797 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
10798 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
10799 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
10800 * config/spu/spu.h (TARGET_VERSION): Remove.
10801 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
10802 * config/v850/v850.h (TARGET_VERSION): Remove.
10803 * config/vax/linux.h (TARGET_VERSION): Remove.
10804 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
10805 * config/xtensa/elf.h (TARGET_VERSION): Remove.
10806 * config/xtensa/linux.h (TARGET_VERSION): Remove.
10808 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
10811 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
10812 frame-related from frame-unrelated adjustments to the stack pointer.
10814 2011-03-31 Jakub Jelinek <jakub@redhat.com>
10816 * common.opt (fdebug-types-section): Move earlier.
10817 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
10819 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
10821 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
10824 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
10826 * tree.h (CASE_CHAIN): Define.
10827 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
10828 (gimple_redirect_edge_and_branch): Likewise.
10830 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
10832 PR middle-end/48367
10833 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
10836 2011-03-30 Jeff Law <law@redhat.com>
10838 * PR bootstrap/48371
10839 * reload1.c (reload): Fix botch in last change.
10841 * reload.h (struct reload): Fix typo introduced in last change.
10843 2011-03-30 Joseph Myers <joseph@codesourcery.com>
10845 * config/arm/arm.opt (mhard-float, msoft-float): Mark
10846 Undocumented. Remove help text.
10847 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
10850 2011-03-30 Joseph Myers <joseph@codesourcery.com>
10852 * doc/options.texi (NegativeAlias): Document.
10853 (Alias): Mention NegativeAlias.
10854 * opt-functions.awk: Handle NegativeAlias.
10855 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
10856 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
10857 * opts.h (CL_NEGATIVE_ALIAS): Define.
10858 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
10859 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
10861 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
10863 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
10864 mno-spe and mno-isel instead of mspe=no and -misel=no.
10866 2011-03-29 Mark Wielaard <mjw@redhat.com>
10868 * common.opt (fdebug-types-section): New flag.
10869 * doc/invoke.texi: Document new -fno-debug-types-section flag.
10870 * dwarf2out.c (use_debug_types): New define.
10871 (struct die_struct): Mark die_id with GTY desc use_debug_types.
10872 (print_die): Guard output of type unit signatures using
10874 (build_abbrev_table): Replace assert of dwarf_version >= 4
10875 with assert on use_debug_types.
10876 (size_of_die): Likewise.
10877 (unmark_dies): Likewise.
10878 (value_format): Decide AT_ref_external form on use_debug_types.
10879 (output_die): Replace dwarf_version version check guard with
10880 use_debug_types where appropriate.
10881 (modified_type_die): Likewise.
10882 (gen_reference_type_die): Likewise.
10883 (dwarf2out_start_source_file): Likewise.
10884 (dwarf2out_end_source_file): Likewise.
10885 (prune_unused_types_walk_attribs): Likewise.
10886 (dwarf2out_finish): Likewise.
10888 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
10890 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
10892 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
10894 PR rtl-optimization/48332
10895 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
10896 mode of input operand N and modeN to its actual mode.
10898 2011-03-30 Jeff Law <law@redhat.com>
10900 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
10901 define accessor macro.
10902 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
10903 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
10904 (reg_equiv_init): Likewise.
10905 (reg_equivs_size): New variable.
10906 (reg_equiv_init_size): Remove.
10907 (allocate_initial_values): Move prototype to here from....
10908 * integrate.h (allocate_initial_values): Remove prototype.
10909 * integrate.c: Include reload.h.
10910 (allocate_initial_values): Corresponding changes.
10911 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
10912 (fix_reg_equiv_init, no_equiv): Corresponding changes.
10913 (update_equiv_regs): Corresponding changes.
10914 (ira): Corresponding changes.
10915 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
10916 (push_secondary_reload): Corresponding changes.
10917 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
10918 (make_memloc, find_reloads_address): Corresponding changes.
10919 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
10920 (find_reloads_address_1): Corresponding changes.
10921 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
10922 (refers_to_regno_for_reload_p): Corresponding changes.
10923 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
10924 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
10925 * reload1.c: Include ggc.h.
10926 (grow_reg_equivs): New function.
10927 (replace_pseudos_in, reload): Corresponding changes.
10928 (calculate_needs_all_insns, alter_regs): Corresponding changes.
10929 (eliminate_regs_1, elimination_effects): Corresponding changes.
10930 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
10931 (delete_output_reload): Likewise.
10932 * caller-save.c (mark_referenced_regs): Corresponding changes.
10933 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
10934 * frv/predicates.md (frv_load_operand): Corresponding changes.
10935 * microblaze/microblaze.c (double_memory_operand): Corresponding
10937 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
10938 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
10939 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
10940 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
10941 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
10943 * pa/pa.c (emit_move_sequence): Corresponding changes.
10944 * vax/vax.c (nonindexed_address_p): Corresponding changes.
10946 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
10949 * config/arm/arm.c (coproc_secondary_reload_class): Handle
10950 structure modes. Don't check neon_vector_mem_operand for
10951 vector or structure modes.
10953 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
10954 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10957 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
10958 operand 1 and reshuffle the operands to match.
10959 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
10961 2011-03-30 Christian Schüler <cschueler@gmx.de>
10964 * config/c.opt (F): Added 'Driver' to -F option.
10967 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
10969 * config/darwin.opt: Added '-arch' option.
10971 2011-03-30 Nick Clifton <nickc@redhat.com>
10973 * config/rx/rx.md: Add peepholes and patterns to combine
10974 extending loads and simple arithmetic instructions.
10975 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
10976 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
10977 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
10978 modes to use pre-decrement and post-increment addressing.
10979 (rx_is_restricted_memory_address): Add range checking of REG+INT
10981 (rx_print_operand): Add support for %Q. Fix handling of %Q.
10982 (rx_memory_move_cost): Adjust cost of stores.
10983 (rx_adjust_insn_length): New function.
10985 2011-03-30 Jakub Jelinek <jakub@redhat.com>
10988 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
10989 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
10990 matching arg00/arg01 types.
10992 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
10994 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
10995 last_location to UNKNOWN_LOCATION.
10997 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
11000 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
11003 2011-03-30 Joseph Myers <joseph@codesourcery.com>
11004 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11007 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
11008 Init(PROCESSOR_V7).
11009 (sparc_cpu): Likewise.
11010 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
11013 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
11016 PR middle-end/48342
11017 PR rtl-optimization/48345
11018 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
11019 hard regs for given mode from profitable regs when doing secondary
11022 2011-03-29 Jeff Law <law@redhat.com>
11025 * tree-ssa-threadupdate.c (struct redirection_data): Remove
11026 do_not_duplicate field.
11027 (lookup_redirection_data): Corresponding changes.
11028 (create_duplicates): Always create a template block.
11029 (redirect_edges): Remove code which reused the original block
11030 when it was going to become unreachable code.
11031 (thread_block): Don't set do_not_duplicate field.
11033 2011-03-29 Joseph Myers <joseph@codesourcery.com>
11035 * lto-opts.c (register_user_option_p, lto_register_user_option):
11036 Make type argument unsigned.
11037 * lto-streamer.h (lto_register_user_option): Make type argument
11039 * opth-gen.awk: Make CL_* macros unsigned.
11040 * opts-common.c (find_opt): Make lang_mask argument unsigned.
11041 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
11042 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
11043 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
11044 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
11045 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
11046 (find_opt): Make lang_mask argument unsigned.
11048 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
11050 PR rtl-optimization/48331
11051 PR rtl-optimization/48334
11052 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
11053 for any used algorithm.
11055 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
11057 * ira-conflicts.c (build_object_conflicts): Add unused attribute
11060 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
11062 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
11063 (alpha_option_override): Don't set alpha_sr_alias_set.
11064 (emit_frame_store_1): Use gen_frame_mem rather than calling
11066 (alpha_expand_epilogue): Ditto.
11068 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
11070 PR tree-optimization/48290
11071 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
11072 vectorization, check that relevant phis in the basic block after
11073 the inner loop are really inner loop's exit phis.
11075 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
11078 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
11079 (cached_dw_loc_list_def): New structure.
11080 (cached_dw_loc_list): New typedef.
11081 (cached_dw_loc_list_table): New variable.
11082 (cached_dw_loc_list_table_hash): New function.
11083 (cached_dw_loc_list_table_eq): Likewise.
11084 (add_location_or_const_value_attribute): Take a bool cache_p.
11085 Cache the list when the parameter is true.
11086 (gen_formal_parameter_die): Update caller.
11087 (gen_variable_die): Likewise.
11088 (dwarf2out_finish): Likewise.
11089 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
11090 while generating debug info for the decl.
11091 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
11092 (dwarf2out_init): Initialize cached_dw_loc_list_table.
11093 (resolve_addr): Cache the result of resolving a chain of
11096 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
11098 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
11099 conflict object hard regset nodes have intersecting hard reg sets.
11101 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
11102 after regstat_init_n_sets_and_refs.
11104 * ira.c: Add more comments at the top.
11105 (setup_stack_reg_pressure_class, setup_pressure_classes):
11106 Add comments how we compute the register pressure classes.
11107 (setup_allocno_and_important_classes): Add more comments.
11108 (setup_class_translate_array, reorder_important_classes)
11109 (setup_reg_class_relations): Add comments.
11111 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
11114 * ira-color.c: Add 2011 to the Copyright line.
11115 (assign_hard_reg): Add more comments.
11116 (improve_allocation): Ditto.
11118 * ira-costs.c: Add 2011 to the Copyright line.
11119 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
11121 (setup_regno_cost_classes_by_mode): Ditto.
11123 Initial patches from ira-improv branch:
11125 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
11127 * ira-build.c (ira_create_object): Remove initialization of
11128 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
11129 (ira_create_allocno): Remove initialization of
11130 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
11131 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
11132 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
11133 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
11134 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
11135 Initialize ALLOCNO_ADD_DATA.
11136 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
11137 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
11139 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
11140 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
11142 * ira.c (ira_reallocate): Remove.
11143 (setup_pressure_classes): Call
11144 ira_init_register_move_cost_if_necessary. Use
11145 ira_register_move_cost instead of ira_get_register_move_cost.
11146 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
11147 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
11149 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
11150 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
11151 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
11152 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
11153 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
11154 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
11156 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
11157 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
11158 (struct allocno_color_data): New.
11159 (allocno_color_data_t): New typedef.
11160 (allocno_color_data): New definition.
11161 (ALLOCNO_COLOR_DATA): New macro.
11162 (struct object_color_data): New.
11163 (object_color_data_t): New typedef.
11164 (object_color_data): New definition.
11165 (OBJECT_COLOR_DATA): New macro.
11166 (update_copy_costs, calculate_allocno_spill_cost): Call
11167 ira_init_register_move_cost_if_necessary. Use
11168 ira_register_move_cost instead of ira_get_register_move_cost.
11169 (move_spill_restore, update_curr_costs): Ditto.
11170 (allocno_spill_priority): Make it inline.
11171 (color_pass): Allocate and free allocno_color_dat and object_color_data.
11172 (struct coalesce_data, coalesce_data_t): New.
11173 (allocno_coalesce_data): New definition.
11174 (ALLOCNO_COALESCE_DATA): New macro.
11175 (merge_allocnos, coalesced_allocno_conflict_p): Use
11176 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
11177 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
11178 (coalesce_allocnos): Ditto.
11179 (setup_coalesced_allocno_costs_and_nums): Ditto.
11180 (collect_spilled_coalesced_allocnos): Ditto.
11181 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
11182 (setup_slot_coalesced_allocno_live_ranges): Ditto.
11183 (coalesce_spill_slots): Ditto.
11184 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
11185 free allocno_coalesce_data.
11187 * ira-conflicts.c: Fix formatting.
11188 (process_regs_for_copy): Call
11189 ira_init_register_move_cost_if_necessary. Use
11190 ira_register_move_cost instead of ira_get_register_move_cost.
11191 (build_object_conflicts): Optimize.
11193 * ira-costs.c (record_reg_classes): Optimize. Call
11194 ira_init_register_move_cost_if_necessary. Use
11195 ira_register_move_cost, ira_may_move_in_cost, and
11196 ira_may_move_out_cost instead of ira_get_register_move_cost and
11197 ira_get_may_move_cost.
11198 (record_address_regs): Ditto.
11199 (scan_one_insn): Optimize.
11200 (find_costs_and_classes): Optimize.
11201 (process_bb_node_for_hard_reg_moves): Call
11202 ira_init_register_move_cost_if_necessary. Use
11203 ira_register_move_cost instead of ira_get_register_move_cost.
11205 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
11206 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
11207 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
11208 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
11210 (ira_initiate_emit_data, ira_finish_emit_data)
11211 (create_new_allocno): New functions.
11212 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
11213 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
11214 Use ira_register_move_cost instead of ira_get_register_move_cost.
11216 * ira-int.h: Fix some comments.
11217 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
11218 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
11219 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
11220 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
11222 (struct ira_allocno): Make mode and aclass a bitfield. Move other
11223 bitfield after mode. Make hard_regno a short int. Make
11224 hard_regno short. Remove first_coalesced_allocno and
11225 next_coalesced_allocno. Move mem_optimized_dest_p,
11226 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
11227 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
11228 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
11229 temp, colorable_p. Add new member add_data.
11230 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
11231 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
11232 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
11233 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
11234 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
11235 (ALLOCNO_ADD_DATA): New macro.
11236 (ira_emit_data_t): New typedef.
11237 (struct ira_emit_data): New. Move mem_optimized_dest_p,
11238 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
11239 from struct ira_allocno.
11240 (ALLOCNO_EMIT_DATA): New macro.
11241 (ira_allocno_emit_data, allocno_emit_reg): New.
11242 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
11243 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
11244 (OBJECT_ADD_DATA): New macro.
11245 (ira_reallocate): Remove.
11246 (ira_initiate_emit_data, ira_finish_emit_data): New.
11247 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
11248 (ira_init_register_move_cost_if_necessary): New.
11249 (ira_object_conflict_iter_next): Merge into
11250 ira_object_conflict_iter_cond.
11251 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
11253 * ira-live.c (process_single_reg_class_operands): Call
11254 ira_init_register_move_cost_if_necessary. Use
11255 ira_register_move_cost instead of ira_get_register_move_cost.
11257 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
11259 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
11261 * ira-costs.c: Fix formatting.
11262 (cost_classes, cost_classes_num): Remove.
11263 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
11264 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
11265 (cost_classes_del, cost_classes_htab): New.
11266 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
11267 (initiate_regno_cost_classes, setup_cost_classes): New.
11268 (setup_regno_cost_classes_by_aclass): New.
11269 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
11270 (record_reg_classes): Use regno_cost_classes instead of
11271 cost_classes. Move checking opposite operand up.
11272 (record_address_regs): Use regno_cost_classes
11273 instead of cost_classes.
11274 (scan_one_insn): Ditto. Use always general register.
11275 (print_allocno_costs): Use regno_cost_classes instead of
11277 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
11278 (find_costs_and_classes): Set up cost classes for each registers.
11279 Use also their mode for this. Use regno_cost_classes instead of
11281 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
11283 (free_ira_costs, ira_init_costs): Don't use cost_classes.
11284 (ira_costs, ira_set_pseudo_classes): Call
11285 initiate_regno_cost_classes and finish_regno_cost_classes.
11287 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
11289 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
11291 * target.def (ira_cover_classes): Remove.
11293 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
11295 * doc/tm.texi.in: Ditto.
11297 * ira-conflicts.c: Remove mentioning cover classes from the file.
11298 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
11299 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
11301 * targhooks.c (default_ira_cover_classes): Remove.
11303 * targhooks.h (default_ira_cover_classes): Ditto.
11305 * haifa-sched.c: Remove mentioning cover classes from the file.
11306 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
11307 ira_pressure_classes and ira_pressure_classes_num instead of
11308 ira_reg_class_cover_size and ira_reg_class_cover. Use
11309 sched_regno_pressure_class instead of sched_regno_cover_class.
11310 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
11311 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
11313 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
11314 classes from the file.
11315 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
11316 (struct object_hard_regs, struct object_hard_regs_node): New.
11317 (struct ira_object): New members profitable_hard_regs,
11318 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
11319 (struct ira_allocno): Rename cover_class to aclass. Rename
11320 cover_class_cost and updated_cover_class_cost to class_cost and
11321 updated_class_cost. Remove splay_removed_p and
11322 left_conflict_size. Add new members colorable_p.
11323 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
11324 (ALLOCNO_COLORABLE_P): New macro.
11325 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
11326 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
11327 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
11328 (OBJECT_...): Rename parameter C to O.
11329 (OBJECT_PROFITABLE_HARD_REGS): New macro.
11330 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
11331 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
11332 (struct target_ira_int): New members x_ira_max_memory_move_cost,
11333 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
11334 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
11335 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
11336 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
11337 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
11338 x_ira_reg_class_subunion.
11339 (ira_max_memory_move_cost, ira_max_register_move_cost)
11340 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
11341 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
11342 (ira_important_class_nums, ira_reg_class_superunion): New macros.
11343 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
11344 (ira_reg_class_union): Rename to ira_reg_class_subunion.
11345 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
11346 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
11347 (ira_tune_allocno_costs_and_cover_classes): Rename to
11348 ira_tune_allocno_costs.
11349 (ira_debug_hard_regs_forest): New.
11350 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
11351 (ira_object_conflict_iter_next): Fix comments.
11352 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
11353 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
11354 cover_class to aclass.
11355 (ira_allocate_and_accumulate_costs): Ditto.
11356 (ira_allocate_and_set_or_copy_costs): Ditto.
11358 * opts.c (decode_options): Remove ira_cover_class check.
11360 * ira-color.c: Remove mentioning cover classes from the file. Use
11361 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
11362 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
11363 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
11364 (splay-tree.h): Remove include.
11365 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
11366 before copy_freq_compare_func.
11367 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
11368 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
11370 (hard_regs_roots, hard_regs_node_vec): Ditto.
11371 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
11372 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
11373 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
11374 (create_new_object_hard_regs_node): Ditto.
11375 (add_new_object_hard_regs_node_to_forest): Ditto.
11376 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
11377 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
11379 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
11380 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
11381 (remove_unused_object_hard_regs_nodes): Ditto.
11382 (enumerate_object_hard_regs_nodes): Ditto.
11383 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
11384 (object_hard_regs_subnode_t): Ditto.
11385 (struct object_hard_regs_subnode): Ditto.
11386 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
11387 (setup_object_hard_regs_subnode_index): Ditto.
11388 (get_object_hard_regs_subnodes_num): Ditto.
11389 (form_object_hard_regs_nodes_forest): Ditto.
11390 (finish_object_hard_regs_nodes_tree): Ditto.
11391 (finish_object_hard_regs_nodes_forest): Ditto.
11392 (allocnos_have_intersected_live_ranges_p): Rename to
11393 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
11394 (pseudos_have_intersected_live_ranges_p): Rename to
11395 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
11396 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
11397 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
11398 (update_copy_costs): Remove assert. Skip cost update if the hard
11399 reg does not belong the class.
11400 (assign_hard_reg): Process only profitable hard regs.
11401 (uncolorable_allocnos_num): Make it scalar.
11402 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
11403 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
11404 and ira_reg_class_max_nregs.
11405 (bucket_allocno_compare_func): Check frequency first.
11406 (sort_bucket): Add compare function as a parameter.
11407 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
11408 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
11409 (push_allocno_to_stack): Rewrite for checking new allocno
11411 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
11412 (push_only_colorable): Pass new parameter to sort_bucket.
11413 (push_allocno_to_spill): Remove.
11414 (allocno_spill_priority_compare): Make it inline and rewrite.
11415 (splay_tree_allocate, splay_tree_free): Remove.
11416 (allocno_spill_sort_compare): New function.
11417 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
11418 build and use splay tree. Choose first allocno in uncolorable
11419 allocno bucket to spill. Remove setting spill cost.
11420 (all_conflicting_hard_regs): Remove.
11421 (setup_allocno_available_regs_num): Check only profitable hard
11422 regs. Print info about hard regs nodes.
11423 (setup_allocno_left_conflicts_size): Remove.
11424 (put_allocno_into_bucket): Don't call
11425 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
11426 (improve_allocation): New.
11427 (color_allocnos): Call setup_profitable_hard_regs,
11428 form_object_hard_regs_nodes_forest, improve_allocation,
11429 finish_object_hard_regs_nodes_forest. Setup spill cost.
11430 (print_loop_title): Use pressure classes.
11431 (color_allocnso): Ditto.
11432 (do_coloring): Remove allocation and freeing splay_tree_node_pool
11433 and allocnos_for_spilling.
11434 (ira_sort_regnos_for_alter_reg): Don't setup members
11435 {first,next}_coalesced_allocno.
11436 (color): Remove allocating and freeing removed_splay_allocno_vec.
11437 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
11438 prohibited_class_mode_regs.
11440 * ira-lives.c: Remove mentioning cover classes from the file. Fix
11442 (update_allocno_pressure_excess_length): Use pressure classes.
11443 (inc_register_pressure, dec_register_pressure): Check for pressure
11445 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
11446 pressure class. Use ira_reg_class_nregs instead of
11447 ira_reg_class_max_nregs.
11448 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
11449 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
11450 (single_reg_class): Use ira_reg_class_nregs instead of
11451 ira_reg_class_max_nregs.
11452 (process_bb_node_lives): Use pressure classes.
11454 * ira-emit.c: Remove mentioning cover classes from the file. Use
11455 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
11456 (change_loop): Use pressure classes.
11457 (modify_move_list): Call ira_set_allocno_class instead of
11458 ira_set_allocno_cover_class.
11460 * ira-build.c: Remove mentioning cover classes from the file. Use
11461 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
11462 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
11463 ALLOCNO_UPDATED_CLASS_COST instead of
11464 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
11465 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
11466 (ira_create_allocno): Remove initialization of
11467 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
11468 ALLOCNO_COLORABLE_P.
11469 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
11470 Update conflict regs for the objects.
11471 (create_cap_allocno): Remove assert. Don't propagate
11472 ALLOCNO_AVAILABLE_REGS_NUM.
11473 (ira_free_allocno_costs): New function.
11474 (finish_allocno): Change a part of code into call of
11475 ira_free_allocno_costs.
11476 (low_pressure_loop_node_p): Use pressure classes.
11477 (object_range_compare_func): Don't compare classes.
11478 (setup_min_max_conflict_allocno_ids): Ditto.
11480 * loop-invariant.c: Remove mentioning cover classes from the file.
11481 Use ira_pressure_classes and ira_pressure_classes_num instead of
11482 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
11483 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
11484 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
11485 Use reg_allocno_class instead of reg_cover_class.
11486 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
11487 STACK_REG_COVER_CLASS.
11488 (get_regno_cover_class): Rename to get_regno_pressure_class.
11489 (move_loop_invariants): Initialize and finalize regstat.
11491 * ira.c: Remove mentioning cover classes from the file. Add
11492 comments about coloring without cover classes. Use ALLOCNO_CLASS
11493 instead of ALLOCNO_COVER_CLASS. Fix formatting.
11494 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
11495 setup_class_subset_and_memory_move_costs.
11496 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
11497 (setup_cover_and_important_classes): Rename to
11498 setup_allocno_and_important_classes.
11499 (setup_class_translate_array): New.
11500 (setup_class_translate): Call it for allocno and pressure classes.
11501 (cover_class_order): Rename to allocno_class_order.
11502 (comp_reg_classes_func): Use ira_allocno_class_translate instead
11503 of ira_class_translate.
11504 (reorder_important_classes): Set up ira_important_class_nums.
11505 (setup_reg_class_relations): Set up ira_reg_class_superunion.
11506 (print_class_cover): Rename to print_classes. Add parameter.
11507 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
11508 Print pressure classes too.
11509 (find_reg_class_closure): Rename to find_reg_classes. Don't call
11510 setup_reg_subclasses.
11511 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
11512 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
11513 (setup_prohibited_class_mode_regs): Use
11514 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
11515 (clarify_prohibited_class_mode_regs): New function.
11516 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
11517 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
11518 (ira_init_once): Initialize them.
11519 (free_register_move_costs): Process them.
11520 (ira_init): Move calls of find_reg_classes and
11521 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
11522 Call clarify_prohibited_class_mode_regs.
11523 (ira_no_alloc_reg): Remove.
11524 (too_high_register_pressure_p): Use pressure classes.
11526 * sched-deps.c: Remove mentioning cover classes from the file.
11527 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
11528 ira_pressure_classes and ira_pressure_classes_num instead of
11529 ira_reg_class_cover_size and ira_reg_class_cover.
11530 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
11531 sched_regno_pressure_class instead of sched_regno_cover_class.
11532 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
11533 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
11535 * ira.h: Add 2010 to Copyright.
11536 (ira_no_alloc_reg): Remove external.
11537 (struct target_ira): Rename x_ira_hard_regno_cover_class,
11538 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
11539 x_ira_class_translate to x_ira_hard_regno_allocno_class,
11540 x_ira_allocno_classes_num, x_ira_allocno_classes, and
11541 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
11542 x_ira_pressure_classes, x_ira_pressure_class_translate, and
11543 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
11544 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
11545 x_ira_no_alloc_regs.
11546 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
11547 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
11548 ira_allocno_classes_num and ira_allocno_classes.
11549 (ira_class_translate): Rename to ira_allocno_class_translate.
11550 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
11551 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
11552 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
11553 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
11554 (ira_no_alloc_regs): New.
11556 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
11557 classes from the file. Use ALLOCNO_CLASS instead of
11558 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
11559 ALLOCNO_COVER_CLASS_COST.
11560 (regno_cover_class): Rename to regno_aclass.
11561 (record_reg_classes): Use ira_reg_class_subunion instead of
11562 ira_reg_class_union.
11563 (record_address_regs): Check overflow.
11564 (scan_one_insn): Ditto.
11565 (print_allocno_costs): Print total mem cost fore regional allocation.
11566 (print_pseudo_costs): Use REG_N_REFS.
11567 (find_costs_and_classes): Use classes intersected with them on the
11568 1st pass. Check overflow. Use ira_reg_class_subunion instead of
11569 ira_reg_class_union. Use ira_allocno_class_translate and
11570 regno_aclass instead of ira_class_translate and regno_cover_class.
11571 Modify code for finding regno_aclass. Setup preferred classes for
11573 (setup_allocno_cover_class_and_costs): Rename to
11574 setup_allocno_class_and_costs. Use regno_aclass instead of
11575 regno_cover_class. Use ira_set_allocno_class instead of
11576 ira_set_allocno_cover_class.
11577 (init_costs, finish_costs): Use regno_aclass instead of
11579 (ira_costs): Use setup_allocno_class_and_costs instead of
11580 setup_allocno_cover_class_and_costs.
11581 (ira_tune_allocno_costs_and_cover_classes): Rename to
11582 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
11583 by processing objects. Use ira_reg_class_max_nregs instead of
11584 ira_reg_class_nregs.
11586 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
11588 * sched-int.h: Remove mentioning cover classes from the file.
11589 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
11591 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
11592 classes from the file.
11593 (struct reg_pref): Rename coverclass into allocnoclass.
11594 (reg_cover_class): Rename to reg_allocno_class.
11596 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
11598 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
11600 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
11602 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
11604 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
11606 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
11608 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
11610 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
11612 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
11614 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
11616 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
11617 (i386_ira_cover_classes): Ditto.
11619 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
11621 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
11623 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
11625 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
11627 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
11629 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
11631 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
11632 (mips_ira_cover_classes): Ditto.
11634 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
11636 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
11638 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
11640 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
11642 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
11644 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
11645 (IRA_COVER_CLASSES_VSX): Ditto.
11647 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
11648 (rs6000_ira_cover_classes): Ditto.
11650 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
11652 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
11654 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
11656 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
11658 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
11660 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
11662 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
11664 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
11666 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
11668 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
11670 2011-03-29 Jakub Jelinek <jakub@redhat.com>
11673 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
11674 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
11675 dw_fde_unlikely_section_end_label, cold_in_std_section,
11676 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
11677 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
11679 (output_fde): Use dw_fde_second_{begin,end} if second is
11680 true, otherwise dw_fde_{begin,end}.
11681 (output_call_frame_info): Test dw_fde_second_begin != NULL
11682 instead of dw_fde_switched_sections.
11683 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
11684 fields, initialize new fields. Initialize in_std_section
11685 unconditionally from the first partition.
11686 (dwarf2out_end_epilogue): Don't override dw_fde_end when
11687 dw_fde_second_begin is non-NULL.
11688 (dwarf2out_switch_text_section): Stop initializing removed
11689 dw_fde_struct fields, initialize new fields, initialize
11690 also dw_fde_end here. Set dw_fde_switch_cfi even when
11691 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
11692 (struct var_loc_list_def): Add last_before_switch field.
11693 (arange_table, arange_table_allocated, arange_table_in_use,
11694 ARANGE_TABLE_INCREMENT, add_arange): Removed.
11695 (size_of_aranges): Count !in_std_section and !second_in_std_section
11696 hunks in fdes, instead of looking at arange_table_in_use.
11697 (output_aranges): Add aranges_length argument, don't call
11698 size_of_aranges here. Instead of using aranges_table*
11699 emit ranges for fdes when !in_std_section resp.
11700 !second_in_std_section.
11701 (dw_loc_list): Break ranges crossing section switch.
11702 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
11703 use dw_fde_second_end instead of dw_fde_end as end of last range.
11704 (gen_subprogram_die): Don't call add_arange. Use
11705 dw_fde_{begin,end} for first partition and if switched
11706 section dw_fde_second_{begin,end} for the second.
11707 (var_location_switch_text_section_1,
11708 var_location_switch_text_section): New functions.
11709 (dwarf2out_begin_function): Initialize cold_text_section even
11710 when function_section () isn't text_section.
11711 (prune_unused_types): Don't walk arange_table.
11712 (dwarf2out_finish): Don't needlessly test
11713 flag_reorder_blocks_and_partition when testing cold_text_section_used.
11714 If info_section_emitted, call size_of_aranges and if it indicates
11715 non-empty .debug_aranges, call output_aranges with the computed
11716 size. Stop using removed dw_fde_struct fields, use
11717 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
11721 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
11722 create ENTRY_VALUE if incoming or address of incoming's MEM
11724 * dwarf2out.c (mem_loc_descriptor): Don't emit
11725 DW_OP_GNU_entry_value of DW_OP_fbreg.
11726 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
11727 on ENTRY_VALUE is able to find the canonical parameter VALUE.
11728 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
11729 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
11731 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
11732 is a REG_P or MEM_P with REG_P address, compute hash directly
11733 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
11734 (preserve_only_constants): Don't clear VALUES forwaring
11735 ENTRY_VALUE to some other VALUE.
11737 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
11739 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
11740 instead of GEN_INT.
11742 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
11744 * cfgexpand.c (expand_gimple_cond): Always set the source location and
11745 block before expanding the statement.
11746 (expand_gimple_stmt_1): Likewise. Set them here...
11747 (expand_gimple_stmt): ...and not here. Tidy.
11748 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
11751 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
11753 * Makefile.in: New rule for cprop.o.
11754 * gcse.c: Move constant/copy propagation to cprop.c.
11755 (compute_local_properties): Only handle expression tables.
11756 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
11757 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
11758 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
11759 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
11760 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
11761 compute_cprop_data, find_used_regs, try_replace_reg,
11762 find_avail_set, cprop_jump, constprop_register, cprop_insn,
11763 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
11764 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
11765 find_bypass_set, reg_killed_on_edge, bypass_block,
11766 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
11767 execute_rtl_cprop, pass_rtl_cprop): Move to...
11768 * cprop.c: ...here. New file, constant/copy propagation for RTL
11769 moved from gcse.c to here with minor cleanups in duplicated code.
11771 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
11773 * config/i386/i386.c (flag_opts): Fix a typo in
11774 -mavx256-split-unaligned-store.
11776 2011-03-28 Anatoly Sokolov <aesok@post.ru>
11778 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
11779 LIBCALL_VALUE): Remove macros.
11780 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11781 TARGET_FUNCTION_VALUE_REGNO_P): Define.
11782 (h8300_function_value, h8300_libcall_value,
11783 h8300_function_value_regno_p): New functions.
11785 2011-03-28 Anatoly Sokolov <aesok@post.ru>
11787 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
11789 2011-03-28 Jeff Law <law@redhat.com>
11791 * tree-ssa-threadupdate.c (redirect_edges): Call
11792 create_edge_and_update_destination_phis as needed.
11793 (create_edge_and_update_destination_phis): Accept new BB argument.
11794 All callers updated.
11795 (thread_block): Do not update the profile when threading around
11796 intermediate blocks.
11797 (thread_single_edge): Likewise.
11798 (determine_bb_domination_status): If BB is not a successor of the
11799 loop header, return NONDOMINATING.
11800 (register_jump_thread): Note when we register a jump thread around
11801 an intermediate block.
11802 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
11803 (thread_across_edge): Use it.
11805 2011-03-28 Tristan Gingold <gingold@adacore.com>
11807 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
11808 when for_return is 2.
11810 2011-03-28 Jeff Law <law@redhat.com>
11812 * var-tracking.c (canonicalize_values_mark): Delete unused
11814 (canonicalize_values_star, set_variable_part): Likewise.
11815 (clobber_variable_part, delete_variable_part): Likewise.
11817 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
11819 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
11821 2011-03-28 Martin Jambor <mjambor@suse.cz>
11823 * tree-inline.c (expand_call_inline): Do not check that destination
11825 (optimize_inline_calls): Assert that destination node is analyzed.
11826 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
11827 not call tree_lowering_passes.
11828 * cgraph.h (cgraph_analyze_function): Declare.
11829 * cgraphunit.c (cgraph_analyze_function): Make public.
11831 2011-03-28 Joseph Myers <joseph@codesourcery.com>
11833 * config/sparc/sparc-opts.h: New.
11834 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
11835 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
11836 (sparc_option_override): Store processor_type enumeration rather
11837 than string in cpu_default. Remove name and enumeration from
11838 cpu_table. Directly default -mcpu then default -mtune from -mcpu
11839 without using sparc_select. Use target_flags_explicit instead of
11841 * config/sparc/sparc.h (enum processor_type): Move to
11843 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
11844 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
11845 HeaderInclude entry.
11846 (mcpu=, mtune=): Use Var and Enum.
11847 (sparc_processor_type): New Enum and EnumValue entries.
11849 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11850 Iain Sandoe <iains@gcc.gnu.org>
11853 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
11855 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
11857 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
11858 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
11859 Insert new statements at it in lieu of STMT.
11860 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
11861 * tree-vect-stmts.c (vectorizable_store): Likewise.
11862 (vectorizable_load): Likewise.
11864 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
11866 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
11871 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
11873 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
11874 unaligned 256bit load/store.
11875 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
11876 (*avx_movdqu<avxmodesuffix>): Likewise.
11878 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11881 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
11882 * config/pa/pa.md (iordi3): Use new predicate in expander.
11883 (iorsi3): Likewise.
11885 2011-03-27 Anatoly Sokolov <aesok@post.ru>
11887 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
11888 FUNCTION_VALUE_REGNO_P): Remove macros.
11889 * config/mips/mips-protos.h (mips_function_value): Remove.
11890 * config/mips/mips.c (mips_function_value): Rename to...
11891 (mips_function_value_1): ... this. Make static. Handle receiving
11892 the function type in 'fn_decl_or_type' argument.
11893 (mips_function_value, mips_libcall_value,
11894 mips_function_value_regno_p): New function.
11895 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11896 TARGET_FUNCTION_VALUE_REGNO_P): Define.
11898 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
11900 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
11901 and -mavx256-split-unaligned-store.
11902 (ix86_option_override_internal): Split 32-byte AVX unaligned
11903 load/store by default.
11904 (ix86_avx256_split_vector_move_misalign): New.
11905 (ix86_expand_vector_move_misalign): Use it.
11907 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
11908 -mavx256-split-unaligned-store.
11910 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
11911 256bit load/store. Generate unaligned store on misaligned memory
11913 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
11915 (*avx_movdqu<avxmodesuffix>): Likewise.
11917 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
11918 -mavx256-split-unaligned-store.
11920 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
11923 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
11926 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
11928 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
11929 opno arguments with an expand_operand. Use create_input_operand.
11930 (mips_prepare_builtin_target): Delete.
11931 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
11933 (mips_expand_builtin_direct): Use create_output_operand and
11934 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
11935 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
11936 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
11938 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
11940 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
11942 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
11944 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
11946 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
11947 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
11948 basic blocks and call commit_edge_insertions directly.
11949 (fixup_abnormal_edges): Move from here to...
11950 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
11951 on the edges and return whether some have actually been inserted.
11952 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
11955 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
11957 PR rtl-optimization/48144
11958 * sel-sched-ir.c (merge_history_vect): Factor out from ...
11959 (merge_expr_data): ... here.
11960 (av_set_intersect): Rename to av_set_code_motion_filter.
11961 Update all callers. Call merge_history_vect when an expression
11962 is found in both sets.
11963 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
11965 2011-03-26 Alan Modra <amodra@gmail.com>
11967 * config/rs6000/predicates.md (word_offset_memref_op): Handle
11968 cmodel medium addresses.
11969 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
11970 64-bit gpr loads and stores.
11971 (rs6000_secondary_reload_ppc64): New function.
11972 * config/rs6000/rs6000-protos.h: Declare it.
11973 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
11975 2011-03-26 Alan Modra <amodra@gmail.com>
11978 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
11979 GNU Go in traceback table.
11981 2011-03-25 Richard Henderson <rth@redhat.com>
11983 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
11984 if there are exactly 6 operands.
11985 (set_storage_via_setmem): Similarly.
11987 2011-03-25 Kai Tietz <ktietz@redhat.com>
11989 * collect2.c (write_c_file_stat): Handle backslash
11990 as right-hand directory separator.
11991 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
11992 checking just for slash.
11993 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
11994 instead of checking for trailing slash.
11995 * gcc.c (record_temp_file): Use filename_cmp instead
11997 (do_spec_1): Likewise.
11998 (replace_outfile_spec_function): Likewise.
11999 (is_directory): Use filename_ncmp instead of strncmp.
12000 (print_multilib_info): Likewise.
12001 * gcov.c (find_source): Use filename_cmp instead
12003 (make_gcov_file_name): Fix order of slash/backslash
12005 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
12006 (add_standard_paths): Likewise.
12007 * mips-tfile.c (saber_stop): Handle backslash.
12008 * prefix.c (update_path): Use filename_ncmp instead of
12010 * profile.c (output_location): Use filename_cmp instead
12012 * read-md.c (handle_toplevel_file): Handle backslash.
12013 * tlink.c (frob_extension): Likewise.
12014 * tree-cfg.c (same_line_p): Use filename_cmp instead of
12016 * tree-dump.c (dequeue_and_dump): Handle backslash.
12017 * tree.c (get_file_function_name): Likewise.
12018 * gengtype.c (read_input_list): Likewise.
12019 (get_file_realbasename): Likewise.
12020 (get_output_file_with_visibility): Use filename_cmp
12023 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
12025 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
12028 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
12030 * fold-const.c (expr_location_or): New function.
12031 (fold_truth_not_expr): Call it.
12033 2011-03-25 Jeff Law <law@redhat.com>
12035 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
12037 * c-family/c-common.c (def_fn_type): Likewise.
12038 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
12039 * emit-rtl.c (gen_rtvec): Likewise.
12040 * lto/lto-lang.c (def_fn_type): Likewise.
12042 2011-03-25 Richard Guenther <rguenther@suse.de>
12044 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
12045 also generate copies.
12046 (fini_copy_prop): Handle constant values properly.
12048 2011-03-25 Jakub Jelinek <jakub@redhat.com>
12050 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
12051 mode size instead of bitsize with DWARF2_ADDR_SIZE.
12052 (hash_loc_operands, compare_loc_operands): Handle
12053 DW_OP_GNU_entry_value.
12055 2011-03-25 Kai Tietz <ktietz@redhat.com>
12057 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
12058 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
12059 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
12060 comment and use macro TARGET_64BIT_MS_ABI instead.
12061 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
12062 and change default behavior for 32-bit MS_ABI.
12063 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
12064 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
12066 (ix86_cfun_abi): Likewise.
12067 (ix86_maybe_switch_abi): Adjust comment.
12068 (init_cumulative_args): Check for bit-ness in MS_ABI case.
12069 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
12070 instead of checking for SYSV_ABI.
12071 (ix86_nsaved_sseregs): Likewise.
12072 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
12074 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
12075 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
12076 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
12077 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
12078 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
12080 2011-03-25 Richard Guenther <rguenther@suse.de>
12082 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
12083 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
12084 (verify_gimple): Remove.
12085 * tree-cfg.c (verify_gimple_call): Merge verification
12087 (verify_gimple_phi): Merge verification from verify_stmts.
12088 (verify_gimple_label): New function.
12089 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
12090 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
12091 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
12092 (verify_stmts): Rename to verify_gimple_in_cfg.
12093 (verify_gimple_in_cfg): New function.
12094 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
12095 * tree-ssa.c (verify_ssa): Likewise.
12096 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
12098 2011-03-25 Richard Guenther <rguenther@suse.de>
12100 * passes.c (init_optimization_passes): Add FRE pass after
12103 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
12104 Andrew Stubbs <ams@codesourcery.com>
12106 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
12108 (arm_movdi_vfp_cortexa8): New pattern.
12109 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
12110 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
12111 instructions when tuning for Cortex-A8. Set attribute "arch".
12112 * config/arm/arm.md: Move include arm-tune.md up a bit.
12113 (define_attr "arch"): Add "onlya8" and "nota8" values.
12114 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
12116 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
12120 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
12122 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
12123 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
12124 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
12125 * passes.c (init_optimization_passes): Move
12126 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
12128 2011-03-25 Kai Tietz <ktietz@redhat.com>
12130 * c-typeck.c (comptypes_internal): Replace target
12131 hook call of comp_type_attributes by version in tree.c file.
12132 * gimple.c (gimple_types_compatible_p_1): Likewise.
12133 * tree-ssa.c (useless_type_conversion_p): Likewise.
12134 * tree.c (build_type_attribute_qual_variant): Likewise.
12135 (attribute_value_equal): New static helper function.
12136 (comp_type_attributes): New function.
12137 (merge_attributes): Use attribute_value_equal for comparison.
12138 (attribute_list_contained): Likewise.
12139 * tree.h (comp_type_attributes): New prototype.
12141 2011-03-25 Richard Guenther <rguenther@suse.de>
12143 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
12144 of complex types at -O0.
12145 (verify_gimple_assign_binary): Likewise.
12146 (verify_gimple_assign_ternary): Likewise.
12148 2011-03-24 Mark Wielaard <mjw@redhat.com>
12150 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
12151 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
12153 2011-03-24 Mark Wielaard <mjw@redhat.com>
12156 * dwarf2out.c (output_abbrev_section): Only write table when
12157 abbrev_die_table_in_use > 1.
12159 2011-02-24 Richard Henderson <rth@redhat.com>
12161 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
12162 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
12163 (alpha_expand_unaligned_load_words): Use extql.
12164 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
12165 (emit_insxl): Handle all modes for consistency.
12167 2011-02-24 Richard Henderson <rth@redhat.com>
12169 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
12170 (alpha_expand_unaligned_load): Likewise.
12171 (alpha_expand_unaligned_store): Likewise.
12172 (alpha_expand_unaligned_load_words): Likewise.
12173 (alpha_expand_unaligned_store_words): Likewise.
12174 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
12175 (alpha_split_lock_test_and_set_12): Likewise.
12176 (print_operand, alpha_fold_builtin_extxx): Likewise.
12177 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
12178 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
12179 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
12180 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
12181 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
12182 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
12183 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
12184 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
12185 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
12186 (extwl, extll, extql): Similarly.
12187 (inswh, inslh, insqh): Similarly.
12188 (mskbl, mskwl, mskll, mskql): Similarly.
12189 (mskwh, msklh, mskqh): Similarly.
12191 2011-02-24 Richard Henderson <rth@redhat.com>
12193 * config/alpha/alpha.md (attribute isa): Add er, ner.
12194 (attribute enabled): Handle them.
12195 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
12197 2011-02-24 Richard Henderson <rth@redhat.com>
12199 * config/alpha/alpha.md (attribute isa): Add vms.
12200 (attribute enabled): Handle it.
12201 (*movsf): Merge *movsf_{nofix,fix,nofp}.
12202 (*movdf): Merge *movdf_{nofix,fix,nofp}.
12203 (*movtf): Rename from *movtf_internal for consistency.
12204 (*movsi): Merge with *movsi_nt_vms.
12205 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
12206 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
12207 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
12208 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
12210 2011-02-24 Richard Henderson <rth@redhat.com>
12212 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
12213 (extendqisi2, extendhisi2): Likewise.
12214 (extendqidi2): Simplify BWX/non-BWX expansions.
12215 (extendhidi2): Similarly.
12217 2011-02-24 Richard Henderson <rth@redhat.com>
12219 * config/alpha/alpha.md (attribute isa): New.
12220 (attribute enabled): New.
12221 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
12222 (zero_extendqisi2, zero_extendqidi2): Similarly.
12223 (zero_extendhisi2, zero_extendhidi2): Similarly.
12224 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
12226 2011-02-24 Richard Henderson <rth@redhat.com>
12228 * config/alpha/predicates.md (input_operand): Revert last change;
12229 update comment to mention 32-bit VMS rather than Windows.
12231 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
12233 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
12234 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
12235 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
12236 * passes.c (init_optimization_passes): Move
12237 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
12239 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
12241 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
12243 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
12245 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
12248 2011-03-24 Jakub Jelinek <jakub@redhat.com>
12251 * simplify-rtx.c (simplify_const_unary_operation): Call
12252 real_convert when changing mode class with FLOAT_EXTEND.
12254 2011-03-24 Nick Clifton <nickc@redhat.com>
12256 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
12257 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
12258 * config/rx/rx.c (rx_option_override): Set align_jumps,
12259 align_loops and align_labels if not set by the user.
12260 (rx_align_for_label): New function.
12261 (rx_max_skip_for_label): New function.
12262 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
12263 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
12264 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
12265 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
12266 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
12268 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
12270 PR rtl-optimization/48263
12271 * optabs.c (expand_binop_directly): Reinstate convert_modes code
12272 and original commutative_p handling. Use maybe_gen_insn.
12274 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12276 * reload.c (find_reloads_subreg_address): Add address_reloaded
12277 parameter and return true there if the full address has been
12279 (find_reloads_toplev): Pass address_reloaded flag.
12280 (find_reloads_address_1): Don't use address_reloaded parameter.
12282 2011-03-24 Jeff Law <law@redhat.com>
12284 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
12285 unused variable "ann".
12286 (remove_unused_locals): Likewise.
12288 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
12291 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
12294 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12296 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
12297 for invalid symbolic addresses.
12298 (s390_secondary_reload): Don't use s390_check_symref_alignment for
12301 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
12303 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
12304 the argument in calls to fold_truth_not_expr.
12306 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
12308 * tree.c (record_node_allocation_statistics): New function.
12309 (make_node_stat, copy_node_stat, build_string): Call it.
12310 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
12311 (build1_stat, build_omp_clause): Likewise.
12313 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
12315 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
12318 2011-03-24 Richard Guenther <rguenther@suse.de>
12320 PR tree-optimization/48271
12321 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
12322 blocks that still exist.
12324 2011-03-24 Richard Guenther <rguenther@suse.de>
12326 PR tree-optimization/48270
12327 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
12328 not free datarefs before ddrs.
12330 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
12332 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
12333 from the address built for a reference with variable offset.
12335 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
12338 * config/i386/i386.md (*movdf_internal_rex64): Do not split
12339 alternatives that can be handled with movq or movabsq insn.
12340 (*movdf_internal): Disable for !TARGET_64BIT.
12341 (*movdf_internal_nointeger): Ditto.
12342 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
12344 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
12346 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
12347 (FUNCTION_ARG_ADVANCE): Likewise.
12348 * tm.texi.in: Change references to them to hook references.
12349 * tm.texi: Regenerate.
12350 * targhooks.c (default_function_arg): Eliminate check for target macro.
12351 (default_function_incoming_arg): Likewise.
12352 (default_function_arg_advance): Likewise.
12353 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
12354 (function_arg_advance): Likewise.
12355 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
12357 2011-03-24 Richard Guenther <rguenther@suse.de>
12359 PR middle-end/48269
12360 * tree-object-size.c (addr_object_size): Do not double-account
12361 for MEM_REF offsets.
12363 2011-03-24 Diego Novillo <dnovillo@google.com>
12365 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
12366 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
12367 (lto_input_data_block): Move from lto-opts.c. Make extern.
12369 (lto_input_string): Rename from input_string. Make extern.
12371 * lto-streamer-out.c (lto_output_string_with_length): Rename from
12372 output_string_with_length.
12373 Output 0 to indicate a non-NULL string. Update all callers to
12375 (lto_output_string): Rename from output_string. Make extern.
12377 (lto_output_decl_state_streams): Make extern.
12378 (lto_output_decl_state_refs): Make extern.
12379 * lto-streamer.h (lto_input_string): Declare.
12380 (lto_input_data_block): Declare.
12381 (lto_output_string): Declare.
12382 (lto_output_string_with_length): Declare.
12383 (lto_output_decl_state_streams): Declare.
12384 (lto_output_decl_state_refs): Declare.
12386 2011-03-24 Richard Guenther <rguenther@suse.de>
12388 PR tree-optimization/46562
12389 * tree.c (build_invariant_address): New function.
12390 * tree.h (build_invariant_address): Declare.
12391 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
12392 a renamed function moved ...
12393 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
12394 Take valueization callback parameter.
12395 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
12396 * gimple-fold.h: New file.
12397 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
12398 (ccp_fold, fold_const_aggregate_ref,
12399 fold_ctor_reference, fold_nonarray_ctor_reference,
12400 fold_array_ctor_reference, fold_string_cst_ctor_reference,
12401 get_base_constructor): Move ...
12402 * gimple-fold.c: ... here.
12403 (gimple_fold_stmt_to_constant_1): New function
12404 split out from ccp_fold. Take a valueization callback parameter.
12405 Valueize all operands.
12406 (gimple_fold_stmt_to_constant): New wrapper function.
12407 (fold_const_aggregate_ref_1): New function split out from
12408 fold_const_aggregate_ref. Take a valueization callback parameter.
12409 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
12410 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
12411 invariant POINTER_PLUS_EXPRs to invariant form.
12412 (vn_valueize): New function.
12413 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
12414 * tree-vrp.c (vrp_valueize): New function.
12415 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
12416 to fold statements to constants.
12417 * tree-ssa-pre.c (eliminate): Properly guard propagation of
12418 function declarations.
12419 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
12420 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
12422 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
12424 * config/h8300/predicates.md (jump_address_operand): Fix register
12427 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
12429 * doc/invoke.texi (max-stores-to-sink): Document.
12430 * params.h (MAX_STORES_TO_SINK): Define.
12431 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
12432 if either vectorization or if-conversion is disabled.
12433 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
12434 tree-vect-data-refs.c vect_equal_offsets.
12435 (dr_equal_offsets_p): New function.
12436 (find_data_references_in_bb): Remove static.
12437 * tree-data-ref.h (find_data_references_in_bb): Declare.
12438 (dr_equal_offsets_p): Likewise.
12439 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
12440 (vect_drs_dependent_in_basic_block): Update calls to
12441 vect_equal_offsets.
12442 (vect_check_interleaving): Likewise.
12443 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
12444 (cond_if_else_store_replacement): Rename to...
12445 (cond_if_else_store_replacement_1): ... this. Change arguments and
12447 (cond_if_else_store_replacement): New function.
12448 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
12449 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
12451 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
12454 * config/arm/arm.md (casesi): Use the gen_int_mode() function
12455 to subtract lower bound instead of GEN_INT().
12457 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
12462 * doc/extend.texi (Alignment): Move section to match order in TOC.
12463 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
12464 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
12466 2011-03-23 Jeff Law <law@redhat.com>
12468 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
12469 before removing the edge.
12471 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
12472 it may have been freed by redirect_branch_edge or
12473 redirect_edge_succ_nodup.
12475 2011-03-23 Richard Guenther <rguenther@suse.de>
12477 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
12478 (check_va_list_escapes): Likewise.
12479 (check_all_va_list_escapes): Likewise.
12481 2011-03-23 Richard Guenther <rguenther@suse.de>
12483 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
12484 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
12485 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
12486 (alias.o): Likewise.
12487 (ipa-type-escape.o): Remove.
12488 (ipa-struct-reorg.o): Likewise.
12489 (GTFILES): Remove ipa-struct-reorg.c.
12490 * alias.c: Do not include ipa-type-escape.h.
12491 * tree-ssa-alias.c: Likewise.
12492 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
12493 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
12494 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
12495 and ipa-type-escape passes.
12496 * tree-pass.h (pass_ipa_type_escape): Remove.
12497 (pass_ipa_struct_reorg): Likewise.
12498 * ipa-struct-reorg.h: Remove.
12499 * ipa-struct-reorg.c: Likewise.
12500 * ipa-type-escape.h: Likewise.
12501 * ipa-type-escape.c: Likewise.
12502 * doc/invoke.texi (-fipa-struct-reorg): Remove.
12503 (--param struct-reorg-cold-struct-ratio): Likewise.
12504 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
12505 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
12506 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
12508 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12510 * config/s390/2084.md: Enable all insn reservations also for z9_ec
12511 cpu attribute value.
12512 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
12513 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
12514 * config/s390/s390.c (processor_flags_table): New constant array.
12515 (s390_handle_arch_option): Remove.
12516 (s390_handle_option): Remove s390_handle_arch_option invocations
12517 and OPT_mwarn_framesize_ handling.
12518 (s390_option_override): Remove s390_handle_arch_option invocation.
12519 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
12521 * config/s390/s390.md (cpu attribute): Add z9_ec value.
12522 * config/s390/s390.opt (s390_tune, s390_arch)
12523 (march=): Replace s390_arch_option enum and values with
12524 processor_type. Set variable name to s390_arch. Set
12525 initialization value.
12526 (mtune=): Replace s390_arch_option with processor_type. Set
12527 variable name to s390_tune. Set initialization value.
12529 2011-03-23 Julian Brown <julian@codesourcery.com>
12531 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
12532 accesses which are not naturally aligned.
12534 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
12537 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
12539 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
12541 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
12542 parameter from "int" to "enum insn_code".
12543 (expand_operand_type): New enum.
12544 (expand_operand): New structure.
12545 (create_expand_operand): New function.
12546 (create_fixed_operand, create_output_operand): Likewise
12547 (create_input_operand, create_convert_operand_to): Likewise.
12548 (create_convert_operand_from, create_address_operand): Likewise.
12549 (create_integer_operand): Likewise.
12550 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
12551 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
12552 (expand_insn, expand_jump_insn): Likewise.
12553 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
12554 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
12555 (expand_movstr, expand_builtin___clear_cache): Likewise.
12556 (expand_builtin_lock_release): Likewise.
12557 * explow.c (allocate_dynamic_stack_space): Likewise.
12558 (probe_stack_range): Likewise. Allow check_stack to FAIL,
12559 and use the default handling in that case.
12560 * expmed.c (check_predicate_volatile_ok): Delete.
12561 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
12562 (emit_cstore): Likewise.
12563 * expr.c (emit_block_move_via_movmem): Likewise.
12564 (set_storage_via_setmem, expand_assignment): Likewise.
12565 (emit_storent_insn, try_casesi): Likewise.
12566 (emit_single_push_insn): Likewise. Allow the expansion to fail.
12567 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
12568 (expand_vec_shift_expr, expand_binop_directly): Likewise.
12569 (expand_twoval_unop, expand_twoval_binop): Likewise.
12570 (expand_unop_direct, emit_indirect_jump): Likewise.
12571 (emit_conditional_move, vector_compare_rtx): Likewise.
12572 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
12573 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
12574 (expand_sync_lock_test_and_set): Likewise.
12575 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
12576 (emit_unop_insn): Likewise.
12577 (expand_copysign_absneg): Change icode to an insn_code.
12578 (create_convert_operand_from_type): New function.
12579 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
12580 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
12581 (expand_insn, expand_jump_insn): Likewise.
12582 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
12583 than const_int_operand for operand 2.
12585 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12587 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
12590 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
12592 * emit-rtl.c (emit_pattern_before_noloc): New function.
12593 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
12594 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
12595 (emit_pattern_after_noloc): New function.
12596 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
12597 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
12599 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
12601 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
12602 (__ffsDI2): Likewise.
12604 2011-03-22 Richard Henderson <rth@redhat.com>
12606 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
12607 of !TARGET_ABI_OPEN_VMS.
12608 (alpha_trampoline_init, alpha_start_function): Likewise.
12609 (alpha_expand_epilogue, alpha_file_start): Likewise.
12610 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
12611 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
12612 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
12613 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
12614 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
12616 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12618 * config/s390/s390-opts.h: New.
12619 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
12620 s390_arch_flags, s390_warn_framesize, s390_stack_size,
12621 s390_stack_guard): Remove.
12622 (s390_handle_arch_option): Return void. Take enum
12623 s390_arch_option value instead of string and searching array.
12624 (s390_handle_option): Don't assert that global structures are in
12625 use. Access variables via opts pointer. Use error_at. Don't use
12626 sscanf for -mstack-guard= or -mstack-size=. Update call to
12627 s390_handle_arch_option.
12628 (s390_option_override): Update call to s390_handle_arch_option.
12629 (s390_emit_prologue): Use %d format for s390_stack_size in
12630 diagnostic. Use %wd for HOST_WIDE_INT.
12631 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
12632 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
12633 * config/s390/s390.opt (config/s390/s390-opts.h): New
12634 HeaderInclude entry.
12635 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
12636 s390_arch_flags, s390_warn_framesize): New Variable entries.
12637 (s390_arch_option): New Enum and EnumValue entries.
12638 (march=): Use Enum instead of Var.
12639 (mstack-guard=, mstack-size=): Use UInteger and Var.
12640 (mtune=): Use Enum.
12642 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12644 * config/score/score.c (score_handle_option): Don't assert that
12645 global structures are in use. Access target_flags via opts
12646 pointer. Use value of -march= option to determine target_flags
12648 * config/score/score.opt (march=): Use Enum.
12649 (score_arch): New Enum and EnumValue entries.
12651 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12653 * config/mep/mep.c (option_mtiny_specified): Remove.
12654 (mep_option_override): Move register handling for -mivc2 from
12655 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
12656 instead of option_mtiny_specified.
12657 (mep_handle_option): Access target_flags via opts pointer. Don't
12658 assert that global structures are in use. Defer part of -mivc2
12659 handling and move it to mep_option_override.
12660 * config/mep/mep.opt (IVC2): New Mask entry.
12661 (mivc2): Use Var and Defer instead of Mask.
12663 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12665 * config/v850/v850-opts.h: New.
12666 * config/v850/v850.c (small_memory): Replace with
12667 small_memory_physical_max array. Make that array static const.
12668 (v850_handle_memory_option): Take integer value of argument. Take
12669 gcc_options pointer, option text and location. Return void.
12670 Update for changes to small memory structures.
12671 (v850_handle_option): Access target_flags via opts pointer. Don't
12672 assert that global structures are in use. Update calls to
12673 v850_handle_memory_option.
12674 (v850_encode_data_area): Update references to small memory settings.
12675 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
12676 (enum small_memory_type): Move to v850-opts.h.
12677 * config/v850/v850.opt (config/v850/v850-opts.h): New
12678 HeaderInclude entry.
12679 (small_memory_max): New Variable entry.
12680 (msda): Replace by pair of options msda= and msda-. Use UInteger.
12681 (mtda, mzda): Likewise.
12683 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12685 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
12686 pointer. Don't assert that global structures are in use.
12688 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12690 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
12691 via opts pointer. Don't assert that global structures are in use.
12693 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12695 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
12696 (munix=93): Use Var.
12697 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
12698 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
12699 * config/pa/pa-opts.h: New.
12700 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
12701 (pa_handle_option): Don't assert that global structures are in
12702 use. Access target_flags via opts pointer. Don't handle
12703 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
12705 (pa_option_override): Handle deferred OPT_mfixed_range_.
12707 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12709 * config/mn10300/mn10300-opts.h: New.
12710 * config/mn10300/mn10300.c (mn10300_processor,
12711 mn10300_tune_string): Remove.
12712 (mn10300_handle_option): Don't assert that global structures are
12713 in use. Access mn10300_processor via opts pointer. Don't handle
12715 * config/mn10300/mn10300.h (enum processor_type): Move to
12717 (mn10300_processor): Remove.
12718 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
12719 HeaderInclude entry.
12720 (mn10300_processor): New Variable entry.
12723 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12725 * config/microblaze/microblaze.c: Don't include opts.h.
12726 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
12727 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
12728 (mno-clearbss): Use Var and Warn.
12730 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12732 * config/m32r/m32r-opts.h: New.
12733 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
12734 (m32r_handle_option): Don't assert that global structures are in
12735 use. Access target_flags and m32r_cache_flush_func via opts
12736 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
12737 OPT_mno_flush_trap here.
12738 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
12739 include of m32r-opts.h.
12740 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
12741 HeaderInclude entry.
12742 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
12743 (mmodel=): Use Enum and Var.
12744 (m32r_model): New Enum and EnumValue entries.
12745 (mno-flush-trap): Use Var.
12746 (msdata=): Use Enum and Var.
12747 (m32r_sdata): New Enum and EnumValue entries.
12749 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12751 * config/m32c/m32c.c: Don't include opts.h.
12752 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
12753 m32c_handle_option): Remove.
12754 (m32c_option_override): Check global_options_set.x_target_memregs
12755 instead of target_memregs_set.
12756 * config/m32c/m32c.h (target_memregs): Remove.
12757 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
12760 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12762 * config/iq2000/iq2000-opts.h: New.
12763 * config/iq2000/iq2000.c: Don't include opts.h.
12764 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
12765 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
12766 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
12767 HeaderInclude entry.
12768 (iq2000_tune): New Variable entry.
12769 (march=): Add comment. Use Enum.
12770 (iq2000_arch): New Enum and EnumValue entries.
12771 (mcpu=): Use Enum and Var.
12772 (iq2000_tune): New Enum and EnumValue entries.
12774 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12776 * config/ia64/ia64-opts.h: New.
12777 * config/ia64/ia64.c (ia64_tune): Remove.
12778 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
12779 here. Use error_at.
12780 (ia64_option_override): Handle deferred OPT_mfixed_range_.
12781 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
12782 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
12783 HeaderInclude entry.
12784 (ia64_tune): New Variable entry.
12785 (mfixed-range=): Use Defer and Var.
12786 (mtune=): Use Enum and Var.
12787 (ia64_tune): New Enum and EnumValue entries.
12789 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12791 * config/frv/frv-opts.h: New.
12792 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
12794 (frv_cpu_type): Remove.
12795 * config/frv/frv.c: Don't include opts.h.
12796 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
12797 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
12798 (frv_cpu_type): New Variable entry.
12799 (frv_cpu): New Enum and EnumValue entries.
12801 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12803 * config/cris/cris.c (cris_handle_option): Access target_flags via
12804 opts pointer. Don't assert that global structures are in use.
12805 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
12806 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
12808 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12810 * config/bfin/bfin-opts.h: New.
12811 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
12812 bfin_si_revision, bfin_workarounds): Remove.
12813 (bfin_cpus): Make static const.
12814 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
12815 not bfin_lib_id_given.
12816 (bfin_handle_option): Don't set bfin_lib_id_given. Access
12817 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
12818 pointer. Use error_at. Don't assert that global structures are in use.
12819 * config/bfin/bfin.h: Include bfin-opts.h.
12820 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
12821 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
12822 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
12823 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
12826 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12828 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
12829 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
12830 or -msoft-float here.
12831 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
12832 -msoft-float and -mhard-float.
12833 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
12834 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
12836 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
12838 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
12839 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
12841 (LIBGCC_SPEC): Don't handle -msoft-float.
12842 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
12844 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
12846 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
12847 -mfloat-abi=*, not -msoft-float and -mhard-float.
12848 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
12850 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
12851 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
12852 mhard-float and msoft-float.
12853 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
12854 mfloat-abi=soft in comments, not mhard-float and msoft-float.
12855 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
12856 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
12858 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
12859 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
12861 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
12863 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
12866 2011-03-22 Richard Henderson <rth@redhat.com>
12868 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
12869 TARGET_ABI_WINDOWS_NT.
12870 (alpha_output_function_end_prologue): Likewise.
12871 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
12872 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
12873 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
12874 (trap, *movsi_nt_vms): Likewise.
12875 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
12876 (*tablejump_osf_nt_internal): Remove.
12877 * config/alpha/predicates.md (input_operand): Only test Pmode.
12879 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12881 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
12882 via opts pointer. Use error_at. Don't assert that global
12883 structures are in use.
12885 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12887 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
12888 (ix86_handle_option): Access ix86_isa_flags and
12889 ix86_isa_flags_explicit via opts pointer. Don't assert that
12890 global structures are in use.
12891 (ix86_function_specific_save, ix86_function_specific_restore):
12892 Update ix86_isa_flags_explicit field name.
12893 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
12894 (ix86_isa_flags_explicit): Rename TargetSave entry to
12895 x_ix86_isa_flags_explicit.
12897 2011-03-22 Richard Henderson <rth@redhat.com>
12899 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
12900 (alpha_option_override, direct_return): Likewise.
12901 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
12902 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
12903 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
12904 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
12905 (alpha_expand_epilogue, alpha_end_function): Likewise.
12906 (alpha_init_libfuncs): Likewise.
12907 (struct machine_function): Remove unicosmk members.
12908 (print_operand) ['t']: Remove.
12909 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
12910 unicosmk_output_module_name, unicosmk_output_common,
12911 current_section_align, unicosmk_output_text_section_asm_op,
12912 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
12913 unicosmk_section_type_flags, unicosmk_unique_section,
12914 unicosmk_asm_named_section, unicosmk_insert_attributes,
12915 unicosmk_output_align, unicosmk_defer_case_vector,
12916 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
12917 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
12918 unicosmk_output_ssib, unicosmk_add_call_info_word,
12919 unicosmk_extern_head, unicosmk_output_default_externs,
12920 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
12921 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
12922 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
12923 * config/alpha/alpha-protos.h: Update.
12924 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
12925 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
12926 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
12927 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
12928 (*mulsi_se, mulvsi3): Likewise.
12929 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
12930 (*divmodsi_internal, call, call_value, realign): Likewise.
12931 (moddi3, umoddi3): Likewise; remove duplicate expander.
12932 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
12933 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
12934 (*movdi_nofix): Remove r/U alternative.
12935 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
12936 * config/alpha/constraints.md ("U"): Remove.
12937 * config/alpha/predicates.md (call_operand"): Don't test
12938 TARGET_ABI_UNICOSMK.
12940 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12942 * target.def (handle_option): Take gcc_options and
12943 cl_decoded_option pointers and location_t.
12944 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
12945 * doc/tm.texi: Regenerate.
12946 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
12947 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
12948 * lto-opts.c (lto_reissue_options): Generate option structure for
12949 targetm.handle_option call.
12950 * opts.c (target_handle_option): Update call to
12951 targetm.handle_option. Remove assertions about values now passed
12953 * targhooks.c (default_target_handle_option): New.
12954 * targhooks.h (default_target_handle_option): Declare.
12955 * config/alpha/alpha.c: Include opts.h.
12956 (alpha_handle_option): Update to new hook interface.
12957 * config/arm/arm.c: Include opts.h.
12958 (arm_handle_option): Update to new hook interface.
12959 * config/arm/t-arm (arm.o): Update dependencies.
12960 * config/bfin/bfin.c: Include opts.h.
12961 (bfin_handle_option): Update to new hook interface.
12962 * config/cris/cris.c: Include opts.h.
12963 (cris_handle_option): Update to new hook interface.
12964 * config/frv/frv.c: Include opts.h.
12965 (frv_handle_option): Update to new hook interface.
12966 * config/i386/i386.c: Include opts.h.
12967 (ix86_handle_option): Update to new hook interface.
12968 (ix86_valid_target_attribute_inner_p): Generate option structure
12969 for call to ix86_handle_option.
12970 * config/i386/t-i386 (i386.o): Update dependencies.
12971 * config/ia64/ia64.c: Include opts.h.
12972 (ia64_handle_option): Update to new hook interface.
12973 * config/ia64/t-ia64 (ia64.o): Update dependencies.
12974 * config/iq2000/iq2000.c: Include opts.h.
12975 (iq2000_handle_option): Update to new hook interface.
12976 * config/m32c/m32c.c: Include opts.h.
12977 (m32c_handle_option): Update to new hook interface.
12978 * config/m32r/m32r.c: Include opts.h.
12979 (m32r_handle_option): Update to new hook interface.
12980 * config/m68k/m68k.c: Include opts.h.
12981 (m68k_handle_option): Update to new hook interface.
12982 * config/mep/mep.c: Include opts.h.
12983 (mep_handle_option): Update to new hook interface.
12984 * config/microblaze/microblaze.c: Include opts.h.
12985 (microblaze_handle_option): Update to new hook interface.
12986 * config/mips/mips.c: Include opts.h.
12987 (mips_handle_option): Update to new hook interface.
12988 * config/mn10300/mn10300.c: Include opts.h.
12989 (mn10300_handle_option): Update to new hook interface.
12990 * config/pa/pa.c: Include opts.h.
12991 (pa_handle_option): Update to new hook interface.
12992 * config/pdp11/pdp11.c: Include opts.h.
12993 (pdp11_handle_option): Update to new hook interface.
12994 * config/rs6000/rs6000.c: Include opts.h.
12995 (rs6000_handle_option): Update to new hook interface.
12996 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
12997 * config/rx/rx.c: Include opts.h.
12998 (rx_handle_option): Update to new hook interface.
12999 * config/s390/s390.c: Include opts.h.
13000 (s390_handle_option): Update to new hook interface.
13001 * config/score/score.c: Include opts.h.
13002 (score_handle_option): Update to new hook interface.
13003 * config/sh/sh.c: Include opts.h.
13004 (sh_handle_option): Update to new hook interface.
13005 * config/sparc/sparc.c: Include opts.h.
13006 (sparc_handle_option): Update to new hook interface.
13007 * config/v850/v850.c: Include opts.h.
13008 (v850_handle_option): Update to new hook interface.
13010 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13012 * gcc.c (driver_unknown_option_callback): Only permit and save
13013 unknown -Wno- options.
13014 (driver_wrong_lang_callback): Save options directly instead of via
13015 driver_unknown_option_callback.
13017 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
13019 * combine.c (simplify_set): Try harder to find the best CC mode when
13020 simplifying a nested COMPARE on the RHS.
13022 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13024 * config/alpha/gnu.h: Remove.
13025 * config/arc: Remove directory.
13026 * config/arm/netbsd.h: Remove.
13027 * config/arm/t-pe: Remove.
13028 * config/crx: Remove directory.
13029 * config/i386/netbsd.h: Remove.
13030 * config/m68hc11: Remove directory.
13031 * config/m68k/uclinux-oldabi.h: Remove.
13032 * config/mcore/mcore-pe.h: Remove.
13033 * config/mcore/t-mcore-pe: Remove.
13034 * config/netbsd-aout.h: Remove.
13035 * config/rs6000/gnu.h: Remove.
13036 * config/sh/sh-symbian.h: Remove.
13037 * config/sh/symbian-base.c: Remove.
13038 * config/sh/symbian-c.c: Remove.
13039 * config/sh/symbian-cxx.c: Remove.
13040 * config/sh/symbian-post.h: Remove.
13041 * config/sh/symbian-pre.h: Remove.
13042 * config/sh/t-symbian: Remove.
13043 * config/svr3.h: Remove.
13044 * config/vax/netbsd.h: Remove.
13045 * config.build: Don't handle i[34567]86-*-pe.
13046 * config.gcc: Remove handling of deprecations for most deprecated
13048 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
13049 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
13050 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
13051 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
13052 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
13053 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
13055 * config.host: Don't handle i[34567]86-*-pe.
13056 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
13057 (ASM_SPEC32): Don't handle -mcall-gnu.
13058 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
13060 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
13061 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
13062 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
13063 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
13064 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
13065 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
13066 conditional on SYMBIAN.
13067 * configure.ac: Don't handle powerpc*-*-gnu*.
13068 * configure: Regenerate.
13069 * doc/extend.texi (interrupt attribute): Don't mention CRX.
13070 * doc/install-old.texi (m6811, m6812): Don't mention.
13071 * doc/install.texi (arc-*-elf*): Don't document multilib option.
13072 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
13073 (m68k-uclinuxoldabi): Don't mention.
13074 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
13076 (-mcall-gnu): Remove.
13077 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
13078 families): Remove constraint documentation.
13080 2011-03-22 Marius Strobl <marius@FreeBSD.org>
13082 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
13083 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
13084 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
13086 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
13089 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
13090 vector when peeking at the next token for vector, don't expand the
13093 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
13095 * config/avr/avr-protos.h (expand_epilogue): Change prototype
13096 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
13097 * config/avr/avr.c (init_cumulative_args)
13098 (avr_function_arg_advance): Use it.
13099 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
13101 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
13102 (avr_function_ok_for_sibcall): ...this new function.
13103 (avr_lookup_function_attribute1): New static Function.
13104 (avr_naked_function_p, interrupt_function_p)
13105 (signal_function_p, avr_OS_task_function_p)
13106 (avr_OS_main_function_p): Use it.
13107 * config/avr/avr.md ("sibcall", "sibcall_value")
13108 ("sibcall_epilogue"): New expander.
13109 ("*call_insn", "*call_value_insn"): New insn.
13110 ("call_insn", "call_value_insn"): Remove
13111 ("call", "call_value", "epilogue"): Change expander to handle
13114 2011-03-21 Nick Clifton <nickc@redhat.com>
13116 * doc/invoke.texi (Overall Options): Move closing brace to end of
13118 (Optimization Options): Add missing @gol.
13119 (Directory Options): Likewise.
13120 (i386 and x86-64 Options): Likewise.
13121 (RS6000 and PowerPC Options): Likewise.
13122 (i386 and x86-64 Windows Options): Likewise.
13123 (V850 Options): Add text missing from descriptions.
13125 2011-03-22 Richard Henderson <rth@redhat.com>
13127 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
13128 (avr_incoming_return_addr_rtx): New.
13129 (emit_push_byte): New.
13130 (expand_prologue): Use it. Remove incorrect dwarf annotation for
13131 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
13132 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
13133 (emit_pop_byte): New.
13134 (expand_epilogue): Use it. Pop frame pointer by bytes.
13135 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
13136 (INCOMING_RETURN_ADDR_RTX): New.
13137 (INCOMING_FRAME_SP_OFFSET): New.
13138 (ARG_POINTER_CFA_OFFSET): New.
13139 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
13140 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
13143 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
13145 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
13147 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
13148 (FUNCTION_ARG_ADVANCE): Likewise.
13149 * tm.texi.in: Change references to them to hook references.
13150 * tm.texi: Regenerate.
13151 * targhooks.c (default_function_arg): Eliminate check for target
13153 (default_function_incoming_arg): Likewise.
13154 (default_function_arg_advance): Likewise.
13155 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
13156 (function_arg_advance): Likewise.
13157 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
13159 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
13161 * tree.c (build_call_1): New function.
13162 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
13164 2011-03-22 Richard Guenther <rguenther@suse.de>
13166 PR tree-optimization/48228
13167 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
13168 for single-arg PHIs.
13170 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
13172 PR rtl-optimization/48143
13173 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
13174 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
13175 sse2_cvtps2pd): Likewise.
13177 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13179 * recog.c (canonicalize_change_group): Use validate_unshare_change.
13181 2011-03-22 Richard Guenther <rguenther@suse.de>
13183 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
13184 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
13185 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
13186 and REALIGN_LOAD_EXPR.
13187 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
13188 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
13189 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
13190 DOT_PROD_EXPR case ...
13191 (expand_expr_real_2): ... here.
13192 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
13193 and REALIGN_LOAD_EXPR.
13194 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
13195 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
13196 (vect_create_epilog_for_reduction): Likewise.
13197 (vectorizable_reduction): Likewise.
13198 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
13199 * tree-vect-stmts.c (vectorizable_load): Likewise.
13201 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
13203 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
13205 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13207 * config/s390/s390.c (s390_delegitimize_address): Fix offset
13208 handling for PLTOFF/GOTOFF.
13210 2011-03-22 Nick Clifton <nickc@redhat.com>
13212 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
13213 trailing backslash from the end of the macro definition.
13215 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13217 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
13220 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
13222 * expr.h (prepare_operand): Move to...
13223 * optabs.h (prepare_operand): ...here and change the insn code
13224 parameter from "int" to "enum insn_code".
13225 (insn_operand_matches): Declare.
13226 * expr.c (init_expr_target): Use insn_operand_matches.
13227 (compress_float_constant): Likewise.
13228 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
13229 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
13230 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
13231 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
13233 (gen_cond_trap): Likewise.
13234 (prepare_operand): Likewise. Change icode to an insn_code.
13235 (insn_operand_matches): New function.
13236 * reload.c (find_reloads_address_1): Use insn_operand_matches.
13237 * reload1.c (gen_reload): Likewise.
13238 * targhooks.c (default_secondary_reload): Likewise.
13240 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
13242 * config/alpha/alpha.md (unspec): New define_c_enum.
13245 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
13248 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
13249 between a call and its CALL_ARG_LOCATION note.
13251 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
13253 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
13255 2011-03-21 Jakub Jelinek <jakub@redhat.com>
13259 * c-common.c (shorten_compare): If primopN is first sign-extended
13260 to opN and then zero-extended to result type, set primopN to opN.
13262 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
13264 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
13265 for barrier handlers.
13267 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
13269 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
13270 UNSPEC constants to be in the unspec enumeration, and redefine
13271 all UNSPECV constants to be in the unspecv enumeration, so that
13272 dumps print which unspec/unspec_volatile this is.
13273 * config/rs6000/vector.md (UNSPEC_*): Ditto.
13274 * config/rs6000/paired.md (UNSPEC_*): Ditto.
13275 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
13276 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
13277 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
13279 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
13280 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
13281 UNSPECV_LWSYNC, since these are used as unspec_volatile.
13282 * config/rs6000/sync.md (isync, lwsync): Ditto.
13284 2011-03-21 Richard Guenther <rguenther@suse.de>
13286 * params.def (lto-min-partition): Fix typo.
13288 2011-03-21 Richard Guenther <rguenther@suse.de>
13291 * c-decl.c (grokdeclarator): Drop to the main variant only
13292 for array types. Drop flag_gen_aux_info check.
13294 2011-03-21 Richard Guenther <rguenther@suse.de>
13296 PR translation/47911
13297 * params.def (lto-partitions): Fix typo.
13298 (lto-min-partition): Fix wording.
13300 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
13302 * config/rs6000/t-freebsd: Remove duplication from file.
13304 2011-03-21 Richard Guenther <rguenther@suse.de>
13306 PR middle-end/47661
13307 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
13309 2011-03-21 Richard Guenther <rguenther@suse.de>
13312 * params.def (lto-partitions): Require at least 1 partition.
13314 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13316 * gthr-solaris.h: Remove.
13317 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
13318 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
13319 (LIB_SPEC): Likewise.
13320 * config/sol2.opt (threads): Remove.
13321 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
13322 (sparc*-*-solaris2*): Likewise.
13323 * configure.ac (enable_threads): Enable solaris support.
13324 * configure: Regenerate.
13325 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
13326 * doc/install.texi (Configuration, --enable-threads=lib): Remove
13329 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13331 * config.gcc: Obsolete *-*-solaris2.8*.
13332 * doc/install.texi (Specific, *-*-solaris2*): Document it.
13334 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13337 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
13338 reference. Solaris 8 perl works.
13340 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13343 * doc/install.texi (Prerequisites): Move jar etc. up.
13344 Explain support library version requirements.
13346 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13349 * doc/install.texi (Prerequisites): Move Perl to build
13350 requirements. Always necessary on Solaris 2 with Sun ld.
13352 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13354 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
13356 (Specific, i?86-*-solaris2.[89]): Likewise.
13357 (Specific, i?86-*-solaris2.10): Likewise.
13358 (Specific, mips-sgi-irix6): Likewise.
13359 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
13360 Update for binutils 2.21.
13362 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13364 * configure.ac (gcc_cv_lto_plugin): Fix typo.
13365 Allow -fuse-linker-plugin for non-default plugin linker.
13366 * configure: Regenerate.
13368 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
13371 * gengtype.c (files_rules): Added rule for cp/parser.h.
13373 2011-03-21 Jakub Jelinek <jakub@redhat.com>
13376 * config/s390/s390.c (s390_delegitimize_address): Don't call
13377 lowpart_subreg if orig_x has BLKmode.
13379 2011-03-21 Kai Tietz <ktietz@redhat.com>
13382 * doc/plugins.texi: Adjust documentation for plugin register_callback.
13383 * tree.h (attribute_spec): Add new member affects_type_identity.
13384 * attribs.c (empty_attribute_table): Adjust attribute_spec
13386 * config/alpha/alpha.c: Likewise.
13387 * config/arc/arc.c: Likewise.
13388 * config/arm/arm.c: Likewise.
13389 * config/avr/avr.c: Likewise.
13390 * config/bfin/bfin.c: Likewise.
13391 * config/crx/crx.c: Likewise.
13392 * config/darwin.h: Likewise.
13393 * config/h8300/h8300.c: Likewise.
13394 * config/i386/cygming.h: Likewise.
13395 * config/i386/i386.c: Likewise.
13396 * config/ia64/ia64.c: Likewise.
13397 * config/m32c/m32c.c: Likewise.
13398 * config/m32r/m32r.c: Likewise.
13399 * config/m68hc11/m68hc11.c: Likewise.
13400 * config/m68k/m68k.c: Likewise.
13401 * config/mcore/mcore.c: Likewise.
13402 * config/mep/mep.c: Likewise.
13403 * config/microblaze/microblaze.c: Likewise.
13404 * config/mips/mips.c: Likewise.
13405 * config/rs6000/rs6000.c: Likewise.
13406 * config/rx/rx.c: Likewise.
13407 * config/sh/sh.c: Likewise.
13408 * config/sol2.h: Likewise.
13409 * config/sparc/sparc.c: Likewise.
13410 * config/spu/spu.c: Likewise.
13411 * config/stormy16/stormy16.c: Likewise.
13412 * config/v850/v850.c: Likewise.
13414 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
13416 * simplify-rtx.c (simplify_binary_operation_1): Handle
13417 (xor (and A B) C) case when B and C are both constants.
13419 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
13421 * tree-dfa.c (add_referenced_var): Fix typo in comment.
13423 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
13426 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
13428 2011-03-20 Jakub Jelinek <jakub@redhat.com>
13430 PR rtl-optimization/48156
13431 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
13432 assume df and df_lr are not NULL.
13434 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13437 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
13438 between a call and its CALL_ARG_LOCATION note.
13440 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
13443 * config/sh/sh.c (find_barrier): Don't emit a constant pool
13444 between a call and its corresponding CALL_ARG_LOCATION note.
13446 2011-03-19 Anatoly Sokolov <aesok@post.ru>
13448 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
13449 instead of loop. Use HARD_REGISTER_NUM_P predicate.
13450 * haifa-sched.c (setup_ref_regs): Ditto.
13451 * caller-save.c (add_used_regs_1): Ditto.
13452 * dse.c (look_for_hardregs): Ditto.
13453 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
13454 * sched-rgn.c (check_live_1): Ditto.
13456 2011-03-18 Joseph Myers <joseph@codesourcery.com>
13458 * c-decl.c (diagnose_mismatched_decls): Give an error for
13459 redefining a typedef with variably modified type.
13461 2011-03-18 Joseph Myers <joseph@codesourcery.com>
13463 * c-decl.c (grokfield): Don't allow typedefs for structures or
13464 unions with no tag by default.
13465 * doc/extend.texi (Unnamed Fields): Update.
13467 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
13469 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
13470 Rewrite using indirect functions.
13471 (lwp_slwpcb): Ditto.
13472 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
13473 (avx_vinsertf128<mode>): Ditto.
13475 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13477 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
13480 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13482 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
13483 splitting between a call and its corresponding CALL_ARG_LOCATION note.
13485 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
13487 PR rtl-optimization/48170
13488 * gcse.c (hoist_code): Remove bogus asserts.
13490 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
13492 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
13493 computation for prologue/epilogue.
13495 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13497 * Makefile.in (check-consistency): Remove.
13499 2011-03-18 Jakub Jelinek <jakub@redhat.com>
13502 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
13503 arange_table_in_use is 0, but either text_section_used or
13504 cold_text_section_used is true. Don't call it if
13505 !info_section_emitted.
13507 2011-03-18 Anatoly Sokolov <aesok@post.ru>
13509 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
13510 FUNCTION_VALUE_REGNO_P): Remove.
13511 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
13513 * config/avr/avr.c (avr_ret_register): Make static inline.
13514 (avr_function_value_regno_p): New function.
13515 (avr_libcall_value): Make static. Add 'func' argument.
13516 (avr_function_value): Make static. Rename 'func' argument to
13517 'fn_decl_or_type', forward it to avr_libcall_value. Call
13518 avr_ret_register function instead of RET_REGISTER macro.
13519 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
13521 2011-03-18 Jason Merrill <jason@redhat.com>
13524 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
13526 2011-03-18 Richard Guenther <rguenther@suse.de>
13528 * doc/install.texi (--enable-gold): Remove.
13529 (--with-plugin-ld): Document.
13530 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
13532 2011-03-18 Andrew Pinski <pinskia@gmail.com>
13534 PR middle-end/47790
13535 * expr.c (optimize_bitfield_assignment_op): Revamp to work
13536 again after expansion changes.
13538 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
13540 * combine.c (try_combine): Do simplification only call of
13541 subst() on i2 even when i1 is present. Update comments.
13543 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
13545 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
13546 and UNSPEC_PCREL_SYMOFF.
13548 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13550 * config/s390/s390.md: Use define_c_enum for the unspec constant
13553 2011-03-18 Richard Henderson <rth@redhat.com>
13554 Jakub Jelinek <jakub@redhat.com>
13557 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
13558 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
13560 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
13562 PR middle-end/47725
13563 * combine.c (cant_combine_insn_p): Don't check zero/sign
13564 extended hard registers.
13566 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
13568 PR middle-end/47725
13569 * combine.c (cant_combine_insn_p): Check zero/sign extended
13572 2011-03-17 Anatoly Sokolov <aesok@post.ru>
13574 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13575 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
13576 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
13577 Change return type to bool.
13578 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13580 2011-03-17 Jakub Jelinek <jakub@redhat.com>
13583 * var-tracking.c (prepare_call_arguments): If CALL target
13584 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
13585 pc instead of looking it up using cselib_lookup and use
13586 Pmode for it if x has VOIDmode.
13587 * dwarf2out.c (gen_subprogram_die): If also both first and
13588 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
13591 * function.c (assign_parms): For data.passed_pointer parms
13592 use MEM of data.entry_parm instead of data.entry_parm itself
13593 as DECL_INCOMING_RTL.
13594 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
13595 also when passed and declared mode is the same, DECL_RTL
13596 is a MEM with pseudo as address and DECL_INCOMING_RTL is
13599 2011-03-16 Jeff Law <law@redhat.com>
13601 PR rtl-optimization/37273
13602 * ira-costs.c (scan_one_insn): Detect constants living in memory and
13603 handle them like argument loads from stack slots. Do not double
13604 count memory for memory constants and argument loads from stack slots.
13606 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
13609 * var-tracking.c (prepare_call_arguments): Check SUBREG.
13611 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
13614 * config/i386/i386.opt: Add Save to -mavx and -mfma.
13616 2011-03-17 Jakub Jelinek <jakub@redhat.com>
13619 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
13621 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
13622 Clear call_arg_locations and call_arg_loc_last always.
13624 PR middle-end/48152
13625 * var-tracking.c (prepare_call_arguments): If argument needs to be
13626 passed by reference, adjust argtype and mode.
13628 2011-03-17 Richard Guenther <rguenther@suse.de>
13630 PR middle-end/48134
13631 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
13632 a value make sure to fold the statement.
13634 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
13637 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
13638 return condition with !cfun->calls_alloca.
13640 2011-03-17 Richard Guenther <rguenther@suse.de>
13643 * lto-cgraph.c (input_overwrite_node): Clear the abstract
13644 origin for decls in other ltrans units.
13645 (input_varpool_node): Likewise.
13647 2011-03-17 Richard Guenther <rguenther@suse.de>
13649 PR middle-end/48165
13650 * tree-object-size.c (compute_object_offset): Properly return
13651 the offset operand of MEM_REFs as sizetype.
13653 2011-03-17 Jakub Jelinek <jakub@redhat.com>
13655 PR rtl-optimization/48141
13656 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
13657 * dse.c: Include params.h.
13658 (active_local_stores_len): New variable.
13659 (add_wild_read, dse_step1): Clear it when setting active_local_stores
13661 (record_store, check_mem_read_rtx): Decrease it when removing
13663 (scan_insn): Likewise. Increase it when adding to chain, if it
13664 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
13665 set active_local_stores to NULL before the addition.
13666 * Makefile.in (dse.o): Depend on $(PARAMS_H).
13668 PR rtl-optimization/48141
13669 * dse.c (record_store): If no positions are needed in an insn
13670 that cannot be deleted, at least unchain it from active_local_stores.
13672 2011-03-16 Dodji Seketeli <dodji@redhat.com>
13675 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
13676 (lookup_type_die_strip_naming_typedef): ... here.
13677 (get_context_die): Use it.
13678 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
13679 the anonymous struct named by the naming typedef.
13681 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
13684 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
13685 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
13687 2011-03-16 Jeff Law <law@redhat.com>
13689 * tree-vrp.c (identify_jump_threads): Slightly simplify type
13690 check for operands of conditional. Allow type to be a pointer.
13692 2011-03-16 Richard Guenther <rguenther@suse.de>
13694 PR tree-optimization/48149
13695 * fold-const.c (fold_binary_loc): Fold
13696 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
13698 2011-03-16 Richard Guenther <rguenther@suse.de>
13700 PR tree-optimization/26134
13701 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
13702 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
13703 (non_rewritable_mem_ref_base): Handle complex type component
13704 accesses, constrain offsets for vector and complex extracts
13707 2011-03-16 Richard Guenther <rguenther@suse.de>
13709 PR tree-optimization/48146
13710 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
13711 operands avoiding the need for renaming.
13713 2011-03-16 Richard Guenther <rguenther@suse.de>
13715 * gimple-fold.c (maybe_fold_reference): Open-code relevant
13716 constant folding. Move MEM_REF canonicalization first.
13717 Rely on fold_const_aggregate_ref for initializer folding.
13718 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
13720 2011-03-16 Jakub Jelinek <jakub@redhat.com>
13722 PR middle-end/48136
13723 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
13724 arg0/arg1 or their arguments are always fold converted to matching
13727 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
13730 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13733 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
13734 Handle in-tree gold.
13735 (ld_vers): Extract binutils version for gold.
13736 (gcc_cv_ld_hidden): Handle gold here.
13737 (gcc_cv_lto_plugin): Determine level of linker plugin support.
13738 * configure: Regenerate.
13739 * config.in: Regenerate.
13740 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
13741 -fuse-linker-plugin otherwise.
13742 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
13743 (LINK_COMMAND_SPEC): Use it.
13744 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
13746 2011-03-16 Jakub Jelinek <jakub@redhat.com>
13748 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
13749 * calls.c: Remove debug.h include.
13750 (emit_call_1): Don't call virtual_call_token debug hook.
13751 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
13752 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
13753 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
13754 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
13755 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
13756 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
13757 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
13758 dwarf2out_virtual_call): Remove.
13759 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
13760 copy_call_info and virtual_call hooks.
13761 (dwarf2out_init): Don't initialize vcall_insn_table,
13762 debug_dcall_section and debug_vcall_section.
13763 (prune_unused_types): Don't mark nodes from dcall_table.
13764 (dwarf2out_finish): Don't output dcall or vcall tables.
13765 * final.c (final_scan_insn): Don't call direct_call or
13766 virtual_call debug hooks.
13767 * debug.h (struct gcc_debug_hooks): Remove direct_call,
13768 virtual_call_token, copy_call_info and virtual_call hooks.
13769 (debug_nothing_uid): Remove prototype.
13770 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
13771 copy_call_info and virtual_call hooks.
13772 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
13773 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
13774 * debug.c (do_nothing_debug_hooks): Likewise.
13775 (debug_nothing_uid): Remove.
13776 * doc/invoke.texi (-fenable-icf-debug): Remove.
13777 * common.opt (-fenable-icf-debug): Likewise.
13779 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
13780 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
13781 call's MEM. Handle functions returning aggregate through a hidden
13782 first pointer. For virtual calls add clobbered pc to call arguments
13784 * dwarf2out.c (gen_subprogram_die): Emit
13785 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
13789 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
13790 * rtl.h (ENTRY_VALUE_EXP): Define.
13791 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
13792 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
13793 * print-rtl.c (print_rtx): Likewise.
13794 * gengtype.c (adjust_field_rtx_def): Likewise.
13795 * var-tracking.c (vt_add_function_parameter): Adjust
13796 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
13797 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
13798 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
13799 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
13800 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
13802 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
13803 Call var_location debug hook even on CALL_INSNs.
13804 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
13805 * rtl.def (ENTRY_VALUE): New.
13806 * dwarf2out.c: Include cfglayout.h.
13807 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
13808 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
13809 (struct call_arg_loc_node): New type.
13810 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
13811 tail_call_site_count): New variables.
13812 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
13813 DW_TAG_GNU_call_site_parameter.
13814 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
13815 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
13816 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
13817 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
13818 and DW_AT_GNU_all_source_call_sites.
13819 (mem_loc_descriptor): Handle ENTRY_VALUE.
13820 (add_src_coords_attributes): Don't add enything if
13821 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
13822 (dwarf2out_abstract_function): Save and clear call_arg_location,
13823 call_site_count and tail_call_site_count around dwarf2out_decl call.
13824 (gen_call_site_die): New function.
13825 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
13826 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
13827 (dwarf2out_function_decl): Clear call_arg_locations,
13828 call_arg_loc_last, set call_site_count and tail_call_site_count
13829 to -1 and free block_map.
13830 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
13831 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
13832 followed by any real instructions.
13833 (dwarf2out_begin_function): Set call_site_count and
13834 tail_call_site_count to 0.
13835 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
13836 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
13837 attempt to force a DIE for it and worst case remove the attribute.
13838 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
13839 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
13841 * var-tracking.c: Include tm_p.h.
13842 (vt_stack_adjustments): For calls call note_register_arguments.
13843 (argument_reg_set): New variable.
13844 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
13845 ensure the VALUE is resolved.
13846 (call_arguments): New variable.
13847 (prepare_call_arguments): New function.
13848 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
13849 (struct expand_loc_callback_data): Add ignore_cur_loc field.
13850 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
13851 always use the best expression.
13852 (vt_expand_loc): Add ignore_cur_loc argument.
13853 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
13854 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
13855 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
13856 note for all calls.
13857 (vt_add_function_parameter): Use cselib_lookup_from_insn.
13858 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
13859 argument. Don't call cselib_preserve_only_values and
13860 cselib_reset_table.
13861 (note_register_arguments): New function.
13862 (vt_initialize): Compute argument_reg_set. Call
13863 vt_add_function_parameters before processing basic blocks instead of
13864 afterwards. For calls call prepare_call_arguments before calling
13865 cselib_process_insn.
13866 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
13867 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
13868 (var-tracking.o): Depend on $(TM_P_H).
13869 * cfglayout.h (insn_scope): New prototype.
13870 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
13871 * cfglayout.c (insn_scope): No longer static.
13872 * insn-notes.def (CALL_ARG_LOCATION): New.
13873 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
13874 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
13875 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
13876 nothing for DECL_EXTERNAL BLOCK_VARS.
13878 2011-03-16 Alan Modra <amodra@gmail.com>
13881 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
13882 create invalid offset address for vsx splat insn.
13883 * config/rs6000/predicates.md (splat_input_operand): New.
13884 * config/rs6000/vsx.md (vsx_splat_*): Use it.
13886 2011-03-15 Xinliang David Li <davidxl@google.com>
13889 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
13890 (normalize_preds): New function.
13891 (is_use_properly_guarded): Normalize def predicates.
13893 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13896 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
13897 in the output template.
13899 2011-03-15 Richard Guenther <rguenther@suse.de>
13901 PR middle-end/47650
13902 * tree-pretty-print.c (dump_function_declaration): Properly
13903 dump unprototyped and varargs function types.
13905 2011-03-15 Richard Guenther <rguenther@suse.de>
13907 PR tree-optimization/13954
13908 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
13911 2011-03-15 Richard Guenther <rguenther@suse.de>
13913 PR tree-optimization/48037
13914 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
13915 selects into BIT_FIELD_REFs.
13916 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
13919 2011-03-15 Jakub Jelinek <jakub@redhat.com>
13921 PR tree-optimization/48129
13922 * builtins.c (fold_builtin_snprintf): Convert to type of
13923 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
13924 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
13926 2011-03-15 Richard Guenther <rguenther@suse.de>
13928 PR tree-optimization/41490
13929 * tree-ssa-dce.c (propagate_necessity): Handle returns without
13930 value but with VUSE.
13931 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
13933 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
13934 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
13935 * tree-tailcall.c (find_tail_calls): Ignore returns.
13937 2011-03-15 Richard Guenther <rguenther@suse.de>
13939 PR middle-end/48031
13940 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
13941 or variable-indexed array accesses when in gimple form.
13943 2011-03-15 Richard Guenther <rguenther@suse.de>
13945 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
13947 2011-03-15 Alan Modra <amodra@gmail.com>
13950 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
13951 presume symbol_refs without a symbol_ref_decl are suitably
13952 aligned, nor other trees we may see here. Handle anchor symbols.
13953 (legitimate_constant_pool_address_p): Comment. Add mode param.
13954 Check cmodel=medium addresses. Adjust all calls.
13955 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
13956 creating cmodel=medium optimized access to locals.
13957 * config/rs6000/constraints.md (R): Pass QImode to
13958 legitimate_constant_pool_address_p.
13959 * config/rs6000/predicates.md (input_operand): Pass mode to
13960 legitimate_constant_pool_address_p.
13961 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
13964 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
13967 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
13968 64-bit constants being loaded into registers other than GPRs such
13969 as loading 0 into a VSX register.
13971 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13973 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
13975 2011-03-14 Jakub Jelinek <jakub@redhat.com>
13977 PR middle-end/47917
13978 * builtins.c (fold_builtin_snprintf): New function.
13979 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
13980 (fold_builtin_4): Likewise.
13982 PR middle-end/38878
13983 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
13984 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
13985 and C - X == X also strip nops from +/-/p+ operand.
13986 When optimizing -X == C, fold C to arg0's type.
13989 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
13990 emit it as add_AT_int instead of add_AT_unsigned.
13992 2011-03-14 Tom Tromey <tromey@redhat.com>
13994 * unwind-dw2.c: Include sys/sdt.h if it exists.
13995 (_Unwind_DebugHook): Use STAP_PROBE2.
13996 * config.in, configure: Rebuild.
13997 * configure.ac: Check for sys/sdt.h.
13999 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
14001 * config/i386/i386.md (ROUND_FLOOR): New constant.
14002 (ROUND_CEIL): Ditto.
14003 (ROUND_TRUNC): Ditto.
14004 (ROUND_MXCSR): Ditto.
14005 (ROUND_NO_EXC): Ditto.
14006 (rint<mode>2): Use new defines instead of numerical constants.
14007 (floor<mode>2): Ditto.
14008 (ceil<mode>2): Ditto.
14009 (btrunc<mode>2): Ditto.
14010 * config/i386/i386-builtin-types.def: Define ROUND function type
14012 * config/i386/i386.c (enum ix86_builtins): Add
14013 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
14014 (struct builtin_description): Add
14015 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
14016 (ix86_expand_sse_round): New static function.
14017 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
14019 (ix86_builtin_vectorized_function): Handle
14020 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
14022 2011-03-14 Tom Tromey <tromey@redhat.com>
14024 * c-parser.c (c_parser_asm_string_literal): Clear
14025 warn_overlength_strings.
14027 2011-03-14 Tom Tromey <tromey@redhat.com>
14029 * c-parser.c (disable_extension_diagnostics): Save
14030 warn_overlength_strings.
14031 (restore_extension_diagnostics): Restore warn_overlength_strings.
14033 2011-03-14 Jakub Jelinek <jakub@redhat.com>
14035 * BASE-VER: Change to 4.7.0.
14037 2011-03-14 Richard Guenther <rguenther@suse.de>
14039 PR middle-end/48098
14040 * tree.c (build_vector_from_val): Adjust assert to requirements
14043 2011-03-14 Jakub Jelinek <jakub@redhat.com>
14046 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
14048 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
14050 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
14051 terms of target_flags_explicit. Adjust copyright year.
14053 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
14054 * config/rs6000/t-freebsd: New file. Add override for
14057 2011-03-13 Chris Demetriou <cgd@google.com>
14059 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
14060 (-fno-diagnostics-show-option): this, to reflect current default.
14061 (-Werror=): Update text about -fno-diagnostics-show-option.
14063 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
14066 * config/rs6000/predicates.md (easy_vector_constant_add_self,
14067 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
14068 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
14069 mode is not V2DImode or V2DFmode.
14070 (vspltis_constant): Do not handle V2DImode and V2DFmode.
14071 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
14072 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
14074 (movdi_internal64): Likewise.
14076 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
14078 PR tree-optimization/47127
14079 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
14081 (set_cloog_options): Same.
14082 (scop_to_clast): Same.
14083 (print_clast_stmt): Do not call cloog_state_malloc and
14085 (print_generated_program): Same.
14087 * graphite-clast-to-gimple.h (cloog_state): Declared.
14088 (scop_to_clast): Adjust declaration.
14089 * graphite.c (cloog_state): Defined here.
14090 (graphite_initialize): Call cloog_state_malloc.
14091 (graphite_finalize): Call cloog_state_free.
14093 2011-03-11 Jason Merrill <jason@redhat.com>
14095 * attribs.c (lookup_attribute_spec): Take const_tree.
14098 2011-03-11 Joseph Myers <joseph@codesourcery.com>
14100 * config/sparc/sparc.c (sparc_option_override): Use
14101 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
14103 2011-03-11 Richard Guenther <rguenther@suse.de>
14105 PR tree-optimization/48067
14106 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
14107 multiplication result will be only used once on the target
14110 2011-03-11 Richard Guenther <rguenther@suse.de>
14112 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
14114 2011-03-11 Richard Guenther <rguenther@suse.de>
14117 * tree.c (find_decls_types_r): Do not walk types only reachable
14118 from IDENTIFIER_NODEs.
14120 2011-03-11 Jakub Jelinek <jakub@redhat.com>
14122 PR middle-end/48044
14123 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
14124 all vnode->force_output nodes as needed.
14126 2011-03-11 Jason Merrill <jason@redhat.com>
14129 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
14130 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
14132 2011-03-11 Martin Jambor <mjambor@suse.cz>
14134 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
14137 2011-03-11 Jakub Jelinek <jakub@redhat.com>
14139 PR tree-optimization/48063
14140 * ipa-inline.c (cgraph_decide_inlining): Don't try to
14141 inline functions called once if !tree_can_inline_p (node->callers).
14143 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
14145 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
14147 * config/score/score3.c: Delete.
14148 * config/score/score3.h: Delete.
14149 * config/score/mul-div.S: Delete.
14150 * config/score/sfp-machine.h: Add new file.
14151 * config/score/constraints.md: Add new file.
14152 * config/score/t-score-softfp: Add new file.
14153 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
14154 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
14155 (score7_extra_constraint): Delete.
14156 (score7_option_override): Remove unused code.
14157 * config/score/score.c: Remove score3 and score5 define and code.
14158 * config/score/score.h: Remove score3 and score5 define and code.
14159 * config/score/score.md: Remove score3 template and unusual insn.
14160 * config/score/score.opt: Remove score3 and score5 options.
14162 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14164 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
14165 when _HPUX_SOURCE is defined.
14166 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
14168 2011-03-10 Jason Merrill <jason@redhat.com>
14171 * stor-layout.c (layout_type): Don't set structural equality
14172 on arrays of incomplete type.
14173 * tree.c (type_hash_eq): Handle comparing them properly.
14175 2011-03-10 Jakub Jelinek <jakub@redhat.com>
14178 * config/s390/s390.c (s390_delegitimize_address): Make sure the
14179 result mode matches original rtl mode.
14181 2011-03-10 Nick Clifton <nickc@redhat.com>
14183 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
14184 (andsi3, andsi3_flags): Fix timings for three operand alternative.
14186 2011-03-09 Jakub Jelinek <jakub@redhat.com>
14188 PR rtl-optimization/47866
14189 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
14190 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
14191 if target wasn't scalar.
14192 * function.c (assign_stack_temp_for_type): Assert that neither
14193 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
14194 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
14196 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
14198 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14200 * config/s390/s390-protos.h (s390_label_align): New prototype.
14201 * config/s390/s390.c (s390_label_align): New function.
14202 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
14204 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
14207 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
14208 V2DI/V2DF constants. Only all 0's or all 1's are easy.
14209 (output_vec_const_move): Ditto.
14211 2011-03-08 Anatoly Sokolov <aesok@post.ru>
14213 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
14214 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
14215 * config/mips/mips.c (mips_preferred_reload_class): Make static.
14216 Change 'rclass' argument and result type to reg_class_t.
14217 (TARGET_PREFERRED_RELOAD_CLASS): Define.
14219 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
14221 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
14222 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
14223 (TARGET_MEMORY_MOVE_COST): Define.
14224 (avr_register_move_cost, avr_memory_move_cost): New Functions.
14226 2011-03-08 Jakub Jelinek <jakub@redhat.com>
14229 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
14232 PR tree-optimization/48022
14233 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
14236 2011-03-07 Jakub Jelinek <jakub@redhat.com>
14239 * var-tracking.c (find_use_val): Return NULL for
14240 cui->sets && cui->store_p BLKmode MEMs.
14242 2011-03-07 Anatoly Sokolov <aesok@post.ru>
14244 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
14246 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
14247 xstormy16_print_operand_address): Remove.
14248 * config/stormy16/stormy16.c (xstormy16_print_operand,
14249 xstormy16_print_operand_address): Make static.
14250 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
14252 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
14255 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
14256 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
14259 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
14262 * cfgloopmanip.c (fix_bb_placements): Return immediately
14263 if FROM is BASE_LOOP's header.
14265 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
14267 * gimplify.c (gimplify_function_tree): Fix building calls
14268 to __builtin_return_address.
14270 2011-03-07 Alan Modra <amodra@gmail.com>
14272 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
14273 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
14274 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
14275 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
14277 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
14278 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
14279 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
14280 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
14281 * config/rs6000/rs6000.c
14282 (rs6000_elf_end_indicate_exec_stack): Rename to..
14283 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
14284 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
14285 (rs6000_file_start): ..here.
14286 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
14287 file scope variables.
14288 (call_ABI_of_interest): New function.
14289 (init_cumulative_args): Set above vars when function return value
14290 is a float, vector, or small struct.
14291 (rs6000_function_arg_advance_1): Likewise for function args.
14292 (rs6000_va_start): Set rs6000_passes_float if variable arg function
14293 references float args.
14295 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
14297 * doc/cfg.texi: Remove "See" before @ref.
14298 * doc/invoke.texi: Likewise.
14300 2011-03-05 Jason Merrill <jason@redhat.com>
14302 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
14304 2011-03-05 Anthony Green <green@moxielogic.com>
14306 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
14308 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
14310 PR rtl-optimization/47899
14311 * cfgloopmanip.c (fix_bb_placements): Fix first argument
14312 to flow_loop_nested_p when moving the loop upward.
14314 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
14317 * arm.md (movhi_insn_arch4): Accept any immediate constant.
14319 2011-03-05 Jakub Jelinek <jakub@redhat.com>
14321 PR tree-optimization/47967
14322 * ipa-cp.c (build_const_val): Return NULL instead of creating
14323 VIEW_CONVERT_EXPR for mismatching sizes.
14324 (ipcp_create_replace_map): Return NULL if build_const_val failed.
14325 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
14326 give up on versioning.
14328 2011-03-05 Alan Modra <amodra@gmail.com>
14331 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
14332 full cmodel medium/large lo_sum + high addresses.
14334 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14336 * config/s390/s390.c (s390_decompose_address): Reject non-literal
14337 pool references in UNSPEC_LTREL_OFFSET.
14339 2011-03-04 Jan Hubicka <jh@suse.cz>
14342 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
14343 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
14344 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
14346 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
14347 cgraph_add_thunk): Add node pointers.
14348 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
14349 associated to right node.
14350 (input_node): Update use of cgraph_same_body_alias
14351 and cgraph_add_thunk.
14353 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
14355 * config/i386/i386.opt (mprefer-avx128): New flag.
14356 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
14357 modes when the flag -mprefer-avx128 is on.
14359 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
14361 * dwarf2out.c (compare_loc_operands): Fix address handling.
14363 2011-03-04 Alan Modra <amodra@gmail.com>
14365 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
14367 2011-03-04 Richard Guenther <rguenther@suse.de>
14369 PR middle-end/47968
14370 * expmed.c (extract_bit_field_1): Prefer vector modes that
14371 vec_extract patterns can handle.
14373 2011-03-04 Richard Guenther <rguenther@suse.de>
14375 PR middle-end/47975
14376 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
14378 2011-03-04 Richard Henderson <rth@redhat.com>
14380 * explow.c (emit_stack_save): Remove 'after' parameter.
14381 (emit_stack_restore): Likewise.
14382 * expr.h: Update to match.
14383 * builtins.c, calls.c, stmt.c: Likewise.
14384 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
14385 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
14386 * function.c (expand_function_end): Insert the emit_stack_save
14387 sequence before parm_birth_insn instead of after.
14389 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
14391 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
14392 (ssse3_pmaddubsw128): Ditto.
14393 (ssse3_pmaddubsw): Ditto.
14395 2011-03-03 Steve Ellcey <sje@cup.hp.com>
14397 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
14399 2011-03-03 Jakub Jelinek <jakub@redhat.com>
14402 * gimplify.c (omp_add_variable): Only call omp_notice_variable
14403 on TYPE_SIZE_UNIT if it is a DECL.
14406 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
14407 first operand is not is_gimple_mem_ref_addr, try to fold it.
14408 If the operand still isn't is_gimple_mem_ref_addr, clear
14411 2011-03-03 Richard Guenther <rguenther@suse.de>
14413 PR middle-end/47283
14414 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
14416 (refs_may_alias_p_1): For release branches return true if
14417 we are confused by our input.
14419 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14421 * config/s390/s390.c (s390_function_value): Rename to ...
14422 (s390_function_and_libcall_value): ... this.
14423 (s390_function_value): New function.
14424 (s390_libcall_value): New function.
14425 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
14426 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
14427 target macro definitions.
14428 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
14430 2011-03-02 Joseph Myers <joseph@codesourcery.com>
14432 * config/i386/freebsd64.h (CC1_SPEC): Define.
14433 * config/i386/linux64.h (CC1_SPEC): Define.
14434 * config/i386/x86-64.h (CC1_SPEC): Don't define.
14436 2011-03-02 Anatoly Sokolov <aesok@post.ru>
14438 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
14440 * config/stormy16/stormy16.c: Include reload.h.
14441 (xstormy16_memory_move_cost): New function.
14442 (TARGET_MEMORY_MOVE_COST): Define.
14444 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
14446 PR rtl-optimization/47925
14447 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
14448 with side effects. Remove the more-specific check for volatile asms.
14450 2011-03-02 Alan Modra <amodra@gmail.com>
14453 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
14454 toc relative addresses for valid offsets.
14456 2011-03-01 Richard Guenther <rguenther@suse.de>
14458 PR tree-optimization/47890
14459 * tree-vect-loop.c (get_initial_def_for_induction): Set
14460 related stmt properly.
14462 2011-03-01 Richard Guenther <rguenther@suse.de>
14465 * lto-streamer.c (lto_record_common_node): Also register
14466 the canonical type.
14468 2011-03-01 Richard Guenther <rguenther@suse.de>
14471 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
14472 Do not stream DECL_ABSTRACT_ORIGIN.
14473 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
14474 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
14475 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
14476 Do not stream DECL_ABSTRACT_ORIGIN.
14477 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
14478 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
14480 2011-02-28 Anatoly Sokolov <aesok@post.ru>
14482 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
14483 FUNCTION_VALUE_REGNO_P): Remove.
14484 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
14485 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
14486 Add 'outgoing' argument.
14487 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
14489 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
14490 TARGET_FUNCTION_VALUE_REGNO_P): Define.
14492 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
14495 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
14496 (lookup_filename): Likewise.
14497 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
14499 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
14500 Jakub Jelinek <jakub@redhat.com>
14502 PR middle-end/47893
14503 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
14504 (assign_stack_local_1): Change last argument type to int.
14505 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
14506 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
14507 don't record padding space into frame_space_list nor use those areas.
14508 (assign_stack_local): Adjust caller.
14509 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
14510 of assign_stack_local, pass 0 as last argument.
14511 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
14514 2011-02-28 Jakub Jelinek <jakub@redhat.com>
14517 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
14518 Use target address_mode and pointer_mode hooks instead of hardcoded
14519 Pmode and ptr_mode. Handle some simple cases of extending if
14520 POINTERS_EXTEND_UNSIGNED < 0.
14521 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
14522 Call convert_debug_memory_address.
14523 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
14524 convert_debug_memory_address.
14526 PR middle-end/46790
14527 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
14528 * configure: Regenerated.
14529 * config.in: Regenerated.
14530 * varasm.c (default_function_section): Return NULL
14531 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
14533 2011-02-28 Martin Jambor <mjambor@suse.cz>
14535 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
14536 the description to match the printed values.
14538 2011-02-28 Richard Guenther <rguenther@suse.de>
14540 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
14541 of the copied scope tree.
14543 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14545 * doc/extend.texi (Function Attributes): Avoid deeply (and
14546 wrongly) nested tables.
14548 2011-02-27 Jakub Jelinek <jakub@redhat.com>
14550 PR middle-end/47903
14551 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
14552 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
14553 r isn't op0 nor op1.
14555 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
14557 * config/avr/avr.md: Remove magic comment for emacs.
14559 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
14562 * config/avr/avr.c (avr_option_override): Use error on bad options.
14563 (avr_help): New function.
14564 (TARGET_HELP): Define.
14566 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
14569 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
14570 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
14572 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
14574 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
14575 (ARM Options): Ditto.
14576 (i386 and x86-64 Options): Ditto.
14577 (RX Options): Ditto.
14578 (SPARC Options): Ditto.
14580 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
14582 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
14583 FreeBSD 6 and later. Generally use cpu generic.
14585 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
14587 * doc/cpp.texi: Update copyright years.
14589 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
14592 * config/lm32/lm32.md (ashrsi3): Added needed variable.
14594 2011-02-25 Jon Beniston <jon@beniston.com>
14597 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
14598 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
14599 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
14600 (lm32_block_move_inline): Add type cast to remove warning.
14601 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
14602 (gen_int_relational): Move declarations to start of function.
14604 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
14606 PR tree-optimization/45470
14607 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
14608 can throw internally only.
14609 * tree-vect-stmts.c (vectorizable_call): Likewise.
14611 2011-02-24 Anatoly Sokolov <aesok@post.ru>
14613 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
14614 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
14615 * config/stormy16/stormy16-protos.h
14616 (xstormy16_preferred_reload_class): Remove.
14617 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
14618 static. Change 'rclass' argument and return type to reg_class_t.
14619 (TARGET_PREFERRED_RELOAD_CLASS,
14620 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
14622 2011-02-24 Richard Guenther <rguenther@suse.de>
14624 * lto-streamer-in.c (input_bb): Do not find referenced vars
14625 in debug statements.
14627 2011-02-23 Jason Merrill <jason@redhat.com>
14629 * common.opt (fabi-version): Document v5 and v6.
14631 2011-02-23 Richard Guenther <rguenther@suse.de>
14633 PR tree-optimization/47849
14634 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
14636 2011-02-23 Jie Zhang <jie@codesourcery.com>
14638 * opts-common.c (decode_cmdline_option): Print empty string
14639 argument as "" in decoded->orig_option_with_args_text.
14640 * gcc.c (execute): Print empty string argument as ""
14641 in the verbose output.
14642 (do_spec_1): Keep empty string argument.
14644 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
14646 * config.gcc: Declare score-* and crx-* obsolete.
14648 2011-02-23 Jie Zhang <jie@codesourcery.com>
14650 PR rtl-optimization/47763
14651 * web.c (web_main): Ignore naked clobber when replacing register.
14653 2011-02-22 Anatoly Sokolov <aesok@post.ru>
14655 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
14658 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
14661 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
14663 2011-02-22 Mike Stump <mikestump@comcast.net>
14665 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
14667 * configure: Regenerate.
14669 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
14671 PR rtl-optimization/46002
14672 * ira-color.c (update_copy_costs): Change class intersection
14673 test to reg_class_contents[] test of 'hard_regno'.
14675 2011-02-21 Joseph Myers <joseph@codesourcery.com>
14677 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
14678 than Driver option.
14679 * config/hpux11.opt (mt): Likewise.
14680 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
14681 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
14682 * config/vax/elf.opt (mno-asm-pic): Likewise.
14683 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
14685 2011-02-21 Mike Stump <mikestump@comcast.net>
14688 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
14689 tree so we can get save the type.
14690 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
14691 for CFString instead of trying to use past the end of the builtins.
14692 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
14693 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
14694 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
14695 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
14696 Rename to darwin_builtin_cfstring.
14697 (darwin_init_cfstring_builtins): Return the built type.
14699 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
14702 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
14703 (_mm256_insert_epi64): Use _mm_insert_epi64.
14705 2011-02-21 Anatoly Sokolov <aesok@post.ru>
14707 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
14708 * config/stormy16/stormy16-protos.h
14709 (xstormy16_mode_dependent_address_p): Remove.
14710 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
14711 Make static. Change return type to bool. Change argument type to
14712 const_rtx. Remove dead code.
14713 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14715 2011-02-21 Richard Guenther <rguenther@suse.de>
14718 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
14719 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
14720 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
14722 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
14723 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
14725 2011-02-20 Richard Guenther <rguenther@suse.de>
14728 * tree.c (free_lang_data_in_decl): Clean builtins from
14729 the TU decl BLOCK_VARS.
14731 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
14735 * haifa-sched.c (fix_tick_ready): Skip tick computation
14738 2011-02-19 Richard Guenther <rguenther@suse.de>
14741 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
14742 Remove lazy BLOCK_VARS streaming.
14743 (lto_input_ts_block_tree_pointers): Likewise.
14744 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
14746 2011-02-19 Joseph Myers <joseph@codesourcery.com>
14748 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
14750 2011-02-19 Joseph Myers <joseph@codesourcery.com>
14752 * config/i386/biarch32.h, config/i386/mach.h,
14753 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
14755 2011-02-19 Jakub Jelinek <jakub@redhat.com>
14758 * config/i386/i386.md (peephole2 for shift and plus): Use
14759 operands[1] original mode in the first insn.
14761 2011-02-18 Mike Stump <mikestump@comcast.net>
14763 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
14765 2011-02-18 Jan Hubicka <jh@suse.cz>
14767 PR middle-end/47788
14768 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
14769 to zero when the function is not inlinable at all.
14771 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14773 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
14774 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
14775 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
14776 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
14777 * config/pa/t-pa64: Likewise.
14778 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
14780 2011-02-18 Jakub Jelinek <jakub@redhat.com>
14783 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
14785 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14788 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
14790 2011-02-18 Anatoly Sokolov <aesok@post.ru>
14792 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
14793 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
14794 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
14795 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
14796 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
14797 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
14798 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
14799 m32r_load_postinc_p, m32r_store_preinc_predec_p,
14800 m32r_legitimate_address_p): New functions.
14801 * config/m32r/constraints.md (constraint "S"): Don't use
14802 STORE_PREINC_PREDEC_P.
14803 (constraint "U"): Don't use LOAD_POSTINC_P.
14805 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
14807 PR rtl-optimization/46178
14808 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
14809 compute ira_hard_regno_cover_class[].
14811 2011-02-18 Richard Guenther <rguenther@suse.de>
14814 * lto-streamer.h (lto_global_var_decls): Declare.
14815 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
14816 statics for global var processing.
14818 2011-02-18 Richard Guenther <rguenther@suse.de>
14820 PR tree-optimization/47737
14821 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
14822 edge dominance check.
14824 2011-02-18 Jakub Jelinek <jakub@redhat.com>
14827 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
14828 avoid invalid rtx sharing.
14830 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
14832 * doc/cpp.texi (Obsolete Features): Add background on the
14833 origin of assertions.
14835 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
14837 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
14839 * config/darwin.c (output_objc_section_asm_op): Added support for
14841 (is_objc_metadata): New.
14842 (darwin_objc2_section): New.
14843 (darwin_objc1_section): New.
14844 (machopic_select_section): Added support for ABI v1 and v2.
14845 (darwin_emit_objc_zeroed): New.
14846 (darwin_output_aligned_bss): Detect objc metadata and treat it
14848 (darwin_asm_output_aligned_decl_common): Same.
14849 (darwin_asm_output_aligned_decl_local): Same.
14850 * config/darwin-sections.def: Updated for ABI v1 and v2.
14851 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
14852 compiling Objective-C code for the NeXT runtime, default to using
14853 ABI version 0 for 32-bit, and version 2 for 64-bit.
14855 2011-02-17 Joseph Myers <joseph@codesourcery.com>
14857 * common.opt (optimize_fast): New Variable.
14858 * opts.c (default_options_optimization): Use opts->x_optimize_fast
14859 instead of local variable ofast.
14861 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
14863 * doc/invoke.texi (fobjc-abi-version): Documented.
14864 (fobjc-nilcheck): Documented.
14865 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
14868 2011-02-17 Joseph Myers <joseph@codesourcery.com>
14871 * common.opt (export-dynamic): New Driver option.
14872 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
14874 2011-02-17 Joseph Myers <joseph@codesourcery.com>
14876 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
14878 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
14879 Jan Hubicka <jh@suse.cz>
14883 * cfgexpand.c (account_used_vars_for_block): Remove.
14884 (estimated_stack_frame_size): Use referenced vars.
14885 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
14886 that were referenced in the original function. Test src_fn
14887 rather than cfun. Drop redundant get_var_ann.
14888 (setup_one_parameter): Drop redundant get_var_ann.
14889 (declare_return_variable): Likewise.
14890 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
14891 (copy_arguments_for_versioning): Drop redundant get_var_ann.
14892 * ipa-inline.c (compute_inline_parameters): Do not compute
14893 disregard_inline_limits here.
14894 (compute_inlinable_for_current, pass_inlinable): New.
14895 (pass_inline_parameters): Require PROP_referenced_vars.
14896 * cgraphunit.c (cgraph_process_new_functions): Don't run
14897 compute_inline_parameters explicitly unless function is in SSA form.
14898 (cgraph_analyze_function): Set .disregard_inline_limits.
14899 * tree-sra.c (convert_callers): Compute inliner parameters
14900 only for functions already in SSA form.
14902 2011-02-17 Joseph Myers <joseph@codesourcery.com>
14904 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
14905 -mlittle-endian-data.
14907 2011-02-17 Joseph Myers <joseph@codesourcery.com>
14909 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
14910 -mno-fpu, not -fpu and -no-fpu.
14911 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
14912 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
14914 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
14917 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
14918 input reload with PLUS RTX.
14920 2011-02-16 Joseph Myers <joseph@codesourcery.com>
14922 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
14923 of InverseVar(MDMX).
14925 2011-02-16 Joseph Myers <joseph@codesourcery.com>
14927 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
14930 2011-02-16 Joseph Myers <joseph@codesourcery.com>
14932 * config/mn10300/mn10300.opt (mno-crt0): New.
14934 2011-02-16 Joseph Myers <joseph@codesourcery.com>
14936 * config/m68k/uclinux.opt (static-libc): New Driver option.
14938 2011-02-16 Joseph Myers <joseph@codesourcery.com>
14940 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
14942 2011-02-16 Joseph Myers <joseph@codesourcery.com>
14944 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
14945 %{muser-extend-enabled}.
14947 2011-02-16 Richard Guenther <rguenther@suse.de>
14949 PR tree-optimization/47738
14950 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
14951 the TODO from tree_predictive_commoning.
14953 2011-02-15 Jeff Law <law@redhat.com>
14956 2011-01-25 Jeff Law <law@redhat.com>
14958 PR rtl-optimization/37273
14959 * ira-costs.c (scan_one_insn): Detect constants living in memory and
14960 handle them like argument loads from stack slots. Do not double
14961 count memory for memory constants and argument loads from stack slots.
14963 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
14965 PR middle-end/47725
14966 * combine.c (cant_combine_insn_p): Revert the last change.
14968 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
14971 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
14972 mode for vector constants. Remove code that checks for TImode.
14974 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
14978 * cgraph.h (compute_inline_parameters): Return void.
14979 * ipa-inline.c (compute_inline_parameters): Adjust.
14981 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
14985 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
14987 * cfgexpand.c (estimated_stack_frame_size): Likewise.
14988 * ipa-inline.c (compute_inline_parameters): Adjust.
14990 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
14994 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
14995 Adjust all users. Pass FN to...
14996 * tree-flow-inline.h (first_referenced_var): ... this. Add
14998 * ipa-struct-reorg.c: Adjust.
14999 * tree-dfa.c: Adjust.
15000 * tree-into-ssa.c: Adjust.
15001 * tree-sra.c: Adjust.
15002 * tree-ssa-alias.c: Adjust.
15003 * tree-ssa-live.c: Adjust.
15004 * tree-ssa.c: Adjust.
15005 * tree-ssanames.c: Adjust.
15006 * tree-tailcall.c: Adjust.
15008 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
15012 * tree-flow.h (referenced_var_lookup): Add fn parameter.
15013 Adjust all callers.
15014 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
15015 * tree-flow-inline.h: Adjust.
15016 * gimple-pretty-print.c: Adjust.
15017 * tree-into-ssa.c: Adjust.
15018 * tree-ssa.c: Adjust.
15019 * cfgexpand.c: Adjust.
15021 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
15023 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
15024 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15025 (EXTRA_CONSTRAINT): Delete.
15026 * config/iq2000/constraints.md: New file.
15027 * config/iq2000/iq2000.md: Include it.
15028 (define_insn ""): Delete.
15029 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
15030 unsupported constraint letters from patterns.
15031 (call_value, call_value_internal1): Likewise.
15032 (call_value_multiple_internal1): Likewise.
15034 2011-02-15 Nick Clifton <nickc@redhat.com>
15036 * config/mn10300/mn10300.c: Include tm-constrs.h.
15037 (struct liw_data): New data structure describing an LIW candidate
15039 (extract_bundle): Use struct liw_data. Allow small integer
15040 operands for some instructions.
15041 (check_liw_constraints): Use struct liw_data. Remove swapped
15042 parameter. Add comments describing the checks. Fix bug when
15043 assigning the source of liw1 to the source of liw2.
15044 (liw_candidate): Delete. Code moved into extract_bundle.
15045 (mn10300_bundle_liw): Use struct liw_data. Check constraints
15047 * config/mn10300/predicates.md (liw_operand): New predicate.
15048 Allows registers and small integer constants.
15049 * config/mn10300/constraints.md (O): New constraint. Accetps
15050 integers in the range -8 to +7 inclusive.
15051 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
15052 for moving a small integer into a register. Give this alternative
15054 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
15055 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
15056 using the J,K,L and M constraints,
15057 (liw): Remove SI mode on second operands to allow for HI and QI
15059 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
15062 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
15064 PR middle-end/47725
15065 * combine.c (cant_combine_insn_p): Check zero/sign extended
15068 2011-02-15 Richard Guenther <rguenther@suse.de>
15070 PR tree-optimization/47743
15071 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
15072 for a non-type-compatible VN lookup bail out.
15074 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
15076 * config/fr30/constraints.md: New file.
15077 * config/fr30/fr30.md: Include it.
15078 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
15079 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15080 (EXTRA_CONSTRAINT): Delete.
15082 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
15084 * config/frv/constraints.md: New file.
15085 * config/frv/predicates.md: Include it.
15086 * config/frv/frv.c (reg_class_from_letter): Delete.
15087 (frv_option_override): Don't initialize it.
15088 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
15089 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
15090 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
15091 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
15092 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
15093 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15094 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
15095 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
15096 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
15097 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
15098 (REG_CLASS_FROM_CONSTRAINT): Delete.
15100 2011-02-15 Jakub Jelinek <jakub@redhat.com>
15102 PR middle-end/47581
15103 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
15104 if frame size is 0 in a leaf function.
15106 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15109 * config/alpha/host-osf.c: New file.
15110 * config/alpha/x-osf: New file.
15111 * config.host (alpha*-dec-osf*): Use it.
15113 2011-02-14 Anatoly Sokolov <aesok@post.ru>
15115 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15116 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
15117 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
15118 (rx_mode_dependent_address_p): ...this. Make static. Change argument
15120 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15122 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
15124 * config/stormy16/constraints.md: New file.
15125 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
15126 Use satisfies_constraint_Q and satisfies_constraint_R.
15127 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
15129 (xstormy16_legitiamte_address_p): Declare.
15130 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
15131 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15132 (EXTRA_CONSTRAINT): Delete.
15133 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
15135 (xstormy16_extra_constraint_p): Delete.
15137 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
15139 PR tree-optimization/46494
15140 * loop-unroll.c (split_edge_and_insert): Adjust comment.
15141 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
15142 (pass_rtl_loop_done): Add TODO_verify_flow.
15143 * fwprop.c (pass_rtl_fwprop): Likewise.
15144 * modulo-sched.c (pass_sms): Likewise.
15145 * tree-ssa-dom.c (pass_dominator): Likewise.
15146 * tree-ssa-loop-ch.c (pass_ch): Likewise.
15147 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
15148 (pass_tree_loop_done): Likewise.
15149 * tree-ssa-pre.c (execute_pre): Likewise.
15150 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
15151 * tree-ssa-sink.c (pass_sink_code): Likewise.
15152 * tree-vrp.c (pass_vrp): Likewise.
15154 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
15156 * config/v850/constraints.md: New file.
15157 * config/v850/v850.md: Include it.
15158 * config/v850/predicates.md (reg_or_0_operand): Use
15159 satisfies_constraint_G.
15160 (special_symbolref_operand): Use satisfies_constraint_K.
15161 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
15162 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
15163 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
15164 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
15165 (EXTRA_CONSTRAINT): Delete.
15166 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
15167 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
15168 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
15170 2011-02-14 Anatoly Sokolov <aesok@post.ru>
15173 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
15176 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
15178 * config/mcore/constraints.md: New file.
15179 * config/mcore/mcore.md: Include it.
15180 * config/mcore/mcore.c (reg_class_from_letter): Delete.
15181 * config/mcore/mcore.h (reg_class_from_letter): Delete.
15182 (REG_CLASS_FROM_LETTER): Delete.
15183 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
15184 insn_const_int_ok_for_constraint.
15185 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
15186 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
15187 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15188 (EXTRA_CONSTRAINT): Delete.
15190 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15193 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
15194 (IS_SIGHANDLER): Define.
15195 (sparc64_is_sighandler): New function, split off from
15196 sparc64_fallback_frame_state.
15197 (sparc_is_sighandler): New function, split off from
15198 sparc_fallback_frame_state.
15199 (sparc64_fallback_frame_state): Merge with ...
15200 (sparc_fallback_frame_state): ... this into ...
15201 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
15202 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
15203 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
15204 stack instead of hardcoded offsets.
15206 2011-02-14 Andriy Gapon <avg@freebsd.org>
15209 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
15211 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15213 * configure: Regenerate.
15215 2011-02-12 Joseph Myers <joseph@codesourcery.com>
15218 * gcc.c (asm_options): Correct spec matching --target-help.
15220 2011-02-12 Martin Jambor <mjambor@suse.cz>
15222 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
15223 to gimple call error.
15225 2011-02-12 Mike Stump <mikestump@comcast.net>
15227 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
15228 comments in backslash regions.
15230 2011-02-12 Mike Stump <mikestump@comcast.net>
15231 Jakub Jelinek <jakub@redhat.com>
15232 Iain Sandoe <iains@gcc.gnu.org>
15235 * dwarf2out.c (output_cfa_loc): When required, apply the
15236 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
15237 (output_loc_sequence): Likewise.
15238 (output_loc_operands_raw): Likewise.
15239 (output_loc_sequence_raw): Likewise.
15240 (output_cfa_loc): Likewise.
15241 (output_loc_list): Suppress register number adjustment when
15242 calling output_loc_sequence()
15243 (output_die): Likewise.
15245 2011-02-12 Anatoly Sokolov <aesok@post.ru>
15247 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
15249 * config/xtensa/xtensa.c (xtensa_register_move_cost,
15250 xtensa_memory_move_cost): New functions.
15251 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
15253 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
15256 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
15257 in the current directory.
15258 * configure: Rebuilt.
15260 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
15262 * config/darwin.c (darwin_override_options): Add a hunk missed
15263 from the commit of r168571. Trim comment line lengths and
15264 correct indents of the preceding block.
15266 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
15268 * gcc.c (driver_handle_option): Concatenate the argument to -F with
15271 2011-02-11 Joseph Myers <joseph@codesourcery.com>
15273 * common.opt (nostartfiles): New Driver option.
15275 2011-02-11 Xinliang David Li <davidxl@google.com>
15277 PR tree-optimization/47707
15278 * tree-chrec.c (convert_affine_scev): Keep type precision.
15280 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
15282 PR tree-optimization/47420
15283 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
15285 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
15287 PR rtl-optimization/47614
15288 * rtl.h (check_for_inc_dec): Declare.
15289 * dse.c (check_for_inc_dec): Externalize...
15290 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
15291 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
15293 2011-02-11 Joseph Myers <joseph@codesourcery.com>
15296 * gcc.c (main): Do not compile inputs if there were errors in
15298 * opts-common.c (read_cmdline_option): Check for wrong language
15299 after other error checks.
15301 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
15303 * cgraph.c: Fix comment typos.
15304 * cgraph.h: Likewise.
15305 * cgraphunit.c: Likewise.
15306 * ipa-cp.c: Likewise.
15307 * ipa-inline.c: Likewise.
15308 * ipa-prop.c: Likewise.
15309 * ipa-pure-const.c: Likewise.
15310 * ipa-ref.c: Likewise.
15311 * ipa-reference.c: Likewise.
15313 2011-02-11 Jakub Jelinek <jakub@redhat.com>
15316 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
15318 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15321 * doc/sourcebuild.texi (Require Support): Document
15322 dg-require-ascii-locale.
15324 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
15326 * doc/lto.texi (Write summary): Fix missing parentheses.
15328 2011-02-10 DJ Delorie <dj@redhat.com>
15330 * config/m32c/m32c.c (m32c_option_override): Disable
15331 -fcombine-stack-adjustments until flag value tracking and compare
15332 optimization can be rewritten.
15334 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
15336 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
15338 (PROCESSOR_DEFAULT64): Likewise.
15340 2011-02-10 Richard Henderson <rth@redhat.com>
15342 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
15343 change from 2011-02-03.
15344 * config/rx/rx.c (flags_from_code): Likewise.
15345 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
15346 is valid, n/pz otherwise.
15347 (rx_select_cc_mode): Return CCmode if Y is not zero.
15349 2011-02-10 Richard Guenther <rguenther@suse.de>
15351 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
15353 2011-02-10 Richard Guenther <rguenther@suse.de>
15355 PR tree-optimization/47677
15356 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
15358 2011-02-10 Jakub Jelinek <jakub@redhat.com>
15361 * combine.c (make_compound_operation): Only change shifts into
15362 multiplication for SCALAR_INT_MODE_P.
15364 2011-02-10 Jie Zhang <jie@codesourcery.com>
15368 2011-02-05 Jie Zhang <jie@codesourcery.com>
15370 * web.c (entry_register): Don't clobber the number of the
15371 first uninitialized reference in used[].
15373 2011-02-09 Richard Guenther <rguenther@suse.de>
15375 PR tree-optimization/47664
15376 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
15379 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
15383 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
15385 (PROCESSOR_DEFAULT64): Same.
15386 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
15388 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15390 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
15392 2011-02-09 Martin Jambor <mjambor@suse.cz>
15394 PR middle-end/45505
15395 * tree-sra.c (struct access): New flags grp_scalar_read and
15396 grp_scalar_write. Changed description of assignment read and write
15398 (dump_access): Dump new flags, reorder all of them.
15399 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
15400 to detect multiple scalar reads.
15401 (analyze_access_subtree): Use the new scalar read write flags instead
15402 of the old flags. Adjusted comments.
15404 2011-02-08 DJ Delorie <dj@redhat.com>
15407 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
15410 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15412 * config/m68k/uclinux.opt: New.
15413 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
15415 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15417 * config/cris/elf.opt (sim): New Driver option.
15419 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15421 * config/xtensa/elf.opt: New.
15422 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
15424 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15426 * config/vax/elf.opt: New.
15427 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
15429 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15431 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
15433 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15435 * config/gnu-user.opt: New.
15436 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
15437 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
15438 *-*-uclinux*): Use gnu-user.opt.
15440 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
15442 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
15443 * config/i386/gnu.h (CPP_SPEC): Likewise.
15445 2011-02-08 Ian Lance Taylor <iant@google.com>
15447 * common.opt (fcx-limited-range): Add SetByCombined flag.
15448 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
15449 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
15450 (fassociative-math, freciprocal-math): Likewise.
15451 (funsafe-math-optimizations): Likewise.
15452 * opth-gen.awk: Handle SetByCombined.
15453 * optc-gen.awk: Likewise.
15454 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
15455 (set_unsafe_math_optimizations_flags): Likewise.
15456 * doc/options.texi (Option properties): Document SetByCombined.
15458 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15460 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
15461 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
15462 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
15463 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
15464 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
15466 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
15468 PR tree-optimization/46834
15469 PR tree-optimization/46994
15470 PR tree-optimization/46995
15471 * graphite-sese-to-poly.c (used_outside_reduction): New.
15472 (detect_commutative_reduction): Call used_outside_reduction.
15473 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
15474 translate_scalar_reduction_to_array only when at least one
15475 loop-phi/close-phi tuple has been detected.
15477 2011-02-08 Richard Guenther <rguenther@suse.de>
15479 PR middle-end/47639
15480 * tree-vect-generic.c (expand_vector_operations_1): Update
15482 (expand_vector_operations): ... not here. Cleanup EH info
15483 and the CFG if required.
15485 2011-02-08 Richard Guenther <rguenther@suse.de>
15487 PR tree-optimization/47641
15488 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
15489 require type compatibility.
15491 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15493 * gimple-low.c (lower_function_body): Don't remove the location of
15494 the return statement here.
15495 (lower_gimple_return): Do it here instead but only if the return
15496 statement is actually used twice.
15498 2011-02-08 Richard Guenther <rguenther@suse.de>
15500 PR tree-optimization/47632
15501 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
15502 unused up_to_stmt parameter, return whether cfg-cleanup is
15503 necessary, remove EH info properly.
15504 (forward_propagate_into_gimple_cond): Adjust caller.
15505 (forward_propagate_into_cond): Likewise.
15506 (forward_propagate_comparison): Likewise.
15507 (tree_ssa_forward_propagate_single_use_vars): Make
15508 forward_propagate_comparison case similar to the two others.
15510 2011-02-08 Nick Clifton <nickc@redhat.com>
15512 * config/mn10300/mn10300.opt (mliw): New command line option.
15513 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
15514 (liw_bundling): New automaton.
15515 (liw): New attribute.
15516 (liw_op): New attribute.
15517 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
15518 (movsi_internal): Add LIW attributes.
15519 (andsi3): Likewise.
15520 (iorsi3): Likewise.
15521 (xorsi3): Likewise.
15522 (addsi3): Separate register and immediate alternatives.
15523 Add LIW attributes.
15524 (subsi3): Likewise.
15526 (aslsi3): Likewise.
15527 (lshrsi3): Likewise.
15528 (ashrsi3): Likewise.
15529 (liw): New pattern.
15530 * config/mn10300/mn10300.c (liw_op_names): New
15531 (mn10300_print_operand): Handle 'W' operand descriptor.
15532 (extract_bundle): New function.
15533 (check_liw_constraints): New function.
15534 (liw_candidate): New function.
15535 (mn10300_bundle_liw): New function.
15536 (mn10300_reorg): New function.
15537 (TARGET_MACHINE_DEPENDENT_REORG): Define.
15538 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
15539 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
15540 __LIW__ or __NO_LIW__.
15541 * doc/invoke.texi: Describe the -mliw command line option.
15543 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15545 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
15546 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
15547 pthread_mutex_unlock): Remove.
15548 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
15549 * config/pa/t-pa64: Likewise.
15550 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
15551 shared libc if not linking against libpthread.
15552 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
15554 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
15557 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
15558 on 10.6 and later to ensure that we always use the unwinder from
15559 the system. Only add -no_compact_unwind when tarteting darwin
15562 2011-02-07 Steve Ellcey <sje@cup.hp.com>
15565 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
15566 (vec_interleave_lowv2sf): Ditto.
15567 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
15568 (vec_extract_oddv2sf): Ditto.
15570 2011-02-07 Mike Stump <mikestump@comcast.net>
15573 Add __ieee_divdc3 entry point.
15574 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
15576 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
15577 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
15578 * config/darwin.c (darwin_rename_builtins): Add.
15579 * config/darwin-protos.h (darwin_rename_builtins): Add.
15581 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
15584 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
15587 2011-02-07 Mike Stump <mikestump@comcast.net>
15589 * config/darwin.opt (mmacosx-version-min): Update default OS version.
15591 2011-02-07 Denis Chertykov <chertykov@gmail.com>
15594 * config/avr/libgcc.S (exit): Move .endfunc
15596 2011-02-07 Richard Guenther <rguenther@suse.de>
15598 PR tree-optimization/47615
15599 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
15600 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
15601 (run_scc_vn): Initialize it.
15602 (visit_reference_op_load): Use it.
15603 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
15605 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15607 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
15608 DImode trapping arithmetic libfuncs.
15610 2011-02-07 Richard Guenther <rguenther@suse.de>
15612 PR tree-optimization/47621
15613 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
15615 (execute_update_addresses_taken): ... here. Make it more
15616 conservative in what we accept.
15618 2011-02-06 Joseph Myers <joseph@codesourcery.com>
15620 * config/sparc/freebsd.h (ASM_SPEC): Define.
15621 * config/sparc/vxworks.h (ASM_SPEC): Define.
15623 2011-02-06 Joseph Myers <joseph@codesourcery.com>
15625 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
15627 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
15629 * doc/invoke.texi: Remove reference to compiler internals from
15630 user documentation.
15632 * reg-notes.def: Remove REG_VALUE_PROFILE.
15633 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
15635 2011-02-05 Jakub Jelinek <jakub@redhat.com>
15637 PR middle-end/47610
15638 * varasm.c (default_section_type_flags): If decl is NULL,
15639 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
15641 2011-02-05 Jie Zhang <jie@codesourcery.com>
15644 * web.c (entry_register): Don't clobber the number of the
15645 first uninitialized reference in used[].
15647 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
15649 PR tree-optimization/46194
15650 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
15651 (build_classic_dist_vector_1): Do not represent classic distance
15652 vectors when the access functions are variating in different loops.
15654 2011-02-04 Joseph Myers <joseph@codesourcery.com>
15656 * config/mips/iris6.opt: New.
15657 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
15659 2011-02-04 Richard Henderson <rth@redhat.com>
15660 Steve Ellcey <sje@cup.hp.com>
15663 * config/ia64/predicates.md (mux1_brcst_element): New.
15664 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
15665 * config/ia64/ia64.c (ia64_unpack_assemble): New.
15666 (ia64_unpack_sign): New.
15667 (ia64_expand_unpack): Rewrite using new routines.
15668 (ia64_expand_widen_sum): Ditto.
15669 (ia64_expand_dot_prod_v8qi): Ditto.
15670 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
15671 routines, add endian check.
15672 (pmpy2_even): Rename from pmpy2_r, add endian check.
15673 (pmpy2_odd): Rename from pmpy2_l, add endian check.
15674 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
15675 (vec_widen_smult_hi_v4hi): Ditto.
15676 (vec_widen_umult_lo_v4hi): Ditto.
15677 (vec_widen_umult_hi_v4hi): Ditto.
15678 (mulv2si3): Change endian checks.
15679 (sdot_prodv4hi): Rewrite with new calls.
15680 (udot_prodv4hi): New.
15681 (vec_pack_ssat_v4hi): Add endian check.
15682 (vec_pack_usat_v4hi): Ditto.
15683 (vec_pack_ssat_v2si): Ditto.
15684 (max1_even): Rename from max1_r, add endian check.
15685 (max1_odd): Rename from max1_l, add endian check.
15686 (*mux1_rev): Format change.
15687 (*mux1_mix): Ditto.
15688 (*mux1_shuf): Ditto.
15689 (*mux1_alt): Ditto.
15690 (*mux1_brcst_v8qi): Use new predicate.
15691 (vec_extract_evenv8qi): Remove endian check.
15692 (vec_extract_oddv8qi): Ditto.
15693 (vec_interleave_lowv4hi): Format change.
15694 (vec_interleave_highv4hi): Ditto.
15695 (mix2_even): Rename from mix2_r, add endian check.
15696 (mix2_odd): Rename from mux2_l, add endian check.
15697 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
15698 (vec_extract_evenodd_helper): Format change.
15699 (vec_extract_evenv4hi): Remove endian check.
15700 (vec_extract_oddv4hi): Remove endian check.
15701 (vec_interleave_lowv2si): Format change.
15702 (vec_interleave_highv2si): Format change.
15703 (vec_initv2si): Remove endian check.
15704 (vecinit_v2si): Add endian check.
15705 (reduc_splus_v2sf): Add endian check.
15706 (reduc_smax_v2sf): Ditto.
15707 (reduc_smin_v2sf): Ditto.
15708 (vec_initv2sf): Remove endian check.
15709 (fpack): Add endian check.
15710 (fswap): Add endian check.
15711 (vec_interleave_highv2sf): Add endian check.
15712 (vec_interleave_lowv2sf): Add endian check.
15713 (fmix_lr): Add endian check.
15714 (vec_setv2sf): Format change.
15715 (*vec_extractv2sf_0_be): Use shift to extract operand.
15716 (*vec_extractv2sf_1_be): New.
15717 (vec_pack_trunc_v4hi): Add endian check.
15718 (vec_pack_trunc_v2si): Format change.
15720 2011-02-04 Jakub Jelinek <jakub@redhat.com>
15722 PR inline-asm/23200
15723 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
15724 do bb, locus and block comparison and disallow loads if it is not set.
15725 (stmt_is_replaceable_p): New function.
15726 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
15728 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
15729 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
15731 * tree-flow.h (stmt_is_replaceable_p): New prototype.
15733 2011-02-04 Joseph Myers <joseph@codesourcery.com>
15735 * config/rs6000/xilinx.opt: New.
15736 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
15738 2011-02-04 Joseph Myers <joseph@codesourcery.com>
15740 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
15742 2011-02-03 Anatoly Sokolov <aesok@post.ru>
15744 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
15745 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
15746 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
15747 secondary_reload_info, xtensa_secondary_reload): Remove.
15748 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
15749 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
15750 (xtensa_preferred_reload_class): Make static. Change return and
15751 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
15752 Use CONST_DOUBLE_P predicate.
15753 (xtensa_preferred_output_reload_class): New function.
15754 (xtensa_secondary_reload): Make static.
15756 2011-02-03 Joseph Myers <joseph@codesourcery.com>
15758 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
15759 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
15760 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
15762 2011-02-03 Jakub Jelinek <jakub@redhat.com>
15764 PR middle-end/31490
15765 * output.h (SECTION_RELRO): Define.
15766 (SECTION_MACH_DEP): Adjust.
15767 (get_variable_section): New prototype.
15768 * varpool.c (varpool_finalize_named_section_flags): New function.
15769 (varpool_assemble_pending_decls): Call it.
15770 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
15771 * cgraphunit.c (cgraph_output_in_order): Call
15772 varpool_finalize_named_section_flags.
15773 * varasm.c (get_section): Allow section flags conflicts between
15774 relro and read-only sections if the section hasn't been declared yet.
15775 Set SECTION_OVERRIDE after diagnosing section type conflict.
15776 (get_variable_section): No longer static.
15777 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
15778 readonly sections that need relocations.
15779 (decl_readonly_section_1): New function.
15780 (decl_readonly_section): Use it.
15783 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
15784 Steve Ellcey <sje@cup.hp.com>
15786 PR middle-end/31490
15787 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
15788 if section attribute used.
15790 2011-02-03 Jakub Jelinek <jakub@redhat.com>
15792 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
15793 * config/darwin.c (SECTION_NO_ANCHOR): Define.
15794 (darwin_init_sections): Remove assertion.
15796 2011-02-03 Nick Clifton <nickc@redhat.com>
15798 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
15800 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
15801 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
15802 instead of "n" and "pz".
15803 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
15806 2011-02-03 Jakub Jelinek <jakub@redhat.com>
15809 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
15810 fma, expand FMA_EXPR as fma{,f,l} call.
15813 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
15814 copy them into a unsigned char variable and pass address of it to
15815 lto_output_data_stream.
15818 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
15819 around backend_init_target and lang_dependent_init_target calls.
15820 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
15821 (verify_cgraph_node): Don't call set_cfun here. Use
15822 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
15823 Set error_found for incorrectly represented calls to thunks.
15825 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
15828 PR rtl-optimization/43494
15829 * rtl.h (for_each_inc_dec_fn): New type.
15830 (for_each_inc_dec): Declare.
15831 * rtlanal.c (struct for_each_inc_dec_ops): New type.
15832 (for_each_inc_dec_find_inc_dec): New fn.
15833 (for_each_inc_dec_find_mem): New fn.
15834 (for_each_inc_dec): New fn.
15835 * dse.c (struct insn_size): Remove.
15836 (replace_inc_dec, replace_inc_dec_mem): Remove.
15837 (emit_inc_dec_insn_before): New fn.
15838 (check_for_inc_dec): Use it, along with for_each_inc_dec.
15839 (canon_address): Pass mem modes to cselib_lookup.
15840 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
15841 (cselib_lookup_from_insn): Likewise.
15842 (cselib_subst_to_values): Likewise.
15843 * cselib.c (find_slot_memmode): New var.
15844 (cselib_find_slot): New fn. Use it instead of
15845 htab_find_slot_with_hash everywhere.
15846 (entry_and_rtx_equal_p): Use find_slot_memmode.
15847 (autoinc_split): New fn.
15848 (rtx_equal_for_cselib_p): Rename and implement in terms of...
15849 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
15850 Deal with autoinc. Special-case recursion into MEMs.
15851 (cselib_hash_rtx): Likewise.
15852 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
15853 address and MEM modes.
15854 (cselib_subst_to_values): Add memmode, pass it on.
15856 (cselib_lookup): Add memmode argument, pass it on.
15857 (cselib_lookup_from_insn): Add memmode.
15858 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
15859 (struct cselib_record_autoinc_data): New.
15860 (cselib_record_autoinc_cb): New fn.
15861 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
15862 mode to cselib_lookup. Reset autoinced REGs here instead of...
15863 (cselib_process_insn): ... here.
15864 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
15866 (add_uses): Likewise, also to cselib_subst_to_values.
15867 (add_stores): Likewise.
15868 * sched-deps.c (add_insn_mem_dependence): Pass mode to
15869 cselib_subst_to_values.
15870 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
15871 * gcse.c (do_local_cprop): Adjusted.
15872 * postreload.c (reload_cse_simplify_set): Adjusted.
15873 (reload_cse_simplify_operands): Adjusted.
15874 * sel-sched-dump (debug_mem_addr_value): Pass mode.
15876 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
15878 PR tree-optimization/45122
15879 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
15880 unsafe assumptions when there's more than one loop exit.
15882 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
15885 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
15886 Document using vector double with the load/store builtins, and
15887 that the load/store builtins always use Altivec instructions.
15889 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
15890 to use altivec memory instructions, even on VSX.
15891 (vector_altivec_store_<mode>): Ditto.
15893 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
15896 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
15897 V2DF, V2DI support to load/store overloaded builtins.
15899 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
15900 altivec load/store builtins for V2DF/V2DI types.
15902 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
15903 set avoid indexed addresses on power6 if -maltivec.
15904 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
15905 vector_altivec_load/vector_altivec_store builtins.
15906 (altivec_expand_st_builtin): Ditto.
15907 (altivec_expand_builtin): Add VSX memory builtins.
15908 (rs6000_init_builtins): Add V2DI types to internal types.
15909 (altivec_init_builtins): Add support for V2DF/V2DI altivec
15910 load/store builtins.
15911 (rs6000_address_for_altivec): Insure memory address is appropriate
15914 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
15915 vec_vsx_ld and vec_vsx_st.
15916 (vsx_store_<mode>): Ditto.
15918 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
15919 variables to hold long long types for VSX vector memory builtins.
15920 (RS6000_BTI_unsigned_long_long): Ditto.
15921 (long_long_integer_type_internal_node): Ditti.
15922 (long_long_unsigned_type_internal_node): Ditti.
15924 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
15925 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
15926 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
15928 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
15930 (vec_vsx_st): Ditto.
15932 2011-02-02 Joseph Myers <joseph@codesourcery.com>
15934 * config/pa/pa-hpux10.opt: New.
15935 * config/hpux11.opt (pthread): New Driver option.
15936 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
15937 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
15939 2011-02-02 Joseph Myers <joseph@codesourcery.com>
15941 * config/ia64/vms.opt: New.
15942 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
15944 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
15947 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
15948 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
15949 generator functions.
15950 (vsx_floatuns<VSi><mode>2): Ditto.
15951 (vsx_fix_trunc<mode><VSi>2): Ditto.
15952 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
15954 2011-02-02 Joseph Myers <joseph@codesourcery.com>
15956 * config/i386/djgpp.opt (posix): New Driver option.
15958 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
15960 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
15961 Move to the unsupported targets list.
15963 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
15965 PR rtl-optimization/47525
15966 * df-scan.c: Update copyright years.
15967 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
15968 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
15970 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15972 * config/i386/sysv4.h (TARGET_VERSION): Remove.
15973 (SUBTARGET_RETURN_IN_MEMORY): Remove.
15974 (ASM_OUTPUT_ASCII): Remove.
15975 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
15977 2011-02-02 Jeff Law <law@redhat.com>
15979 PR middle-end/47543
15980 * reload.c (find_reloads_address): Handle reg+d address where both
15981 components are invalid by reloading the entire address.
15983 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
15984 Richard Guenther <rguenther@suse.de>
15986 PR tree-optimization/40979
15988 * passes.c (init_optimization_passes): After LIM call copy_prop
15989 and DCE to clean up.
15990 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
15992 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
15994 PR tree-optimization/47576
15995 PR tree-optimization/47555
15996 * doc/invoke.texi (scev-max-expr-complexity): Documented.
15997 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
15998 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
15999 * tree-scalar-evolution.c (follow_ssa_edge): Use
16000 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
16002 2011-02-02 Richard Guenther <rguenther@suse.de>
16004 PR tree-optimization/47566
16005 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
16007 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
16011 * tree-inline.c (declare_return_variable): Remove unused caller
16016 * tree-flow-inline.h (clear_is_used, is_used_p): New.
16017 * cfgexpand.c (account_used_vars_for_block): Use them.
16018 * tree-nrv.c (tree_nrv): Likewise.
16019 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
16020 (dump_scope_block): Likewise.
16021 (remove_unused_locals): Likewise.
16025 * tree-inline.c (declare_return_variable): Add result decl to
16026 local decls only once.
16027 * gimple-low.c (record_vars_into): Mark newly-created variables
16030 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
16036 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
16038 (no_real_insns_p, schedule_block, set_priorities): Drop special
16039 treatment of boundary debug insns.
16040 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
16041 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
16042 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
16043 (BOUNDARY_DEBUG_INSN_P): Likewise.
16044 (SCHEDULE_DEBUG_INSN_P): Likewise.
16045 * sched-rgn.c (init_ready_list): Drop special treatment of
16046 boundary debug insns.
16047 * final.c (rest_of_clean_state): Clear notes' BB.
16049 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16051 * config/openbsd.opt (assert=): New Driver option.
16053 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16055 * config/i386/nto.opt: New.
16056 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
16058 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16060 * config/i386/netware.opt: New.
16061 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
16063 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16065 * config/interix.opt (posix): New Driver option.
16067 2011-02-01 DJ Delorie <dj@redhat.com>
16069 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
16071 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
16074 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
16076 PR tree-optimization/47561
16077 * toplev.c (process_options): Print the Graphite flags. Add
16078 flag_loop_flatten to the list of options requiring Graphite.
16080 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16082 * config/i386/cygming.opt (posix): New Driver option.
16084 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16086 * config/arm/vxworks.opt: New.
16087 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
16089 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16091 * config/alpha/elf.opt: New.
16092 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
16093 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
16095 2011-02-01 Richard Guenther <rguenther@suse.de>
16097 PR tree-optimization/47559
16098 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
16099 store-motion on references that can throw.
16101 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
16103 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
16104 * tree-pass.h (TDF_CSELIB): New macro.
16105 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
16106 cselib_lookup): Check for it rather than for TDF_DETAILS.
16108 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
16111 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
16112 is HOST_BIT_BUCKET.
16114 * opts.c (finish_options): Don't add x_aux_base_name if it is
16117 2011-02-01 Richard Guenther <rguenther@suse.de>
16119 PR tree-optimization/47555
16121 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
16123 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
16125 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
16128 * config/lm32/t-lm32: Add multilib for all CPU options.
16130 2011-02-01 Richard Guenther <rguenther@suse.de>
16132 PR tree-optimization/47541
16133 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
16134 sure to have a field at offset zero.
16136 2011-01-31 Joseph Myers <joseph@codesourcery.com>
16138 * config/arc/arc.opt (EB, EL): New Driver options.
16140 2011-01-31 Joseph Myers <joseph@codesourcery.com>
16142 * config/alpha/osf5.opt: New.
16143 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
16145 2011-01-31 Joseph Myers <joseph@codesourcery.com>
16147 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
16149 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
16151 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
16152 -floop-interchange.
16153 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
16154 is an alias of -floop-interchange and that it requires the
16155 Graphite infrastructure.
16156 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
16157 flag_loop_interchange based on the value of flag_tree_loop_linear.
16159 2011-01-31 Jakub Jelinek <jakub@redhat.com>
16160 Richard Guenther <rguenther@suse.de>
16162 PR tree-optimization/47538
16163 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
16164 type instead of r1type, except for comparisons. For right
16165 shifts and comparisons punt if there are mismatches in
16166 sizetype vs. non-sizetype types.
16168 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16170 * doc/sourcebuild.texi (Effective-Target Keywords): Document
16173 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16175 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
16177 * configure: Regenerate.
16179 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16181 * configure.ac (gcc_cv_ld_static_option): Define.
16182 (gcc_cv_ld_dynamic_option): Define.
16183 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
16185 (HAVE_LD_STATIC_DYNAMIC): Update message.
16186 (LD_STATIC_OPTION): Define.
16187 (LD_DYNAMIC_OPTION): Define.
16188 * configure: Regenerate.
16189 * config.in: Regenerate.
16190 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
16191 HAVE_LD_STATIC_DYNAMIC]: Use them.
16193 2011-01-31 Nick Clifton <nickc@redhat.com>
16195 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
16196 registers inside interrupt handlers if the handler is not a leaf
16199 2011-01-31 Nick Clifton <nickc@redhat.com>
16201 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
16202 reg_renumber returning an INVALID_REGNUM.
16204 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
16207 * doc/install.texi: Document host options discarded when cross
16208 configuring target libraries.
16210 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
16213 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
16216 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
16218 (no_real_insns_p, schedule_block, set_priorities): Drop special
16219 treatment of boundary debug insns.
16220 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
16221 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
16222 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
16223 (BOUNDARY_DEBUG_INSN_P): Likewise.
16224 (SCHEDULE_DEBUG_INSN_P): Likewise.
16225 * sched-rgn.c (init_ready_list): Drop special treatment of
16226 boundary debug insns.
16227 * final.c (rest_of_clean-state): Clear notes' BB.
16229 2011-01-31 Alan Modra <amodra@gmail.com>
16231 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
16232 toc relative expressions as we do in print_operand_address.
16234 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
16236 * doc/extend.texi: Follow spelling conventions.
16237 * doc/invoke.texi: Fix a typo.
16239 2011-01-30 Joseph Myers <joseph@codesourcery.com>
16241 * config/hpux11.opt: New.
16242 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
16243 ia64*-*-hpux*): Use hpux11.opt.
16245 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
16247 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
16250 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
16252 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
16255 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
16257 * doc/install.texi (Binaries): Remove outdated reference for
16258 Motorola 68HC11/68HC12 downloads.
16260 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
16262 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
16265 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
16268 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
16271 2011-01-28 Ahmad Sharif <asharif@google.com>
16273 * value-prof.c (check_counter): Corrected error message.
16275 2011-01-29 Jie Zhang <jie@codesourcery.com>
16277 * config/arm/arm.c (arm_legitimize_reload_address): New.
16278 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
16279 arm_legitimize_reload_address.
16280 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
16282 2011-01-28 Ian Lance Taylor <iant@google.com>
16284 * godump.c (go_define): Ignore macros whose definitions include
16285 two adjacent operands.
16287 2011-01-28 Jakub Jelinek <jakub@redhat.com>
16290 * varasm.c (force_const_mem): Store copy of x in desc->constant
16291 instead of x itself.
16292 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
16293 itself into REG_EQUAL note.
16295 2011-01-28 Joseph Myers <joseph@codesourcery.com>
16297 * config/freebsd.opt (posix, rdynamic): New Driver options.
16299 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16301 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
16302 -Bstatic/-Bdynamic.
16303 * configure: Regenerate.
16305 2011-01-27 Joseph Myers <joseph@codesourcery.com>
16307 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
16308 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
16310 2011-01-27 Anatoly Sokolov <aesok@post.ru>
16312 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
16313 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
16314 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
16315 (s390_preferred_reload_class): Make static. Change return and
16316 'rclass' argument type to reg_class_t.
16318 2011-01-27 Jan Hubicka <jh@suse.cz>
16320 PR middle-end/46949
16321 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
16322 (process_function_and_variable_attributes): Check defined weakrefs.
16324 2011-01-27 Martin Jambor <mjambor@suse.cz>
16326 PR tree-optimization/47228
16327 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
16328 build_ref_for_offset.
16330 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16332 * config/spu/spu-elf.h (ASM_SPEC): Remove.
16334 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
16336 PR rtl-optimization/46856
16337 * postreload.c (reload_combine_recognize_const_pattern): Do not
16338 separate cc0 setter and user on cc0 targets.
16340 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
16343 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
16344 passed a VOID_TYPE expression, immediately emit an error and
16345 return error_mark_node.
16347 2011-01-26 Jeff Law <law@redhat.com>
16349 PR rtl-optimization/47464
16350 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
16351 rather than may_trap_p as needed.
16353 2011-01-26 DJ Delorie <dj@redhat.com>
16355 PR rtl-optimization/46878
16356 * combine.c (insn_a_feeds_b): Check for the implicit cc0
16357 setter/user dependency as well.
16359 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
16361 PR rtl-optimization/44469
16362 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
16363 after removing trivially dead basic blocks.
16365 2011-01-26 Joseph Myers <joseph@codesourcery.com>
16367 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
16368 * config/frv/frv.h (LINK_SPEC): Likewise.
16369 * config/i386/netware.h (LINK_SPEC): Likewise.
16370 * config/m68k/linux.h (ASM_SPEC): Likewise.
16371 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
16372 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
16373 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
16374 * config/sparc/linux.h (ASM_SPEC): Likewise.
16375 * config/sparc/linux64.h (ASM_SPEC): Likewise.
16376 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
16378 2011-01-26 Joseph Myers <joseph@codesourcery.com>
16380 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
16381 * config/frv/frv.h (ASM_SPEC): Likewise.
16382 * config/m68k/linux.h (ASM_SPEC): Likewise.
16383 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
16384 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
16385 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
16386 * config/sparc/linux.h (ASM_SPEC): Likewise.
16387 * config/sparc/linux64.h (ASM_SPEC): Likewise.
16388 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
16390 2011-01-26 Joseph Myers <joseph@codesourcery.com>
16392 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
16393 * config/frv/frv.h (LINK_SPEC): Likewise.
16394 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
16396 2011-01-26 Joseph Myers <joseph@codesourcery.com>
16398 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
16399 * config/frv/frv.h (ASM_SPEC): Likewise.
16400 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
16401 * config/m68k/linux.h (ASM_SPEC): Likewise.
16402 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
16403 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
16404 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
16405 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
16406 * config/sparc/linux.h (ASM_SPEC): Likewise.
16407 * config/sparc/linux64.h (ASM_SPEC): Likewise.
16408 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
16409 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
16411 2011-01-26 Steve Ellcey <sje@cup.hp.com>
16414 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
16416 (vec_extract_evenodd_help): Ditto.
16417 (vec_extract_evenv4hi): Ditto.
16418 (vec_extract_oddv4hi): Ditto.
16419 (vec_interleave_lowv2si): Ditto.
16420 (vec_interleave_highv2si): Ditto.
16421 (vec_extract_evenv2si): Ditto.
16422 (vec_extract_oddv2si: Ditto.
16423 (vec_pack_trunc_v2si): Ditto.
16425 2011-01-22 Jan Hubicka <jh@suse.cz>
16428 * cgraph.h (cgraph_local_info): New field can_change_signature.
16429 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
16430 signature can change.
16431 (ipcp_estimate_growth): Call sequence simplify only if calle signature
16433 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
16434 (cgraph_function_versioning): We can not change signature of functions
16435 that don't allow that.
16436 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
16437 (lto_input_node): Likewise.
16438 * ipa-inline.c (compute_inline_parameters): Compute
16439 local.can_change_signature.
16440 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
16441 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
16442 functions that can not change signature.
16443 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
16444 init_cumulative_args): Do not use local calling conventions
16445 for functions that can not change signature.
16447 2011-01-22 Jan Hubicka <jh@suse.cz>
16449 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
16451 2011-01-26 Richard Guenther <rguenther@suse.de>
16453 PR tree-optimization/47190
16454 * cgraphunit.c (process_common_attributes): New function.
16455 (process_function_and_variable_attributes): Use it.
16457 2011-01-26 Richard Guenther <rguenther@suse.de>
16460 * cgraphbuild.c (record_eh_tables): Record reference to personality
16463 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
16466 * sel-sched.c (moveup_expr): Don't let debug insns prevent
16467 non-debug insns from moving up.
16469 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
16472 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
16473 t-dlldir{,-x} fragment for build and add it to tmake_file.
16474 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
16475 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
16476 * config/i386/t-dlldir: New file.
16477 (SHLIB_DLLDIR): Define.
16478 * config/i386/t-dlldir-x: New file.
16479 (SHLIB_DLLDIR): Define.
16480 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
16481 (SHLIB_INSTALL): Use it.
16483 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
16486 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
16487 lower bound of the allowed Thumb-2 coprocessor load/store
16488 index range to -256. Add explaining comment.
16490 2011-01-25 Ian Lance Taylor <iant@google.com>
16492 * godump.c (go_define): Improve lexing of macro expansion to only
16493 accept expressions which match Go spec.
16495 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
16498 * tree.c (handle_dll_attribute): Handle it.
16499 * doc/extend.texi (@item dllexport): Mention it.
16500 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
16502 2011-01-25 Ian Lance Taylor <iant@google.com>
16504 PR tree-optimization/26854
16505 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
16506 (decl_jump_unsafe): Move higher in file, with no other change.
16507 (bind): Set has_jump_unsafe_decl if appropriate.
16508 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
16509 (check_earlier_gotos): Likewise.
16510 (c_check_switch_jump_warnings): Likewise.
16512 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
16514 * doc/invoke.texi (Warning Options): Add missing hyphen.
16515 (-fprofile-dir): Minor grammatical fixes.
16516 (-fbranch-probabilities): Likewise.
16518 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
16522 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
16524 (no_real_insns_p, schedule_block, set_priorities): Drop special
16525 treatment of boundary debug insns.
16526 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
16527 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
16528 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
16529 (BOUNDARY_DEBUG_INSN_P): Likewise.
16530 (SCHEDULE_DEBUG_INSN_P): Likewise.
16531 * sched-rgn.c (init_ready_list): Drop special treatment of
16532 boundary debug insns.
16533 * final.c (rest_of_clean-state): Clear notes' BB.
16535 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16537 * Makefile.in (LAMBDA_H): Removed.
16538 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
16539 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
16540 lambda-trans.o, and tree-loop-linear.o.
16541 (lto-symtab.o): Remove dependence on LAMBDA_H.
16542 (tree-loop-linear.o): Remove rule.
16543 (lambda-mat.o): Same.
16544 (lambda-trans.o): Same.
16545 (lambda-code.o): Same.
16546 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
16547 (tree-vect-slp.o): Same.
16548 * hwint.h (gcd): Moved here.
16549 (least_common_multiple): Same.
16550 * lambda-code.c: Removed.
16551 * lambda-mat.c: Removed.
16552 * lambda-trans.c: Removed.
16553 * lambda.h: Removed.
16554 * tree-loop-linear.c: Removed.
16555 * lto-symtab.c: Do not include lambda.h.
16556 * omega.c (gcd): Removed.
16557 * passes.c (init_optimization_passes): Remove pass_linear_transform.
16558 * tree-data-ref.c (print_lambda_vector): Moved here.
16559 (lambda_vector_copy): Same.
16560 (lambda_matrix_copy): Same.
16561 (lambda_matrix_id): Same.
16562 (lambda_vector_first_nz): Same.
16563 (lambda_matrix_row_add): Same.
16564 (lambda_matrix_row_exchange): Same.
16565 (lambda_vector_mult_const): Same.
16566 (lambda_vector_negate): Same.
16567 (lambda_matrix_row_negate): Same.
16568 (lambda_vector_equal): Same.
16569 (lambda_matrix_right_hermite): Same.
16570 * tree-data-ref.h: Do not include lambda.h.
16571 (lambda_vector): Moved here.
16572 (lambda_matrix): Same.
16573 (dependence_level): Same.
16574 (lambda_transform_legal_p): Removed declaration.
16575 (lambda_collect_parameters): Same.
16576 (lambda_compute_access_matrices): Same.
16577 (lambda_vector_gcd): Same.
16578 (lambda_vector_new): Same.
16579 (lambda_vector_clear): Same.
16580 (lambda_vector_lexico_pos): Same.
16581 (lambda_vector_zerop): Same.
16582 (lambda_matrix_new): Same.
16583 * tree-flow.h (least_common_multiple): Removed declaration.
16584 * tree-parloops.c (lambda_trans_matrix): Moved here.
16585 (LTM_MATRIX): Same.
16586 (LTM_ROWSIZE): Same.
16587 (LTM_COLSIZE): Same.
16588 (LTM_DENOMINATOR): Same.
16589 (lambda_trans_matrix_new): Same.
16590 (lambda_matrix_vector_mult): Same.
16591 (lambda_transform_legal_p): Same.
16592 * tree-pass.h (pass_linear_transform): Removed declaration.
16593 * tree-ssa-loop.c (tree_linear_transform): Removed.
16594 (gate_tree_linear_transform): Removed.
16595 (pass_linear_transform): Removed.
16596 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
16597 flag_loop_interchange.
16599 2011-01-25 Jakub Jelinek <jakub@redhat.com>
16601 PR tree-optimization/47265
16602 PR tree-optimization/47443
16603 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
16604 if name still has some uses.
16606 2011-01-25 Martin Jambor <mjambor@suse.cz>
16608 PR tree-optimization/47382
16609 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
16610 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
16612 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
16614 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
16615 sjlj_except_unwind_info.
16617 2011-01-25 Richard Guenther <rguenther@suse.de>
16619 PR tree-optimization/47426
16620 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
16621 visible functions results escape.
16623 2011-01-25 Jakub Jelinek <jakub@redhat.com>
16626 * config/arm/arm.c (any_sibcall_uses_r3): New function.
16627 (arm_get_frame_offsets): Use it.
16629 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16630 Jakub Jelinek <jakub@redhat.com>
16632 PR tree-optimization/47271
16633 * tree-if-conv.c (bb_postdominates_preds): New.
16634 (if_convertible_bb_p): Call bb_postdominates_preds.
16635 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
16636 (predicate_scalar_phi): Call bb_postdominates_preds.
16638 2011-01-25 Nick Clifton <nickc@redhat.com>
16640 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
16641 * config/rx/rx.c (rx_function_value): Likewise.
16642 (rx_promote_function_mode): Likewise.
16643 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
16644 in order to make it legitimate.
16645 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
16646 make sure that the first operand is the same as the result register.
16647 (addsi3_unspec): Delete.
16648 (subdi3): Do not accept immediate operands.
16649 (subdi3_internal): Likewise.
16651 2011-01-25 Jeff Law <law@redhat.com>
16653 PR rtl-optimization/37273
16654 * ira-costs.c (scan_one_insn): Detect constants living in memory and
16655 handle them like argument loads from stack slots. Do not double
16656 count memory for memory constants and argument loads from stack slots.
16658 2011-01-25 Jakub Jelinek <jakub@redhat.com>
16660 PR tree-optimization/47427
16661 PR tree-optimization/47428
16662 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
16663 coalesce if the new root var would be TREE_READONLY.
16665 2011-01-25 Richard Guenther <rguenther@suse.de>
16667 PR middle-end/47414
16668 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
16669 correct type for TBAA.
16671 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16673 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
16674 (close_phi_written_to_memory): Call for_each_index with
16675 dr_indices_valid_in_loop.
16677 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16679 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
16680 when it is initialized.
16682 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16684 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
16685 call to graphite_find_data_references_in_stmt.
16686 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
16687 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
16688 call to graphite_find_data_references_in_stmt.
16689 (analyze_drs_in_stmts): Same.
16690 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
16691 in which the scalar analysis of indices is performed.
16692 (create_data_ref): Same. Update call to dr_analyze_indices.
16693 (find_data_references_in_stmt): Update call to create_data_ref.
16694 (graphite_find_data_references_in_stmt): Same.
16695 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
16697 (create_data_ref): Same.
16698 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
16699 call to create_data_ref.
16701 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16703 * graphite-sese-to-poly.c (build_poly_scop): Move
16704 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
16706 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16708 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
16709 VAR_DECL, PARM_DECL, and RESULT_DECL.
16711 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16713 * graphite-dependences.c (reduction_dr_1): Allow several reductions
16714 in a reduction PBB.
16715 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
16716 that have already been marked as PBB_IS_REDUCTION.
16718 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16720 * graphite-scop-detection.c (same_close_phi_node): New.
16721 (remove_duplicate_close_phi): New.
16722 (make_close_phi_nodes_unique): New.
16723 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
16725 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16727 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
16728 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
16729 of both data references to be the same.
16731 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16733 * graphite-dependences.c (build_lexicographical_constraint): Remove
16734 the gdim parameter.
16735 (build_lexicographical_constraint): Adjust call to
16736 ppl_powerset_is_empty.
16737 (dependence_polyhedron): Same.
16738 (graphite_legal_transform_dr): Same.
16739 (graphite_carried_dependence_level_k): Same.
16740 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
16742 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
16744 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16746 * graphite-sese-to-poly.c
16747 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
16748 (close_phi_written_to_memory): New.
16749 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
16752 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16754 * doc/install.texi: Update the expected version number of PPL to 0.11.
16755 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
16756 #if PPL_VERSION_MINOR < 11.
16758 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16760 * graphite-dependences.c: Include graphite-cloog-util.h.
16761 (new_poly_ddr): Inlined into dependence_polyhedron.
16762 (free_poly_ddr): Moved close by new_poly_ddr.
16763 (dependence_polyhedron_1): Renamed dependence_polyhedron.
16764 Early return NULL when ppl_powerset_is_empty returns true.
16765 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
16766 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
16767 (graphite_legal_transform_dr): Call new_poly_ddr.
16768 (graphite_carried_dependence_level_k): Same.
16769 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
16770 (dot_transformed_deps_stmt_1): Removed.
16771 (dot_deps_stmt_1): Call dot_deps_stmt_2.
16772 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
16773 (dot_deps_1): Call dot_deps_2.
16774 * Makefile.in (graphite-dependences.o): Add missing dependence on
16775 graphite-cloog-util.h.
16777 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16779 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
16780 (build_lexicographical_constraint): Same.
16781 (dependence_polyhedron_1): Same.
16782 (graphite_legal_transform_dr): Same.
16783 (graphite_carried_dependence_level_k): Same.
16784 * graphite-ppl.c (ppl_powerset_is_empty): New.
16785 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
16786 * tree-data-ref.c (dump_data_reference): Print the basic block index.
16788 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16790 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
16791 the "a followed by b" relation and document it.
16793 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16795 * graphite-dependences.c (build_lexicographical_constraint): Stop the
16796 iteration when the bag of constraints is empty.
16798 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16800 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
16802 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16804 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
16805 nest and two loop depths as parameters.
16806 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
16807 lst_perfect_nestify.
16809 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16811 * graphite-dependences.c (print_pddr): Call
16812 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
16814 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16816 * graphite-ppl.c (debug_gmp_value): New.
16817 * graphite-ppl.h (debug_gmp_value): Declared.
16819 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
16821 * doc/install.texi: Document availability of cloog-0.16.
16823 2011-01-25 Vladimir Kargov <kargov@gmail.com>
16825 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
16826 invalid postdominance info.
16828 2011-01-24 Jan Hubicka <jh@suse.cz>
16831 * doc/extend.texi (weak pragma): Drop claim that it must
16832 appear before definition.
16833 * varasm.c (merge_weak, declare_weak): Only sanity check
16834 that DECL is not output at a time it is declared weak.
16836 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
16838 * machmode.def: Fixed comments.
16840 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
16842 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
16844 2011-01-24 Paul Koning <ni1d@arrl.net>
16846 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
16849 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
16852 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
16853 (block_info): Add scanned and prev.
16854 (move_or_delete_vzeroupper_2): Return if the basic block
16855 has been scanned and the upper 128bit state is unchanged
16856 from the last scan.
16857 (move_or_delete_vzeroupper_1): Return true if the exit
16859 (move_or_delete_vzeroupper): Visit basic blocks using the
16860 work-list based algorithm based on vt_find_locations in
16863 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
16865 2011-01-24 Nick Clifton <nickc@redhat.com>
16867 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
16868 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
16869 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
16870 then define __v850e1__.
16871 * doc/invoke.texi: Document -mv850es.
16873 2011-01-24 Richard Henderson <rth@redhat.com>
16875 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
16876 compound unordered comparisons.
16877 * config/rx/rx.c (rx_split_fp_compare): Remove.
16878 * config/rx/rx-protos.h: Update.
16879 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
16880 (cbranchsf4): Don't call rx_split_fp_compare.
16881 (*cbranchsf4): Use rx_split_cbranch.
16882 (*cmpsf): Don't accept "i" constraint.
16883 (*conditional_branch): Only valid after reload.
16884 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
16886 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
16889 * config/rs6000/altivec.md (vector constant splitters): Add
16890 support for creating vector single precision constants if -mvsx is
16891 used and we would create the constant using Altivec primitives.
16893 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
16894 Richard Sandiford <rdsandiford@googlemail.com>
16896 PR rtl-optimization/47166
16897 * reload1.c (emit_reload_insns): Disable the spill_reg_store
16898 mechanism for PRE_MODIFY and POST_MODIFY.
16899 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
16902 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
16904 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
16906 2011-01-22 Jan Hubicka <jh@suse.cz>
16909 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
16911 2011-01-22 Jan Hubicka <jh@suse.cz>
16913 PR tree-optimization/43884
16915 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
16916 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
16918 2011-01-22 Anatoly Sokolov <aesok@post.ru>
16920 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
16921 * config/s390/s390.c (s390_register_move_cost,
16922 s390_memory_move_cost): New.
16923 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
16925 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16927 PR middle-end/47401
16928 * except.c (sjlj_assign_call_site_values): Move setting the
16929 crtl->uses_eh_lsda flag to ...
16930 (sjlj_mark_call_sites): ... here.
16931 (sjlj_emit_function_enter): Support NULL dispatch label.
16932 (sjlj_build_landing_pads): In a function with no landing pads
16933 that still has must-not-throw regions, generate code to register
16934 a personality function with empty LSDA.
16936 2011-01-21 Richard Henderson <rth@redhat.com>
16938 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
16940 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
16942 * compare-elim.c: New file.
16943 * Makefile.in (OBJS-common): Add it.
16944 (compare-elim.o): New.
16945 * common.opt (fcompare-elim): New.
16946 * opts.c (default_options_table): Add OPT_fcompare_elim.
16947 * tree-pass.h (pass_compare_elim_after_reload): New.
16948 * passes.c (init_optimization_passes): Add it.
16949 * recog.h: Protect against re-inclusion.
16950 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
16951 * doc/invoke.texi (-fcompare-elim): Document it.
16952 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
16953 * doc/tm.texi: Rebuild.
16955 2011-01-22 Nick Clifton <nickc@redhat.com>
16957 * config/rx/rx.md (cstoresf4): Pass comparison operator to
16958 rx_split_fp_compare.
16960 2011-01-22 Nick Clifton <nickc@redhat.com>
16962 * config/rx/rx.md (UNSPEC_CONST): New.
16963 (deallocate_and_return): Wrap the amount popped off the stack in
16964 an UNSPEC_CONST in order to stop it being rejected by
16965 -mmax-constant-size.
16966 (pop_and_return): Add a "(return)" rtx.
16967 (call): Drop the immediate operand.
16968 (call_internal): Likewise.
16969 (call_value): Likewise.
16970 (call_value_internal): Likewise.
16971 (sibcall_internal): Likewise.
16972 (sibcall_value_internal): Likewise.
16973 (sibcall): Likewise. Generate an explicit call using
16975 (sibcall_value): Likewise.
16976 (mov<>): FAIL if a constant operand is not legitimate.
16977 (addsi3_unpsec): New pattern.
16979 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
16980 (ok_for_max_constant): New function.
16981 (gen_safe_add): New function.
16982 (rx_expand_prologue): Use gen_safe_add.
16983 (rx_expand_epilogue): Likewise.
16984 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
16987 2011-01-21 Jeff Law <law@redhat.com>
16989 PR tree-optimization/47053
16990 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
16991 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
16992 statements are deleted.
16993 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
16994 is nonempty, then purge dead edges and cleanup the CFG.
16996 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
16999 Temporarily revert:
17000 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
17002 * tree-dfa.c (create_var_ann): Mark variable as used.
17004 2011-01-21 Jakub Jelinek <jakub@redhat.com>
17006 PR middle-end/45566
17007 * except.c (convert_to_eh_region_ranges): Emit queued no-region
17008 notes from other section in hot/cold partitioning even if
17009 last_action is -3. Increment call_site_base.
17011 PR rtl-optimization/47366
17012 * fwprop.c (forward_propagate_into): Return bool. If
17013 any changes are made, -fnon-call-exceptions is used and
17014 REG_EH_REGION note is present, call purge_dead_edges
17015 and return true if it purged anything.
17016 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
17017 any EH edges were purged.
17019 2011-01-21 Jeff Law <law@redhat.com>
17021 PR rtl-optimization/41619
17022 * caller-save.c (setup_save_areas): Break out code to determine
17023 which hard regs are live across calls by examining the reload chains
17024 so that it is always used.
17025 Eliminate code which checked REG_N_CALLS_CROSSED.
17027 2011-01-21 Jakub Jelinek <jakub@redhat.com>
17029 PR tree-optimization/47355
17030 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
17031 NOP has non-debug uses beyond PHIs in new_bb.
17033 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
17036 * cfgexpand.c (account_used_vars_for_block): Only account vars
17037 that are annotated as used.
17038 (estimated_stack_frame_size): Don't set TREE_USED.
17039 * tree-dfa.c (create_var_ann): Mark variable as used.
17041 2011-01-21 Richard Guenther <rguenther@suse.de>
17043 PR middle-end/47395
17044 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
17046 2011-01-21 Richard Guenther <rguenther@suse.de>
17048 PR tree-optimization/47365
17049 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
17050 (vn_reference_lookup_pieces): Adjust.
17051 (vn_reference_lookup): Likewise.
17052 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
17053 (vn_reference_lookup_3): Only look through kills if in
17054 VN_WALKREWRITE mode.
17055 (vn_reference_lookup_pieces): Adjust.
17056 (vn_reference_lookup): Likewise.
17057 (visit_reference_op_load): Likewise.
17058 (visit_reference_op_store): Likewise.
17059 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
17060 (compute_avail): Likewise.
17061 (eliminate): Likewise.
17063 2011-01-21 Jakub Jelinek <jakub@redhat.com>
17065 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
17066 DECL_IGNORED_P non-reg vars if they are used.
17068 PR tree-optimization/47391
17069 * varpool.c (const_value_known_p): Return false if
17072 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
17075 * config/i386/i386.c (ix86_local_alignment): Handle
17076 case for va_list_type_node is nil.
17077 (ix86_canonical_va_list_type): Likewise.
17079 2011-01-21 Alan Modra <amodra@gmail.com>
17081 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
17082 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
17084 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17086 * config/arm/arm.md (define_attr type): Rename f_load
17087 and f_store to f_fpa_load and f_fpa_store. Update.
17088 (write_conflict): Deal with rename fallout.
17089 (*push_fp_multi): Likewise.
17090 * config/arm/fpa.md (f_load): Use f_fpa_load.
17091 (f_store): Use f_fpa_store.
17092 (*movsf_fpa): Likewise.
17093 (*movdf_fpa): Likewise.
17094 (*movxf_fpa): Likewise.
17095 (*thumb2_movsf_fpa): Likewise.
17096 (*thumb2_movdf_fpa): Likewise.
17097 (*thumb2_movxf_fpa): Likewise.
17098 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
17099 f_loadd and f_stored.
17100 (*thumb2_movdi_vfp): Likewise.
17101 (*thumb2_movsf_vfp): Fix attribute to f_loads.
17102 (*thumb2_movsi_vfp): Likewise.
17103 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
17104 Use f_loads instead of f_load.
17105 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
17107 2011-01-20 Anatoly Sokolov <aesok@post.ru>
17109 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
17110 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
17111 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
17112 (xtensa_mode_dependent_address_p): New function.
17113 (constantpool_address_p): Make static. Change return type to bool.
17114 Change argument type to const_rtx. Use CONST_INT_P predicate.
17116 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
17119 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
17121 2011-01-20 Jakub Jelinek <jakub@redhat.com>
17124 * cfgexpand.c (expand_debug_expr): Instead of generating
17125 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
17128 2011-01-20 Richard Guenther <rguenther@suse.de>
17130 PR middle-end/47370
17131 * tree-inline.c (remap_gimple_op_r): Recurse manually for
17132 the pointer operand of MEM_REFs.
17134 2011-01-20 Jakub Jelinek <jakub@redhat.com>
17136 PR tree-optimization/46130
17137 * ipa-split.c (consider_split): If return_bb contains non-virtual
17138 PHIs other than for retval or if split_function would not adjust it,
17141 2011-01-20 Richard Guenther <rguenther@suse.de>
17143 PR tree-optimization/47167
17144 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
17145 Revert previous change, only avoid enumeral type changes.
17147 2011-01-19 Mike Stump <mikestump@comcast.net>
17149 * doc/tm.texi.in (BRANCH_COST): Englishify.
17150 * doc/tm.texi (BRANCH_COST): Likewise.
17152 2011-01-19 Dodji Seketeli <dodji@redhat.com>
17155 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
17156 (gen_scheduled_generic_parms_dies): New functions.
17157 (gen_struct_or_union_type_die): Schedule template parameters DIEs
17158 generation for the end of CU compilation.
17159 (dwarf2out_finish): Generate template parameters DIEs here.
17161 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
17164 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
17165 debug bind stmt on merge edges.
17167 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
17171 * function.c (instantiate_expr): Instantiate incoming rtl of
17172 implicit arguments, and recurse on VALUE_EXPRs.
17173 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
17174 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
17176 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
17178 * c-parser.c (c_parser_for_statement): Initialize
17179 collection_expression.
17181 2011-01-19 Joseph Myers <joseph@codesourcery.com>
17183 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
17185 2011-01-19 Joseph Myers <joseph@codesourcery.com>
17187 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
17188 (LINK_SHLIB_SPEC): Don't use %(link_path).
17189 (SUBTARGET_EXTRA_SPECS): Remove link_path.
17191 2011-01-19 Joseph Myers <joseph@codesourcery.com>
17193 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
17194 (NO_SHARED_LIB_SUPPORT): Remove.
17195 (LINK_SHLIB_SPEC): Remove one conditional definition.
17197 2011-01-19 Joseph Myers <joseph@codesourcery.com>
17199 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
17201 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
17202 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
17203 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
17204 %{call_shared} and conditionals on these options not being passed.
17205 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
17208 2011-01-19 Jakub Jelinek <jakub@redhat.com>
17210 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
17213 * ipa-split.c: Spelling fixes.
17215 2011-01-19 Richard Henderson <rth@redhat.com>
17217 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
17218 (*mulsi3): Likewise.
17220 * longlong.h [__mn10300__] (count_leading_zeros): New.
17221 [__mn10300__] (umul_ppmm, smul_ppmm): New.
17222 [__mn10300__] (add_ssaaaa, subddmmss): New.
17223 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
17224 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
17226 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17228 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
17230 2011-01-19 Richard Henderson <rth@redhat.com>
17232 * config/mn10300/mn10300.md (addsi3_flags): New.
17233 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
17234 (subsi3_flags, subc_internal, subdi3): New.
17235 (subdi3_internal, *subdi3_degenerate): New.
17236 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
17238 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
17239 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
17240 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
17241 * config/mn10300/mn10300-protos.h: Update.
17242 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
17243 (return_ret): Likewise. Rename from return_internal_regs.
17244 (return_internal): Remove.
17246 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
17247 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
17248 (mn10300_legitimate_constant_p): Likewise.
17249 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
17250 (mn10300_frame_size): New.
17251 (mn10300_expand_prologue): Use it.
17252 (mn10300_expand_epilogue): Likewise.
17253 (mn10300_initial_offset): Likewise.
17254 * config/mn10300/mn10300-protos.h: Update.
17255 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
17256 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
17257 (prologue, epilogue, return_internal): Tidy output code.
17258 (mn10300_store_multiple_operation, return): Likewise.
17259 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
17260 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
17261 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
17262 (load_pic, am33_load_pic): New.
17263 (mn10300_load_pic0, mn10300_load_pic1): New.
17265 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
17266 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
17267 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
17268 (cc_flags_for_mode, cc_flags_for_code): New.
17269 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
17270 overflow flag is not valid. Validate that the flags we need
17271 for the comparison are valid.
17272 (mn10300_output_cmp): Remove.
17273 (mn10300_output_add): New.
17274 (mn10300_select_cc_mode): Use cc_flags_for_code.
17275 (mn10300_split_cbranch): New.
17276 (mn10300_match_ccmode): New.
17277 (mn10300_split_and_operand_count): New.
17278 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
17280 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
17281 (addsi3): ... here. Use mn10300_output_add.
17282 (*addsi3_flags): New.
17283 (*am33_subsi3, *mn10300_subsi3): Merge...
17284 (subsi3): ... here. Use attribute isa.
17285 (*subsi3_flags): New.
17286 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
17288 (*am33_andsi3, *mn10300_andsi3): Merge...
17289 (andsi3): ... here.
17290 (*andsi3_flags): New.
17291 (andsi3 splitters): New.
17292 (*am33_iorsi3, *mn10300_iorsi3): Merge...
17293 (iorsi3): ... here.
17294 (*iorsi3_flags): New.
17295 (*am33_xorsi3, *mn10300_xorsi3): Merge...
17296 (xorsi3): ... here.
17297 (*xorsi3_flags): New.
17298 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
17299 (one_cmplsi2): ... here.
17300 (*one_cmplsi2_flags): New.
17301 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
17302 instead of "dax" in constraints. Use mn10300_split_cbranch.
17303 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
17304 use matching constraints to eliminate a self-comparison.
17305 (*integer_conditional_branch): Rename from integer_conditional_branch.
17306 Use int_mode_flags to match CC_REG.
17307 (*cbranchsi4_btst, *btstsi): New.
17308 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
17309 mn10300_split_cbranch.
17310 (*am33_cmpsf): Rename from am33_cmpsf.
17311 (*float_conditional_branch): Rename from float_conditional_branch.
17312 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
17313 (zero_extendqisi2): ... here.
17314 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
17315 (zero_extendhisi2): ... here.
17316 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
17317 (extendqisi2): ... here.
17318 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
17319 (extendhisi2): ... here.
17320 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
17321 (ashlsi3): ... here.
17322 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
17323 (lshrsi3): ... here.
17324 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
17325 (ashrsi3): ... here.
17326 (consecutive add peephole): Remove.
17327 * config/mn10300/predicates.md (label_ref_operand): New.
17328 (int_mode_flags): New.
17329 (CCZN_comparison_operator): New.
17331 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
17332 (throughput_42_latency_43): New reservation.
17333 (mulsidi3, umulsidi3): New expanders.
17334 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
17335 the MDR register to allocation; separately allocate the low and
17336 high parts of the DImode result.
17337 (umulsidi3_internal): Similarly.
17338 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
17339 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
17340 (udivsi3, umodsi3): Remove.
17341 (udivmodsi4, divmodsi4): New expanders.
17342 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
17343 (*divmodsi4): Simiarly.
17344 (ext_internal): New.
17346 * config/mn10300/constraints.md ("z"): New constraint.
17347 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
17348 (FIXED_REGISTERS): Don't fix MDR.
17349 (CALL_USED_REGSITERS): Reformat nicely.
17350 (REG_ALLOC_ORDER): Add MDR.
17351 (enum regclass): Add MDR_REGS.
17352 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
17353 (IRA_COVER_CLASSES): Add MDR_REGS.
17354 (REGNO_REG_CLASS): Handle MDR_REG.
17355 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
17356 (mn10300_register_move_cost): Likewise.
17357 * config/mn10300/mn10300.md (MDR_REG): New.
17358 (*movsi_internal): Handle moves to/from MDR_REGS.
17360 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
17362 (mn10300_secondary_reload): Tidy combination reload classes.
17363 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
17364 addresses for AM33. Allow symbolic offsets for reg+imm.
17365 (mn10300_regno_in_class_p): New.
17366 (mn10300_legitimize_reload_address): New.
17367 * config/mn10300/mn10300.h (enum reg_class): Remove
17368 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
17369 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
17370 SP_OR_GENERAL_REGS.
17371 (REG_CLASS_NAMES): Update to match.
17372 (REG_CLASS_CONTENTS): Likewise.
17373 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
17374 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
17375 (REGNO_IN_RANGE_P): Remove.
17376 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
17377 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
17378 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
17379 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
17380 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
17381 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
17382 (REGNO_GENERAL_P): New.
17383 (HAVE_POST_MODIFY_DISP): New.
17384 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
17385 (LEGITIMIZE_RELOAD_ADDRESS): New.
17386 * config/mn10300/mn10300-protos.h: Update.
17388 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
17389 DATA_REGS for AM33 stack-pointer destination.
17390 (mn10300_preferred_output_reload_class): Likewise.
17391 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
17392 into a form appropriate for ...
17393 (TARGET_SECONDARY_RELOAD): New.
17394 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
17395 * config/mn10300/mn10300-protos.h: Update.
17396 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
17397 reload_insi; use the "A" constraint for the scratch; handle AM33
17398 moves of sp to non-address registers.
17400 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
17401 (*movqi_internal): ... here.
17402 (*am33_movhi, *mn10300_movhi): Merge into...
17403 (*movhi_internal): ... here.
17404 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
17405 as the source/destination of moves from/to SP.
17406 (movsf): Only allow for AM33-2.
17407 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
17408 any integer constant constraint. Only allow for AM33-2. Tidy
17409 all of the alternative outputs.
17410 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
17411 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
17413 (udivsi3, umodsi3): New patterns for MN103 only.
17415 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
17417 * doc/tm.texi.in: Spell out that a lack of register class unions
17419 * doc/tm.texi: Regenerate.
17421 2011-01-19 Jakub Jelinek <jakub@redhat.com>
17423 PR rtl-optimization/47337
17424 * dce.c (check_argument_store): New function.
17425 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
17427 PR tree-optimization/47290
17428 * tree-eh.c (infinite_empty_loop_p): New function.
17429 (cleanup_empty_eh): Use it.
17431 2011-01-18 Steve Ellcey <sje@cup.hp.com>
17434 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
17435 (a64_expand_widen_sum): Ditto.
17436 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
17437 (vec_extract_evenodd_help): Ditto.
17438 (vec_extract_evenv4hi): Ditto.
17439 (vec_extract_oddv4hi): Ditto.
17440 (vec_extract_evenv2si): Ditto.
17441 (vec_extract_oddv2si): Ditto.
17442 (vec_extract_evenv2sf): Ditto.
17443 (vec_extract_oddv2sf): Ditto.
17444 (vec_pack_trunc_v4hi: Ditto.
17445 (vec_pack_trunc_v2si): Ditto.
17446 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
17447 (vec_interleave_highv8qi): Ditto.
17449 (vec_extract_oddv8qi): Ditto.
17450 (vec_interleave_lowv4hi): Ditto.
17451 (vec_interleave_highv4hi): Ditto.
17452 (vec_interleave_lowv2si): Ditto.
17453 (vec_interleave_highv2si): Ditto.
17455 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17457 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
17458 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
17459 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
17460 (pa_c_mode_for_suffix): New.
17461 (TARGET_EXPAND_BUILTIN): Define.
17462 (TARGET_C_MODE_FOR_SUFFIX): Define.
17463 (pa_builtins): Define.
17464 (pa_init_builtins): Register __float128 type and init new support
17466 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
17467 * config/pa/quadlib.c (_U_Qfcopysign): New.
17469 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
17471 PR middle-end/46894
17472 * explow.c (allocate_dynamic_stack_space): Do not assume more than
17473 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
17476 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17478 PR tree-optimization/47179
17479 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
17480 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
17482 2011-01-18 Richard Guenther <rguenther@suse.de>
17484 PR rtl-optimization/47216
17485 * emit-rtl.c: Include tree-flow.h.
17486 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
17487 of replicating it with different semantics.
17488 * Makefile.in (emit-rtl.o): Adjust.
17490 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17492 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
17493 (cortex_a9_dp): Handle neon types correctly.
17495 2011-01-18 Jakub Jelinek <jakub@redhat.com>
17497 PR rtl-optimization/47299
17498 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
17499 subtarget. Use normal multiplication if both operands are constants.
17500 * expmed.c (expand_widening_mult): Don't try to optimize constant
17501 multiplication if op0 has VOIDmode. Convert op1 constant to mode
17504 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17506 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
17507 spacing after 'e.g.', typos, comma, hyphenation.
17509 2011-01-17 Richard Henderson <rth@redhat.com>
17511 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
17512 (rx_restricted_mem_operand): New.
17513 (rx_shift_operand): Use register_operand.
17514 (rx_source_operand, rx_compare_operand): Likewise.
17515 * config/rx/rx.md (addsi3_flags): New expander.
17516 (adddi3): Rewrite as expander.
17517 (adc_internal, *adc_flags, adddi3_internal): New patterns.
17518 (subsi3_flags): New expander.
17519 (subdi3): Rewrite as expander.
17520 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
17522 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
17523 (rx_init_builtins): Remove sat builtin.
17524 (rx_expand_builtin): Likewise.
17525 * config/rx/rx.md (ssaddsi3): New.
17526 (*sat): Rename from sat. Represent the CC_REG input.
17528 * config/rx/predicates.md (rshift_operator): New.
17529 * config/rx/rx.c (rx_expand_insv): Remove.
17530 * config/rx/rx-protos.h: Update.
17531 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
17532 operand to the canonical position.
17533 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
17534 (*bitclr, *bitclr_in_memory): Similarly.
17535 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
17536 (insv): Retain the zero_extract in the expansion.
17538 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
17539 (bswaphi2, bitinvert, revw): Likewise.
17541 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
17542 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
17543 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
17544 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
17545 (bitset, bitset_in_memory): Likewise.
17546 (bitinvert, bitinvert_in_memory): Likewise.
17547 (bitclr, bitclr_in_memory): Likewise.
17548 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
17549 (rx_strend, rx_cmpstrn): Likewise.
17550 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
17551 (bitop peep2 patterns): Remove.
17553 * config/rx/rx.c (rx_match_ccmode): New.
17554 * config/rx/rx-protos.h: Update.
17555 * config/rx/rx.md (abssi2): Clobber, don't set flags.
17556 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
17557 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
17558 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
17559 (fix_truncsfsi2, floatsisf2): Likewise.
17560 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
17561 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
17562 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
17563 (*subsi3_flags, *xorsi3_flags): New.
17565 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
17567 * config/rx/rx.c (rx_print_operand): Remove workaround for
17568 unsplit comparison operations.
17570 * config/rx/rx.md (movsicc): Split after reload.
17571 (*movsicc): Merge *movsieq and *movsine via match_operator.
17572 (*stcc): New pattern.
17574 * config/rx/rx.c (rx_float_compare_mode): Remove.
17575 * config/rx/rx.h (rx_float_compare_mode): Remove.
17576 * config/rx/rx.md (cstoresi4): Split after reload.
17577 (*sccc): New pattern.
17579 * config/rx/predicates.md (label_ref_operand): New.
17580 (rx_z_comparison_operator): New.
17581 (rx_zs_comparison_operator): New.
17582 (rx_fp_comparison_operator): New.
17583 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
17584 Validate that the flags are set properly for the comparison.
17585 (rx_gen_cond_branch_template): Remove.
17586 (rx_cc_modes_compatible): Remove.
17587 (mode_from_flags): New.
17588 (flags_from_code): Rename from flags_needed_for_conditional.
17589 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
17590 (rx_select_cc_mode): Likewise.
17591 (rx_split_fp_compare): New.
17592 (rx_split_cbranch): New.
17593 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
17594 (*cbranchsi4): Use match_operator and rx_split_cbranch.
17595 (*cbranchsf4): Similarly.
17596 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
17597 match_operator and rx_split_cbranch.
17598 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
17599 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
17600 (*cmpsi): Rename from cmpsi.
17601 (*tstsi): Rename from tstsi.
17602 (*cmpsf): Rename from cmpsf; use CC_Fmode.
17603 (*conditional_branch): Rename from conditional_branch.
17604 (*reveresed_conditional_branch): Remove.
17605 (b<code>): Remove expander.
17606 * config/rx/rx-protos.h: Update.
17608 * config/rx/rx.c (rx_compare_redundant): Remove.
17609 * config/rx/rx.md (cmpsi): Don't use it.
17610 * config/rx/rx-protos.h: Update.
17612 * config/rx/rx-modes.def (CC_F): New mode.
17613 * config/rx/rx.c (rx_select_cc_mode): New.
17614 * config/rx/rx.h (SELECT_CC_MODE): Use it.
17615 * config/rx/rx-protos.h: Update.
17617 2011-01-17 Richard Henderson <rth@redhat.com>
17619 * except.c (dump_eh_tree): Fix stray ; after for statement.
17621 2011-01-17 Richard Guenther <rguenther@suse.de>
17623 PR tree-optimization/47313
17624 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
17625 handling before copying the body. Properly deal with
17626 by-reference result in SSA form.
17628 2011-01-17 Ian Lance Taylor <iant@google.com>
17631 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
17632 (struct_value_alias_set): Don't define.
17633 (sparc_option_override): Don't set sparc_sr_alias_set and
17634 struct_value_alias_set.
17635 (save_or_restore_regs): Use gen_frame_mem rather than calling
17637 (sparc_struct_value_rtx): Likewise.
17639 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
17642 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
17643 (_mm_maskstore_pd): Likewise.
17644 (_mm_maskload_ps): Likewise.
17645 (_mm_maskstore_ps): Likewise.
17646 (_mm256_maskload_pd): Change mask to __m256i.
17647 (_mm256_maskstore_pd): Likewise.
17648 (_mm256_maskload_ps): Likewise.
17649 (_mm256_maskstore_ps): Likewise.
17651 * config/i386/i386-builtin-types.def: Updated.
17652 (ix86_expand_special_args_builtin): Likewise.
17654 * config/i386/i386.c (bdesc_special_args): Update
17655 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
17656 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
17657 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
17658 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
17660 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
17661 Use <avxpermvecmode> on mask register.
17662 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
17664 2011-01-17 Olivier Hainque <hainque@adacore.com>
17665 Michael Haubenwallner <michael.haubenwallner@salomon.at>
17666 Eric Botcazou <ebotcazou@adacore.com>
17669 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
17670 if <= USHRT_MAX in 32-bit mode.
17672 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17674 * doc/install.texi (Configuration, Specific): Wrap long
17675 lines in examples. Allow line wrapping in long options
17676 and URLs where beneficial for PDF output.
17678 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
17680 * config/mips/mips.c (mips_classify_symbol): Don't return
17681 SYMBOL_PC_RELATIVE for nonlocal labels.
17683 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
17685 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
17687 2011-01-15 Jan Hubicka <jh@suse.cz>
17689 PR tree-optimization/47276
17690 * ipa.c (function_and_variable_visibility): Do not try to mark alias
17691 declarations as needed.
17693 2011-01-15 Martin Jambor <mjambor@suse.cz>
17695 * common.opt (fdevirtualize): New flag.
17696 * doc/invoke.texi (Option Summary): Document it.
17697 * opts.c (default_options_table): Add devirtualize flag.
17698 * ipa-prop.c (detect_type_change): Return immediately if
17699 devirtualize flag is not set.
17700 (detect_type_change_ssa): Likewise.
17701 (compute_known_type_jump_func): Likewise.
17702 (ipa_analyze_virtual_call_uses): Likewise.
17704 2011-01-14 Martin Jambor <mjambor@suse.cz>
17706 PR tree-optimization/45934
17707 PR tree-optimization/46302
17708 * ipa-prop.c (type_change_info): New type.
17709 (stmt_may_be_vtbl_ptr_store): New function.
17710 (check_stmt_for_type_change): Likewise.
17711 (detect_type_change): Likewise.
17712 (detect_type_change_ssa): Likewise.
17713 (compute_complex_assign_jump_func): Check for dynamic type change.
17714 (compute_complex_ancestor_jump_func): Likewise.
17715 (compute_known_type_jump_func): Likewise.
17716 (compute_scalar_jump_functions): Likewise.
17717 (ipa_analyze_virtual_call_uses): Likewise.
17718 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
17720 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17722 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
17723 * config/i386/i386.opt (msse5): New Alias.
17725 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17727 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
17728 * config/sparc/linux64.h (CC1_SPEC): Likewise.
17729 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
17730 * config/sparc/sparc.h (CC1_SPEC): Likewise.
17732 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17734 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
17736 * config/sparc/linux64.h (CC1_SPEC): Likewise.
17737 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
17738 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
17739 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
17741 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
17743 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17745 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
17747 2011-01-14 Mike Stump <mikestump@comcast.net>
17749 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
17750 * config/fr30/fr30.md: Likweise
17751 (movsi_push): Likewise.
17752 (movsi_pop): Likewise.
17753 (enter_func): Likewise.
17754 * config/moxie/moxie.md (movsi_push): Likewise.
17755 (movsi_pop): Likewise.
17757 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17759 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
17760 %{no_archive} %{exact_version}.
17761 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
17762 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
17763 %{no_archive} %{exact_version}.
17764 * config/mips/openbsd.h (LINK_SPEC): Likewise.
17765 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
17766 * config/mips/vxworks.h: Likewise.
17768 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17770 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
17772 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17774 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
17775 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
17777 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17779 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
17782 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17784 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
17786 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
17787 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
17789 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
17790 Don't handle -shlib.
17792 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17794 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
17795 (CC1_SPEC): Don't handle -profile.
17797 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17799 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
17800 * config/mips/mips.h (CC1_SPEC): Likewise.
17802 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17804 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
17805 * config/mips/mips.h (CC1_SPEC): Likewise.
17807 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17809 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
17810 * config/m32r/linux.h (LINK_SPEC): Likewise.
17811 * config/mips/linux.h (LINK_SPEC): Likewise.
17812 * config/mips/linux64.h (LINK_SPEC): Likewise.
17813 * config/sparc/linux.h (LINK_SPEC): Likewise.
17814 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
17815 LINK_SPEC): Likewise.
17816 * config/xtensa/linux.h (LINK_SPEC): Likewise.
17818 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17820 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
17822 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
17824 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17826 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
17827 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
17829 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17831 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
17833 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17835 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
17836 supports -Bstatic/-Bdynamic.
17837 * configure: Regenerate.
17839 2011-01-14 Jan Hubicka <jh@suse.cz>
17840 Jack Howarth <howarth@bromo.med.uc.edu>
17843 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
17844 when checking debug_info_level. Test write_symbols instead of
17845 debug_hooks->var_location when setting flag_var_tracking_uninit.
17847 2011-01-14 Richard Guenther <rguenther@suse.de>
17849 PR tree-optimization/47179
17850 * target.def (ref_may_alias_errno): New target hook.
17851 * targhooks.h (default_ref_may_alias_errno): Declare.
17852 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
17853 (default_ref_may_alias_errno): New function.
17854 * target.h (struct ao_ref_s): Declare.
17855 * tree-ssa-alias.c: Include target.h.
17856 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
17857 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
17858 (targhooks.o): Likewise.
17859 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
17860 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
17862 2011-01-14 Richard Guenther <rguenther@suse.de>
17864 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
17866 2011-01-14 Richard Guenther <rguenther@suse.de>
17868 PR tree-optimization/47280
17869 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
17870 return CFG changes.
17871 (tree_ssa_forward_propagate_single_use_vars): Deal with
17872 CFG changes from associate_plusminus.
17874 2011-01-14 Richard Guenther <rguenther@suse.de>
17876 PR middle-end/47281
17878 2011-01-11 Richard Guenther <rguenther@suse.de>
17880 PR tree-optimization/46076
17881 * tree-ssa.c (useless_type_conversion_p): Conversions from
17882 unprototyped to empty argument list function types are useless.
17884 2011-01-14 Richard Guenther <rguenther@suse.de>
17886 PR tree-optimization/47286
17887 * tree-ssa-structalias.c (new_var_info): Register variables are global.
17889 2011-01-14 Martin Jambor <mjambor@suse.cz>
17891 PR middle-end/46823
17892 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
17894 2011-01-13 Anatoly Sokolov <aesok@post.ru>
17896 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
17897 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
17898 * config/xtensa/xtensa.c (xtensa_libcall_value,
17899 xtensa_function_value_regno_p): New functions.
17900 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
17902 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
17905 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
17907 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
17908 New function prototype.
17909 * config/i386/winnt.c (i386_pe_assemble_visibility):
17910 Warn only if attribute was specified by user.
17912 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
17915 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
17917 (floatunsdidf2_fcfidu): Ditto.
17919 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17921 * config/s390/s390.c (print_operand_address): Replace 'error' with
17922 'output_operand_lossage'.
17923 (print_operand): Likewise.
17925 2011-01-13 Jeff Law <law@redhat.com>
17927 PR rtl-optimization/39077
17928 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
17929 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
17930 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
17931 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
17932 * gcse.c (prune_insertions_deletions): New function.
17933 (compute_pre_data): Use it.
17935 2011-01-13 Dodji Seketeli <dodji@redhat.com>
17938 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
17940 (prune_unused_types_mark): Use it.
17942 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
17944 PR rtl-optimization/45352
17945 * sel-sched.c: Update copyright years.
17946 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
17947 in the advancing loop when we have issued issue_rate insns.
17949 2011-01-12 Richard Henderson <rth@redhat.com>
17951 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
17952 (TARGET_MD_ASM_CLOBBERS): New.
17954 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
17955 (TARGET_DELEGITIMIZE_ADDRESS): New.
17957 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
17958 (clzsi2, *bsch): New patterns.
17960 * config/mn10300/mn10300.md (INT): New mode iterator.
17961 (*mov<INT>_clr): New pattern, and peep2 to generate it.
17963 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
17964 flag_split_wide_types.
17966 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
17967 (mn10300_trampoline_init): Rewrite without a template, an immediate
17968 load and a direct branch.
17969 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
17971 2011-01-12 Anatoly Sokolov <aesok@post.ru>
17973 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
17974 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
17975 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
17976 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
17978 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
17981 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
17984 2011-01-12 Jan Hubicka <jh@suse.cz>
17987 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
17988 (PLUGIN_COND_CLOSE): New macro.
17989 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
17991 2011-01-12 Richard Guenther <rguenther@suse.de>
17994 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
17995 register variables in a MEM_REF.
17997 2011-01-12 Joseph Myers <joseph@codesourcery.com>
17999 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
18000 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
18001 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
18002 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
18003 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
18004 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
18005 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
18006 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
18007 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
18008 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
18009 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
18010 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
18011 * config/gnu-user.h: New. Copied from linux.h.
18012 (LINUX_TARGET_STARTFILE_SPEC): Rename to
18013 GNU_USER_TARGET_STARTFILE_SPEC.
18014 (LINUX_TARGET_ENDFILE_SPEC): Rename to
18015 GNU_USER_TARGET_ENDFILE_SPEC.
18016 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
18017 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
18018 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
18019 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
18020 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
18021 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
18022 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
18023 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
18024 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
18025 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
18026 * config/arm/linux-eabi.h (CC1_SPEC): Use
18027 GNU_USER_TARGET_CC1_SPEC.
18028 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
18029 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
18030 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
18031 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
18032 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
18033 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
18034 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
18035 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
18037 2011-01-12 Richard Guenther <rguenther@suse.de>
18040 * doc/invoke.texi (ffast-math): Document it is turned on
18043 2011-01-12 Jan Hubicka <jh@suse.cz>
18045 PR tree-optimization/47233
18046 * opts.c (common_handle_option): Disable ipa-reference with profile
18049 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
18051 * c-parser.c (c_parser_objc_at_property_declaration): Improved
18054 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
18056 * c-parser.c (c_lex_one_token): Updated and reindented some
18057 comments. No changes in code.
18059 2011-01-11 Ian Lance Taylor <iant@google.com>
18061 * godump.c (go_output_var): Don't output the variable if there is
18062 already a type with the same name.
18064 2011-01-11 Ian Lance Taylor <iant@google.com>
18066 * godump.c (go_format_type): Don't generate float80.
18068 2011-01-11 Richard Henderson <rth@redhat.com>
18070 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
18071 declaration. Rewrite for both speed and size.
18072 (mn10300_address_cost_1): Remove.
18073 (mn10300_register_move_cost): New.
18074 (mn10300_memory_move_cost): New.
18075 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
18076 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
18077 extensions, shifts, BSWAP, CLZ.
18078 (mn10300_wide_const_load_uses_clr): Remove.
18079 (TARGET_REGISTER_MOVE_COST): New.
18080 (TARGET_MEMORY_MOVE_COST): New.
18081 * config/mn10300/mn10300-protos.h: Update.
18082 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
18084 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
18085 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
18086 * config/mn10300/mn10300-protos.h: Update.
18087 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
18088 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
18089 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
18090 (*test_int_bitfield, *test_byte_bitfield): Remove.
18091 (*bit_test, *subreg_bit_test): Remove.
18092 * config/mn10300/predicates.md (const_8bit_operand): Remove.
18094 * config/mn10300/constraints.md ("c"): Rename from "A".
18095 ("A", "D"): New constraint letters.
18096 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
18097 (fmssf4, fnmasf4, fnmssf4): Likewise.
18099 * config/mn10300/mn10300.md (isa): New attribute.
18100 (enabled): New attribute.
18102 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
18103 (abssf2, negsf2): Define only for hardware fp.
18104 (sqrtsf2): Reformat.
18105 (addsf3, subsf3, mulsf3): Merge expander and insn.
18107 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
18108 (DEBUGGER_AUTO_OFFSET): Remove.
18109 (DEBUGGER_ARG_OFFSET): Remove.
18111 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
18112 Emit register stores with the same offsets as the hardware.
18113 (mn10300_store_multiple_operation): Don't check that the register
18114 save offsets are monotonic.
18115 * config/mn10300/mn10300-protos.h: Update.
18117 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
18119 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
18120 in terms of the value on the stack, not the MDR register.
18122 2011-01-11 Jan Hubicka <jh@suse.cz>
18126 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
18127 (symbol_alias_set_destroy, symbol_alias_set_contains,
18128 propagate_aliases_backward): Declare.
18129 * lto-streamer-out.c (struct sets): New sturcture.
18130 (trivally_defined_alias): New function.
18131 (output_alias_pair_p): Rewrite.
18132 (output_unreferenced_globals): Fix output of alias pairs.
18133 (produce_symtab): Likewise.
18134 * ipa.c (function_and_variable_visibility): Set weak alias destination
18136 * varasm.c (symbol_alias_set_t): Remove.
18137 (symbol_alias_set_destroy): Export.
18138 (propagate_aliases_forward, propagate_aliases_backward): New functions
18140 (compute_visible_aliases): ... this one; remove.
18141 (trivially_visible_alias): New
18142 (trivially_defined_alias): New.
18143 (remove_unreachable_alias_pairs): Rewrite.
18144 (finish_aliases_1): Reorganize code checking if alias is defined.
18145 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
18148 2011-01-11 Richard Guenther <rguenther@suse.de>
18150 PR tree-optimization/46076
18151 * tree-ssa.c (useless_type_conversion_p): Conversions from
18152 unprototyped to empty argument list function types are useless.
18154 2011-01-11 Richard Guenther <rguenther@suse.de>
18156 PR middle-end/45235
18157 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
18158 volatile MEMs as MEM_READONLY_P.
18160 2011-01-11 Richard Guenther <rguenther@suse.de>
18162 PR tree-optimization/47239
18163 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
18165 2011-01-11 Jeff Law <law@redhat.com>
18167 PR tree-optimization/47086
18168 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
18169 IVs from statements that might throw.
18171 2011-01-10 Jan Hubicka <jh@suse.cz>
18174 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
18176 2011-01-10 Jan Hubicka <jh@suse.cz>
18179 * profile.c (read_profile_edge_counts): Ignore profile inconistency
18180 when correcting profile.
18182 2011-01-10 Jan Hubicka <jh@suse.cz>
18185 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
18186 DECL_FINI_PRIORITY.
18187 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
18188 Restore DECL_FINI_PRIORITY.
18190 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18192 * doc/gimple.texi: Fix quoting of multi-word return values in
18193 @deftypefn statements. Ensure presence of return value. Wrap
18194 overlong @deftypefn lines.
18195 (is_gimple_operand, is_gimple_min_invariant_address): Remove
18196 descriptions of removed functions.
18197 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
18198 of multi-word return value in @deftypefn statement.
18200 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18202 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
18203 (Conditional Expressions, Logical Operators)
18204 (Statement and operand traversals): Do not indent smallexample
18205 code. Fix duplicate function argument in example.
18207 2011-01-10 Jeff Law <law@redhat.com>
18209 PR tree-optimization/47141
18210 * ipa-split.c (split_function): Handle case where we are
18211 returning a value and the return block has a virtual operand phi.
18213 2011-01-10 Jan Hubicka <jh@suse.cz>
18215 PR tree-optimization/47234
18216 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
18217 (pass_feedback_split_functions): Declare.
18218 * passes.c (init_optimization_passes): Add ipa-split as subpass of
18220 * ipa-split.c (gate_split_functions): Update comments; disable
18221 split-functions for profile_arc_flag and branch_probabilities.
18222 (gate_feedback_split_functions): New function.
18223 (execute_feedback_split_functions): New function.
18224 (pass_feedback_split_functions): New global var.
18226 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
18229 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
18230 calling gimple_call_set_cannot_inline.
18232 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
18234 * config/darwin-sections.def: Remove unused section.
18236 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
18239 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
18241 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
18244 * c-parser.c (c_parser_declaration_or_fndef): Improved
18247 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
18249 * config/i386/winnt.c (i386_pe_start_function): Make sure
18250 to switch back to function's section.
18252 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
18256 * plugin.c: Move include of dlfcn.h from here...
18257 * system.h: ... to here.
18259 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18261 * doc/cpp.texi (C++ Named Operators): Fix markup for header
18263 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
18264 two extra empty pages in PDF output.
18266 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
18269 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
18270 for error recovery purposes behave as if it was not specified so
18271 that the default type is usd.
18273 2011-01-07 Jan Hubicka <jh@suse.cz>
18275 PR tree-optmization/46469
18276 * ipa.c (function_and_variable_visibility): Clear needed flags on
18277 nodes with external decls; handle weakrefs merging correctly.
18279 2011-01-07 Joseph Myers <joseph@codesourcery.com>
18281 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
18284 2011-01-07 Jan Hubicka <jh@suse.cz>
18286 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
18287 and no longer claim that gold is required for linker plugin.
18288 * configure: Regenerate.
18289 * gcc.c (PLUGIN_COND): New macro.
18290 (LINK_COMMAND_SPEC): Use it.
18291 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
18292 * config.in (HAVE_LTO_PLUGIN): New.
18293 * configure.ac (--with-lto-plugin): New parameter; autodetect
18296 2011-01-07 Jan Hubicka <jh@suse.cz>
18298 PR tree-optimization/46367
18299 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
18300 when we can update original.
18301 (cgraph_mark_inline_edge): Sanity check.
18302 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
18304 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18306 * config/spu/spu.h (ASM_COMMENT_START): Define.
18308 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
18311 * gcc.c (%>S): New.
18312 (SWITCH_KEEP_FOR_GCC): Likewise.
18313 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
18314 (do_spec_1): Handle "%>".
18316 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
18318 2011-01-07 Jakub Jelinek <jakub@redhat.com>
18321 * config/i386/i386.c (ix86_delegitimize_address): If
18322 simplify_gen_subreg fails, return orig_x.
18325 * value-prof.c (gimple_stringop_fixed_value): Handle
18326 lhs of the call properly.
18328 2011-01-07 Jan Hubicka <jh@suse.cz>
18331 * lto-opt.c (lto_reissue_options): Set flag_shlib.
18333 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
18335 * target.def (function_switched_text_sections): New hook.
18336 * doc/tm.texi: Regenerated.
18337 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
18338 * final.c (default_function_switched_text_sections): New.
18339 (final_scan_insn): Call function_switched_text_sections when a
18340 mid-function section change occurs.
18341 * output.h (default_function_switched_text_sections): Declare.
18342 * config/darwin-protos.h (darwin_function_switched_text_sections):
18344 * config/darwin.c (darwin_function_switched_text_sections): New.
18345 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
18347 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
18349 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
18350 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
18351 the secondary code fragment when outputting for DWARF == 2.
18353 2011-01-07 Anatoly Sokolov <aesok@post.ru>
18355 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
18356 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
18358 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
18359 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
18361 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
18364 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
18365 when it is not empty.
18367 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
18370 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
18371 (case ${target}): Add btver1.
18372 * config/i386/driver-i386.c (host_detect_local_cpu): Let
18373 -march=native recognize btver1 processors.
18374 * config/i386/i386-c.c (ix86_target_macros_internal): Add
18375 btver1 def_and_undef
18376 * config/i386/i386.c (struct processor_costs btver1_cost): New
18378 (m_BTVER1): New definition.
18379 (m_AMD_MULTIPLE): Includes m_BTVER1.
18380 (initial_ix86_tune_features): Add btver1 tune.
18381 (processor_target_table): Add btver1 entry.
18382 (static const char *const cpu_names): Add btver1 entry.
18383 (software_prefetching_beneficial_p): Add btver1.
18384 (ix86_option_override_internal): Add btver1 instruction sets.
18385 (ix86_issue_rate): Add btver1.
18386 (ix86_adjust_cost): Add btver1.
18387 * config/i386/i386.h (TARGET_BTVER1): New definition.
18388 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
18389 (enum processor_type): Add PROCESSOR_BTVER1.
18390 * config/i386/i386.md (define_attr "cpu"): Add btver1.
18392 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18395 * config/i386/i386.c (legitimize_tls_address)
18396 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
18397 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
18398 (tls_initial_exec_64_sun): New pattern.
18400 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
18402 * doc/invoke.texi (Overall Options): Improve wording and markup
18403 of the description of -wrapper.
18405 2011-01-06 Joseph Myers <joseph@codesourcery.com>
18407 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
18408 rdynamic, threads): New Driver options.
18410 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18413 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
18414 if coming from .tdata.
18415 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
18417 2011-01-06 Jan Hubicka <jh@suse.cz>
18420 * collect2.c (main): Do not enable LTOmode when plugin is active.
18422 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18425 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
18426 --version output if supported.
18427 * configure: Regenerate.
18429 2011-01-06 Joseph Myers <joseph@codesourcery.com>
18431 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
18434 2011-01-06 Jakub Jelinek <jakub@redhat.com>
18437 * c-convert.c (convert): When converting a complex expression
18438 other than COMPLEX_EXPR to a different complex type, ensure
18439 c_save_expr is called instead of save_expr, unless in_late_binary_op.
18440 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
18441 when converting COMPLEX_TYPE.
18443 2011-01-06 Ira Rosen <irar@il.ibm.com>
18445 PR tree-optimization/47139
18446 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
18447 only the last reduction value is used outside the loop. Update
18450 2011-01-05 Joseph Myers <joseph@codesourcery.com>
18452 * config/rtems.opt: New.
18453 * config.gcc (*-*-rtems*): Use rtems.opt.
18455 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
18457 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
18458 processors do not support 3DNow instructions.
18460 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18462 * config/spu/spu.c (spu_option_override): Set parameter
18463 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
18465 2011-01-05 Jan Hubicka <jh@suse.cz>
18467 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
18468 at the command line.
18470 2011-01-05 Martin Jambor <mjambor@suse.cz>
18473 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
18474 deltas on streamed outgoing edges.
18475 (output_node_opt_summary): Output info for outgoing edges only when
18476 the node is in new parameter set.
18477 (output_cgraph_opt_summary): New parameter set, passed to the two
18478 aforementioned functions. Update its forward declaration and its
18481 2011-01-05 Tom Tromey <tromey@redhat.com>
18483 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
18484 operator to c_finish_omp_atomic.
18485 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
18486 (build_unary_op): Update.
18487 (build_modify_expr): Update.
18488 (build_asm_expr): Update.
18490 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18492 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
18493 newly inserted insns.
18494 (pad_bb): Likewise.
18495 (spu_emit_branch_hint): Likewise.
18496 (insert_hbrp_for_ilb_runout): Likewise.
18497 (spu_machine_dependent_reorg): Call df_finish_pass after
18498 schedule_insns returns.
18500 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18502 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
18504 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
18506 PR tree-optimization/47005
18507 * tree-sra.c (struct access): Add 'non_addressable' bit.
18508 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
18509 (decide_one_param_reduction): Return 0 if the parameter is passed by
18510 reference and one of the accesses in the group is non_addressable.
18512 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
18514 PR tree-optimization/47056
18515 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
18516 (mark_load): Likewise. Handle FUNCTION_DECL specially.
18517 (mark_store): Likewise. Pass STMT to ipa_record_reference.
18519 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
18521 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
18522 initializer. Skip view conversions from aggregate types.
18524 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
18527 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
18529 2011-01-04 Philipp Thomas <pth@suse.de>
18531 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
18534 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18536 * function.c (thread_prologue_and_epilogue_insns): Do not crash
18537 on empty epilogue sequences.
18539 2011-01-04 Joseph Myers <joseph@codesourcery.com>
18541 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
18542 non-static): New Driver options.
18544 2011-01-04 Jie Zhang <jie@codesourcery.com>
18547 * gcc.c (default_compilers[]): Set combinable field to 0
18548 for all assembly languages.
18550 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
18552 * config/mips/loongson3a.md: New file.
18553 * config/mips/mips.md: Include loongson3a.md.
18554 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
18557 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
18559 PR middle-end/47017
18560 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
18561 instead of convert_memory_address_addr_space on the base expression.
18563 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18565 * config/spu/spu.c (spu_option_override): Update error text
18566 for bad -march= / -mtune= values.
18568 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18570 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
18571 if branch-hint optimization will be performed.
18573 2011-01-03 Jakub Jelinek <jakub@redhat.com>
18575 PR tree-optimization/47148
18576 * ipa-split.c (split_function): Convert arguments to
18577 DECL_ARG_TYPE if possible.
18579 PR tree-optimization/47155
18580 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
18581 when computing uns.
18583 PR rtl-optimization/47157
18584 * combine.c (try_combine): If undobuf.other_insn becomes
18585 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
18586 and set *new_direct_jump_p too.
18588 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
18590 PR tree-optimization/47021
18591 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
18593 2011-01-03 Jakub Jelinek <jakub@redhat.com>
18595 * gcc.c (process_command): Update copyright notice dates.
18596 * gcov.c (print_version): Likewise.
18597 * gcov-dump.c (print_version): Likewise.
18598 * mips-tfile.c (main): Likewise.
18599 * mips-tdump.c (main): Likewise.
18601 2011-01-03 Martin Jambor <mjambor@suse.cz>
18603 PR tree-optimization/46801
18604 * tree-sra.c (type_internals_preclude_sra_p): Check whether
18605 aggregate fields start at byte boundary instead of the bit-field flag.
18607 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
18610 * gcc.c (main): Revert revision 168407.
18612 2011-01-03 Martin Jambor <mjambor@suse.cz>
18614 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
18616 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18618 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
18619 vector optab to expand vector/scalar shift, update gimple to vector.
18621 2011-01-03 Martin Jambor <mjambor@suse.cz>
18623 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
18626 2011-01-03 Martin Jambor <mjambor@suse.cz>
18628 PR tree-optimization/46984
18629 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
18631 (cgraph_create_indirect_edge): Fixed line length.
18632 (cgraph_indirect_call_info): Declare.
18633 (cgraph_make_edge_direct) Update declaration.
18634 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
18635 (cgraph_create_indirect_edge): Use it.
18636 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
18638 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
18639 the new thunk_delta representation.
18640 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
18642 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
18643 (ipa_read_indirect_edge_info): Likewise.
18644 * lto-cgraph.c (output_edge_opt_summary): New function.
18645 (output_node_opt_summary): Call it on all outgoing edges.
18646 (input_edge_opt_summary): New function.
18647 (input_node_opt_summary): Call it on all outgoing edges.
18649 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
18652 * gcc.c (main): Don't check have_o when settting combine_inputs.
18654 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
18656 * regrename.c: Add general comment describing the pass.
18657 (struct du_head): Remove 'length' field.
18658 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
18659 (regrename_optimize): Do not sort chains. Rework comments, add others.
18660 Force renaming to the preferred class (if any) in the first pass and do
18661 not consider registers that belong to it in the second pass.
18662 (create_new_chain): Do not set 'length' field.
18663 (scan_rtx_reg): Likewise.
18665 2011-01-02 Jakub Jelinek <jakub@redhat.com>
18667 PR tree-optimization/47140
18668 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
18669 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
18670 to bit_value_binop.
18672 PR rtl-optimization/47028
18673 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
18674 parm_birth_insn instead of at the beginning of first bb.
18676 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
18678 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
18679 Remove the word "see" before "@pxref".
18680 * doc/rtl.texi: Remove the word "see" before "@pxref".
18682 2011-01-01 Jan Hubicka <jh@suse.cz>
18684 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
18687 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
18690 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
18693 Copyright (C) 2011 Free Software Foundation, Inc.
18695 Copying and distribution of this file, with or without modification,
18696 are permitted in any medium without royalty provided the copyright
18697 notice and this notice are preserved.