1 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
5 * longlong.h: Add AVR support:
6 (count_leading_zeros): New macro.
7 (count_trailing_zeros): New macro.
8 (COUNT_LEADING_ZEROS_0): New macro.
9 * config/avr/t-avr (LIB1ASMFUNCS): Add
10 _ffssi2, _ffshi2, _loop_ffsqi2,
11 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2,
12 _paritydi2, _paritysi2, _parityhi2,
13 _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
15 _ashldi3, _ashrdi3, _lshrdi3
16 (LIB2FUNCS_EXCLUDE): Add _clz.
17 * config/avr/libgcc.S (XCALL): Move up in file.
19 (DEFUN): New asm macro.
20 (ENDF): New asm macro.
21 (__ffssi2): New function.
22 (__ffshi2): New function.
23 (__loop_ffsqi2): New function.
24 (__ctzsi2): New function.
25 (__ctzhi2): New function.
26 (__clzdi2): New function.
27 (__clzsi2): New function.
28 (__clzhi2): New function.
29 (__paritydi2): New function.
30 (__paritysi2): New function.
31 (__parityhi2): New function.
32 (__popcounthi2): New function.
33 (__popcountsi2): New function.
34 (__popcountdi2): New function.
35 (__popcountqi2): New function.
36 (__bswapsi2): New function.
37 (__bswapdi2): New function.
38 (__ashldi3): New function.
39 (__ashrdi3): New function.
40 (__lshrdi3): New function.
43 2011-06-16 Richard Guenther <rguenther@suse.de>
45 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
47 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0 to
49 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
50 equality compares against zero for the lower bit.
52 2011-06-16 Jakub Jelinek <jakub@redhat.com>
54 PR tree-optimization/49419
55 * tree-vrp.c (execute_vrp): Call init_range_assertions
56 before estimate_numbers_of_iterations, call
57 free_number_of_iterations_estimates before calling
58 remove_range_assertions.
60 2011-06-16 Revital Eres <revital.eres@linaro.org>
62 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
63 (struct partial_schedule): Add rows_length field.
64 (verify_partial_schedule): Check rows_length.
65 (ps_insert_empty_row): Handle rows_length.
66 (create_partial_schedule): Likewise.
67 (free_partial_schedule): Likewise.
68 (reset_partial_schedule): Likewise.
69 (create_ps_insn): Remove rest_count argument.
70 (remove_node_from_ps): Update rows_length.
71 (add_node_to_ps): Update rows_length and call create_ps_insn
72 without passing row_rest_count.
73 (rotate_partial_schedule): Update rows_length.
75 2011-06-16 Revital Eres <revital.eres@linaro.org>
77 * ddg.c (add_intra_loop_mem_dep): New function.
78 (build_intra_loop_deps): Call it.
80 2011-05-06 Jeff Law <law@redhat.com>
82 * df-problems.c (df_lr_local_compute): Manually CSE
83 PIC_OFFSET_TABLE_REGNUM.
84 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
85 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
87 2011-06-13 Jan Hubicka <jh@suse.cz>
89 * cgraphunit.c (handle_alias_pairs): New function.
90 (cgraph_finalize_compilation_unit): Use it.
91 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
92 as externally visible.
94 2011-06-15 Richard Guenther <rguenther@suse.de>
96 * expr.c (expand_expr_real_2): Reduce all integral types to
98 (expand_expr_real_1): Likewise.
100 2011-06-15 Martin Jambor <mjambor@suse.cz>
102 PR tree-optimization/48613
103 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
104 ipa_node_params_vector is NULL.
106 2011-06-15 Jakub Jelinek <jakub@redhat.com>
109 * dwarf2out.c (dw_loc_list_node): Add force field.
110 (add_var_loc_to_decl): For PARM_DECL, attempt to keep
111 the incoming location in the list, even if it is modified
112 before first real insn.
113 (output_loc_list): Emit empty ranges with force flag set.
114 (dw_loc_list): If first range of a PARM_DECL is empty,
117 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
120 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
121 (fence_to_rewind). Use it to notice when bookkeeping will be placed
122 above a fence. Update comments.
123 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
124 placed just above it. Do not allow NULL place_to_insert.
126 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
128 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
129 (slpeel_tree_peel_loop_to_edge): Don't call
130 remove_dead_stmts_from_loop.
131 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
132 remove irrelevant pattern statements. For irrelevant statements
133 check if it is the last statement of a detected pattern, use
134 corresponding pattern statement instead.
135 (destroy_loop_vec_info): No need to remove pattern statements,
136 only free stmt_vec_info.
137 (vect_transform_loop): For irrelevant statements check if it is
138 the last statement of a detected pattern, use corresponding
139 pattern statement instead.
140 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
141 pattern statements. Set basic block for the new statement.
142 (vect_pattern_recog): Update documentation.
143 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
144 operands of pattern statements.
145 (vectorizable_call): Fix printing. In case of a pattern statement
146 use the lhs of the original statement when creating a dummy
147 statement to replace the original call.
148 (vect_analyze_stmt): For irrelevant statements check if it is
149 the last statement of a detected pattern, use corresponding
150 pattern statement instead.
151 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
152 statements use gsi of the original statement.
154 2011-06-14 Joseph Myers <joseph@codesourcery.com>
156 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
157 common/common-target-def.h.
158 * target.def (default_target_flags, handle_option,
159 supports_split_stack, optimization_table, init_struct,
160 except_unwind_info, unwind_tables_default, have_named_sections):
161 Move to common/common-target.def.
162 * target.h (enum opt_levels, struct default_options): Move to
163 common/common-target.h.
164 * targhooks.c (default_except_unwind_info,
165 dwarf2_except_unwind_info, sjlj_except_unwind_info,
166 default_target_handle_option, empty_optimization_table): Move to
167 common/common-targhooks.c.
168 * targhooks.h (default_except_unwind_info,
169 dwarf2_except_unwind_info, sjlj_except_unwind_info,
170 default_target_handle_option, empty_optimization_table): Move to
171 common/common-targhooks.h.
172 * common/common-target-def.h: Include common/common-targhooks.h.
173 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
175 * common/common-target.def (handle_option, option_init_struct,
176 option_optimization_table, default_target_flags,
177 except_unwind_info, supports_split_stack, unwind_tables_default,
178 have_named_sections): Move from target.def.
179 (HOOK_PREFIX): Undefine at end of file.
180 * common/common-target.h: Include input.h.
181 (enum opt_levels, struct default_options): Move from target.h.
182 * common/common-targhooks.c, common/common-targhooks.h: New.
183 * config.gcc (target_has_targetm_common): Default to yes.
184 (moxie*): Set target_has_targetm_common=no.
185 (hppa*-*-*): Don't set target_has_targetm_common=yes.
186 * doc/tm.texi: Regenerate.
187 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
188 (C_TARGET_DEF_H): Add common/common-targhooks.h.
189 (GCC_OBJS): Remove vec.o.
190 (OBJS): Remove hooks.o and vec.o.
191 (OBJS-libcommon-target): Add vec.o, hooks.o and
192 common/common-targhooks.o.
193 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
194 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
195 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
196 cfglayout.o, $(out_object_file), $(common_out_object_file)):
198 (common/common-targhooks.o): New.
199 * common/config/default-common.c: Include tm.h. Add FIXME
201 * common/config/pa/pa-common.c: Include more headers. Take
202 copyright dates from pa.c.
203 (pa_option_optimization_table, pa_handle_option,
204 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
205 TARGET_HANDLE_OPTION): Move from pa.c.
206 * common/config/alpha/alpha-common.c,
207 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
208 common/config/bfin/bfin-common.c,
209 common/config/cris/cris-common.c,
210 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
211 common/config/h8300/h8300-common.c,
212 common/config/i386/i386-common.c,
213 common/config/ia64/ia64-common.c,
214 common/config/iq2000/iq2000-common.c,
215 common/config/lm32/lm32-common.c,
216 common/config/m32c/m32c-common.c,
217 common/config/m32r/m32r-common.c,
218 common/config/m68k/m68k-common.c,
219 common/config/mcore/mcore-common.c,
220 common/config/mep/mep-common.c,
221 common/config/microblaze/microblaze-common.c,
222 common/config/mips/mips-common.c,
223 common/config/mmix/mmix-common.c,
224 common/config/mn10300/mn10300-common.c,
225 common/config/pdp11/pdp11-common.c,
226 common/config/picochip/picochip-common.c,
227 common/config/rs6000/rs6000-common.c,
228 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
229 common/config/score/score-common.c, common/config/sh/sh-common.c,
230 common/config/sparc/sparc-common.c,
231 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
232 common/config/vax/vax-common.c,
233 common/config/xstormy16/xstormy16-common.c,
234 common/config/xtensa/xtensa-common.c: New.
235 * config/alpha/alpha.c: Include common/common-target.h.
236 (alpha_option_optimization_table, alpha_handle_option,
237 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
238 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
239 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
240 * config/arm/arm.c (arm_option_optimization_table,
241 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
242 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
244 * config/avr/avr.c (avr_option_optimization_table,
245 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
247 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
248 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
249 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
250 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
251 * config/cris/cris.c (cris_option_optimization_table,
252 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
253 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
255 * config/fr30/fr30.c (fr30_option_optimization_table,
256 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
258 * config/frv/frv.c (frv_option_optimization_table,
259 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
260 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
261 * config/h8300/h8300.c (h8300_option_optimization_table,
262 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
263 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
264 * config/i386/i386-protos.h (ix86_handle_option): Declare.
265 * config/i386/i386.c: Include common/common-target.h.
266 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
267 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
268 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
269 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
270 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
271 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
272 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
273 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
274 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
275 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
276 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
277 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
278 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
279 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
280 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
281 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
282 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
283 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
284 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
285 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
286 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
287 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
288 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
289 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
290 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
291 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
292 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
293 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
294 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
295 ix86_option_optimization_table, ix86_option_init_struct,
296 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
297 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
298 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
300 * config/i386/t-i386 (i386.o): Update dependencies.
301 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
302 * config/ia64/ia64.c (ia64_option_optimization_table,
303 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
304 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
305 ia64_handle_option): Move to ia64-common.c.
306 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
307 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
308 * config/lm32/lm32.c (lm32_option_optimization_table,
309 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
311 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
313 * config/m32r/m32r.c (m32r_option_optimization_table,
314 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
315 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
316 m32r_handle_option): Move to m32r-common.c.
317 (m32r_memory_move_cost): Remove comment referring to
318 TARGET_HANDLE_OPTION.
319 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
320 Move to m68k-common.c.
321 * config/mcore/mcore.c (mcore_option_optimization_table,
322 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
323 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
324 * config/mep/mep.c (mep_option_optimization_table,
325 mep_handle_option, TARGET_HANDLE_OPTION,
326 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
327 Move to mep-common.c.
328 * config/microblaze/microblaze.c
329 (microblaze_option_optimization_table,
330 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
331 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
332 * config/mips/mips.c (mips_handle_option,
333 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
334 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
336 * config/mmix/mmix.c (mmix_option_optimization_table,
337 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
338 Move to mmix-common.c.
339 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
340 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
341 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
342 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
343 * config/pa/pa.c: Include common/common-target.h.
344 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
345 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
346 pa_handle_option): Move to pa-common.c.
347 (pa_option_override): Use targetm_common.except_unwind_info.
348 (pa_asm_output_mi_thunk, pa_function_section): Use
349 targetm_common.have_named_sections.
350 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
351 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
352 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
353 pdp11_handle_option, pdp11_option_init_struct): Move to
355 * config/picochip/picochip.c (picochip_option_optimization_table,
356 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
357 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
358 * config/rs6000/rs6000.c: Include common/common-target.h.
359 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
360 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
361 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
362 rs6000_handle_option): Move to rs6000-common.c.
363 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
364 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
365 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
366 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
367 * config/s390/s390.c (processor_flags_table,
368 s390_option_optimization_table, s390_option_init_struct,
369 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
370 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
371 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
372 * config/s390/s390.h (processor_flags_table): Declare.
373 * config/score/score.c (score_option_optimization_table,
374 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
375 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
376 score_handle_option): Move to score-common.c.
377 * config/sh/sh.c (sh_option_optimization_table,
378 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
379 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
380 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
381 * config/sparc/sparc.c: Include common/common-target.h.
382 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
383 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
384 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
385 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
386 spu_option_init_struct): Move to spu-common.c.
387 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
388 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
389 * config/v850/v850.c (small_memory_physical_max,
390 v850_handle_memory_optionn v850_handle_option,
391 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
392 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
394 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to
396 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
397 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
398 Move to xtensa-common.c.
399 * cfglayout.c: Include common/common-target.h.
400 (fixup_reorder_chain): Use targetm_common.have_named_sections.
401 * cfgrtl.c: Include common/common-target.h.
402 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
403 targetm_common.have_named_sections.
404 * dbxout.c: Include common/common-target.h.
405 (dbxout_function_end): Use targetm_common.have_named_sections.
406 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
407 targetm_common.except_unwind_info.
408 * dwarf2out.c: Include common/common-target.h.
409 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
410 dwarf2out_begin_prologue, dwarf2out_frame_init,
411 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
412 targetm_common.except_unwind_info.
413 * except.c: Include common/common-target.h.
414 (init_eh, finish_eh_generation,
415 output_one_function_exception_table): Use
416 targetm_common.except_unwind_info.
417 (switch_to_exception_section): Use
418 targetm_common.have_named_sections.
419 * explow.c: Include common/common-target.h.
420 * expr.c: Include common/common-target.h.
421 (build_personality_function): Use
422 targetm_common.except_unwind_info.
423 * function.c: Include common/common-target.h.
424 (expand_function_end): Use targetm_common.except_unwind_info.
425 * haifa-sched.c: Include common/common-target.h.
426 (sched_create_recovery_edges): Use
427 targetm_common.have_named_sections.
428 * lto-opts.c: Include common/common-target.h instead of target.h.
429 (lto_reissue_options): Use targetm_common.handle_option.
430 * opts.c: Include common/common-target.h.
431 (target_handle_option): Use targetm_common.handle_option.
432 (init_options_struct): Update comment referring to
433 targetm.target_option.optimization. Use
434 targetm_common.default_target_flags,
435 targetm_common.unwind_tables_default and
436 targetm_common.option_init_struct.
437 (default_options_optimization): Use
438 targetm_common.option_optimization_table.
439 (finish_options): Use targetm_common.except_unwind_info,
440 targetm_common.unwind_tables_default,
441 targetm_common.have_named_sections and
442 targetm_common.supports_split_stack.
443 * toplev.c: Include common/common-target.h.
444 (process_options): Use targetm_common.have_named_sections.
445 * tree-tailcall.c: Include common/common-target.h.
446 (suitable_for_tail_call_opt_p): Use
447 targetm_common.except_unwind_info.
448 * tree.c: Include common/common-target.h.
449 (build_common_builtin_nodes): Use
450 targetm_common.except_unwind_info.
451 * varasm.c: Include common/common-target.h.
452 (resolve_unique_section, hot_function_section,
453 default_function_section): Use targetm_common.have_named_sections.
455 2011-06-14 Easwaran Raman <eraman@google.com>
457 PR rtl-optimization/44194
458 * dse.c: Include tree-flow.h
459 (insn_info): Add new field non_frame_wild_read.
460 (group_info): Add new fields escaped_n and escaped_p.
461 (kill_on_calls): New variable.
462 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
463 (dse_step0): Initialize kill_on_calls.
464 (can_escape): New function.
465 (set_usage_bits): Add additional parameter; record information
466 about escaped locations.
467 (record_store): Pass EXPR corresponding to MEM to
469 (dse_step2_nospill): Set kill_on_calls based on
470 group->escaped_n and group->escaped_n.
471 (add_wild_read): Refactor into...
472 (reset_active_stores): ... New function, and
473 (free_read_records): ... New function.
474 (add_non_frame_wild_read): New function.
475 (scan_insn): Call add_non_frame_wild_read on non-const calls.
476 (scan_reads_nospill): Handle instructions with
478 (dse_step5_nospill): Call scan_reads_nospill for instructions
479 marked as non_frame_wild_read.
480 (dse_step7): Free escaped_n, escaped_p and kill_on_calls
483 2011-06-14 Joseph Myers <joseph@codesourcery.com>
485 * common/common-target-def.h, common/common-target.def,
486 common/common-target.h, common/config/default-common.c,
487 common/config/pa/pa-common.c: New files.
488 * Makefile.in (common_out_file, common_out_object_file,
489 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
490 (OBJS-libcommon-target): Include $(common_out_object_file).
491 (prefix.o): Update dependencies.
492 ($(common_out_object_file), common/common-target-hooks-def.h,
493 s-common-target-hooks-def-h): New.
494 (s-tm-texi): Also check timestamp on common-target.def.
495 (build/genhooks.o): Update dependencies.
496 * config.gcc (common_out_file, target_has_targetm_common): Define.
497 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
498 TARGET_ALWAYS_STRIP_DOTDOT.
499 * configure.ac (common_out_object_file): Define.
500 (common_out_file, common_out_object_file): Substitute.
501 (common): Create directory.
502 * configure: Regenerate.
503 * doc/tm.texi.in (targetm_common): Document.
504 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
505 * doc/tm.texi: Regenerate.
506 * genhooks.c (hook_array): Also include common/common-target.def.
507 * prefix.c (tm.h): Don't include.
508 (common/common-target.h): Include.
509 (ALWAYS_STRIP_DOTDOT): Don't define.
510 (update_path): Use targetm_common.always_strip_dotdot instead of
512 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
514 2011-06-14 David Li <davidxl@google.com>
516 * passes.c (execute_function_todo): Remove TODO_dump_func.
517 (execute_one_pass): Remove TODO_dump_func.
518 (execute_function_dump): New function.
519 * tree-vrp.c: Remove TODO_dump_func.
520 * regrename.c: Remove TODO_dump_func.
521 * fwprop.c: Remove TODO_dump_func.
522 * tree-into-ssa.c: Remove TODO_dump_func.
523 * tree-complex.c: Remove TODO_dump_func.
524 * tracer.c: Remove TODO_dump_func.
525 * tree-loop-distribution.c: Remove TODO_dump_func.
526 * postreload-gcse.c: Remove TODO_dump_func.
527 * postreload.c: Remove TODO_dump_func.
528 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
529 * tree-tailcall.c: Remove TODO_dump_func.
530 * ipa-cp.c: Remove TODO_dump_func.
531 * final.c: Remove TODO_dump_func.
532 * tree-emutls.c: Remove TODO_dump_func.
533 * omp-low.c: Remove TODO_dump_func.
534 * tree-ssa-dse.c: Remove TODO_dump_func.
535 * tree-ssa-uncprop.c: Remove TODO_dump_func.
536 * auto-inc-dec.c: Remove TODO_dump_func.
537 * reorg.c: Remove TODO_dump_func.
538 * tree-ssa-copyrename.c: Remove TODO_dump_func.
539 * tree-ssa-ccp.c: Remove TODO_dump_func.
540 * compare-elim.c: Remove TODO_dump_func.
541 * mode-switching.c: Remove TODO_dump_func.
542 * modulo-sched.c: Remove TODO_dump_func.
543 * tree-call-cdce.c: Remove TODO_dump_func.
544 * cse.c: Remove TODO_dump_func.
545 * web.c: Remove TODO_dump_func.
546 * tree-stdarg.c: Remove TODO_dump_func.
547 * lto-streamer-out.c: Remove TODO_dump_func.
548 * tree-ssa-math-opts.c: Remove TODO_dump_func.
549 * tree-ssa-dom.c: Remove TODO_dump_func.
550 * tree-nrv.c: Remove TODO_dump_func.
551 * loop-init.c: Remove TODO_dump_func.
552 * gimple-low.c: Remove TODO_dump_func.
553 * ipa-inline.c: Remove TODO_dump_func.
554 * tree-ssa-sink.c: Remove TODO_dump_func.
555 * jump.c: Remove TODO_dump_func.
556 * ifcvt.c: Remove TODO_dump_func.
557 * tree-ssa-loop.c: Remove TODO_dump_func.
558 * recog.c: Remove TODO_dump_func.
559 * dse.c: Remove TODO_dump_func.
560 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
561 * matrix-reorg.c: Remove TODO_dump_func.
562 * tree-eh.c: Remove TODO_dump_func.
563 * regmove.c: Remove TODO_dump_func.
564 * function.c: Remove TODO_dump_func.
565 * tree-vectorizer.c: Remove TODO_dump_func.
566 * ipa-split.c: Remove TODO_dump_func.
567 * gcse.c: Remove TODO_dump_func.
568 * tree-if-conv.c: Remove TODO_dump_func.
569 * init-regs.c: Remove TODO_dump_func.
570 * tree-ssa-phiopt.c: Remove TODO_dump_func.
571 * implicit-zee.c: Remove TODO_dump_func.
572 * lower-subreg.c: Remove TODO_dump_func.
573 * bt-load.c: Remove TODO_dump_func.
574 * tree-dfa.c: Remove TODO_dump_func.
575 * except.c: Remove TODO_dump_func.
576 * emit-rtl.c: Remove TODO_dump_func.
577 * store-motion.c: Remove TODO_dump_func.
578 * cfgexpand.c: Remove TODO_dump_func.
579 * tree-cfgcleanup.c: Remove TODO_dump_func.
580 * cfgcleanup.c: Remove TODO_dump_func.
581 * tree-ssa-pre.c: Remove TODO_dump_func.
582 * tree-sra.c: Remove TODO_dump_func.
583 * tree-mudflap.c: Remove TODO_dump_func.
584 * tree-ssa-copy.c: Remove TODO_dump_func.
585 * cfglayout.c: Remove TODO_dump_func.
586 * tree-ssa-forwprop.c: Remove TODO_dump_func.
587 * tree-ssa-dce.c: Remove TODO_dump_func.
588 * ira.c: Remove TODO_dump_func.
589 * tree-ssa.c: Remove TODO_dump_func.
590 * integrate.c: Remove TODO_dump_func.
591 * tree-optimize.c: Remove TODO_dump_func.
592 * tree-ssa-phiprop.c: Remove TODO_dump_func.
593 * tree-object-size.c: Remove TODO_dump_func.
594 * combine.c: Remove TODO_dump_func.
595 * bb-reorder.c: Remove TODO_dump_func.
596 * cprop.c: Remove TODO_dump_func.
597 * var-tracking.c: Remove TODO_dump_func.
598 * tree-profile.c: Remove TODO_dump_func.
599 * tree-vect-generic.c: Remove TODO_dump_func.
600 * reg-stack.c: Remove TODO_dump_func.
601 * sched-rgn.c: Remove TODO_dump_func.
602 * tree-ssa-structalias.c: Remove TODO_dump_func.
603 * tree-switch-conversion.c: Remove TODO_dump_func.
604 * tree-cfg.c: Remove TODO_dump_func.
605 * tree-ssa-reassoc.c: Remove TODO_dump_func.
606 * combine-stack-adj.c: Remove TODO_dump_func.
607 * dce.c: Remove TODO_dump_func.
608 * tree-ssanames.c: Remove TODO_dump_func.
609 * regcprop.c: Remove TODO_dump_func.
611 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
614 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
615 and properly handle result not in Pmode.
617 2011-06-14 Robert Millan <rmh@gnu.org>
619 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
620 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
623 * config/i386/kfreebsd-gnu64.h: New file.
624 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
625 with `i386/kfreebsd-gnu64.h'.
627 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
628 (GNU_USER_LINK_EMULATION64): New macros.
629 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
630 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
631 of hardcoding `elf_i386' and `elf_x86_64'.
633 2011-06-14 Nick Clifton <nickc@redhat.com>
636 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
639 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
641 2011-06-14 Jakub Jelinek <jakub@redhat.com>
644 * tree.h (DECL_NONSHAREABLE): Define.
645 (struct tree_decl_common): Change decl_common_unused to
646 decl_nonshareable_flag.
647 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
648 Ignore vars with DECL_NONSHAREABLE bit set.
649 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
650 on stores to automatic aggregate vars.
652 PR rtl-optimization/49390
654 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
656 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
659 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
660 Tom de Vries <tom@codesourcery.com>
663 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
664 Document changed semantics.
665 (max_stmt_executions, max_stmt_executions_int): Declare.
666 * tree-data-ref.c (estimated_loop_iterations)
667 (estimated_loop_iterations_int): Move functions...
668 * tree-ssa-loop-niter.c (estimated_loop_iterations)
669 (estimated_loop_iterations_int): here.
670 (record_estimate): Change nb_iterations_upper_bound and
671 nb_iterations_estimate semantics.
672 (max_stmt_executions, max_stmt_executions_int): New function.
673 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
674 (max_stmt_executions_tree): this.
675 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
676 estimated_loop_iterations_tree.
677 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
678 max_stmt_executions_int instead of estimated_loop_iterations_int.
679 * predict.c (predict_loops): Idem.
680 * tree-parloops.c (parallelize_loops): Idem.
681 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
682 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
683 (init_omega_for_ddr_1): Idem.
684 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
685 (loop_prefetch_arrays): Idem
686 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
687 max_stmt_executions instead of estimated_loop_iterations.
688 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
689 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
690 instead of nb_iterations_upper_bound.
692 2011-06-13 Jan Hubicka <jh@suse.cz>
694 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
696 2011-06-14 Richard Henderson <rth@redhat.com>
699 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
700 (based_loc_descr): Assert it's true.
701 (compute_frame_pointer_to_fb_displacement): Set it, rather than
702 aborting immediately.
704 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
705 Mingfeng Wu <mingfeng@faraday-tech.com>
707 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
709 2011-06-13 Jan Hubicka <jh@suse.cz>
711 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
713 2011-06-13 Jan Hubicka <jh@suse.cz>
715 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
716 similarly to DECL_COMDAT.
717 * cgraphunit.c (cgraph_analyze_function): Likewise.
718 * ipa.c (function_and_variable_visibility): Likewise.
720 2011-06-13 Jan Hubicka <jh@suse.cz>
722 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
723 BINFO_VIRTUALS when streaming for ltrans unit.
725 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
727 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
728 (movdi_internal64): Same.
730 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
733 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
734 a set of similar patterns, where the MATCH_OPERAND for the function
735 argument is replaced with individual references to hardware registers.
736 (save_fpregs_<mode>): Ditto
737 (restore_gpregs_<mode>): Ditto
738 (return_and_restore_gpregs_<mode>): Ditto
739 (return_and_restore_fpregs_<mode>): Ditto
740 (return_and_restore_fpregs_aix_<mode>): Ditto
742 2011-06-13 Jan Hubicka <jh@suse.cz>
744 * ipa-utils.c (postorder_stack): New structure.
745 (ipa_reverse_postorder): Handle aliases.
747 2011-06-13 Jan Hubicka <jh@suse.cz>
749 * ipa-inline.c (reset_edge_caches): Walk aliases.
750 (update_caller_keys): Do not test inlinability of aliases.
751 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
752 (do_estimate_growth): Fix typo.
754 2011-06-13 Jan Hubicka <jh@suse.cz>
756 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
757 (can_remove_node_now_p): ... here; handle same comdat groups.
758 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
759 (inline_call): Update use of can_remove_node_now_p.
761 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
763 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
764 condition to disallow non-identical memory locations.
765 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
766 preference to bit manipulation instructions.
768 2011-06-13 Jan Hubicka <jh@suse.cz>
770 * cgraph.c (cgraph_for_node_thunks_and_aliases,
771 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
772 (nonremovable_p): New function.
773 (cgraph_can_remove_if_no_direct_calls_p): New function.
774 (used_from_object_file_p): New functoin.
775 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
776 references from aliases.
777 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
778 * ipa-inline.c (check_caller_edge): New function.
779 (want_inline_function_called_once_p): Use it; accept aliases called
781 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
783 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
786 * config/arm/neon.md (vec_pack_trunc): Set the lengths
787 correctly for the case with Quad vectors.
789 2011-06-13 Jakub Jelinek <jakub@redhat.com>
790 Ira Rosen <ira.rosen@linaro.org>
792 PR tree-optimization/49352
793 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
794 all, make sure loop_use_stmt after the loop is a def stmt of a used
795 SSA_NAME that is the only one defined inside of the loop. Don't
796 check for COND_EXPR and GIMPLE_BINARY_RHS.
797 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
798 check_reduction is true.
800 2011-06-11 Jan Hubicka <jh@suse.cz>
803 * ipa.c (cgraph_externally_visible_p): Check resolution info.
805 2011-06-11 Jan Hubicka <jh@suse.cz>
808 * ipa-inline-transform.c: Include tree-pass.h
809 (inline_transform): Set TODO_update_ssa_only_virtuals.
810 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
812 2011-06-11 Jan Hubicka <jh@suse.cz>
815 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
818 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
820 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
821 Take number of iterations to peel into account for equally frequent
824 2011-06-11 Jan Hubicka <jh@suse.cz>
826 * lto-streamer-out.c (produce_symtab): Stream out the newly represented
829 2011-06-11 Jan Hubicka <jh@suse.cz>
831 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting varying
833 (ipa_update_after_lto_read): Likewise.
834 (ipa_write_node_info): Do not sream call_with_var_arguments.
835 (ipa_read_node_info): Likewise.
837 2011-06-11 Jan Hubicka <jh@suse.cz>
839 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
841 2011-06-11 Jan Hubicka <jh@suse.cz>
843 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
844 (lto_symtab_resolve_can_prevail_p): Likewise.
845 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
846 * cgraph.c (same_body_aliases_done): New global var.
847 (cgraph_same_body_alias_1): Rename to ...
848 (cgraph_create_function_alias): ... this one; reorg to new
850 (cgraph_same_body_alias): Use cgraph_create_function_alias;
851 record references when asked to.
852 (cgraph_add_thunk): Fix formating.
853 (cgraph_get_node): Kill same body alias code.
854 (cgraph_node_for_asm): Likewise.
855 (cgraph_remove_same_body_alias): Remove.
856 (cgraph_remove_node): Kill same body alias code.
857 (cgraph_mark_address_taken_node): Mark also the aliased function
858 as having address taken.
859 (dump_cgraph_node): Dump same body aliases.
860 (cgraph_for_node_thunks_and_aliases): Update for new alias
862 (cgraph_for_node_and_aliases): Likewise.
863 * cgraph.h (same_body): Kll pointer.
864 (same_body_alias): Update comment.
865 (same_body_aliases_done): Declare.
866 (cgraph_remove_same_body_alias): Remove declaration.
867 (cgraph_create_function_alias): Declare.
868 (cgraph_process_same_body_aliases): Declare.
869 (cgraph_function_with_gimple_body_p): Check for alias.
870 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
871 (cgraph_alias_aliased_node): New function.
872 (cgraph_function_node): Update for new aliases.
873 (cgraph_function_or_thunk_node): Likewise.
874 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
875 (inline_call): Remove dead aliases.
876 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
877 name hack for same body aliases.
878 (clone_of_p): Look through aliases.
879 (verify_cgraph_node): Verify aliases.
880 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
881 (cgraph_process_same_body_aliases): New function.
882 (process_function_and_variable_attributes): Disable weakref warning on
884 (cgraph_analyze_functions): Handle aliases.
885 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
886 (assemble_thunks): Rename to ...
887 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
888 (cgraph_expand_function): Remove alias output code.
889 (cgraph_output_in_order): Skip aliases.
890 (cgraph_preserve_function_body_p): Aliases don't need preserving.
891 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
892 (ipa_record_reference): Do not assert on alias references.
893 (ipa_ref_has_aliases_p): New function.
894 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
895 (ipa_ref_has_aliases_p): Declare.
896 * lto-cgraph.c (lto_output_node): Handle aliases.
897 (input_node): Likewise.
898 * lto-streamer-out.c (lto_output): Skip aliases.
899 (produce_symtab): Kill same_body_alias code.
900 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
901 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
902 * ipa-inline.c (update_caller_keys): Walk aliases.
903 (inline_small_functions): Fix thinko in previous patch.
904 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
905 (function_and_variable_visibility): Do not walk same body aliases.
906 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
907 (ipa_pta_execute): Use it.
909 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
911 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
912 (*vec_dupv2df): Rename from vec_dupv2df.
913 (vec_dupv2df): New expander.
915 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
917 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
919 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
921 * config/i386/i386.md: Use default value in "isa" attribute.
922 * config/i386/sse.md: Ditto.
923 * config/i386/mmx.md: Ditto.
925 2011-06-10 Wei Guozhi <carrot@google.com>
928 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
929 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
930 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
932 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
934 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
935 (arm_legitimate_ldrd_p): New prototype.
936 (arm_output_ldrd): New prototype.
937 * config/arm/arm.c (arm_check_ldrd_operands): New function.
938 (arm_legitimate_ldrd_p): New function.
939 (arm_output_ldrd): New function.
941 2011-06-10 David Li <davidxl@google.com>
943 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
944 * passes.c (passr_eq): New function.
945 (create_pass_tab): New function.
946 (pass_traverse): New function.
947 (dump_one_pass): New function.
948 (dump_pass_list): New function.
949 (dump_passes): New function.
951 2011-06-10 Jan Hubicka <jh@suse.cz>
953 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
954 setting the nothrow flag.
955 * ipa-reference.c (propagate): Skip aliases.
956 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
957 (propagate_nothrow): Skip aliases; do not update cgraph.
958 (local_pure_const): Do not update cgraph.
959 * tree-profile.c (tree_profiling): Do fixup_cfg.
961 2011-06-10 Jan Hubicka <jh@suse.cz>
963 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
964 (cgraph_local_node_p): ... here; handle aliases.
965 (has_addr_references_p): Break out from ...;
966 (cgraph_remove_unreachable_nodes) ... here.
968 2011-06-10 Jan Hubicka <jh@suse.cz>
970 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
971 * common.opt (flag_inline_functions_called_once): Do not
974 2011-06-10 Jan Hubicka <jh@suse.cz>
976 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
977 (ipcp_initialize_node_lattices): Do not deal with aliases;
978 Do not try to propagate through thunks.
979 (ipcp_change_tops_to_bottom): Do not deal with aliases.
981 2011-06-10 Jan Hubicka <jh@suse.cz>
983 * ipa-prop.c (ipa_write_node_info): Stream jump functions
985 (ipa_read_node_info): Likewise.
987 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
990 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
991 (build_and_insert_call): Likewise.
992 (build_and_insert_ref): New.
993 (gimple_expand_builtin_pow): Minor cleanup.
994 (gimple_expand_builtin_cabs): New.
995 (execute_cse_sincos): Add case for BUILT_IN_CABS.
997 2011-06-10 Jan Hubicka <jh@suse.cz>
999 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
1000 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
1001 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
1002 (ipcp_propagate_stage): Skip aliases when propagating.
1003 (ipcp_need_redirect_p): Skip aliases.
1004 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
1005 collect_callers_of_node.
1006 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
1008 (ipa_compute_jump_functions): Look through aliases.
1010 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1012 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
1014 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
1016 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
1018 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
1020 2011-06-10 Jan Hubicka <jh@suse.cz>
1022 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
1023 Update call of gimple_get_virt_method_for_binfo.
1024 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
1025 refuse_thunks parameter.
1026 (gimple_fold_call): Update.
1027 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
1029 2011-06-10 Jan Hubicka <jh@suse.cz>
1031 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
1032 (not_all_callers_have_enough_arguments_p): ... this one; turn into
1033 worker for cgraph_for_node_and_aliases.
1034 (convert_callers_for_node): Break out from ...
1035 (convert_callers): ... here.
1036 (modify_function): Use collect_callers_of_node.
1037 (ipa_early_sra): Use cgraph_for_node_and_aliases.
1039 2011-06-10 Richard Guenther <rguenther@suse.de>
1041 PR tree-optimization/49361
1042 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
1043 when not already in gimple form.
1045 2011-06-10 Richard Guenther <rguenther@suse.de>
1048 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
1049 FOR_EACH_PHI_OR_STMT_USE.
1051 2011-06-10 Jan Hubicka <jh@suse.cz>
1053 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
1054 (clone_inlined_nodes): ... here.
1055 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
1056 to real destination prior inlining.
1057 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
1058 can_early_inline_edge_p, want_early_inline_function_p,
1059 want_early_inline_function_p, want_inline_small_function_p,
1060 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
1061 edge_badness, update_all_callee_keys, lookup_recursive_calls,
1062 add_new_edges_to_heap, inline_small_functions, flatten_function,
1063 inline_always_inline_functions, early_inline_small_functions): Use
1064 cgraph_function_or_thunk_node.
1065 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
1066 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
1067 (do_estimate_edge_growth_1): Break out from ...
1068 (do_estimate_growth) ... here; walk aliases.
1069 (inline_generate_summary): Skip aliases.
1071 2011-06-10 Richard Guenther <rguenther@suse.de>
1073 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
1074 forward when combining, visit inserted stmts when a stmt was changed.
1076 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
1078 * tree.h (error_operand_p): Add.
1079 * dbxout.c (dbxout_type_fields): Use the latter.
1080 * c-decl.c (add_stmt): Likewise.
1081 * gimplify.c (omp_add_variable, omp_notice_variable,
1082 gimplify_scan_omp_clauses): Likewise.
1084 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
1086 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
1087 when a value is actually passed in regs.
1089 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
1090 Laurent Rougé <laurent.rouge@menta.fr>
1092 * doc/invoke.texi (SPARC options): Add -mflat.
1093 * config/sparc/sparc.opt: Likewise.
1094 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
1095 (sparc_flat_expand_prologue): Declare.
1096 (sparc_flat_expand_epilogue): Likewise.
1097 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
1098 (CPP_ENDIAN_SPEC): Replace with...
1099 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
1100 (CPP_SPEC): Adjust to above change.
1101 (EXTRA_SPECS): Likewise.
1102 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
1103 (INCOMING_REGNO): Likewise.
1104 (OUTGOING_REGNO): Likewise.
1105 (LOCAL_REGNO): Likewise.
1106 (SETUP_FRAME_ADDRESSES): Likewise.
1107 (FIXED_REGISTERS): Set 0 for %fp.
1108 (CALL_USED_REGISTERS): Likewise.
1109 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
1110 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
1111 (RETURN_ADDR_REGNUM): Define.
1112 (RETURN_ADDR_RTX): Use it.
1113 (INCOMING_RETURN_ADDR_REGNUM): Define.
1114 (INCOMING_RETURN_ADDR_RTX): Use it.
1115 (DWARF_FRAME_RETURN_COLUMN): Likewise.
1116 (EH_RETURN_REGNUM): Define.
1117 (EH_RETURN_STACKADJ_RTX): Use it.
1118 (EH_RETURN_HANDLER_RTX): Delete.
1119 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
1120 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
1122 (struct machine_function): Add frame_size, apparent_frame_size,
1123 frame_base_reg, frame_base_offset, n_global_fp_regs and
1124 save_local_in_regs_p fields.
1125 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
1126 sparc_frame_base_offset, sparc_n_global_fp_regs,
1127 sparc_save_local_in_regs_p): New macros.
1128 (sparc_option_override): Error out if -fcall-saved-REG is specified
1130 (eligible_for_restore_insn): Fix formatting.
1131 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
1132 (eligible_for_sibcall_delay): Likewise.
1133 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
1134 (sparc_legitimate_address_p): Adjust to above change.
1135 (save_global_or_fp_reg_p): New predicate.
1136 (return_addr_reg_needed_p): Likewise.
1137 (save_local_or_in_reg_p): Likewise.
1138 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
1139 (SORR_SAVE, SORR_RESTORE): Delete.
1140 (sorr_pred_t): New typedef.
1141 (sorr_act_t): New enum.
1142 (save_or_restore_regs): Rename to...
1143 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
1144 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
1145 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
1146 mechanism. Add CFI information for double-word saves in 32-bit mode.
1147 (emit_adjust_base_to_offset): New function extracted from...
1148 (emit_save_or_restore_regs): ...this. Rename the rest to...
1149 (emit_save_or_restore_regs_global_fp_regs): ...this.
1150 (emit_save_or_restore_regs_local_in_regs): New function.
1151 (gen_create_flat_frame_[123]): New functions.
1152 (sparc_expand_prologue): Use SIZE local variable. Adjust.
1153 (sparc_flat_expand_prologue): New function.
1154 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
1155 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
1156 (sparc_flat_expand_epilogue): New function.
1157 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
1158 (output_return): Likewise.
1159 (output_sibcall): Likewise.
1160 (sparc_output_mi_thunk): Likewise.
1161 (sparc_frame_pointer_required): Likewise.
1162 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
1163 function optimization.
1164 * config/sparc/sparc.md (flat): New attribute.
1165 (prologue): Add TARGET_FLAT handling.
1166 (save_register_window): Disable if TARGET_FLAT.
1167 (create_flat_frame_[123]): New patterns.
1168 (epilogue): Add TARGET_FLAT handling.
1169 (sibcall_epilogue): Likewise.
1170 (eh_return): New expander.
1171 (eh_return_internal): New insn and splitter.
1172 (return_internal): Add TARGET_FLAT handling.
1173 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
1174 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
1175 (nonlocal_goto): Add TARGET_FLAT handling.
1176 * config/sparc/t-elf: Add -mflat multilib.
1177 * config/sparc/t-leon: Likewise.
1179 2011-06-10 Jan Hubicka <jh@suse.cz>
1181 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
1182 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
1183 (self_recursive_p): Use cgraph_function_node.
1184 (propagate_pure_const): Likewise.
1185 (propagate_nothrow): Likewise.
1186 * ipa-reference.c (ipa_reference_get_not_read_global): Use
1187 cgraph_function_node.
1188 (propagate_bits): Likewise.
1189 (propagate): Likewise.
1191 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1192 Richard Earnshaw <rearnsha@arm.com>
1194 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
1195 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
1196 (*thumb2_movdi_vfp): Delete.
1197 (*arm_movdi_vfp_cortexa8): Delete.
1198 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
1199 (*movdi_vfp_cortexa8): Likewise.
1201 2011-06-10 Richard Guenther <rguenther@suse.de>
1203 * stor-layout.c (initialize_sizetypes): Give names to all
1206 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
1208 PR tree-optimization/49318
1209 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
1210 irrelevant pattern statements.
1212 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
1214 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
1217 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
1220 2011-06-09 Jan Hubicka <jh@suse.cz>
1222 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
1223 do not recompute reachable flag.
1224 (cgraph_finalize_function, cgraph_analyze_functions): Set
1225 redefined_extern_inline here.
1227 2011-06-09 Jan Hubicka <jh@suse.cz>
1229 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
1230 (cgraph_only_called_directly_p): ... this one; bring offline.
1231 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
1232 varpool_used_from_object_file_p): Drop names from the declaratoin.
1233 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
1234 collect_callers_of_node): New.
1235 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
1236 (cgraph_edge_recursive_p): Use cgraph_function_node.
1237 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
1238 (cgraph_node_cannot_be_local_p_1): Break out from ...
1239 (cgraph_node_can_be_local_p): ... here; walk aliases.
1240 (cgraph_for_node_thunks_and_aliases): New function.
1241 (cgraph_for_node_and_aliases): New function.
1242 (cgraph_make_node_local_1): Break out from ...
1243 (cgraph_make_node_local) ... here; use
1244 cgraph_for_node_thunks_and_aliases.
1245 (cgraph_set_nothrow_flag_1): Break out from ...
1246 (cgraph_set_nothrow_flag) ... here;
1247 use cgraph_for_node_thunks_and_aliases.
1248 (cgraph_set_const_flag_1): Break out from ...
1249 (cgraph_set_const_flag) ... here;
1250 use cgraph_for_node_thunks_and_aliases.
1251 (cgraph_set_pure_flag_1): Break out from ...
1252 (cgraph_set_pure_flag) ... here;
1253 use cgraph_for_node_thunks_and_aliases.
1254 (cgraph_propagate_frequency_1): Break out from ...
1255 (cgraph_propagate_frequency) ... here; use
1256 cgraph_for_node_thunks_and_aliases.
1257 (cgraph_used_from_object_file_p): Do not care about aliases.
1258 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
1260 (collect_callers_of_node_1, collect_callers_of_node): New functions.
1262 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
1264 PR rtl-optimization/49154
1265 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
1266 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
1267 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
1268 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
1269 * config/cris/cris.h (cris_register_move_cost): Remove
1270 !TARGET_V32 code. Tweak comments.
1272 2011-06-09 Jan Hubicka <jh@suse.cz>
1274 * cgraphbuild.c (record_eh_tables): Mark personality function as having
1277 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
1279 PR rtl-optimization/49154
1280 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
1281 is a matching slot in the hashtable, assign it to classes_ptr.
1283 PR rtl-optimization/49154
1284 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
1286 * doc/tm.texi: Regenerate.
1288 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
1291 * config/sh/sh.md (UNSPEC_CHKADD): New.
1292 (chk_guard_add): New define_insn_and_split.
1293 (symGOT_load): Use chk_guard_add instead of blockage.
1295 2011-06-09 Kai Tietz <ktietz@redhat.com>
1297 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
1299 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
1301 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
1303 2011-06-09 Wei Guozhi <carrot@google.com>
1306 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
1307 (peephole2 for conditional move): Generate 16 bit instructions.
1309 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
1311 * config/i386/i386.md (*movdi_internal_rex64): Merge
1312 alternatives 6 and 8.
1314 2011-06-09 David Li <davidxl@google.com>
1316 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
1317 * passes.c (passr_eq): New function.
1318 (create_pass_tab): New function.
1319 (pass_traverse): New function.
1320 (dump_one_pass): New function.
1321 (dump_pass_list): New function.
1322 (dump_passes): New function.
1324 2011-06-09 David Li <davidxl@google.com>
1326 * tree-complex.c (tree_lower_complex): Gate cleanup.
1327 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
1328 (execute_optimize_stdarg): Ditto.
1329 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
1330 (execute_cleanup_eh_1): Ditto.
1331 (execute_cleanup_eh): Ditto.
1332 * gcse.c (gate_rtl_pre): Ditto.
1333 (execute_rtl_pre): Ditto.
1334 * except.c (finish_eh_generation): Ditto.
1335 (convert_to_eh_region_ranges): Ditto.
1336 * cprop.c (one_cprop_pass): Ditto.
1338 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
1341 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
1342 in all basic blocks.
1344 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1346 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
1347 (HAVE_ENABLE_EXECUTE_STACK): Define.
1348 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
1349 (HAVE_ENABLE_EXECUTE_STACK): Define.
1350 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
1351 (HAVE_ENABLE_EXECUTE_STACK): Define.
1352 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
1353 (ENABLE_EXECUTE_STACK): Remove.
1354 (HAVE_ENABLE_EXECUTE_STACK): Define.
1355 [IN_LIBGCC2]: Don't include <windows.h>.
1356 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
1357 (HAVE_ENABLE_EXECUTE_STACK): Define.
1358 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
1359 (HAVE_ENABLE_EXECUTE_STACK): Define.
1360 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
1361 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
1362 (HAVE_ENABLE_EXECUTE_STACK): Define.
1363 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
1364 (HAVE_ENABLE_EXECUTE_STACK): Define.
1365 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
1366 (HAVE_ENABLE_EXECUTE_STACK): Define.
1367 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
1368 (HAVE_ENABLE_EXECUTE_STACK): Define.
1369 * config/alpha/alpha.c (alpha_trampoline_init): Test
1370 HAVE_ENABLE_EXECUTE_STACK.
1371 * config/i386/i386.c (ix86_trampoline_init): Likewise.
1372 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
1373 (sparc64_initialize_trampoline): Likewise.
1374 * libgcc2.c [L_enable_execute_stack]: Remove.
1375 * system.h (ENABLE_EXECUTE_STACK): Poison.
1376 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
1377 * doc/tm.texi: Regenerate.
1378 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
1380 2011-06-09 Jakub Jelinek <jakub@redhat.com>
1383 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
1384 variable. After resetting and rescanning insn continue with previous
1387 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1389 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
1390 (gcc_cv_ld_hidden): Likewise.
1391 * configure: Regenerate.
1392 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
1393 (ix86_stack_protect_fail): Mark unused.
1394 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
1395 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
1396 [TARGET_MACHO]: Don't define.
1397 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
1398 (TARGET_STACK_PROTECT_FAIL): Likewise.
1399 (rs6000_stack_protect_fail): Mark unused.
1400 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
1401 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
1403 2011-06-08 Andi Kleen <ak@linux.intel.com>
1405 * varasm.c (get_section): Print location of other conflict
1406 for section conflicts.
1408 2011-06-08 Andi Kleen <ak@linux.intel.com>
1410 * config/i386/driver-i386.c (host_detect_local_cpu):
1411 Add model 0x2d Intel CPU.
1413 2011-06-08 Andi Kleen <ak@linux.intel.com>
1415 * reginfo.c (global_regs_decl): Add.
1416 (globalize_reg): Add decl parameter. Compute location. Pass location
1417 to warnings and add inform. Store decl in global_regs_decl.
1418 * rtl.h (globalize_reg): Update prototype.
1419 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
1421 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
1423 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
1425 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
1428 * config/sh/predicates.md (general_movsrc_operand): Check
1429 mode for memory with indexed address for QI and HImode.
1430 (general_movdst_operand): Likewise.
1432 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
1434 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
1436 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
1438 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
1439 (num_ssa_operands): Likewise.
1440 (op_iter_init_phiuse): Forward-declare.
1441 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
1443 2011-06-08 Nick Clifton <nickc@redhat.com>
1445 * doc/invoke.texi (ARM Options): Update description of
1448 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
1450 * config/i386/driver-i386.c (host_detect_local_cpu): Support
1451 unknown Intel family 0x6 CPUs.
1453 2011-06-08 Martin Jambor <mjambor@suse.cz>
1455 * tree-sra.c (mark_rw_status): Removed.
1456 (analyze_access_subtree): New parameter parent instead of
1457 mark_read and mark_write, propagate from that.
1459 2011-06-08 Julian Brown <julian@codesourcery.com>
1461 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
1462 for double-precision helper functions in hard-float mode if only
1463 single-precision arithmetic is supported in hardware.
1465 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
1467 PR rtl-optimization/49303
1468 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
1469 code_motion_path_driver returned 0 or 1.
1470 (sel_region_finish): Clear h_d_i_d.
1472 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
1474 * config/sh/sh.c (prepare_move_operands): Set pic register
1475 appropriately for global and local dynamic tls models even
1476 if flag_pic is unset.
1478 2011-06-07 Jason Merrill <jason@redhat.com>
1480 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
1482 2011-06-07 Xinliang David Li <davidxl@google.com>
1483 * passes.c (enable_disable_pass): Handle assembler name.
1484 (is_pass_explicitly_enabled_or_disabled): Ditto.
1486 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1488 PR tree-optimization/48497
1489 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
1491 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1493 PR tree-optimization/46728
1494 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
1495 to use gimple_val_nonnegative_real_p.
1496 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
1497 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
1499 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
1501 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
1503 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
1505 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
1508 2011-06-07 Richard Guenther <rguenther@suse.de>
1510 * stor-layout.c (initialize_sizetypes): Initialize all
1511 sizetypes based on target definitions.
1512 (set_sizetype): Remove.
1513 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
1514 * tree.h (set_sizetype): Remove.
1516 2011-06-07 Nick Clifton <nickc@redhat.com>
1518 * config.gcc: Unify V850 architecture options and add support for
1519 newer V850 architectures.
1520 * config/v850/t-v850e: Delete.
1522 2011-06-07 Richard Guenther <rguenther@suse.de>
1524 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
1525 Call set_sizetype from here.
1527 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
1529 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
1530 (*maddhisi4tb, *maddhisi4tt): New define_insns.
1532 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
1533 Andrew Stubbs <ams@codesourcery.com>
1535 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
1537 * doc/md.texi (Canonicalization of Instructions): Document widening
1538 multiply canonicalization.
1540 2011-06-07 Jakub Jelinek <jakub@redhat.com>
1542 PR gcov-profile/49299
1543 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
1545 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
1547 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
1549 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
1550 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
1551 vect_recog_pow_pattern): Likewise.
1552 (vect_pattern_recog_1): Remove declaration.
1553 (widened_name_p): Remove declaration. Add new argument to specify
1554 whether to check that both types are either signed or unsigned.
1555 (vect_recog_widen_mult_pattern): Update documentation. Handle
1556 unsigned patterns and multiplication by constants.
1557 (vect_pattern_recog_1): Update vect_recog_func references. Use
1558 statement information from the statement returned from pattern
1559 detection functions.
1560 (vect_pattern_recog): Update vect_recog_func reference.
1561 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
1562 multiplication by a constant use the type of the other operand.
1564 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
1566 PR rtl-optimization/49145
1567 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
1569 2011-06-06 Jakub Jelinek <jakub@redhat.com>
1572 * dwarf2out.c (native_encode_initializer): Decrement count in each
1576 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
1580 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
1581 if stmt folded into nothing.
1582 * tree-inline.c (fold_marked_statements): If a builtin at the end of
1583 a bb folded into nothing, just update cgraph edges and move to next bb.
1584 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
1585 to be NULL. Don't compute count and frequency if new_call is NULL.
1587 2011-06-04 Diego Novillo <dnovillo@google.com>
1589 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
1590 (cgraph.o): Likewise.
1591 (cgraphunit.o): Likewise.
1592 * cgraphunit.c: Include lto-streamer.h
1593 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
1595 * lto-streamer-in.c (unpack_value_fields): Call
1596 streamer_hooks.unpack_value_fields if set.
1597 (lto_materialize_tree): For unhandled nodes, first try to
1598 call lto_streamer_hooks.alloc_tree, if it exists.
1599 (lto_input_ts_decl_common_tree_pointers): Move reading of
1600 DECL_INITIAL to lto_streamer_read_tree.
1601 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
1602 (lto_streamer_read_tree): New.
1603 (lto_reader_init): Rename from lto_init_reader.
1604 Move initialization code to lto/lto.c.
1605 * lto-streamer-out.c (pack_value_fields): Call
1606 streamer_hooks.pack_value_fields if set.
1607 (lto_output_tree_ref): For tree nodes that are not normally indexable,
1608 call streamer_hooks.indexable_with_decls_p before giving up.
1609 (lto_output_ts_decl_common_tree_pointers): Move handling
1610 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
1611 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
1612 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
1613 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
1614 (lto_streamer_write_tree): New.
1615 (lto_output): Call lto_streamer_init directly.
1616 (lto_writer_init): Remove.
1617 * lto-streamer.c (streamer_hooks): New.
1618 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
1619 instead of lto_preload_common_nodes.
1620 (lto_is_streamable): Move from lto-streamer.h
1621 (lto_streamer_hooks_init): New.
1622 (streamer_hooks): New.
1623 (streamer_hooks_init): New.
1624 * lto-streamer.h (struct output_block): Forward declare.
1625 (struct lto_input_block): Likewise.
1626 (struct data_in): Likewise.
1627 (struct bitpack_d): Likewise.
1628 (struct streamer_hooks): Declare.
1629 (streamer_hooks): Declare.
1630 (lto_streamer_hooks_init): Declare.
1631 (lto_streamer_write_tree): Declare.
1632 (lto_streamer_read_tree): Declare.
1633 (streamer_hooks_init): Declare.
1634 (lto_is_streamable): Move to lto-streamer.c
1636 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1638 * longlong.h (smul_ppmm): The resulting register pair contains the
1639 higher order word first.
1641 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1643 PR tree-optimization/46728
1644 * builtins.c (powi_table): Remove.
1645 (powi_lookup_cost): Remove.
1646 (powi_cost): Remove.
1647 (expand_powi_1): Remove.
1648 (expand_powi): Remove.
1649 (expand_builtin_pow_root): Remove.
1650 (expand_builtin_pow): Remove.
1651 (expand_builtin_powi): Eliminate handling of constant exponent.
1652 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
1654 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
1656 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
1658 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
1660 * dce.c (reset_unmarked_insns_debug_uses): New.
1661 (delete_unmarked_insns): Skip debug insns.
1662 (prescan_insns_for_dce): Likewise.
1663 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
1664 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
1665 active reg can be found.
1666 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
1667 (convert_regs_1): Use it.
1669 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
1671 * tree-pretty-print.c (dump_function_header): Add flags.
1672 Don't dump decl_uid with nouid.
1673 * tree-pretty-print.h (dump_function_header): Adjust.
1674 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
1675 * passes.c (pass_init_dump_file): Pass dump_flags on.
1676 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
1678 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
1681 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
1683 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
1685 PR tree-optimization/49243
1686 * calls.c (setjmp_call_p): Also check if fndecl has the
1687 returns_twice attribute.
1689 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1691 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
1694 2011-06-06 Richard Henderson <rth@redhat.com>
1695 Georg-Johann Lay <avr@gjlay.de>
1698 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
1700 * config/avr/avr.md ("insv"): New insn expander.
1701 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
1702 "*insv.not.io", "*insv.reg"): New insns.
1704 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
1707 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
1708 to nonimmediate_operand from memory_operand for the operand that is to
1709 be forced to memory by the expander. Lose the constraints.
1711 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
1713 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
1714 EH return when delayed branches are disabled.
1716 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
1718 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
1719 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
1721 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
1722 Simplify MODE_V1DF and MODE_V2SF handling.
1723 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
1724 Simplify MODE_SF handling.
1726 2011-06-04 Jan Hubicka <jh@suse.cz>
1728 PR tree-optimization/48893
1729 PR tree-optimization/49091
1730 PR tree-optimization/49179
1731 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
1734 2011-06-04 Jan Hubicka <jh@suse.cz>
1737 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
1740 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
1742 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
1744 2011-06-04 Jakub Jelinek <jakub@redhat.com>
1747 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
1748 to be strictly smaller than 1 << shiftcount.
1750 2011-06-04 Jan Hubicka <jh@suse.cz>
1752 PR tree-optimize/48929
1753 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
1756 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
1759 * calls.c (emit_call_1): Prefer the __builtin declaration of
1762 2011-06-03 Diego Novillo <dnovillo@google.com>
1764 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
1765 (lto_input_tree_pointers): Likewise.
1766 * lto-streamer-out.c (pack_value_fields): Likewise.
1767 (lto_output_tree_pointers): Likewise.
1768 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
1769 and OPTIMIZATION_NODE.
1771 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1773 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
1774 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
1775 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
1776 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
1777 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
1778 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
1779 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
1780 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
1781 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
1782 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
1783 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
1784 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
1785 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
1786 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
1787 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
1788 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
1789 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
1790 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
1791 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
1792 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
1793 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
1794 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
1795 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
1796 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
1797 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
1798 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
1799 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
1800 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
1801 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
1802 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
1803 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
1804 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
1805 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
1806 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
1807 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
1808 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
1809 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
1810 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
1811 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
1812 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
1813 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
1814 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
1815 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
1816 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
1817 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
1818 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
1819 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
1820 * system.h (MD_UNWIND_SUPPORT): Poison.
1821 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
1822 * doc/tm.texi: Regenerate.
1823 * unwind-dw2.c: Include md-unwind-support.h instead of
1825 * config/ia64/unwind-ia64.c: Likewise.
1826 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
1828 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
1830 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
1832 2011-06-03 Richard Henderson <rth@redhat.com>
1833 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1835 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
1836 (sigill_hdlr): Correct insn, insn size.
1837 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
1839 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1841 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
1843 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
1844 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
1845 * config/mips/t-iris: Remove.
1846 * config/mips/t-irix6: New file.
1847 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
1849 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1851 * Makefile.in (LIB2ADDEHDEP): Remove.
1852 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
1853 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
1854 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
1855 * config/t-darwin (LIB2ADDEHDEP): Remove.
1856 * config/t-freebsd (LIB2ADDEHDEP): Remove.
1857 * config/t-linux (LIB2ADDEHDEP): Remove.
1859 2011-06-03 Diego Novillo <dnovillo@google.com>
1861 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
1862 (lto_register_var_decl_in_symtab): Likewise.
1863 (lto_register_function_decl_in_symtab): Likewise.
1864 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
1865 logic to uniquify_nodes.
1867 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1869 * config/alpha/t-osf5: Remove.
1870 * config/alpha/t-osf-pthread: Remove.
1871 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
1872 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
1874 2011-06-03 Julian Brown <julian@codesourcery.com>
1876 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
1877 (strongarm1110): Use strongarm tuning.
1878 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
1879 * config/arm/arm.c (arm_strongarm_tune): New.
1880 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
1881 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
1882 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
1883 setting, using previous defaults or 1 for Cortex-A5.
1884 (arm_option_override): Set max_insns_skipped from current tuning.
1886 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
1888 * doc/install.texi (Options specification): Document --with-specs.
1890 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1892 * config/arm/neon.md (orndi3_neon): Actually split it.
1894 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
1896 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
1897 * var-tracking.c (reverse_op): Limite recurse depth to 5.
1899 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
1902 * target.def (delay_sched2, delay_vartrack): New.
1903 * doc/tm.texi.in: Update.
1904 * doc/tm.texi: Rebuild.
1905 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
1906 * var-tracking.c (gate_handle_var_tracking): Likewise.
1907 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
1908 (bfin_flag_var_tracking): Drop.
1909 (output_file_start): Don't save and override flag_var_tracking.
1910 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
1911 (bfin_reorg): Test original variables.
1912 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
1913 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
1914 (ia64_flag_var_tracking): Drop.
1915 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
1916 (ia64_file_start): Don't save and override flag_var_tracking.
1917 (ia64_override_options_after_change): Ditto
1918 flag_schedule_insns_after_reload.
1919 (ia64_reorg): Test original variables.
1920 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
1921 (picochip_flag_var_tracking): Drop.
1922 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
1923 (picochip_option_override): Don't save and override
1924 flag_schedule_insns_after_reload.
1925 (picochip_asm_file_start): Ditto flag_var_tracking.
1926 (picochip_reorg): Test original variables.
1927 * config/spu/spu.c (spu_flag_var_tracking): Drop.
1928 (TARGET_DELAY_VARTRACK): Define.
1929 (spu_var_tracking): New.
1930 (spu_machine_dependent_reorg): Call it.
1931 (asm_file_start): Don't save and override flag_var_tracking.
1933 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
1936 * config/sh/predicates.md (general_movsrc_operand): Return 0
1937 for memory and memory subreg of which address is an invalid
1938 indexed address for QI and HImode.
1939 (general_movdst_operand): Likewise.
1941 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
1943 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
1944 edges only, when there is a non-local label in the function.
1945 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
1947 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
1949 * config/i386/constraints.md (Y3): New register constraint.
1950 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
1951 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
1952 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
1953 *sse2_interleave_lowv2df.
1955 2011-06-02 Julian Brown <julian@codesourcery.com>
1957 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
1958 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
1959 (arm_cortex_a5_tune): New.
1961 2011-06-02 Julian Brown <julian@codesourcery.com>
1963 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
1964 * config/arm/arm.c (arm_default_branch_cost): New.
1965 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
1966 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
1967 (arm_fa726_tune): Set branch_cost field using
1968 arm_default_branch_cost.
1969 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
1970 current_tune structure.
1971 * dojump.c (tm_p.h): Include file.
1973 2011-06-02 Julian Brown <julian@codesourcery.com>
1975 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
1977 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
1978 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
1979 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
1981 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
1982 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
1983 (arm_fa726te_tune): Add prefer_constant_pool setting.
1984 (arm_v6t2_tune, arm_cortex_tune): New.
1985 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
1986 prefer_constant_pool setting.
1988 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
1990 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
1992 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
1993 (*movdf_internal) <case 6,7,8>: Ditto.
1995 * config/i386/constraints.md (Y4): New register constraint.
1996 * config/i386/sse.md (vec_set<mode>_0): Merge with
1997 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
1998 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
1999 *vec_extractv2di_1_sse.
2000 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
2001 and *vec_concatv2di_rex64_sse.
2003 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
2006 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
2007 of cgraph_local_info for null before attempting to use it.
2009 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
2011 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
2012 (current_function_dynamic_alloc_count): Delete.
2013 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
2014 (expand_builtin_nonlocal_goto): Remove obsolete comment.
2015 (expand_builtin_update_setjmp_buf): Remove dead code.
2016 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
2017 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
2019 * function.c (instantiate_virtual_regs): Likewise.
2020 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
2021 for a block with a single abnormal incoming edge.
2022 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
2023 (SETJMP_VIA_SAVE_AREA): Delete.
2024 * config/sparc/sparc-protos.h (load_got_register): Declare.
2025 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
2026 (load_got_register): Make global.
2027 (sparc_frame_pointer_required): Add 'static'.
2028 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
2029 (sparc_builtin_setjmp_frame_value): New function.
2030 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
2031 (save_stack_nonlocal): New expander.
2032 (restore_stack_nonlocal): Likewise.
2033 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
2034 (nonlocal_goto_internal): New insn.
2035 (goto_handler_and_restore): Delete.
2036 (builtin_setjmp_setup): Likewise.
2037 (do_builtin_setjmp_setup): Likewise.
2039 (builtin_setjmp_receiver): New expander.
2041 2011-06-01 David Li <davidxl@google.com>
2044 * tree-pretty-print.c (dump_function_header): Format cleanup.
2046 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
2049 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
2050 needed when original operands are used for msw_skip comparison.
2052 2011-06-01 Jakub Jelinek <jakub@redhat.com>
2055 * var-tracking.c (add_uses, add_stores): Don't call
2056 cselib_subst_to_values on ENTRY_VALUE.
2058 2011-06-01 Diego Novillo <dnovillo@google.com>
2060 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
2061 output_record_start with LTO_null instead of output_zero.
2062 (lto_output_ts_binfo_tree_pointers): Likewise.
2063 (lto_output_tree): Likewise.
2064 (output_eh_try_list): Likewise.
2065 (output_eh_region): Likewise.
2066 (output_eh_lp): Likewise.
2067 (output_eh_regions): Likewise.
2068 (output_bb): Likewise.
2069 (output_function): Likewise.
2070 (output_unreferenced_globals): Likewise.
2071 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
2072 instead of NUM_TREE_CODES.
2073 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
2074 (lto_output_int_in_range): Change << to >> when shifting VAL.
2076 2011-06-01 Diego Novillo <dnovillo@google.com>
2078 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
2079 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
2081 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
2084 * optabs.h (valid_multiword_target_p): Declare.
2085 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
2086 doing multi-word operations.
2087 * optabs.c (expand_binop): Likewise.
2088 (expand_doubleword_bswap): Likewise.
2089 (expand_absneg_bit): Likewise.
2090 (expand_unop): Likewise.
2091 (expand_copysign_bit): Likewise.
2092 (multiword_target_p): New function.
2094 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
2096 PR rtl-optimization/48830
2097 PR rtl-optimization/48808
2098 PR rtl-optimization/48792
2099 * reload.c (push_reload): Check contains_reg_of_mode.
2100 * reload1.c (strip_paradoxical_subreg): New function.
2101 (gen_reload_chain_without_interm_reg_p): Use it to handle
2102 paradoxical subregs.
2103 (emit_output_reload_insns, gen_reload): Likewise.
2105 2011-06-01 David Li <davidxl@google.com>
2107 * predict.c : Change pass name
2110 * tree-profile.c: Ditto.
2113 2011-06-01 David Li <davidxl@google.com>
2115 * tree-pretty-print.c (dump_function_header): New function.
2116 * final.c (rest_of_clean_state): Use header dumper.
2117 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
2118 * passes.c (pass_init_dump_file): Use header dumper.
2120 2011-06-01 Jakub Jelinek <jakub@redhat.com>
2122 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
2123 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
2124 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
2126 (mem_loc_descriptor): Use them.
2128 * var-tracking.c (create_entry_value): New function.
2129 (vt_add_function_parameter): Use it.
2131 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2133 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
2134 Include <signal.h>, <ucontext.h>.
2135 (sigill_caught): Define.
2136 (sigill_hdlr): New function.
2137 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
2138 insns can be executed.
2139 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
2140 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
2142 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2144 * config/t-slibgcc-darwin: Move to ...
2145 * config/t-slibgcc-dummy: ... this. Clarify comments.
2146 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
2147 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
2148 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
2149 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
2150 Remove i386/t-crtstuff from tmake_file.
2151 (i[34567]86-*-solaris2*): Remove t-svr4,
2152 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
2154 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
2155 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
2156 sparc/t-crtfm from tmake_file.
2157 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
2158 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
2160 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
2161 * config/i386/t-nwld (SHLIB_LINK): Remove.
2162 * config/i386/t-rtems-i386: Rename to ...
2163 * config/i386/t-rtems: ... this.
2164 ($(T)crti.o, $(T)crtn.o): Remove.
2165 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
2166 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
2167 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
2168 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
2169 EXTRA_MULTILIB_PARTS): Remove.
2170 * config/sparc/t-sol2-64: Likewise.
2171 * config/sparc/t-sol2: Remove.
2172 * config/sparc/t-crtin: Remove.
2173 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
2174 * config/i386/gmon-sol2.c: Remove.
2175 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
2176 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
2177 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
2178 * config/i386/sol2-gc1.asm: Remove.
2179 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
2180 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
2181 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
2182 * config/t-slibgcc-sld: Remove.
2184 2011-06-01 Jakub Jelinek <jakub@redhat.com>
2186 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
2187 base_type_for_mode with op_mode instead of mode.
2189 2011-06-01 Paul Brook <paul@cpodesourcery.com>
2191 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
2193 * config/arm/arm-tune.md: Regenerate.
2194 * config/arm/arm-tables.opt: Regenerate.
2195 * config/arm/arm.c (FL_DIV): Rename...
2196 (FL_THUMB_DIV): ... to this.
2197 (FL_ARM_DIV): Define.
2198 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
2199 (arm_arch_hwdiv): Remove.
2200 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
2201 (arm_issue_rate): Add cortexr5.
2202 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
2203 __ARM_ARCH_EXT_IDIV__.
2204 (TARGET_IDIV): Define.
2205 (arm_arch_hwdiv): Remove.
2206 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
2207 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
2208 (divsi3, udivsi3): New patterns.
2209 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
2210 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
2212 2011-06-01 Martin Jambor <mjambor@suse.cz>
2214 * ipa-utils.c (ipa_dfs_info): New field scc_no.
2215 * ipa-utils.c (searchc): Set scc_no.
2217 2011-06-01 Martin Jambor <mjambor@suse.cz>
2219 * ipa-utils.c (searchc_env): New field allow_overwritable.
2220 (searchc): do not ignore edges to overwritable nodes if indicated
2221 by env->allow_overwritable.
2222 (ipa_reduced_postorder): Set env.allow_overwritable.
2224 2011-06-01 Richard Guenther <rguenther@suse.de>
2226 * tree.c (free_lang_data): Do not reset boolean_type_node nor
2228 * lto-streamer.c (lto_record_common_node): Take node pointer,
2229 do not register types.
2230 (lto_preload_common_nodes): Explicitly skip preloading nodes
2231 that differ between frontends.
2233 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
2235 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
2238 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
2240 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
2241 parameter value for dump. Dump cost on outermost call only.
2242 (rs6000_memory_move_cost): Dump cost on outermost call only.
2244 2011-05-31 Jakub Jelinek <jakub@redhat.com>
2246 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
2247 DW_OP_GNU_convert ops.
2249 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
2250 cselib_preserve_constants.
2251 (cselib_lookup_1): If cselib_preserve_constants,
2252 a new VALUE is being created for REG and there is a VALUE for the
2253 same register in wider mode, add another loc with lowpart SUBREG of
2255 (cselib_subst_to_values): Handle ENTRY_VALUE.
2256 * var-tracking.c (replace_expr_with_values): Return NULL for
2258 * dwarf2out.c (convert_descriptor_to_signed): New function.
2259 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
2260 instead of two shifts.
2261 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
2262 the right mode if needed.
2263 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
2264 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
2265 convert_descriptor_to_signed.
2266 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
2267 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
2270 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
2272 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
2274 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
2275 of X87MODEI12 and SWI48x instead of SSEMODEI24.
2276 (SWI248x): New mode iterator, rename from X87MODEI.
2277 (X87MODEI): Remove mode iterator.
2278 (X87MODEI12): Ditto.
2279 (SSEMODEI24): Ditto.
2281 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
2283 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
2284 * doc/invoke.texi: Document max-vartrack-expr-depth.
2285 * var-tracking.c (EXPR_DEPTH): New.
2286 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
2288 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
2290 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
2291 * config/i386/sse.md: Add n to negated FMA pattern names.
2293 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
2295 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
2297 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
2299 * gengtype-state.c (read_state_params_structs): Initialize previous.
2301 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
2303 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
2304 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
2306 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
2308 * config/i386/i386.md (*movtf_internal): Avoid allocating general
2309 registers. Penalize F*r->o alternative to prevent partial memory
2310 stalls. Slightly penalize *roF->*r alternative. Generate SSE
2311 CONST_DOUBLE immediates when optimizing function for size. Do not move
2312 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
2313 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
2314 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
2315 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
2317 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
2319 (fp_register_operand splitters): Use fp_register_operand
2320 constraint. Do not use FP_REG_P in insn condition.
2321 (any_fp_register_operand splitters): Use any_fp_register_operand
2322 constraint. Do not use ANY_FP_REG_P in insn condition.
2324 2011-05-31 Jan Hubicka <jh@suse.cz>
2326 * cgraph.h (cgraph_inline_failed_t): Give enum a name
2327 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
2328 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
2329 (lto_output_edge): Use output_enum and var_len_unsigned.
2330 (lto_output_varpool_node): Likewise.
2331 (input_overwrite_node): Do not take resolution parameter;
2332 extract it from a bitpack.
2333 (input_node): Do not read resolution; use input_enum and
2335 (input_varpool_node): Likewise.
2336 (input_edge): Likewise.
2337 (input_cgraph_1): Likewise.
2339 2011-05-31 Richard Guenther <rguenther@suse.de>
2341 * gimple.c (gimple_register_canonical_type): Do not register
2342 any types via gimple_register_type.
2344 2011-05-31 Jan Hubicka <jh@suse.cz>
2346 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
2349 2011-05-31 Jakub Jelinek <jakub@redhat.com>
2351 PR rtl-optimization/49235
2352 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
2353 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
2355 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
2357 PR tree-optimization/49093
2358 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
2361 2011-05-31 Dodji Seketeli <dodji@redhat.com>
2364 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
2365 for concrete functions containing the code of cloned functions.
2367 2011-05-31 Richard Guenther <rguenther@suse.de>
2369 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
2371 (forward_propagate_into_comparison_1): ... this.
2372 (forward_propagate_comparison): Rename to ...
2373 (forward_propagate_into_comparison): ... this. Split out
2374 real forward propagation code to ...
2375 (forward_propagate_comparison): ... this.
2376 (forward_propagate_into_gimple_cond): Remove looping.
2377 (forward_propagate_into_cond): Likewise.
2378 (simplify_not_neg_expr): Return whether we have done something.
2379 (simplify_gimple_switch): Likewise.
2380 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
2381 (ssa_forward_propagate_and_combine): ... this. Re-structure
2382 to do a forward forward-propagation walk on BBs and a backward
2383 stmt combining walk on BBs. Consistently re-scan changed statements.
2384 (pass_forwprop): Adjust.
2386 2011-05-30 Ian Lance Taylor <iant@google.com>
2388 * godump.c (go_format_type): Correct length of name added to
2389 obstack for anonymous field.
2391 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
2394 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
2395 part of the second operand is 0.
2397 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
2399 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
2400 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
2401 to memory for !TARGET_MEMORY_MISMATCH_STALL.
2402 (*movdf_internal_rex64): Do not penalize F->r alternative.
2403 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
2404 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
2405 when optimizing function for size. Do not move CONST_DOUBLEs
2406 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
2407 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
2408 SUBREGs. Do not check for MEM_P operands in the insn condition,
2409 check for ANY_FP_REGNO_P instead.
2410 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
2411 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
2413 * config/i386/i386.c (ix86_option_override_internal): Do not
2414 set TARGET_INTEGER_DFMODE_MOVES here.
2416 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
2419 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
2421 2011-05-30 Jakub Jelinek <jakub@redhat.com>
2423 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
2424 DW_TAG_rvalue_reference_type even for
2425 -gdwarf-4 -fno-debug-types-section.
2427 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2429 PR tree-optimization/46728
2430 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
2431 (build_and_insert_binop): New.
2432 (gimple_expand_builtin_pow): Reorder args for
2433 build_and_insert_call; use build_and_insert_binop; add more
2434 optimizations for fractional exponents.
2436 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
2441 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2443 * tree.h (struct tree_identifier): Inherit from tree_typed, not
2445 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
2446 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
2447 TS_BASE instead of TS_COMMON.
2448 * varasm.c (assemble_name): Remove assert.
2450 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
2452 * config.gcc: Keep obselete list sorted.
2454 2011-05-30 Jakub Jelinek <jakub@redhat.com>
2455 Eric Botcazou <ebotcazou@adacore.com>
2457 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
2458 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
2459 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
2460 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
2461 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
2463 2011-05-30 Richard Guenther <rguenther@suse.de>
2465 * gimple.c (gimple_types_compatible_p_1): Compare record
2466 and union type members properly.
2468 2011-05-30 Richard Guenther <rguenther@suse.de>
2470 PR tree-optimization/49210
2471 * ipa-split.c (split_function): Care for the case where the call
2472 result is not trivially convertible to the result holding variable.
2474 2011-05-30 Richard Guenther <rguenther@suse.de>
2476 PR tree-optimization/49218
2477 * tree-vrp.c (adjust_range_with_scev): Properly check whether
2480 2011-05-30 Richard Guenther <rguenther@suse.de>
2482 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
2483 New function split out from ...
2484 (forward_propagate_into_gimple_cond): ... here. Adjust.
2485 (forward_propagate_into_cond): Likewise.
2486 (forward_propagate_comparison): Also propagate into
2487 comparisons on assignment RHS. Change return value to
2488 behave similar to forward_propagate_into_cond.
2489 (tree_ssa_forward_propagate_single_use_vars): Handle
2490 strict-overflow warnings properly for forward_propagate_comparison.
2492 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2494 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
2496 * configure: Regenerate.
2498 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
2500 PR tree-optimization/49199
2501 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
2502 non-reduction operands are either defined in the loop or by induction.
2504 2011-05-29 Xinliang David Li <davidxl@google.com>
2506 * opts-global.c (handle_common_deferred_options): Handle new options.
2507 * passes.c (register_one_dump_file): Call register_pass_name.
2508 (execute_one_pass): Check explicit enable/disable flag.
2509 (passr_hash): New function.
2511 (register_pass_name): Ditto.
2512 (get_pass_by_name): Ditto.
2515 (enable_pass): Ditto.
2516 (disable_pass): Ditto.
2517 (is_pass_explicitly_enabled_or_disabled): Ditto.
2519 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
2521 * config/i386/i386.md (*movoi_internal_avx): Use
2522 standard_sse_constant_opcode for alternative 0.
2523 (*movti_internal_sse): Ditto.
2524 (*movti_internal_rex64): Use standard_sse_constant_opcode for
2526 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
2528 (*movsi_internal): Ditto.
2529 (*movdi_internal): Ditto. Add ssecvt type moves.
2531 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
2534 * rtlanal.c (simplify_subreg_regno): Adjust comment.
2536 2011-05-29 Jakub Jelinek <jakub@redhat.com>
2538 PR rtl-optimization/49095
2539 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
2540 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
2542 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
2545 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
2546 recurse_p argument. Only follow register copies if it is set,
2547 and prevent mips_find_pic_call_symbol from recursing.
2548 (mips_find_pic_call_symbol): Add a recurse_p argument.
2549 Pass it to mips_pic_call_symbol_from_set.
2550 (mips_annotate_pic_calls): Update accordingly.
2552 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
2554 * emit-rtl.c (try_split): Use a loop to search for
2555 NOTE_INSN_CALL_ARG_LOCATIONs.
2557 2011-05-29 Richard Guenther <rguenther@suse.de>
2559 PR tree-optimization/49217
2560 * ipa-pure-const.c (propagate_pure_const): Fix typos.
2562 2011-05-28 Jan Hubicka <jh@suse.cz>
2564 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
2566 (string_slot_free): Remove
2567 (create_output_block): Initialize obstack.
2568 (destroy_output_block): Free obstack.
2569 (lto_string_index): Add PERSISTENT parameter; do not duplicate
2570 the string unless it needs to be added into the hash.
2571 (lto_output_string_with_length): Add persistent attribute;
2572 handle NULL strings.
2573 (lto_output_string): Add PERSISTENT parameter.
2574 (output_string_cst, output_identifier): Simplify.
2575 (lto_output_location_bitpack): Update.
2576 (lto_output_builtin_tree): Update.
2577 * lto-streamer.h (struct output_block): Add obstack.
2578 (lto_output_string, lto_output_string_with_length): Remove
2579 declarations; functions are static now.
2581 2011-05-28 Jan Hubicka <jh@suse.cz>
2583 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
2584 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
2585 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
2586 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
2587 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
2588 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
2589 unpack_ts_decl_with_vis_value_fields,
2590 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
2591 lto_get_builtin_tree): Use enum and variable length i/o.
2592 * basic-block.h (profile_status_d): Add PROFILE_LAST.
2593 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
2595 (bp_pack_enum, bp_unpack_enum): New macros.
2597 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
2599 * genrecog.c: Remove redundant forward declarations.
2601 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
2603 * config.gcc: Deprecate mips*-*-openbsd*.
2605 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
2608 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
2611 2011-05-27 Andrew Pinski <pinskia@gmail.com>
2614 * gengtype.c (vec_prefix_type): New function.
2615 (note_def_vec): Use vec_prefix_type and change the length
2616 attribute to be based on the prefix.
2617 * vec.c: Include coretypes.h before vec.h.
2618 (struct vec_prefix): Remove.
2619 (vec_gc_p_reserve): Change the offsetof to sizeof.
2620 (vec_gc_p_reserve_exact): Likewise.
2621 (vec_heap_p_reserve): Likewise.
2622 (vec_heap_p_reserve_exact): Likewise.
2623 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
2624 (vec_stack_p_reserve): Change the offsetof to sizeof.
2625 (vec_stack_p_reserve_exact): Likewise.
2626 * vec.h (struct vec_prefix): New struct definition.
2627 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
2628 (VEC_T_GTY(T,B)): Likewise.
2629 (DEF_VEC_FUNC_P(T)): Use prefix field.
2630 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
2631 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
2633 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2635 PR tree-optimization/46728
2636 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
2637 (powi_as_mults): Add gimple_set_location.
2638 (build_and_insert_call): New.
2639 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
2640 0.5, 0.25, 0.75, 1./3., or 1./6.
2642 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
2644 * doc/contrib.texi: Update copyright years.
2645 (Contributors): Add Zdenek Sojka.
2647 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
2649 * c-decl.c (c_push_function_context): Copy the current statement
2651 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
2652 (finish_struct): Call building_stmt_list_p instead of checking
2654 * c-parser.c (c_parser_postfix_expression): Likewise.
2655 * c-typeck.c (c_end_compound_stmt): Likewise.
2656 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
2657 * tree-iterator.c (stmt_list_cache): Change to a VEC.
2658 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
2659 (free_stmt_list): Likewise.
2660 * tree.h (struct tree_statement_list): Include typed_tree instead
2662 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
2663 as TS_TYPED instead of TS_COMMON.
2665 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2666 Uros Bizjak <ubizjak@gmail.com>
2668 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
2669 (HAVE_AS_IX86_TLSGDPTL): Define.
2670 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
2671 (HAVE_AS_IX86_TLSLDMPLT): Define.
2672 * configure: Regenerate.
2673 * config.in: Regenerate.
2674 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
2675 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
2676 TARGET_SUN_TLS, use @tlsgdplt or @plt.
2677 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
2678 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
2680 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
2682 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
2684 * sched-int.h (struct _haifa_deps_insn_data): New members cond
2686 (INSN_COND, INSN_REVERSE_COND): New macros.
2687 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
2689 (sched_get_condition_with_rev): Cache the results, and look them up
2691 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
2692 are clobbered by the current insn.
2693 * target.def (exposed_pipline): New sched data hook.
2694 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
2695 * doc/tm.texi: Regenerate.
2697 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2699 PR tree-optimization/49170
2700 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
2703 2011-05-27 Richard Guenther <rguenther@suse.de>
2706 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
2709 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
2711 * haifa-sched.c (sched_scan_info): Remove.
2712 (schedule_block): Call sched_extend_luids rather than sched_init_luids
2714 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
2716 (sched_scan): Remove.
2717 (sched_extend_luids): Renamed from luids_extend_insn and no longer
2718 static. All callers changed.
2719 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
2720 static. All callers changed.
2721 (sched_init_luids): Remove all arguments except the first. All
2722 callers changed. Don't use sched_scan.
2723 (haifa_init_h_i_d): Likewise.
2724 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
2725 manually rather than using sched_init_luids. Likewise with
2726 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
2727 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
2728 rather than sched_init_luids with NULL args.
2729 * sel-sched-ir.c (new_insns): Remove variable.
2730 (sched_scan): New static function, previously in haifa-sched.c. Remove
2731 all arguments but the first two; all callers changed.
2732 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
2733 rather than sched_init_luids.
2734 (sel_init_bbs): Remove second argument. All callers changed.
2735 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
2736 with NULL arguments.
2737 (create_insn_rtx_from_pattern): Likewise.
2738 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
2739 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
2740 (sched_init_insn_luid, sched_extend_luids): Declare.
2741 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
2744 2011-05-27 Richard Guenther <rguenther@suse.de>
2747 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
2748 A CMP B ? (T) true : (T) false for non-integral types T again.
2750 2011-05-27 Jan Hubicka <jh@suse.cz>
2752 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
2753 so 0 means NULL string.
2754 (lto_output_string_with_length): ... here.
2755 (lto_output_string, output_string_cst, output_identifier): Update
2756 handling of NULL strings.
2757 (lto_output_location_bitpack): New function.
2758 (lto_output_location): Use it.
2759 (lto_output_tree_ref): Use output_record_start.
2760 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
2762 * lto-streamer-in.c (string_for_index): Break out from ...; offset
2764 (input_string_internal): ... here;
2765 (input_string_cst, input_identifier, lto_input_string): Update handling
2767 (lto_input_location_bitpack): New function
2768 (lto_input_location): Use it.
2769 (unpack_ts_type_common_value_fields): Pack align & alias in var len
2771 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
2772 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
2773 (bp_pack_value): Sanity check the value range.
2774 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
2776 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
2779 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
2781 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
2782 call_arg_location instructions down the floor.
2784 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
2786 PR rtl-optimization/49154
2787 * ira.c (setup_pressure_classes): Process class without sublcasses
2788 as a candidate for pressure classes.
2790 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
2792 PR rtl-optimization/48575
2793 * genrecog.c (position_type): New enum.
2794 (position): New structure.
2795 (decision): Use position structure instead of a string.
2796 (root_pos, peep2_insn_pos_list): New variables.
2797 (next_position, compare_positions): New functions.
2798 (new_decision): Use position structures instead of strings.
2799 (maybe_both_true): Likewise.
2800 (change_state): Likewise.
2801 (write_tree): Likewise.
2802 (make_insn_sequence): Likewise.
2804 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2806 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
2807 TS_BASE instead of TS_COMMON.
2808 (find_decls_types_r): Check for TS_TYPED structure before looking at
2810 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
2812 (BLOCK_CHAIN): Use new chain field.
2814 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
2816 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
2817 moves expensive on Power7 also.
2819 2011-05-26 Richard Guenther <rguenther@suse.de>
2821 * fold-const.c (fold_unary_loc): Remove bogus code.
2823 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2825 * tree.h (struct tree_identifier): Inherit from tree_typed, not
2827 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
2828 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
2829 TS_BASE instead of TS_COMMON.
2830 * varasm.c (assemble_name): Remove assert.
2832 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
2834 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
2836 * libgcc-std.ver: Delete file.
2838 2011-05-26 Richard Guenther <rguenther@suse.de>
2840 PR tree-optimization/48702
2841 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
2842 only when we know the base address is within bounds.
2843 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
2844 assume the base address of TARGET_MEM_REFs is in bounds.
2846 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2849 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
2850 declaration in TARGET_SOLARIS.
2852 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
2854 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
2855 The instruction is then expanded explicitly.
2856 (supported_compare): Callable instruction.
2857 (compare): Likewise.
2859 2011-05-26 Jakub Jelinek <jakub@redhat.com>
2862 * gimplify.c (shortcut_cond_r): Don't special case
2863 COND_EXPRs if they have void type on one of their arms.
2865 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
2867 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
2868 to reduce duplication, and to achieve a slightly more logical order
2871 2011-05-26 Jakub Jelinek <jakub@redhat.com>
2873 PR tree-optimization/49161
2874 * tree-vrp.c (struct case_info): New type.
2875 (compare_case_labels): Sort case_info structs instead of
2876 trees, and not primarily by CASE_LABEL uids but by
2877 label_for_block indexes.
2878 (find_switch_asserts): Put case labels into struct case_info
2879 array instead of TREE_VEC, adjust sorting, compare label_for_block
2880 values instead of CASE_LABELs.
2882 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2884 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
2885 ("orndi3_neon"): Likewise.
2886 ("bic<mode>3_neon"): Likewise.
2888 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
2890 PR tree-optimization/49038
2891 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
2892 Ensure at least one epilogue iteration if required by data
2894 * tree-vectorizer.h (struct _loop_vec_info): Add new field
2895 to mark loops that require peeling for gaps.
2896 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
2897 (vect_get_known_peeling_cost): Take peeling for gaps into
2899 (vect_transform_loop): Generate epilogue if required by data
2901 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
2902 loop as requiring an epilogue if there are gaps in the end of
2905 2011-05-25 Ian Lance Taylor <iant@google.com>
2907 * godump.c (go_format_type): Output the first field with a usable
2910 2011-05-25 Ian Lance Taylor <iant@google.com>
2912 * godump.c (go_format_type): Check for invalid type names, pointer
2913 target types, and struct field types.
2915 2011-05-25 Jason Merrill <jason@redhat.com>
2917 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
2919 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
2921 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
2923 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
2925 * config/i386/i386.md (*movqi_extv_1)): Put back
2926 "register_operand" check in "type" calculation.
2927 (*movqi_extzv_2): Likewise.
2929 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
2931 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
2933 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
2936 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
2937 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
2938 __divxc3, __divtc3): Wrap definitions in #ifndef.
2940 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
2943 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
2944 "register_operand" check and replace q_regs_operand with
2945 QIreg_operand in "type" calculation.
2946 (*movqi_extv_1): Likewise.
2947 (*movqi_extzv_2_rex64): Likewise.
2948 (*movqi_extzv_2): Likewise.
2950 * config/i386/predicates.md (QIreg_operand): New.
2952 2011-05-25 Richard Guenther <rguenther@suse.de>
2954 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
2955 type-based offset disambiguation, streamline MEM_REF and
2956 TARGET_MEM_REF handling.
2958 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
2960 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
2961 (bdesc_special_args): Add pause intrinsic.
2963 * config/i386/i386.md (UNSPEC_PAUSE): New.
2966 * config/i386/ia32intrin.h (__pause): Likewise.
2968 * doc/extend.texi (X86 Built-in Functions): Add documentation for
2971 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2973 PR tree-optimization/46728
2974 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
2975 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
2977 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
2979 * tree.h (struct tree_exp): Inherit from struct tree_typed.
2980 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
2981 instead of TS_COMMON.
2983 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
2985 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
2986 LIBGCC2_GNU_PREFIX is defined.
2988 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
2989 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
2990 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
2991 __clz_tab): Define using __N.
2992 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
2993 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
2994 * target.def (libfunc_gnu_prefix): New hook.
2995 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
2996 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
2997 * doc/tm.texi: Regenerate.
2998 * system.h (LIBGCC2_GNU_PREFIX): Poison.
2999 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
3001 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
3002 (init_optabs): Likewise for the bswap libfuncs.
3003 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
3005 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
3006 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
3007 * libgcc-std.ver: Remove.
3008 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
3009 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
3011 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
3012 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
3013 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
3014 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
3015 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
3016 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
3017 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
3018 * config/fixed-bit.h (FIXED_OP): Define differently depending on
3019 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
3020 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
3022 2011-05-25 Jan Hubicka <jh@suse.cz>
3024 * lto-streamer-out.c (output_record_start): Use lto_output_enum
3025 (lto_output_tree): Use output_record_start.
3026 * lto-streamer-in.c (input_record_start): Use lto_input_enum
3027 (lto_get_pickled_tree): Use input_record_start.
3028 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
3029 (lto_value_range_error): New function.
3030 * lto-streamer.h (lto_value_range_error): Declare.
3031 (lto_output_int_in_range, lto_input_int_in_range): New functions.
3032 (lto_output_enum, lto_input_enum): New macros.
3034 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
3036 * common.opt (flag_stack_usage_info): New variable.
3037 (-Wstack-usage): New option.
3038 * doc/invoke.texi (Warning options): Document -Wstack-usage.
3039 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
3040 <OPT_fstack_usage>: Likewise.
3041 * toplev.c (output_stack_usage): Handle -Wstack-usage.
3042 * calls.c (expand_call): Test flag_stack_usage_info variable instead
3043 of flag_stack_usage.
3044 (emit_library_call_value_1): Likewise.
3045 * explow.c (allocate_dynamic_stack_space): Likewise.
3046 * function.c (instantiate_virtual_regs ): Likewise.
3047 (prepare_function_start): Likewise.
3048 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
3049 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
3050 * config/arm/arm.c (arm_expand_prologue): Likewise.
3051 (thumb1_expand_prologue): Likewise.
3052 * config/avr/avr.c (expand_prologue): Likewise.
3053 * config/i386/i386.c (ix86_expand_prologue): Likewise.
3054 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
3055 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
3056 * config/mips/mips.c (mips_expand_prologue): Likewise.
3057 * config/pa/pa.c (hppa_expand_prologue): Likewise.
3058 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
3059 * config/s390/s390.c (s390_emit_prologue): Likewise.
3060 * config/sh/sh.c (sh_expand_prologue): Likewise.
3061 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
3062 * config/spu/spu.c (spu_expand_prologue): Likewise.
3064 2011-05-25 Richard Guenther <rguenther@suse.de>
3066 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
3067 (gimple_canonical_types_compatible_p): Likewise.
3069 2011-05-25 Jan Hubicka <jh@suse.cz>
3072 * ipa.c (function_and_variable_visibility): Only add to same
3073 comdat group list if DECL_ONE_ONLY.
3075 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
3077 PR rtl-optimization/49014
3078 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
3080 2011-05-25 Jakub Jelinek <jakub@redhat.com>
3083 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
3085 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
3087 PR rtl-optimization/48757
3088 * ira-build.c (loop_with_eh_edge_p): Rename to
3089 loop_with_complex_edge_p, check edges on complexity, make function
3091 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
3094 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
3096 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
3097 force flag_ira_share_save_slots to 0.
3099 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
3101 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
3102 (vt_initialize): Set PROLOGUE_BB unconditionally.
3103 Add block comment about CFA_BASE_RTX machinery.
3104 Reset FP_CFA_OFFSET to -1 on all invalid paths.
3105 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
3107 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
3110 * c-parser.c (c_parser_objc_class_instance_variables): More robust
3111 parsing of syntax error in ObjC instance variable lists. In
3112 particular, avoid an infinite loop if there is a stray ']'.
3113 Updated error message.
3115 2011-05-24 Ian Lance Taylor <iant@google.com>
3117 * godump.c (go_define): Don't accept a string immediately after
3120 2011-05-24 Ian Lance Taylor <iant@google.com>
3122 * godump.c (struct godump_container): Add invalid_hash field.
3123 (go_format_type): Return false if type is found in invalid_hash.
3124 (go_output_typedef): Add invalid type to invalid_hash.
3125 (go_finish): Create and delete invalid_hash.
3127 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3129 PR tree-optimization/46728
3130 * tree-ssa-math-opts.c (powi_table): New.
3131 (powi_lookup_cost): New.
3133 (powi_as_mults_1): New.
3134 (powi_as_mults): New.
3135 (gimple_expand_builtin_powi): New.
3136 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
3137 (gate_cse_sincos): Remove sincos/cexp restriction.
3139 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3142 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
3144 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
3145 * mips-tdump.c: Likewise.
3147 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
3150 * config/i386/driver-i386.c (host_detect_local_cpu): Always
3151 add -mno-XXX. Handle FMA.
3153 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
3155 PR rtl-optimization/48633
3156 * ira-build.c (loop_with_eh_edge_p): New function.
3157 (mark_loops_for_removal): Use it.
3159 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
3161 PR rtl-optimization/48971
3162 * ira.c (setup_pressure_classes): Don't check register move cost
3163 for classes with one registers. Don't add pressure class if there
3164 is a pressure class with the same available hard registers.
3165 Check contains_reg_of_mode. Fix a typo in collecting
3166 temp_hard_regset. Ignore hard registers not belonging to a class.
3168 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
3171 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
3173 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
3174 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3176 PR gcov-profile/48845
3177 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
3179 2011-05-24 Richard Guenther <rguenther@suse.de>
3181 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
3182 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
3183 (gimple_types_compatible_p_1): Adjust.
3184 (iterative_hash_canonical_type): Do not bother about complete vs.
3186 (gimple_canonical_types_compatible_p): Likewise.
3188 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3190 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
3192 2011-05-24 Richard Guenther <rguenther@suse.de>
3195 * gimple.c (gimple_register_canonical_type): Revert
3197 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
3198 does not for a tree for the case where it matters. Cache
3199 pointer-type alias-sets.
3201 2011-05-24 Joseph Myers <joseph@codesourcery.com>
3203 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
3204 (OBJS): Remove options.o, opts-common.o and prefix.o.
3205 (OBJS-libcommon-target): New.
3206 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
3207 (BACKEND): Include libcommon-target.a.
3208 (MOSTLYCLEANFILES): Include libcommon-target.a.
3209 (libcommon-target.a): New.
3210 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
3213 2011-05-23 Joseph Myers <joseph@codesourcery.com>
3215 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
3216 parts of output shared with the driver.
3217 * optc-gen.awk: Don't generate parts of output not shared with the
3219 * opth-gen.awk: Remove GCC_DRIVER conditionals.
3220 * doc/options.texi (SourcerInclude): Mention options-save.c.
3221 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
3222 (OBJS): Add options-save.o.
3223 (options-save.c, options-save.o): New.
3224 (options.o): Update dependencies.
3225 (gcc-options.o): Remove.
3226 (mostlyclean): Remove options-save.c.
3228 2011-05-23 Jakub Jelinek <jakub@redhat.com>
3231 * dbxout.c: Include cgraph.h.
3232 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
3233 and without value expr, return NULL if no varpool node exists for
3234 it or if it is not needed.
3235 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
3238 * c-decl.c (start_decl): Convert expr to void_type_node.
3240 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
3242 PR rtl-optimization/48826
3243 * emit-rtl.c (try_split): When splitting a call that is followed
3244 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
3246 2011-05-23 Jakub Jelinek <jakub@redhat.com>
3248 * cfgexpand.c (expand_debug_expr): For unused non-addressable
3249 parameters passed in memory prefer using DECL_INCOMING_RTL over
3250 the pseudos it will be copied into.
3252 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
3255 * config/i386/i386.c (ix86_option_override_internal): Save the
3256 initial options after checking vzeroupper.
3258 2011-05-23 David Li <davidxl@google.com>
3260 PR tree-optimization/48988
3261 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
3262 Initialize has_valid_pred for each pred chain.
3264 2011-05-23 Richard Guenther <rguenther@suse.de>
3266 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
3267 (iterative_hash_gimple_type): Always hash type names.
3269 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
3271 * c-typeck.c (build_function_call_vec): Tweak call to
3272 check_function_arguments.
3274 2011-05-23 Richard Guenther <rguenther@suse.de>
3276 PR tree-optimization/49115
3277 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
3278 is not necessarily carried out, do not claim it kills the ref.
3279 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
3281 2011-05-23 Richard Guenther <rguenther@suse.de>
3284 * builtins.c (fold_builtin_memory_op): Be less restrictive about
3285 what pointer types we accept for folding.
3287 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3289 * gthr-gnat.c: Remove.
3290 * gthr-gnat.h: Remove.
3291 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
3292 * config/t-freebsd (LIB2ADDEH): Likewise.
3293 * config/t-linux (LIB2ADDEH): Likewise.
3294 * config/t-sol2 (LIB2ADDEH): Likewise.
3295 * config/ia64/t-vms (LIB2ADDEH): Likewise.
3296 * configure.ac (target_thread_file): Remove gnat handling.
3297 * configure: Regenerate.
3298 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
3300 2011-05-23 Tristan Gingold <gingold@adacore.com>
3301 Eric Botcazou <ebotcazou@adacore.com>
3303 * gcov.c (create_file_names): If no object directory is specified,
3304 keep the directory of the file.
3306 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3308 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
3309 * configure: Regenerate.
3311 2011-05-23 Jakub Jelinek <jakub@redhat.com>
3314 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
3315 failed and the comparison has a single bit signed type, use
3316 constm1_rtx instead of const1_rtx for true value.
3317 (do_store_flag): If ops->type is single bit signed type, disable
3318 signel bit test optimization and pass -1 instead of 1 as last
3319 parameter to emit_store_flag_force.
3321 2011-05-23 Tom de Vries <tom@codesourcery.com>
3324 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
3326 (infer_loop_bounds_from_undefined): Use new function.
3328 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
3330 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
3331 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
3332 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
3334 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
3336 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
3338 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
3339 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
3342 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
3344 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
3346 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
3348 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
3349 UNSPEC_MOVE_PIC pattern.
3351 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
3353 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
3354 (sparc-*-rtems*): Likewise.
3355 (sparc64-*-elf*): Likewise.
3356 (sparc64-*-rtems*): Likewise.
3357 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
3358 * config/sparc/t-crtin: New file.
3359 * config/sparc/t-sol2 (crti.o): Delete rule.
3361 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
3362 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
3363 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
3364 (ENDFILE_SPEC): Add crtn.o.
3366 2011-05-22 Tom de Vries <tom@codesourcery.com>
3369 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
3370 CODE_CONTAINS_STRUCT (TS_COMMON).
3372 2011-05-22 Jakub Jelinek <jakub@redhat.com>
3375 * expmed.c (extract_fixed_bit_field): Test whether target can be used
3376 only after deciding which mode to use.
3378 2011-05-22 Tom de Vries <tom@codesourcery.com>
3381 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
3382 for call to get_shiftadd_cost.
3384 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
3387 * config/i386/cpuid.h (bit_MMXEXT): New define.
3389 2011-05-22 Nick Clifton <nickc@redhat.com>
3391 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
3392 initialisation of non-existant args[2] element. Use args[] array
3393 not arg[] array to pass arguments to build_function_type_list.
3395 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
3397 PR tree-optimization/49087
3398 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
3400 2011-05-21 Jason Merrill <jason@redhat.com>
3403 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
3404 static storage duration.
3406 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
3408 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
3411 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
3413 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
3414 false if there are call-saved registers here...
3415 (sparc_can_use_return_insn_p): ...but here instead.
3416 (save_or_restore_regs): Fix thinko.
3417 (sparc_expand_prologue): Use current_function_is_leaf.
3418 (sparc_frame_pointer_required): Likewise.
3420 2011-05-21 Nick Clifton <nickc@redhat.com>
3423 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
3425 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
3427 * gengtype.c (walk_type): Implemented "atomic" GTY option.
3428 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
3430 2011-05-21 Joseph Myers <joseph@codesourcery.com>
3432 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
3433 * optc-gen.awk: Move common code to opt-read.awk.
3434 * opth-gen.awk: Likewise.
3435 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
3437 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
3439 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
3441 2011-05-20 Tom de Vries <tom@codesourcery.com>
3444 * tree-ssa-loop-ivopts.c: Include expmed.h.
3445 (get_shiftadd_cost): New function.
3446 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
3448 2011-05-20 Jakub Jelinek <jakub@redhat.com>
3451 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
3452 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
3454 2011-05-20 Joseph Myers <joseph@codesourcery.com>
3456 * Makefile.in: Update comment referring to $(OBJS-common).
3458 2011-05-20 Ian Lance Taylor <iant@google.com>
3460 * godump.c (go_output_typedef): Put enum constants in the macro
3461 hash table to avoid duplicate Go const definitions.
3463 2011-05-20 Joseph Myers <joseph@codesourcery.com>
3465 * Makefile.in (LIBDEPS): Add libcommon.a.
3467 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
3468 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
3469 pretty-print.o and version.o.
3470 (OBJS-libcommon): New.
3471 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
3472 (BACKEND): Add libcommon.a.
3473 (MOSTLYCLEANFILES): Likewise.
3475 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
3476 (cpp$(exeext)): Likewise.
3477 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
3478 pretty-print.o and input.o.
3479 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
3480 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
3482 (mips-tfile): Don't explicitly use version.o.
3483 (mips-tdump): Likewise.
3484 (gcov.o): Depend on $(DIAGNOSTIC_H).
3485 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
3486 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
3487 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
3488 * gcov-dump.c: Include intl.h and diagnostic.h.
3489 (main): Initialize diagnostics.
3490 * gcov.c: Include diagnostic.h.
3492 (main): Initialize diagnostics.
3493 * lto-wrapper.c: Include diagnostic.h.
3494 (main): Initialize diagnostics.
3496 2011-05-20 Michael Matz <matz@suse.de>
3498 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
3500 2011-05-20 Michael Matz <matz@suse.de>
3501 Richard Guenther <rguenther@suse.de>
3503 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
3504 use lto_streamer_cache_append directly instead of returning a VEC.
3505 (preload_common_node): Remove.
3506 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
3508 (lto_streamer_cache_create): Call lto_preload_common_nodes.
3510 2011-05-20 Richard Guenther <rguenther@suse.de>
3512 PR tree-optimization/49079
3513 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
3514 MEM_REFs correctly for the trailing array access detection.
3515 Special case constants the same way as decls for overall size
3518 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
3520 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
3523 2011-05-20 Jakub Jelinek <jakub@redhat.com>
3525 PR tree-optimization/49073
3526 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
3527 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
3528 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
3530 2011-05-20 Richard Guenther <rguenther@suse.de>
3533 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
3534 of pointer types the same way the middle-end does.
3536 2011-05-20 Richard Guenther <rguenther@suse.de>
3538 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
3539 or pointer-to chains. Delay all fixup to uniquify_nodes.
3541 2011-05-19 Quentin Neill <quentin.neill@amd.com>
3543 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
3544 (fma4_fmaddsub): Likewise
3546 2011-05-19 Jan Hubicka <jh@suse.cz>
3548 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
3549 (GIMPLE_TYPE_PAIR_SIZE): New macro.
3550 (type_pair_cache): New static var.
3551 (lookup_type_pair): Use fixed sized custom hash; make inline.
3552 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
3553 calls of lookup_type_pair.
3554 (print_gimple_types_stats): Remove cache stats.
3555 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
3558 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
3560 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
3561 when TARGET_RDRND is active.
3562 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
3563 Generate dummy SImode target register when target is NULL.
3565 2011-05-19 Joseph Myers <joseph@codesourcery.com>
3567 * config/arm/arm-fpus.def: New.
3568 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
3570 * config/arm/arm-tables.opt: Regenerate.
3571 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
3572 (arm_option_override): Don't decode FPU name to string here.
3573 * config/arm/arm.opt (mfpu=): Use Enum.
3574 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
3575 Update dependencies.
3577 2011-05-19 Joseph Myers <joseph@codesourcery.com>
3579 * collect2.c: Include diagnostic.h.
3580 (fatal_perror, fatal, error, fancy_abort): Remove.
3581 (main): Set progname. Call xmalloc_set_program_name and
3582 diagnostic_initialize.
3583 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
3584 scan_libraries, resolve_lib_name): Call fatal_error instead of
3585 fatal and fatal_perror.
3586 * collect2.h (error, fatal, fatal_perror): Don't declare.
3587 * tlink.c: Include diagnostic-core.h.
3588 (recompile_files): Call fatal_error instead of fatal_perror.
3589 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
3590 pretty-print.o and input.o.
3591 (collect2.o, tlink.o): Update dependencies.
3593 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3595 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
3597 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3600 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
3601 COMDAT group syntax, both SPARC and x86 variants.
3602 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
3603 * configure: Regenerate.
3604 * config/sol2.h (TARGET_SOLARIS): Define.
3605 (PUSHSECTION_FORMAT): Remove.
3606 (SECTION_NAME_FORMAT): Define.
3607 * config/sol2.c: Include hashtab.h.
3608 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
3609 expansion, using SECTION_NAME_FORMAT.
3610 (solaris_comdat_htab): New variable.
3611 (struct comdat_entry): Define.
3612 (comdat_hash): New function.
3613 (comdat_eq): New function.
3614 (solaris_elf_asm_comdat_section): New function.
3615 (solaris_define_comdat_signature): New function.
3616 (solaris_code_end): New function.
3617 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
3618 (solaris_code_end): Declare.
3619 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
3620 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
3622 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
3623 Remove ATTRIBUTE_UNUSED.
3624 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
3625 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
3626 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
3627 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
3628 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
3629 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
3630 (PUSHSECTION_FORMAT): Remove.
3631 (SECTION_NAME_FORMAT): Redefine.
3633 2011-05-19 Kai Tietz <ktietz@redhat.com>
3635 * tree-cfg.c (verify_gimple_assign_binary): Barf on
3636 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
3637 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
3639 2011-05-19 Anatoly Sokolov <aesok@post.ru>
3640 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3642 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
3644 2011-05-19 Richard Guenther <rguenther@suse.de>
3647 * tree-object-size.c (addr_object_size): If the pointed-to
3648 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
3650 2011-05-19 Richard Guenther <rguenther@suse.de>
3652 * gimple.c (gimple_types_compatible_p_1): Compare names of
3653 the types themselves.
3654 (iterative_hash_gimple_type): And hash them that way.
3655 (gimple_register_type_1): If we register a main variant properly
3656 initialize the leader to ourselves.
3658 2011-05-19 Tom de Vries <tom@codesourcery.com>
3661 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
3662 get_loop_invariant_expr_id.
3663 (get_loop_invariant_expr_id): Use get_expr_id.
3664 (parm_decl_cost): New function.
3665 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
3666 Improve bound cost estimation. Use different inv_expr_id for elim and
3669 2011-05-19 Tom de Vries <tom@codesourcery.com>
3672 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
3673 cost_base.cost == 0.
3675 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
3678 * config/i386/sse.md
3679 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
3682 2011-05-18 Jakub Jelinek <jakub@redhat.com>
3684 PR tree-optimization/49039
3685 * tree-vrp.c (extract_range_from_binary_expr): For
3686 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
3687 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
3689 2011-05-18 Tom de Vries <tom@codesourcery.com>
3692 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
3694 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
3696 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
3697 (*tls_global_dynamic_64): Ditto.
3698 (*tls_local_dynamic_base_32_gnu): Ditto.
3699 (*tls_local_dynamic_base_64): Ditto.
3700 (tls_initial_exec_64_sun): Ditto.
3702 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
3704 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
3705 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
3707 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
3708 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
3709 * config/bfin/bfin.c (bfin_cpus): Add bf592.
3710 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
3711 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
3712 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
3713 * config/bfin/elf.h (LIB_SPEC): Add bf592.
3715 2011-05-18 Joseph Myers <joseph@codesourcery.com>
3717 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
3718 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
3719 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
3720 target_thread_pointer, arm_structure_size_boundary, struct
3721 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
3722 struct abi_name, arm_all_abis): Remove.
3723 (arm_option_override) Don't process most enumerated option values here.
3724 Don't process target_fpe_name here. Work with integer not string for
3725 structure size boundary; use separate diagnostics for each case.
3726 * config/arm/arm.h (enum float_abi_type, enum
3727 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
3729 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
3730 arm_structure_size_boundary): Remove.
3731 * config/arm/arm.opt (mabi=): Use Enum and Init.
3732 (arm_abi_type): New Enum and EnumValue entries.
3733 (mfloat-abi=): Use Enum and Init.
3734 (float_abi_type): New Enum and EnumValue entries.
3735 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
3736 (mfp16-format=): Use Enum and Init.
3737 (arm_fp16_format_type): New Enum and EnumValue entries.
3738 (mstructure-size-boundary=): Use UInteger and Init.
3739 (mtp=): Use Enum and Init.
3740 (arm_tp_type): New Enum and EnumValue entries.
3742 2011-05-18 Richard Guenther <rguenther@suse.de>
3744 PR tree-optimization/49018
3745 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
3746 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
3747 gimple_has_side_effects.
3749 2011-05-18 Richard Guenther <rguenther@suse.de>
3751 * gimple.c (gimple_register_type_1): New function, split out from ...
3752 (gimple_register_type): ... here. Avoid infinite recursion.
3754 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
3756 PR tree-optimization/41881
3757 * tree-vectorizer.h (struct _loop_vec_info): Add new field
3758 reduction_chains along with a macro for its access.
3759 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
3760 (destroy_loop_vec_info): Free reduction chains.
3761 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
3762 (vect_is_slp_reduction): New function.
3763 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
3764 (vect_create_epilog_for_reduction): Support SLP reduction chains.
3765 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
3766 definition types for reduction chains.
3767 (vect_supported_load_permutation_p): Don't allow permutations for
3769 (vect_analyze_slp_instance): Support reduction chains.
3770 (vect_analyze_slp): Try to build SLP instance from reduction chains.
3771 (vect_get_constant_vectors): Handle reduction chains.
3772 (vect_schedule_slp_instance): Mark the first statement of the
3773 reduction chain as reduction.
3775 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
3777 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
3778 names for group elements access.
3779 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
3780 reduction chains as well. Remove data reference and interleaving
3781 related words from the fields names.
3782 * tree-vect-loop.c (vect_transform_loop): Use new names for group
3784 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
3785 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
3786 vect_update_interleaving_chain, vect_same_range_drs,
3787 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
3788 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
3789 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
3790 vect_analyze_group_access, vect_analyze_data_ref_access,
3791 vect_create_data_ref_ptr, vect_transform_strided_load,
3792 vect_record_strided_load_vectors): Likewise.
3793 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
3794 vect_model_load_cost, vectorizable_store, vectorizable_load,
3795 vect_remove_stores, new_stmt_vec_info): Likewise.
3796 * tree-vect-slp.c (vect_build_slp_tree,
3797 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
3799 2011-05-18 Richard Guenther <rguenther@suse.de>
3802 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
3803 operand verification.
3804 (verify_gimple_assign_binary): Likewise.
3805 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
3806 to non-1-precision BOOLEAN_TYPEs.
3808 2011-05-18 Tom de Vries <tom@codesourcery.com>
3811 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
3813 2011-05-18 Jakub Jelinek <jakub@redhat.com>
3815 PR tree-optimization/49000
3816 * tree-ssa.c (execute_update_addresses_taken): Call
3817 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
3818 be rewritten and decl has been marked for renaming, reset
3821 2011-05-17 Joseph Myers <joseph@codesourcery.com>
3823 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
3824 enum_opts_set when testing if attributes have set -mfpmath=.
3826 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
3828 * config/mips/mips.c (mips_handle_option): Remove unused variable.
3830 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
3832 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
3834 * tree-inline.c (maybe_inline_call_in_expr): Initialize
3835 id.transform_lang_insert_block with NULL.
3837 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
3839 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
3840 (output_fp_compare): Change args 3 and 4 to bool.
3841 (ix86_expand_call): Change arg 6 to bool.
3842 (ix86_attr_length_immediate_default): Change arg 2 to bool.
3843 (ix86_attr_length_vex_default): Change arg 3 to bool.
3844 * config/i386/i386.md: Update all uses.
3845 * config/i386/i386.c: Ditto.
3846 (ix86_flags_dependent): Change return type to bool.
3848 2011-05-17 Richard Guenther <rguenther@suse.de>
3850 * gimple.c (type_hash_pair_compare): Fix comparison.
3852 2011-05-17 Richard Guenther <rguenther@suse.de>
3854 * gimple.c (iterative_hash_gimple_type): Simplify singleton
3855 case some more, fix final hash value of the non-singleton case.
3857 2011-05-17 Richard Guenther <rguenther@suse.de>
3861 2011-05-16 Richard Guenther <rguenther@suse.de>
3863 * gimple.c (gimple_types_compatible_p_1): Use names of the
3864 type itself, not its main variant.
3865 (iterative_hash_gimple_type): Likewise.
3867 2011-05-17 Richard Guenther <rguenther@suse.de>
3869 * gimple.c (gimple_register_canonical_type): Use the main-variant
3870 leader for computing the canonical type.
3872 2011-05-17 Nick Clifton <nickc@redhat.com>
3874 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
3877 * config/rx/rx.md: Add peephole to remove redundant extensions
3879 (bitset_in_memory): Use rx_restricted_mem_operand.
3880 (bitinvert_in_memory): Likewise.
3881 (bitclr_in_memory): Likewise.
3883 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
3884 Nick Clifton <nickc@redhat.com>
3886 * config/rx/rx.md: Add peepholes to match a register move followed
3887 by a comparison of the moved register. Replace these with an
3888 addition of zero that does both actions in one instruction.
3890 2011-05-17 Jakub Jelinek <jakub@redhat.com>
3893 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
3894 predicate to allow CONST_INT.
3895 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
3897 2011-05-16 Joseph Myers <joseph@codesourcery.com>
3899 * opts-common.c (opt_enum_arg_to_value): New.
3900 * opts.h (opt_enum_arg_to_value): Declare.
3901 * config/i386/i386.opt (fpmath): Remove.
3902 (mfpmath=): Use Enum, Init and Save.
3903 (fpmath_unit): New Enum and EnumValue entries.
3904 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
3905 name for function fpmath state.
3906 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
3907 * config/i386/i386.c: Include diagnostic.h.
3908 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
3909 (ix86_target_string): Take enum fpmath_unit value instead of string.
3910 (ix86_debug_options): Update call to ix86_target_string.
3911 (ix86_option_override_internal): Don't process fpmath strings here.
3912 (x86_function_specific_save, ix86_function_specific_restore):
3913 Don't handle fpmath state specially.
3914 (ix86_function_specific_print): Pass fpmath state to
3915 ix86_target_string instead of printing in this function.
3916 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
3917 Handle enum attributes.
3918 (IX86_ATTR_ENUM, ix86_opt_enum): New.
3919 (ix86_valid_target_attribute_tree): Update option_strings
3920 handling. Handle fpmath as enum option.
3921 (ix86_can_inline_p): Update field names for function fpmath state.
3922 (ix86_expand_builtin): Update call to ix86_target_string.
3923 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
3924 (ix86_fpmath): Remove.
3925 * config/i386/t-i386 (i386.o): Update dependencies.
3927 2011-05-16 Joseph Myers <joseph@codesourcery.com>
3929 PR preprocessor/48677
3930 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
3931 from decoded_options[0], not from itself.
3933 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
3935 * config/i386/constraints.md (z): New constraint.
3936 * config/i386/i386.c (c): New mode attribute.
3937 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
3938 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
3939 constraint for operand 0.
3940 (*call_vzeroupper): Ditto.
3941 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
3942 (*call_rex64_ms_sysv_vzeroupper): Ditto.
3943 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
3944 Use "lzm" constraint for operand 0.
3945 (*call_pop_vzeroupper): Ditto.
3946 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
3947 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
3948 constraint for operand 0.
3949 (*sibcall_vzeroupper): Ditto.
3950 (*sibcall_rex64_ms_sysv): Ditto.
3951 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
3952 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
3953 *sibcall_pop_1. Use "Uz" constraint for operand 0.
3954 (*sibcall_pop_vzeroupper): Ditto.
3955 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
3956 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
3957 mode iterator. Use "<c>zm" constraint for operand 1.
3958 (*call_value_vzeroupper): Ditto.
3959 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
3961 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
3962 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
3963 *call_value_pop_1. Use "lzm" constraint for operand 1.
3964 (*call_value_pop_vzeroupper): Ditto.
3965 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
3966 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
3967 mode iterator. Use "Uz" constraint for operand 1.
3968 (*sibcall_value_vzeroupper): Ditto.
3969 (*sibcall_value_rex64_ms_sysv): Ditto.
3970 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
3971 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
3972 constraint for operand 1.
3973 (*sibcall_value_pop_vzeroupper): Ditto.
3974 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
3975 and "z" constraint for operand 2.
3976 (*tls_global_dynamic_32_gnu): Ditto.
3977 (*tls_local_dynamic_base_32_gnu): Ditto.
3978 (*tls_local_dynamic_base_64): Ditto.
3979 (*tls_local_dynamic_32_once): Ditto.
3980 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
3982 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
3984 2011-05-16 Richard Guenther <rguenther@suse.de>
3986 * gimple.c (gimple_types_compatible_p_1): Use names of the
3987 type itself, not its main variant.
3988 (iterative_hash_gimple_type): Likewise.
3990 2011-05-16 Richard Guenther <rguenther@suse.de>
3992 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
3993 always visit pointer target and function result and argument types.
3995 2011-05-16 Jason Merrill <jason@redhat.com>
3998 * tree-inline.c (copy_statement_list): Put back recursion.
4000 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
4004 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
4005 * config/avr/avr.md ("*ior<mode>qi.byte0",
4006 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
4008 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
4011 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
4012 register is needed for a function argument.
4014 2011-05-16 Richard Guenther <rguenther@suse.de>
4016 * gimple.c (struct type_hash_pair): New type.
4017 (type_hash_pair_compare): New function.
4018 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
4020 2011-05-16 Revital Eres <revital.eres@linaro.org>
4022 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
4024 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
4026 * config/i386/i386.md (floating point move splitters): Fix
4027 usage of standard_80387_constant_p.
4028 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
4030 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
4032 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
4034 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
4036 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
4037 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
4038 (tree_ssa_lim_finalize): Likewise.
4040 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
4042 * config/i386/constraint.md (Yd, Yx): New register constraints.
4043 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
4044 Yd conditional register constraint.
4045 (*movtf_internal): Use standard_sse_constant_opcode.
4046 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
4047 Yx conditional register constraint.
4048 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
4049 Yd conditional register constraint. Use standard_sse_constant_p to
4050 check for valid SSE constants and call standard_sse_constant_opcode to
4052 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
4053 constants and call standard_sse_constant_opcode to output SSE insn.
4054 * config/i386/i386.c (ix86_option_ovverride_internal): Set
4055 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
4056 optimize_size is set.
4057 (standard_sse_constant_opcode): Output conditional AVX insn templates.
4059 2011-05-14 Tobias Burnus <burnus@net-b.de>
4061 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
4063 2011-05-13 Martin Jambor <mjambor@suse.cz>
4065 * ipa-prop.c (ipa_cst_from_jfunc): New function.
4066 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
4067 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
4068 (evaluate_conditions_for_ipcp_clone): Removed.
4069 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
4070 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
4071 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
4073 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
4075 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
4076 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
4077 lieu of MAY_HAVE_DEBUG_STMTS.
4078 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
4079 debug statements if !MAY_HAVE_DEBUG_STMTS.
4081 2011-05-13 Martin Thuresson <martint@google.com>
4083 PR gcov-profile/47793
4084 * libgcov.c (gcov_exit): Support relative profile paths.
4085 * doc/invoke.texi (-fprofile-dir): Update for above change.
4087 2011-05-13 Richard Guenther <rguenther@suse.de>
4089 * gimple.c (gimple_canonical_types_compatible_p): Do not use
4090 type-pair caching, do not compare hashes.
4092 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
4095 * tree-cfg.c (edge_to_cases_cleanup): Return true.
4096 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
4098 2011-05-13 Kai Tietz <ktietz@redhat.com>
4100 * gimplify.c (gimplify_expr): Make sure operand is boolified.
4101 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
4102 compatible type for TRUTH_NOT_EXPR.
4104 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
4106 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
4107 (ix86_hard_regno_mode_ok): Change return value to bool. Use
4108 can_create_pseudo_p ().
4110 2011-05-13 Richard Guenther <rguenther@suse.de>
4113 * gimple.c (iterative_hash_gimple_type): Revert change in
4114 pointer target and function result and argument hashing.
4116 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
4118 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
4119 (*movxf_internal_nointeger): Ditto.
4120 (*movdf_internal_rex64): Ditto.
4121 (*movdf_internal): Ditto.
4122 (*movdf_internal_nointeger): Ditto.
4123 (*movsf_internal): Ditto.
4124 (sincos splitters): Use can_create_pseudo ().
4126 2011-05-13 Joseph Myers <joseph@codesourcery.com>
4128 * config/i386/i386-opts.h: New.
4129 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
4130 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
4131 ix86_section_threshold): Remove.
4132 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
4133 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
4135 (ix86_option_override_internal): Don't decode strings for options
4136 other than -march=, -mtune= and -mfpmath=. Don't allow for
4137 __attribute__ uses in remaining diagnostics for options with
4138 string arguments. Don't check for integer arguments being negative.
4139 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
4140 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
4141 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
4142 ix86_branch_cost, ix86_section_threshold): Remove.
4143 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
4145 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
4147 (masm=): Use Enum and Init.
4148 (asm_dialect): New Enum and EnumValue entries.
4149 (mbranch-cost=): Use UInteger.
4150 (mlarge-data-threshold=): Use UInteger and Init.
4151 (mcmodel=): Use Enum and Init.
4152 (cmodel): New Enum and EnumValue entries.
4153 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
4154 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
4155 mregparm=): Use UInteger.
4156 (mstringop-strategy=): Use Enum and Init.
4157 (stringop_alg): New Enum and EnumValue entries.
4158 (mtls-dialect=): Use Enum and Init.
4159 (tls_dialect): New Enum and EnumValue entries.
4160 (mabi=): Use Enum and Init.
4161 (calling_abi): New Enum and EnumValue entries.
4162 (mveclibabi=): Use Enum and Init.
4163 (ix86_veclibabi): New Enum and EnumValue entries.
4165 2011-05-13 Nick Clifton <nickc@redhat.com>
4167 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
4168 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
4170 2011-05-13 Kai Tietz <ktietz@redhat.com>
4173 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
4174 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
4175 (gimple_boolify): Check for cast for boolean_type_node instead for
4178 2011-05-13 Richard Guenther <rguenther@suse.de>
4180 PR tree-optimization/48172
4181 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
4182 multiplying by number of iterations for equal step.
4183 (vect_create_cond_for_alias_checks): Likewise.
4185 2011-05-13 Andreas Schwab <schwab@redhat.com>
4187 * configure.ac: Use AS_HELP_STRING throughout.
4188 * configure: Regenerate.
4190 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
4192 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
4193 (ix86_emit_restore_regs_using_mov): Likewise.
4194 (ix86_emit_restore_sse_regs_using_mov): Likewise.
4196 2011-05-12 Anatoly Sokolov <aesok@post.ru>
4198 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
4199 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
4200 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
4201 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
4202 RTX_OK_FOR_OLO10_P): ...here.
4203 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
4206 2011-05-12 Kai Tietz <ktietz@redhat.com>
4208 * gimplify.c (gimple_boolify): Re-boolify expression
4209 arguments even if expression type is of kind BOOLEAN_TYPE.
4210 (gimplify_boolean_expr): Removed.
4211 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
4212 and XOR. Additional take care that we keep expression's type.
4213 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
4214 of TRUTH_AND|OR|XOR_EXPR.
4216 2011-05-12 Jakub Jelinek <jakub@redhat.com>
4218 PR tree-optimization/48975
4219 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
4220 on all bbs here and free and clear ifc_bbs at the end.
4222 2011-05-12 Richard Guenther <rguenther@suse.de>
4224 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
4225 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
4226 until after simple checks.
4227 (gimple_types_compatible_p): Likewise.
4228 (iterative_hash_gimple_type): Always hash pointer targets
4229 and function return and argument types.
4230 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
4231 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
4232 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
4233 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
4234 completely in the simple compare section.
4235 (gimple_register_canonical_type): Query the cache again after
4238 2011-05-12 Richard Guenther <rguenther@suse.de>
4240 PR tree-optimization/48172
4241 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
4242 the number of iterations from the segment size calculation.
4243 (vect_create_cond_for_alias_checks): Adjust.
4245 2011-05-12 Jakub Jelinek <jakub@redhat.com>
4248 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
4249 if validate_subreg fails.
4251 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
4253 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
4254 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
4257 2011-05-12 DJ Delorie <dj@redhat.com>
4259 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
4260 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
4261 created builtin into rx_builtins array.
4262 (rx_builtin_decl): New function.
4263 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
4265 2011-05-12 DJ Delorie <dj@redhat.com>
4266 Nick Clifton <nickc@redhat.com>
4268 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
4269 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
4270 (rx_is_legitimate_address): Add pre-decrement and post-increment
4271 addressing in HImode and QImode. Fix test for out of range
4273 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
4274 (rx_align_for_label): Test label before extracting its usage count.
4275 (rx_adjust_insn_lengths): Fix selection of insn codes.
4276 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
4278 2011-05-11 Jason Merrill <jason@redhat.com>
4280 * tree.c (type_hash_canon): Use struct tree_type_non_common.
4282 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
4284 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
4285 reindent the subsequent block.
4287 2011-05-11 Satoru Takabayashi <satorux@google.com>
4288 Paul Pluzhnikov <ppluzhnikov@google.com>
4290 * doc/install.texi (Configuration): Document --with-linker-hash-style.
4291 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
4292 * config.in: Add LINKER_HASH_STYLE.
4293 * configure.ac: Add --with-linker-hash-style.
4294 * configure: Regenerate.
4296 2011-05-11 Richard Guenther <rguenther@suse.de>
4299 * gimple.c (iterative_hash_canonical_type): Fix typo.
4301 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
4303 * config/i386/i386.c (legitimize_tls_address)
4304 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
4305 expanders directly for TARGET_GNU2_TLS. Determine pic and
4306 __tls_get_addr symbol reference here. Update call to
4307 gen_tls_global_dynamic_{32,64} for added arguments.
4308 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
4309 expanders directly for TARGET_GNU2_TLS. Determine
4310 __tls_get_addr symbol reference here. Update call to
4311 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
4312 unique UNSPEC REG_EQUIV to libcall block.
4313 (ix86_tls_get_addr): Declare static.
4314 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
4315 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
4316 Do not determine pic and __tls_get_addr symbol reference here. Do not
4317 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
4318 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
4319 (tls_global_dynamic_64): Add operand 2. Do not determine
4320 __tls_get_addr symbol reference here. Do not call
4321 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
4322 (tls_local_dynamic_base64): Ditto for operand 1.
4324 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
4326 * function.c (expand_function_start): Initialize stack_check_probe_note
4327 only if the generic stack checking mechanism is used.
4329 2011-05-11 Richard Guenther <rguenther@suse.de>
4331 PR tree-optimization/15256
4332 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
4333 (A & B) | C, combine (A op CST1) op CST2.
4334 (tree_ssa_forward_propagate_single_use_vars): Only bother to
4335 visit assigns that have uses.
4337 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
4339 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
4340 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
4341 (unpack_ts_type_common_value_fields): ...this. Update comment.
4342 (unpack_value_fields): Adjust for renaming.
4343 (lto_input_ts_type_tree_pointers): Split into...
4344 (lto_input_ts_type_common_tree_pointer): ...this and...
4345 (lto_input_ts_type_non_common_tree_pointers): ...this.
4346 (lto_input_tree_pointers): Adjust for above split.
4347 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
4348 (pack_ts_type_common_value_fields): ...this. Update comment.
4349 (lto_output_ts_type_tree_pointers): Split into...
4350 (lto_output_ts_type_common_tree_pointers): ...this and...
4351 (lto_output_ts_type_non_common_tree_pointers): ...this.
4352 (lto_output_tree_pointers): Adjust for above split.
4353 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
4354 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
4355 * stor-layout.c (vector_type_mode): Adjust location of mode field.
4356 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
4358 (struct tree_type): Split into...
4359 (struct tree_type_common: ...this and...
4360 (struct tree_type_with_lang_specific): ...this and...
4361 (struct tree_type_non_common): ...this. Adjust accessor macros
4363 (TYPE_VALUES_RAW): Define.
4364 (union tree_node): Update for above changes.
4365 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
4367 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
4368 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
4369 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
4370 * treestructu.def (TS_TYPE): Remove.
4371 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
4374 2011-05-11 Jakub Jelinek <jakub@redhat.com>
4377 * tree-ssa.c (reset_debug_uses): New function.
4378 * tree-flow.h (reset_debug_uses): New prototype.
4379 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
4380 * tree-loop-distribution.c (generate_loops_for_partition): Call
4381 reset_debug_uses on the stmts that will be removed. Keep around
4382 all debug stmts, don't count them as bits in partition bitmap.
4383 (generate_builtin): Don't count debug stmts or labels as bits in
4386 2011-05-11 Richard Guenther <rguenther@suse.de>
4388 * gimple.c (gimple_type_hash_1): Merge with ...
4389 (gimple_type_hash): ... this.
4390 (gtc_visit): Remove mode parameter and simplify accordingly.
4391 (gimple_types_compatible_p_1): Likewise.
4392 (gimple_types_compatible_p): Likewise.
4393 (iterative_hash_gimple_type): Likewise.
4395 (gimple_type_eq): Adjust.
4397 2011-05-11 Revital Eres <revital.eres@linaro.org>
4399 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
4400 enters the branch create an anti edge in the opposite direction
4401 to prevent the creation of reg-moves.
4402 * modulo-sched.c: Adjust comment to reflect the fact we are
4403 scheduling closing branch.
4404 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
4405 (stage_count): New field in struct partial_schedule.
4406 (calculate_stage_count): New function.
4407 (normalize_sched_times): Rename to reset_sched_times and handle
4408 incrementing the sched time of the nodes by a constant value
4409 passed as parameter.
4410 (duplicate_insns_of_cycles): Skip closing branch.
4411 (sms_schedule_by_order): Schedule closing branch.
4412 (ps_insn_find_column): Handle closing branch.
4413 (sms_schedule): Call reset_sched_times and adjust the code to
4414 support scheduling of the closing branch.
4415 (ps_insert_empty_row): Update calls to normalize_sched_times
4416 and rotate_partial_schedule functions.
4418 2011-05-11 Richard Guenther <rguenther@suse.de>
4421 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
4423 2011-05-11 Joseph Myers <joseph@codesourcery.com>
4425 * opts.c (finish_options): Move warning settings from process_options.
4426 * toplev.c (process_options): Move warning settings to finish_options.
4428 2011-05-11 Richard Guenther <rguenther@suse.de>
4430 PR tree-optimization/18041
4431 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
4432 (simplify_bitwise_binary): ... this. Handle operand conversions
4433 by applying them to the result instead.
4434 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
4436 2011-05-11 Richard Guenther <rguenther@suse.de>
4438 * gimple.c (gimple_canonical_types_compatible_p): Split out
4439 from gimple_types_compatible_p and friends. Do not recurse
4440 to pointed-to types.
4441 (gimple_canonical_type_eq): Use it.
4442 (iterative_hash_canonical_type): Split out from
4443 iterative_hash_gimple_type and friends. Do not recurse
4444 to pointed-to types.
4445 (gimple_canonical_type_hash): Use it, allocate the hash here.
4447 2011-05-11 Revital Eres <revital.eres@linaro.org>
4449 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
4452 2011-05-11 Revital Eres <revital.eres@linaro.org>
4454 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
4455 instead of PREV_INSN.
4457 2011-05-11 Revital Eres <revital.eres@linaro.org>
4459 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
4460 * loop-doloop.c (doloop_condition_get): Likewise.
4461 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
4463 * config/arm/arm.md (*addsi3_compare0): Remove "*".
4465 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
4467 * tree.def (CASE_LABEL_EXPR): Add an operand.
4468 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
4470 2011-05-10 Joseph Myers <joseph@codesourcery.com>
4472 * c-decl.c (c_override_global_bindings_to_false): Remove.
4473 (global_bindings_p): Don't check
4474 c_override_global_bindings_to_false.
4475 * c-tree.h (c_override_global_bindings_to_false): Remove.
4476 * c-typeck.c (composite_type): Don't set
4477 c_override_global_bindings_to_false.
4479 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
4481 PR target/48857, 48495
4482 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
4484 (VSX_MOVE_MODE): Ditto.
4485 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
4486 VSX vector types. Add V2DImode.
4487 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
4488 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
4489 (MODES_TIEABLE_P): Ditto.
4491 * config/rs6000/rs6000.c (rs6000_emit_move): Use
4492 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
4494 (init_cumulative_args): Ditto.
4495 (rs6000_function_arg_boundary): Ditto.
4496 (rs6000_function_arg_advance_1): Ditto.
4497 (rs6000_function_arg): Ditto.
4498 (rs6000_function_ok_for_sibcall): Ditto.
4499 (emit_frame_save): Ditto.
4500 (rs6000_function_value): Ditto.
4501 (rs6000_libcall_value): Ditto.
4503 2011-05-10 Joseph Myers <joseph@codesourcery.com>
4505 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
4506 i386/darwin-lib.h to $libgcc_tm_file.
4507 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
4509 2011-05-10 Joseph Myers <joseph@codesourcery.com>
4511 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
4513 2011-05-10 Joseph Myers <joseph@codesourcery.com>
4515 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
4516 * config/rs6000/rs6000-tables.opt: New file (generated).
4517 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
4518 rs6000/rs6000-tables.opt to extra_options.
4519 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
4520 * config/rs6000/rs6000.c (rs6000_select): Remove.
4521 (processor_target_table): Move contents to rs6000-cpus.def.
4522 (darwin_rs6000_override_options): Check
4523 global_options_set.x_rs6000_cpu_index instead of
4524 rs6000_select[1].string.
4525 (rs6000_option_override_internal): Likewise.
4526 (rs6000_handle_option): Don't assert that global structures are in
4527 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
4528 (rs6000_default_cpu): New variable.
4529 (rs6000_file_start): Set it instead of local default_cpu. Check
4530 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
4531 global_options_set.x_rs6000_tune_index instead of rs6000_select.
4532 (rs6000_darwin_file_start): Check rs6000_default_cpu and
4533 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
4534 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
4535 rs6000_select): Remove.
4536 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
4538 (mcpu=, mtune=): Use Var, Init, Enum and Save.
4539 * config/rs6000/t-rs6000
4540 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
4541 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
4542 global_options_set.x_rs6000_cpu_index instead of
4543 rs6000_select[1].string.
4544 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
4545 global_options_set.x_rs6000_cpu_index instead of
4546 rs6000_select[1].string.
4548 2011-05-10 Joseph Myers <joseph@codesourcery.com>
4550 * config.gcc (libgcc_tm_file): Define instead of including files
4551 from ../../libgcc/config/ in tm_file.
4552 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
4553 * configure: Regenerate.
4554 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
4555 libgcc_tm.h, cs-libgcc_tm.h): New.
4556 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
4557 (clean): Remove libgcc_tm.h.
4558 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
4559 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
4560 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
4562 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
4565 * config/avr/avr.c (avr_ret_register): Return unsigned int
4567 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
4568 it to avr_libcall_value.
4569 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
4571 (avr_expand_binop_builtin): Ditto.
4572 (avr_expand_unop_builtin): Ditto.
4574 2011-05-10 DJ Delorie <dj@redhat.com>
4576 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
4577 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
4578 * config/rx/rx.c (rx_align_for_label): Add label and
4579 uses_threshold parameters. Do not align when the label is not
4581 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
4583 2011-05-10 Richard Guenther <rguenther@suse.de>
4585 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
4586 a series of conversions and apply foldings similar to what
4588 (tree_ssa_forward_propagate_single_use_vars): Call it.
4590 2011-05-10 Jakub Jelinek <jakub@redhat.com>
4592 PR tree-optimization/48611
4593 PR tree-optimization/48794
4594 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
4595 referenced from RESX or EH_DISPATCH arguments.
4598 * dfp.c (decimal_to_decnumber): Handle conversion from
4599 dconst{1,2,m1,half}.
4601 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
4603 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
4604 for !flag_prefer_avx128.
4605 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
4607 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
4609 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
4610 (fold_ternary_loc): Use expr_location_or.
4612 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
4615 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
4616 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
4617 Pmode and mem_mode is not VOIDmode.
4619 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
4621 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
4622 TYPE_QUAL_RESTRICT): Convert to enum.
4624 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
4626 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
4627 (const_pow2_1_to_8_operand): Ditto.
4628 (const_pow2_1_to_128_operand): Ditto.
4629 (const_pow2_1_to_32768_operand): Ditto.
4630 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
4631 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
4632 in insn constraint to check integer value of operand 3.
4633 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
4635 (PINSR_MODE): New mode iterator.
4636 (sse2p4_1): New mode attribute.
4637 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
4638 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
4639 iterator. Use const_int_operand instead of
4640 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
4641 exact_log2 in insn constraint to check integer value of operand 3.
4643 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
4645 * config/i386/sse.md (blendbits): Remove mode attribute.
4646 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
4647 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
4648 Check integer value of operand 3 in insn constraint.
4650 2011-05-09 Richard Guenther <rguenther@suse.de>
4652 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
4654 (lto_symtab_merge): Likewise. Do not register types here.
4655 (lto_symtab_merge_decls_2): Likewise.
4656 (lto_symtab_merge_decls_1): Likewise.
4657 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
4658 * gimple.c (enum gtc_mode): Declare.
4659 (gimple_types_compatible_p): Make static.
4661 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4663 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
4664 temporary register to match Pmode.
4666 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
4668 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
4669 and *vec_concatv4si_1_avx.
4671 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
4673 PR rtl-optimization/48927
4674 * ira-conflicts.c (commutative_constraint_p): Use
4675 recog_data.alternative_enabled_p to disable alternatives where
4676 "enabled" attribute is false.
4677 (get_dup_num): Ditto.
4678 * ira-lives.c (single_reg_class): Ditto.
4679 (ira_implicitly_set_insn_hard_regs): Ditto.
4681 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
4683 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
4684 (dataflow_set_preserve_mem_locs): Likewise.
4686 2011-05-09 Philipp Thomas <pth@suse.de>
4688 * config/mep/mep.c (mep_validate_vliw): Syntax description
4689 should not be translated.
4691 2011-05-09 Joseph Myers <joseph@codesourcery.com>
4693 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
4694 * config/mips/mips-tables.opt: New file (generated).
4695 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
4696 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
4697 MIPS_ARCH_OPTION_NATIVE): Define.
4698 * config/mips/mips.c (mips_cpu_info_table): Move contents to
4700 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
4701 mips_parse_cpu): Remove.
4702 (mips_cpu_info_from_opt, mips_default_arch): New.
4703 (mips_handle_option): Don't assert that global structures are in
4704 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
4705 (mips_option_override): Use new variables and functions to set
4706 state of these options. Use strcmp to check for individual CPU names.
4707 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
4709 * config/mips/mips.opt (march=): Use ToLower and Enum.
4710 (mips): Use ToLower, Enum and Var.
4711 (mtune=): Use ToLower and Enum.
4712 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
4714 2011-05-08 Jan Hubicka <jh@suse.cz>
4716 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
4717 Arrange type pairs to be UID ordered.
4718 (gimple_lookup_type_leader): Make inline.
4720 2011-05-09 Nick Clifton <nickc@redhat.com>
4723 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
4727 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
4730 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
4732 * combine.c (simplify_comparison): Abstract out parts into...
4733 (simplify_compare_const): ... new function.
4734 (try_combine): Generalize parallel arithmetic/compare combining
4735 to call simplify_compare_const() and CANONICALIZE_COMPARE().
4737 2011-05-08 Jan Hubicka <jh@suse.cz>
4739 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
4740 (cgraph_create_virtual_clone): Call hooks once virtual clone
4742 * cgraph.h (cgraph_clone_node): Update prototype.
4743 * ipa-cp.c (ipcp_estimate_growth): Use
4744 estimate_ipcp_clone_size_and_time.
4745 * ipa-inline-transform.c (clone_inlined_nodes): Update.
4746 * lto-cgraph.c (input_node): Update.
4747 * ipa-inline.c (recursive_inlining): Update.
4748 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
4749 (evaluate_conditions_for_known_args): Break out from ...
4750 (evaluate_conditions_for_edge): ... here.
4751 (evaluate_conditions_for_ipcp_clone): New function.
4752 (inline_node_duplication_hook): Update clone summary based
4754 (estimate_callee_size_and_time): Rename to ...
4755 (estimate_node_size_and_time): take NODE instead of EDGE;
4756 take POSSIBLE_TRUTHS as argument.
4757 (estimate_callee_size_and_time): Update.
4758 (estimate_ipcp_clone_size_and_time): New function.
4759 (do_estimate_edge_time): Update.
4761 2011-05-08 Richard Guenther <rguenther@suse.de>
4765 * expmed.c (expand_shift_1): Compute adjusted constant shift
4768 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
4770 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
4772 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
4774 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
4776 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
4778 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
4780 2011-05-07 Jan Hubicka <jh@suse.cz>
4782 * ipa-inline-transform.c (inline_call): Account when program size
4784 * ipa-inline.c (relative_time_benefit): New function.
4785 (edge_badness): Reorganize to be power 2 based; fix thinko when
4786 computing badness for negative growth; update comments to match
4787 reality; better dumps.
4789 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
4791 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
4792 type to bool and adjust comment.
4793 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
4794 (fold_mathfn_compare): Remove calls to global_bindings_p.
4795 (fold_inf_compare): Likewise.
4796 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
4797 * c-tree.h (global_bindings_p): Adjust prototype.
4798 * c-decl.c (global_bindings_p): Return bool and simplify.
4800 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
4802 PR tree-optimization/48837
4803 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
4804 when accumulator transformation is performed.
4806 2011-05-06 Jan Hubicka <jh@suse.cz>
4808 * i386.h (ix86_tune_indices): Add
4809 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
4810 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
4811 * i386.c (initial_ix86_tune_features): Add
4812 X86_SOFTARE_PREFETCHING_BENEFICIAL.
4813 (software_prefetching_beneficial_p): Remove predicate.
4814 (ix86_option_override_internal): Use new macro.
4816 2011-05-06 Jan Hubicka <jh@suse.cz>
4818 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
4820 2011-05-06 Jan Hubicka <jh@suse.cz>
4822 * cgraph.c (cgraph_add_thunk): Create real function node instead
4823 of alias node; finalize it and mark needed/reachale; arrange visibility
4824 to be right and add it into the corresponding same comdat group list.
4825 (dump_cgraph_node): Dump thunks.
4826 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
4827 cgraph_function_with_gimple_body_p,
4828 cgraph_first_function_with_gimple_body,
4829 cgraph_next_function_with_gimple_body): New functions.
4830 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
4832 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
4833 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
4834 * cgraphunit.c (cgraph_finalize_function): Only look into possible
4835 devirtualization when optimizing.
4836 (verify_cgraph_node): Verify thunks.
4837 (cgraph_analyze_function): Analyze thunks.
4838 (cgraph_mark_functions_to_output): Output thunks only in combination
4839 with function they are assigned to.
4840 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
4841 alias into normal node.
4842 (assemble_thunks): New functoin.
4843 (cgraph_expand_function): Use it.
4844 * lto-cgraph.c (lto_output_node): Stream thunks.
4845 (input_overwrite_node): Stream in thunks.
4846 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
4847 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
4848 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
4849 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
4850 (inline_analyze_function): Do not care about thunk jump functions.
4851 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
4852 * ipa-prop.c (ipa_prop_write_jump_functions): Use
4853 cgraph_function_with_gimple_body_p.
4854 * passes.c (do_per_function_toporder): Use
4855 cgraph_function_with_gimple_body_p.
4856 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
4857 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
4858 (function_called_by_processed_nodes_p): Likewise.
4860 2011-05-06 Joseph Myers <joseph@codesourcery.com>
4862 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
4863 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
4865 (mabi=): Replace with separate entries for mabi=altivec,
4866 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
4867 mabi=ieeelongdouble and mabi=ibmlongdouble.
4868 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
4869 check for -mabi=spe without SPE ABI support here.
4870 (rs6000_handle_option): Replace OPT_mabi_ handling with
4871 OPT_mabi_altivec and OPT_mabi_spe handling.
4873 2011-05-06 Cary Coutant <ccoutant@google.com>
4875 * dwarf2out.c (contains_subprogram_definition): New function.
4876 (should_move_die_to_comdat): Call it.
4878 2011-05-06 Jeff Law <law@redhat.com>
4880 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
4881 remove_ctrl_stmt_and_useless_edges.
4882 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
4883 (fixup_template_block, thread_single_edge): Likewise.
4884 (mark_threaded_blocks): Use THREAD_TARGET.
4886 2011-05-06 Alan Modra <amodra@gmail.com>
4889 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
4890 const0_rtx as the arg to the dummy __tls_get_addr libcall.
4892 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
4894 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
4895 constraint modifier to "r".
4897 2011-05-06 Joseph Myers <joseph@codesourcery.com>
4899 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
4900 fall through for OPT_mcmodel_.
4902 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4904 * config/s390/s390.c (s390_asm_trampoline_template): Comment
4906 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
4908 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4911 * config/arm/arm.opt (marm): Document it.
4912 (mthumb): Reject negative variant.
4914 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
4917 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
4918 Fix typo in "ccvt" variable name.
4920 2011-05-06 Tristan Gingold <gingold@adacore.com>
4923 * config/vms/vms-ar.c (main): Remove cwd variable.
4925 2011-05-06 Jakub Jelinek <jakub@redhat.com>
4928 * var-tracking.c (prepare_call_arguments): Move else before #endif.
4930 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
4932 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
4933 * gimplify.c (gimplify_switch_expr): Likewise.
4934 * omp-low.c (expand_omp_sections): Likewise.
4935 * tree-eh.c (lower_try_finally_switch): Likewise.
4936 (lower_eh_dispatch): Likewise.
4937 * tree.h (build_case_label): Declare.
4938 * tree.c (build_case_label): Define.
4940 2011-05-05 Jason Merrill <jason@redhat.com>
4943 * tree-inline.c (copy_tree_r): Use copy_statement_list.
4944 (copy_statement_list): Don't recurse.
4945 * stor-layout.c (copy_self_referential_tree_r): Don't allow
4948 2011-05-05 Joseph Myers <joseph@codesourcery.com>
4950 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
4951 through from -mfpu= handling.
4952 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
4954 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
4956 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
4959 2011-05-05 Steve Ellcey <sje@cup.hp.com>
4961 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
4963 (hppa[12]*-*-hpux11*): Ditto.
4964 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
4965 * config/ia64/hpux-unix2003.h: New.
4966 * config/pa/pa-hpux1131.opt: New.
4967 * config/pa/pa-hpux1131.h: New.
4968 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
4969 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
4970 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
4972 2011-05-05 Jakub Jelinek <jakub@redhat.com>
4975 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
4976 instead of mode as 3rd argument to recursive call.
4977 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
4978 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
4980 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
4981 don't give up if mode is Pmode and mem_mode is not VOIDmode.
4982 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
4983 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
4985 2011-05-05 Julian Brown <julian@codesourcery.com>
4987 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
4988 parenthesis in D-register case.
4990 2011-05-05 Joseph Myers <joseph@codesourcery.com>
4992 * opt-functions.awk (var_type_struct): Handle Enum options.
4993 * optc-gen.awk: Don't check range of variables of character type.
4994 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
4995 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
4996 rs6000_sdata_name, rs6000_explicit_options): Remove.
4997 (rs6000_option_override_internal): Check for -malign-power here.
4998 Use global_options_set instead of rs6000_explicit_options.
4999 (rs6000_parse_fpu_option): Remove.
5000 (rs6000_handle_option): Access variables via opts and opts_set
5001 pointers. Use error_at and warning_at. Add fall-through
5002 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
5003 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
5004 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
5005 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
5006 here. Don't use rs6000_parse_fpu_option.
5007 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
5008 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
5009 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
5011 (mspe): Use Var and Save.
5012 (mtraceback=): Use Enum and Var.
5013 (rs6000_traceback_type): New Enum and EnumValue entries.
5014 (mfloat-gprs=): Use Enum, Var and Save.
5015 (rs6000_float_gprs): New Enum and EnumValue entries.
5016 (mlong-double-): use Var and Save.
5017 (msched-costly-dep=, minsert-sched-nops=): Use Var.
5018 (malign-): Use Enum and Var.
5019 (rs6000_alignment_flags): New Enum and EnumValue entries.
5021 (fpu_type_t): New Enum and EnumValue entries.
5022 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
5023 global_options_set instead of rs6000_explicit_options.
5024 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
5025 global_options_set instead of rs6000_explicit_options.
5026 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
5027 global_options_set instead of rs6000_explicit_options.
5028 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
5029 global_options_set instead of rs6000_explicit_options.
5030 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
5031 global_options_set instead of rs6000_explicit_options.
5032 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
5033 global_options_set instead of rs6000_explicit_options.
5034 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
5036 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
5037 global_options_set instead of rs6000_explicit_options.
5038 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
5039 (rs6000_cmodel): New Enum and EnumValue entries.
5040 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
5041 global_options_set instead of rs6000_explicit_options.
5042 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
5043 (mtls-size=): Use Enum and Var.
5044 (rs6000_tls_size): New Enum and EnumValue entries.
5046 2011-05-05 Michael Matz <matz@suse.de>
5048 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
5049 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
5050 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
5051 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
5052 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
5053 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
5054 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
5055 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
5056 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
5057 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
5058 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
5059 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
5060 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
5061 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
5062 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
5063 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
5065 2011-05-05 Richard Guenther <rguenther@suse.de>
5067 * expmed.c (expand_variable_shift): Rename to ...
5068 (expand_shift_1): ... this. Take an expanded shift amount.
5069 For rotates recurse directly not building trees for the shift amount.
5070 (expand_variable_shift): Wrap around expand_shift_1.
5071 (expand_shift): Adjust.
5073 2011-05-05 Jakub Jelinek <jakub@redhat.com>
5075 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
5077 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
5079 * tree.h (get_pending_sizes): Remove prototype.
5080 (put_pending_size): Likewise.
5081 (put_pending_sizes): Likewise.
5082 * stor-layout.c (pending_sizes): Delete.
5083 (get_pending_sizes): Likewise.
5084 (put_pending_size): Likewise.
5085 (put_pending_sizes): Likewise.
5086 (variable_size): Do not call put_pending_size and tidy up.
5087 * function.h (struct function): Remove dont_save_pending_sizes_p.
5088 * lto-streamer-in.c (input_function): Do not stream it.
5089 * lto-streamer-out.c (output_function): Likewise.
5090 * tree-inline.c (initialize_cfun): Do not copy it.
5091 * c-decl.c (store_parm_decls): Do not set it.
5092 * omp-low.c (create_task_copyfn): Likewise.
5093 * tree-optimize.c (tree_rest_of_compilation): Likewise.
5095 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
5097 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
5099 (*movdf_internal): Ditto.
5100 (*movdf_internal_nointeger): Ditto.
5101 (*movsf_internal): Ditto.
5103 2011-05-05 Joseph Myers <joseph@codesourcery.com>
5105 * c-decl.c (finish_decl): Don't call get_pending_sizes.
5106 (grokparm): Add parameter expr. Pass it to grokdeclarator.
5107 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
5108 (c_variable_size): Remove.
5109 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
5110 call put_pending_sizes.
5111 (get_parm_info): Add parameter expr. Use it to set
5112 arg_info->pending_sizes.
5113 (store_parm_decls): Use arg_info->pending_sizes instead or calling
5115 * c-parser.c (c_parser_parms_declarator): Update call to
5116 c_parser_parms_list_declarator.
5117 (c_parser_parms_list_declarator): Take parameter expr. Update
5118 call to push_parm_decl. Update recursive call. Don't call
5119 get_pending_sizes. Update calls to get_parm_info.
5120 (c_parser_objc_method_definition): Update calls to
5121 c_parser_objc_method_decl and objc_start_method_definition.
5122 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
5123 (c_parser_objc_method_decl): Add parameter expr. Update call to
5125 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
5126 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
5127 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
5129 2011-05-05 Michael Hope <michael.hope@linaro.org>
5132 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
5135 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5137 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
5138 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
5139 (spu_output_mi_thunk): New function.
5141 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5143 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
5144 targetm.asm_out.print_operand.
5145 * config/sol2.c: Include target.h.
5147 2011-05-04 Jan Hubicka <jh@suse.cz>
5149 * ipa-inline.c (reset_edge_caches): New function.
5150 (update_caller_keys): Add check_inlinablity_for; do not
5151 reset edge caches; remove now unnecesary loop.
5152 (update_callee_keys): Add comments; reset node_growth_cache of callee.
5153 (update_all_callee_keys): Likewise.
5154 (inline_small_functions): Sanity check cache; update code
5157 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
5159 PR rtl-optimization/47612
5160 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
5161 as the last insn of the sequence to be moved.
5163 2011-05-04 Tobias Burnus <burnus@net-b.de>
5166 * doc/invoke.texi (Ofast): Document that it
5167 enables Fortran's -fno-protect-parens.
5169 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
5171 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
5173 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
5175 * stor-layout.c (variable_size): Do not issue errors.
5177 2011-05-04 Richard Guenther <rguenther@suse.de>
5179 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
5180 for array-ref indices.
5181 (tree_coverage_counter_addr): Likewise.
5182 (build_fn_info_type): Use size_int for index types.
5183 (build_gcov_info): Likewise.
5185 2011-05-04 Richard Guenther <rguenther@suse.de>
5187 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
5189 * c-typeck.c (really_start_incremental_init): Use bitsize_int
5190 for constructor indices.
5191 (push_init_level): Likewise.
5193 2011-05-04 Richard Guenther <rguenther@suse.de>
5195 * explow.c (promote_mode): Move variable declarations before code.
5197 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
5199 * tree.h (build_function_type_array): Declare.
5200 (build_varargs_function_type_array): Declare.
5201 (build_function_type_vec, build_varargs_function_type_vec): Define.
5202 * tree.c (build_function_type_array_1): New function.
5203 (build_function_type_array): New function.
5204 (build_varargs_function_type_array): New function.
5206 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
5208 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
5209 before setting STMT_VINFO_TYPE.
5211 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5213 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
5214 instead of spu_pass_by_reference.
5216 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5218 * calls.c (emit_library_call_value_1): Invoke
5219 promote_function_mode hook on libcall arguments.
5220 * explow.c (promote_function_mode, promote_mode): Handle TYPE
5221 argument being NULL.
5222 * targhooks.c (default_promote_function_mode): Lisewise.
5223 * config/s390/s390.c (s390_promote_function_mode): Likewise.
5224 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
5226 * doc/tm.texi: Document that TYPE argument might be NULL.
5228 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
5230 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
5232 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
5235 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
5237 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5239 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
5240 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
5242 * mips-tfile.c: ... here.
5243 Don't include coretypes.h, tm.h, filenames.h.
5244 (saber_stop): Remove definition and all calls.
5245 [__SABER__]: Remove.
5246 (__LINE__): Remove default.
5247 (Size_t, Ptrdiff_t): Remove definitions.
5248 Replace by size_t, ptrdiff_t.
5249 [!MIPS_DEBUGGING_INFO]: Remove.
5250 (SHASH_SIZE, THASH_SIZE): Remove defaults.
5251 (progname): Add const.
5253 Replace all uses by static.
5254 (ALIGN_SYMTABLE_OFFSET): Remove default.
5255 * mips-tdump.c: Don't include coretypes.h, tm.h.
5256 Remove !MIPS_IS_STAB guard.
5257 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
5258 $(TM_H), filenames.h dependencies.
5259 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
5261 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
5264 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
5265 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
5267 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
5270 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
5271 account and save/restore RETS.
5272 (PROFILE_BEFORE_PROLOGUE): Define.
5273 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
5274 the push insn to use predecrement.
5276 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
5279 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
5281 2011-05-04 Nick Clifton <nickc@redhat.com>
5283 * config/mn10300/mn10300.c: Include cfgloop.h.
5285 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
5286 Lcc or a FLcc insn into the instruction stream.
5287 (mn10300_block_contains_call): New function. Returns true if the
5288 given basic block contains a CALL insn.
5289 (mn10300_loop_contains_call_insn): New function. Returns true if
5290 the given loop contains a CALL insn.
5291 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
5292 to use the SETLB and Lcc or FLcc insns.
5293 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
5294 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
5295 * config/mn10300/mn10300.opt (msetlb): New option. Used to
5296 disable the SETLB optimization.
5297 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
5298 __SETLB__ or __NO_SETLB__.
5299 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
5300 (movsf_internal): Handle MDR register.
5301 (cmpsi): Make visible.
5302 (setlb): New pattern.
5304 (FLcc): New pattern.
5306 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
5309 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
5310 for reg<->xmm moves.
5311 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
5312 (vec_concatv2di_rex64_sse): Ditto.
5313 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
5314 (*vec_extractv2di_1_rex64): Ditto.
5317 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
5319 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
5321 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
5323 2011-05-04 Richard Guenther <rguenther@suse.de>
5325 * tree.h (int_const_binop): Remove notrunc argument.
5326 * fold-const.c (int_const_binop): Remove notrunc argument. Always
5327 create integer constants that are properly truncated.
5328 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
5329 (const_binop): Remove zero notrunc argument to int_const_binop.
5330 (size_binop_loc): Likewise.
5331 (fold_div_compare): Likewise.
5332 (maybe_canonicalize_comparison_1): Likewise.
5333 (fold_comparison): Likewise.
5334 (fold_binary_loc): Likewise.
5335 (multiple_of_p): Likewise.
5336 * expr.c (store_constructor): Likewise.
5337 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
5338 (maybe_fold_stmt_addition): Likewise.
5339 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
5340 * stor-layout.c (layout_type): Likewise.
5341 * tree-data-ref.c (tree_fold_divides_p): Likewise.
5342 * tree-sra.c (build_ref_for_offset): Likewise.
5343 (build_user_friendly_ref_for_offset): Likewise.
5344 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
5345 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
5346 * tree-ssa-loop-niter.c (inverse): Likewise.
5347 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
5348 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
5349 * tree-switch-conversion.c (check_range): Likewise.
5350 (build_constructors): Likewise.
5351 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
5352 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
5353 (extract_range_from_assert): Likewise.
5354 (vrp_int_const_binop): Likewise.
5355 (extract_range_from_binary_expr): Likewise.
5356 (extract_range_from_unary_expr): Likewise.
5357 (check_array_ref): Likewise.
5358 (find_case_label_range): Likewise.
5359 (simplify_div_or_mod_using_ranges): Likewise.
5360 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
5361 comparing case labels for merging.
5363 2011-05-03 Mark Wielaard <mjw@redhat.com>
5365 * dwarf2out.c (debug_str_hash_forced): Removed.
5366 (gen_label_for_indirect_string): Removed.
5367 (get_debug_string_label): Removed.
5368 (AT_string_form): Generate label directly.
5369 (output_indirect_string): Test indirect_string_node for
5370 DW_FORM_strp instead of checking label and refcount.
5371 (prune_indirect_string): Removed.
5372 (prune_unused_types): Don't check debug_str_hash_forced or
5373 call prune_indirect_string.
5375 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
5378 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
5380 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
5384 * combine.c (try_combine): Skip debug insns at m_split tests.
5386 2011-04-26 Mark Wielaard <mjw@redhat.com>
5389 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
5390 when info_section_emitted.
5392 2011-05-03 Joseph Myers <joseph@codesourcery.com>
5394 * config/mips/mips-opts.h: New.
5395 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
5397 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
5398 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
5399 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
5401 * config/mips/mips.h (enum mips_code_readable_setting): Move to
5403 (mips_abi, mips_code_readable): Don't declare.
5404 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
5405 (mabi=): Use Enum and Var.
5406 (mips_abi): New Enum and EnumValue entries.
5407 (mcode-readable=): Use Enum and Var.
5408 (mips_code_readable_setting): New Enum and EnumValue entries.
5409 (mr10k-cache-barrier=): Use Enum and Var.
5410 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
5412 2011-05-03 Jan Hubicka <jh@suse.cz>
5414 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
5415 replace hash by pointer map.
5416 (cgraph_node_set_element_def, cgraph_node_set_element,
5417 const_cgraph_node_set_element, varpool_node_set_element_def,
5418 varpool_node_set_element, const_varpool_node_set_element): Remove.
5419 (free_cgraph_node_set, free_varpool_node_set): New function.
5420 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
5421 * tree-emutls.c: Free varpool node set.
5422 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
5423 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
5424 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
5425 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
5426 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
5427 Move here from ipa.c; implement using pointer_map
5428 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
5429 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
5430 debug_cgraph_node_set, varpool_node_set_new,
5431 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
5432 dump_varpool_node_set, debug_varpool_node_set):
5433 Move to ipa-uitls.c.
5434 * passes.c (ipa_write_summaries): Update.
5436 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5438 From Mike Frysinger:
5439 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
5440 bf542/bf544/bf547/bf548/bf549.
5442 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
5444 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
5446 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5449 * config/bfin/bfin.md (MOVCC): New mode_macro.
5450 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
5451 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
5452 comments from generated assembly.
5454 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5457 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
5458 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
5459 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
5460 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
5461 * config/bfin/lib1funcs.asm (___muldi3): New function.
5463 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5465 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
5466 build_function_type_list instead of build_function_type.
5467 Rearrange initialization of `args' to do so.
5469 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5471 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
5472 instead of build_function_type.
5474 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5476 * config/rs6000/rs6000.c (spe_init_builtins): Call
5477 build_function_type_list instead of build_function_type.
5478 (paired_init_builtins, altivec_init_builtins): Likewise.
5479 (builtin_function_type): Likewise.
5481 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5483 * config/sh/sh.c (sh_media_init_builtins): Call
5484 build_function_type_list instead of build_function_type.
5486 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5488 * config/sparc/sparc.c (sparc_file_end): Call
5489 build_function_type_list instead of build_function_type.
5491 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5493 * config/alpha/alpha.c (alpha_init_builtins): Call
5494 build_function_type_list instead of build_function_type.
5496 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5498 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
5499 build_function_type_list instead of build_function_type.
5501 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5503 * config/iq2000/i2000.c (iq2000_init_builtins): Call
5504 build_function_type_list instead of build_function_type.
5505 Delete `endlink' variable.
5507 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5509 * config/avr/avr.c (avr_init_builtins): Call
5510 build_function_type_list instead of build_function_type.
5512 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5514 * config/picochip/picochip.c (picochip_init_builtins): Call
5515 build_function_type_list instead of build_function_type.
5516 Delete `endlink' variable.
5518 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5520 * config/bfin/bfin.c (bfin_init_builtins): Call
5521 build_function_type_list instead of build_function_type.
5523 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5526 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
5527 that's not CONST_INT. Seemingly redundant check is due to PR39768.
5529 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5532 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
5533 libbffastfp overrides libgcc when -mfast-fp.
5535 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5537 Originally from Bernd Schmidt
5538 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
5539 * config/bfin/bfin.c (override_options): Test it and error if
5542 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5544 Originally From Bernd Schmidt
5545 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
5548 2011-05-03 Jeff Law <law@redhat.com>
5550 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
5551 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
5552 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
5553 than accessing AUX field directly. Free the AUX field before
5555 (thread_block, thread_through_loop_header): Likewise.
5556 (thread_single_edge, mark_threaded_blocks): Likewise.
5557 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
5558 (register_jump_thread): Do not attempt to thread to a NULL edge.
5560 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
5562 * function.c (init_function_start): Call decide_function_section.
5563 * varasm.c (decide_function_section): New function.
5564 (assemble_start_function): When not using
5565 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
5566 or first_function_block_is_cold.
5567 * rtl.h (decide_function_section): Declare.
5569 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
5570 Jakub Jelinek <jakub@redhat.com>
5573 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
5574 only succeed if req_mode is the same as set_mode.
5576 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
5578 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
5579 * genemit.c (gen_exp): Handle RETURN.
5580 * emit-rtl.c (verify_rtx_sharing): Likewise.
5581 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
5582 * rtl.c (copy_rtx): RETURN is shared.
5583 * rtl.h (enum global_rtl_index): Add GR_RETURN.
5585 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
5586 * config/s390/s390.c (s390_emit_epilogue): Likewise.
5587 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
5588 * config/cris/cris.c (cris_expand_return): Likewise.
5589 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
5590 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
5591 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
5592 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
5593 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
5595 * config/v850/v850.c (expand_epilogue): Likewise.
5596 * config/bfin/bfin.c (bfin_expand_call): Likewise.
5597 * config/arm/arm.md (epilogue): Likewise.
5598 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
5599 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
5600 variable to ret_reg.
5602 2011-05-03 Richard Guenther <rguenther@suse.de>
5605 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
5606 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
5607 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
5609 2011-05-03 Richard Guenther <rguenther@suse.de>
5611 * c-decl.c (grokdeclarator): Instead of looking at
5612 TREE_OVERFLOW check if the constant fits in the index type.
5614 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
5616 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
5617 (vec_store_lanes<mode><mode>): Likewise.
5619 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
5621 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
5622 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
5623 convert_optab_index values.
5624 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
5625 * genopinit.c (optabs): Initialize the new optabs.
5626 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
5627 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
5628 (expand_STORE_LANES): New functions.
5629 * tree.h (build_array_type_nelts): Declare.
5630 * tree.c (build_array_type_nelts): New function.
5631 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
5632 (vect_model_load_cost): Likewise.
5633 (vect_store_lanes_supported, vect_load_lanes_supported)
5634 (vect_record_strided_load_vectors): Declare.
5635 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
5636 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
5637 (vect_transform_strided_load): Split out statement recording into...
5638 (vect_record_strided_load_vectors): ...this new function.
5639 * tree-vect-stmts.c (create_vector_array, read_vector_array)
5640 (write_vector_array, create_array_ref): New functions.
5641 (vect_model_store_cost): Add store_lanes_p argument.
5642 (vect_model_load_cost): Add load_lanes_p argument.
5643 (vectorizable_store): Try to use store-lanes functions for
5645 (vectorizable_load): Likewise load-lanes and loads.
5646 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
5647 to vect_model_store_cost.
5648 (vect_build_slp_tree): Likewise vect_model_load_cost.
5650 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
5652 * hooks.h (hook_bool_mode_uhwi_false): Declare.
5653 * hooks.c (hook_bool_mode_uhwi_false): New function.
5654 * target.def (array_mode_supported_p): New hook.
5655 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
5656 * doc/tm.texi: Regenerate.
5657 * stor-layout.c (mode_for_array): New function.
5658 (layout_type): Use it.
5659 * config/arm/arm.c (arm_array_mode_supported_p): New function.
5660 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
5662 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
5665 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
5666 for -fstack-check if the size to allocate is negative.
5668 2011-05-02 Lawrence Crowl <crowl@google.com>
5670 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
5671 (timevar_cond_start): New for starting a timer only when it is not
5673 (timevar_cond_stop): New for stopping a timer when it was not already
5676 * timevar.c (timevar_stop): Enable start/stop timers to start again.
5677 (timevar_cond_start): New as above.
5678 (timevar_cond_stop): New as above.
5680 * timevar.def: Add start/stop timers for compiler phases,
5681 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
5682 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
5683 and TV_PHASE_FINALIZE.
5684 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
5685 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
5686 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
5687 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
5688 Make unused TV_OVERLOAD into a start/stop timer.
5690 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
5691 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
5692 to indicate that they are start/stop timers.
5694 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
5695 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
5696 Move initialization to do_compile.
5697 (do_compile): Add initialization from above.
5698 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
5700 * c-decl.c (c_write_global_declarations): Add start/stop of
5701 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
5703 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
5704 or TV_PARSE_INLINE, as appropriate.
5705 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
5706 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
5708 2011-05-02 Jason Merrill <jason@redhat.com>
5711 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
5713 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
5716 * c-decl.c (finish_decl): Only create a composite if the types are
5719 2011-05-02 Joseph Myers <joseph@codesourcery.com>
5721 * config/fr30/fr30-protos.h (Mmode): Don't define.
5722 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
5723 definition where used.
5724 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
5725 define. Expand definitions where used.
5726 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
5727 Expand definitions where used.
5728 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
5729 rx_function_arg, rx_function_arg_advance,
5730 rx_function_arg_boundary): Expand definitions of those macros.
5731 * config/v850/v850-protos.h (Mmode): Don't define. Expand
5732 definition where used.
5734 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
5736 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
5738 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
5739 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
5740 with *movv2sf_internal_rex64_avx.
5741 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
5742 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
5743 Use %v prefix in insn mnemonic to handle TARGET_AVX.
5744 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
5745 "vex" in "prefix" attribute calculation.
5746 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
5748 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
5751 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
5752 inputs match the output.
5754 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
5757 * config/m68k/m68k.c (m68k_expand_prologue): Set
5758 current_function_static_stack_size.
5760 2011-05-02 Jan Hubicka <jh@suse.cz>
5762 * lto-streamer.c (lto_streamer_cache_insert_1,
5763 lto_streamer_cache_lookup, lto_streamer_cache_create,
5764 lto_streamer_cache_delete): Use pointer map instead of hashtable.
5765 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
5767 2011-05-02 Joseph Myers <joseph@codesourcery.com>
5769 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
5770 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
5771 config/m68k/t-opts: New files.
5772 * config/m68k/m68k-tables.opt: New file (generated).
5773 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
5774 extra_options and m68k/t-opts to tmake_file.
5775 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
5776 (all_isas): Initialize using m68k-isas.def.
5777 (all_microarchs): Initialize using m68k-microarchs.def.
5778 (m68k_find_selection): Remove.
5779 (m68k_handle_option): Don't assert that global structures are in
5780 use. Use error_at. Access variables via opts pointer. Don't
5781 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
5782 directly for -m68020-40 and -m68020-60.
5783 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
5784 m68k_tune_entry here.
5785 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
5787 (m68k_library_id_string): Remove declaration.
5788 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
5789 (m68k_library_id_string): New Variable.
5790 (march=, mcpu=, mtune=): Use Enum and Var.
5792 2011-05-02 Richard Guenther <rguenther@suse.de>
5794 * varasm.c (output_constructor_regular_field): Compute zero-based
5795 index with double-ints. Make sure to ICE instead of producing
5797 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
5798 in asserts. Properly use a signed type.
5800 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
5802 * config/i386/sse.md (V): New mode iterator.
5803 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
5805 (V_256): Rename from AVX256MODE.
5806 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
5807 condition to all users.
5809 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
5810 condition to all users.
5811 (VF_128): Make V4SF mode unconditional.
5812 (VF_256): Rename from AVX256MODEF2P.
5813 (VI4F_128): Rename from SSEMODE4S.
5814 (VI8F_128): Rename from SSEMODE2D.
5815 (VI4F_256): Rename from AVX256MODE8P.
5816 (VI8F_256): Rename from AVX256MODE4P.
5817 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
5818 (ssescalarmodesuffix): Remove SF and DF modes.
5819 (SSEMODE124): Remove.
5820 (SSEMODE1248): Ditto.
5821 (SSEMODEF2P): Ditto.
5822 (AVXMODEF2P): Ditto.
5823 (AVXMODEFDP): Ditto.
5824 (AVXMODEFSP): Ditto.
5825 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
5827 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
5829 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
5830 xop_pcmov_<mode>256. Use V mode iterator.
5832 Adjust RTX patterns globally for renamed mode attributes.
5834 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5836 * haifa-sched.c (sched_emit_insn): Emit insn before first
5837 non-scheduled insn. Inform back-end about new insn. Add
5838 new insn to scheduled_insns list.
5840 2011-05-02 Richard Guenther <rguenther@suse.de>
5842 PR tree-optimization/48822
5843 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
5844 (process_scc): Indicate which iteration we start.
5846 2011-05-02 Jan Hubicka <jh@suse.cz>
5848 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
5849 (lto_section_overrun): New.
5850 * lto-section-out.c (append_block): Rename to ...
5851 (lto_append_block): ... this one; export.
5852 (lto_output_1_stream): Move lto lto-streamer.h
5853 (lto_output_data_stream): Update.
5854 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
5855 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
5858 2011-05-02 Richard Guenther <rguenther@suse.de>
5860 * tree.c (tree_code_counts): New global array.
5861 (record_node_allocation_statistics): Count individual tree codes.
5862 (dump_tree_statistics): Dump individual code stats.
5864 2011-05-01 Jan Hubicka <jh@suse.cz>
5866 * ipa-inline.c (caller_growth_limits): Fix thinko when
5867 looking for largest stack frame.
5868 * ipa-inline.h (dump_inline_summary): Declare.
5869 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
5871 (dump_inline_summary): Export.
5872 (debug_inline_summary): Declare as DEBUG_FUNCTION.
5874 2011-05-01 Anatoly Sokolov <aesok@post.ru>
5876 * reginfo.c (memory_move_cost): Change rclass argument type form
5877 'enum reg_class' to reg_class_t.
5878 * reload.h (memory_move_cost): Update prototype.
5879 * postreload.c reload_cse_simplify_set): Change type dclass var to
5881 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
5883 (ira_allocate_and_set_costs): Change aclass argument type form
5884 'enum reg_class' to reg_class_t.
5885 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
5886 Change aclass argument type to reg_class_t.
5887 (update_conflict_hard_reg_costs): Change type aclass and pref vars
5889 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
5890 memory_move_cost call.
5892 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
5893 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
5894 Change type tmp var to reg_class_t.
5896 2011-04-30 Jan Hubicka <jh@suse.cz>
5898 * ipa-inline.c (can_inline_edge_p): Disregard limits when
5899 inlining into function with flatten attribute.
5900 (want_inline_small_function_p): Be more realistic about inlining
5901 cold calls where callee size grows.
5903 2011-04-30 Jan Hubicka <jh@suse.cz>
5905 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
5908 2011-04-30 Anatoly Sokolov <aesok@post.ru>
5910 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
5911 PRINT_OPERAND_PUNCT_VALID_P): Remove.
5912 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
5913 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
5914 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
5915 (print_operand): Rename to...
5916 (sparc_print_operand): ...this. Make static. Adjust
5917 sparc_print_operand function call.
5918 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
5921 2011-04-30 Jan Hubicka <jh@suse.cz>
5924 * ipa-inline.c (early_inliner): Disable when doing late
5925 addition of function.
5927 2011-04-30 Jakub Jelinek <jakub@redhat.com>
5929 * dwarf2out.c (get_address_mode): New inline.
5930 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
5931 if not dwarf_strict emit
5932 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
5933 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
5934 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
5935 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
5936 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
5937 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
5938 mem_loc_descriptor callers.
5939 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
5940 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
5941 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
5942 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
5943 (base_types): New variable.
5944 (get_base_type_offset, calc_base_type_die_sizes,
5945 base_type_for_mode, mark_base_types, base_type_cmp,
5946 move_marked_base_types): New functions.
5947 (calc_die_sizes): Assert that die_offset is 0 or equal to
5949 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
5950 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
5951 callers. If not dwarf_strict, call mem_loc_descriptor even for
5952 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
5953 (gen_subprogram_die): Don't give up on call site parameters
5954 with non-integral or large integral modes. Adjust
5955 mem_loc_descriptor callers.
5956 (prune_unused_types): Call prune_unused_types_mark on base_types
5958 (resolve_addr): Call mark_base_types.
5959 (dwarf2out_finish): Call move_marked_base_types.
5961 PR tree-optimization/48809
5962 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
5964 (gen_inbound_check): Don't compute index_expr - range_min in utype
5965 again, instead reuse SSA_NAME initialized in build_arrays.
5966 Remove two useless gsi_for_stmt calls.
5968 2011-04-29 Jeff Law <law@redhat.com>
5970 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
5972 2011-04-29 Martin Jambor <mjambor@suse.cz>
5974 * cgraph.h (cgraph_postorder): Remove declaration.
5975 * ipa-utils.h (ipa_free_postorder_info): Declare.
5976 (ipa_reverse_postorder): Likewise.
5977 * cgraphunit.c: Include ipa-utils.h.
5978 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
5979 * ipa-inline.c: Include ipa-utils.h.
5980 (ipa_inline): Update call to ipa_reverse_postorder.
5981 * ipa-pure-const.c (propagate_pure_const): Update call to
5982 ipa_reduced_postorder and ipa_print_order. Call
5983 ipa_free_postorder_info to clean up.
5984 (propagate_nothrow): Likewise.
5985 * ipa-reference.c (propagate): Removed a useless call to
5986 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
5987 and ipa_print_order. Call ipa_free_postorder_info to clean up.
5988 * ipa.c: Include ipa-utils.h.
5989 (ipa_profile): Update call to ipa_reverse_postorder.
5990 (cgraph_postorder): Moved to...
5991 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
5992 (ipa_utils_print_order): Renamed to ipa_print_order.
5993 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
5995 (ipa_free_postorder_info): New function.
5996 * passes.c: Include ipa-utils.h.
5997 (do_per_function_toporder): Update call to ipa_reverse_postorder.
5998 (ipa_write_summaries): Likewise.
5999 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
6000 (cgraphunit.o): Likewise.
6002 (ipa-inline.o): Likewise.
6004 2011-04-29 Jan Hubicka <jh@suse.cz>
6006 * gcc.dg/tree-ssa/inline-10.c: New testcase.
6007 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
6008 * ipa-inline.h (clause_t): Turn into unsigned int.
6009 * ipa-inline-analysis.c (add_clause): Do more simplification.
6010 (and_predicates): Shortcut more cases.
6011 (predicates_equal_p): Move forward; check that clauses are properly
6013 (or_predicates): Shortcut more cases.
6014 (edge_execution_predicate): Rewrite as...
6015 (set_cond_stmt_execution_predicate): ... this function; handle
6016 __builtin_constant_p.
6017 (set_switch_stmt_execution_predicate): New .
6018 (compute_bb_predicates): New.
6019 (will_be_nonconstant_predicate): Update TODO.
6020 (estimate_function_body_sizes): Use compute_bb_predicates
6021 and free them later, always try to estimate if stmt is constant.
6022 (estimate_time_after_inlining, estimate_size_after_inlining):
6023 Gracefully handle optimized out edges.
6024 (read_predicate): Fix off by one error.
6026 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
6028 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
6030 2011-04-27 Xinliang David Li <davidxl@google.com>
6032 * tree-profile.c (init_ic_make_global_vars): Set
6033 tls attribute on ic vars.
6034 * coverage.c (coverage_end_function): Initialize
6035 function_list with zero.
6037 2011-04-29 Richard Guenther <rguenther@suse.de>
6039 * builtins.c (fold_builtin_classify_type): Use integer_type_node
6040 for the type of the result.
6041 (fold_builtin_isascii): Likewise.
6042 (fold_builtin_toascii): Use integer_type_node where appropriate.
6043 (fold_builtin_logb): Likewise.
6044 (fold_builtin_frexp): Likewise.
6045 (fold_builtin_strstr): Likewise.
6046 (fold_builtin_strpbrk): Likewise.
6047 (fold_builtin_fputs): Likewise.
6048 (fold_builtin_sprintf): Likewise.
6049 (fold_builtin_snprintf): Likewise.
6050 (fold_builtin_printf): Likewise.
6051 (do_mpfr_remquo): Use a proper type for the assigned constant.
6052 (do_mpfr_lgamma_r): Likewise.
6053 * dwarf2out.c (resolve_one_addr): Use size_int.
6054 * except.c (init_eh): Likewise.
6055 (assign_filter_values): Use integer_type_node for filter values.
6056 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
6058 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
6059 for EH region numbers.
6060 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
6061 for the shift amount.
6063 2011-04-29 Richard Guenther <rguenther@suse.de>
6065 * expr.h (expand_shift): Rename to ...
6066 (expand_variable_shift): ... this.
6067 (expand_shift): Take a constant shift amount.
6068 * expmed.c (expand_shift): Rename to ...
6069 (expand_variable_shift): ... this.
6070 (expand_shift): New wrapper around expand_variable_shift.
6071 * expr.c (convert_move, emit_group_load_1, emit_group_store,
6072 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
6073 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
6074 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
6075 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
6076 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
6077 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
6078 emit_store_flag_1, emit_store_flag): Likewise.
6079 * builtins.c (expand_builtin_signbit): Likewise.
6080 * calls.c (load_register_parameters): Likewise.
6081 * function.c (assign_parm_setup_block): Likewise.
6082 * lower-subreg.c (resolve_shift_zext): Likewise.
6083 * optabs.c (widen_bswap, expand_abs_nojump,
6084 expand_one_cmpl_abs_nojump, expand_float): Likewise.
6085 * spu/spu.c (spu_expand_extv): Likewise.
6086 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
6088 2011-04-29 Richard Guenther <rguenther@suse.de>
6090 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
6091 for the remapped region number.
6092 * predict.c (build_predict_expr): Use integer_type_node for the
6094 * fold-const.c (fold_binary_loc): Use integer_type_node for
6095 the shift amount. Use a proper type for the PLUS_EXPR operand.
6097 2011-04-29 Michael Matz <matz@suse.de>
6099 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
6100 other trees that just builtins.
6101 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
6103 2011-04-29 Richard Guenther <rguenther@suse.de>
6105 * tree-nested.c (get_trampoline_type): Use size_int.
6106 (get_nl_goto_field): Likewise.
6107 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
6109 (lower_eh_constructs_2): Likewise.
6110 (lower_resx): Likewise.
6111 (lower_eh_dispatch): Likewise.
6112 * tree-mudflap.c (mf_build_string): Use size_int.
6113 (mudflap_register_call): Use integer_type_node for the flag.
6114 (mudflap_enqueue_constant): Use size_int.
6115 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
6116 instead of rebuilding it.
6118 2011-04-29 Richard Guenther <rguenther@suse.de>
6120 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
6121 Handle OBJ_TYPE_REF.
6122 (find_func_aliases_for_call): Use it more consistently.
6124 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
6126 * haifa-sched.c (last_nondebug_scheduled_insn): New.
6127 (rank_for_schedule): Use it.
6128 (schedule_block): Set it.
6130 2011-04-28 David Li <davidxl@google.com>
6132 * tree.c (crc32_string): Use crc32_byte.
6133 (crc32_byte): New function.
6134 * tree.h (crc32_byte): New function.
6135 * gcov.c (read_graph_file): Handle new cfg_cksum.
6136 (read_count_file): Ditto.
6137 * profile.c (instrument_values): Ditto.
6138 (get_exec_counts): Ditto.
6139 (read_profile_edge_counts): Ditto.
6140 (compute_branch_probabilities): Ditto.
6141 (compute_value_histograms): Ditto.
6142 (branch_prob): Ditto.
6143 (end_branch_prob): Ditto.
6144 * coverage.c (read_counts_file): Ditto.
6145 (get_coverage_counts): Ditto.
6146 (tree_coverage_counter_addr): Ditto.
6147 (coverage_checksum_string): Ditto.
6148 (coverage_begin_output): Ditto.
6149 (coverage_end_function): Ditto.
6150 (build_fn_info_type): Ditto.
6151 (build_fn_info_value): Ditto.
6152 * libgcov.c (gcov_exit): Ditto.
6153 * gcov-dump.c (tag_function): Ditto.
6154 (compute_checksum): Remove.
6156 2011-04-29 Alan Modra <amodra@gmail.com>
6158 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
6159 unspec plus offset. Tidy macho code.
6161 2011-04-29 Martin Jambor <mjambor@suse.cz>
6163 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
6164 node instead of a decl. Update all callers.
6165 * cgraph.h: Update declaration.
6167 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
6169 PR tree-optimization/48765
6170 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
6171 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
6172 to indicate if loop aware SLP is being used. Scan the statements
6173 and update the vectorization factor according to the type of
6174 vectorization before statement analysis.
6175 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
6176 pass it to vect_analyze_loop_operations.
6177 (vectorizable_reduction): Set number of copies to 1 in case of pure
6179 * tree-vect-stmts.c (vectorizable_conversion,
6180 vectorizable_assignment, vectorizable_shift,
6181 vectorizable_operation, vectorizable_type_demotion,
6182 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
6184 (vectorizable_condition): Move the check that it is not SLP
6185 vectorization before the number of copies check.
6186 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
6187 to vectorize the loop using SLP.
6189 2011-04-28 Jakub Jelinek <jakub@redhat.com>
6192 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
6195 2011-04-28 Joseph Myers <joseph@codesourcery.com>
6197 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
6198 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
6199 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
6200 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
6201 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
6203 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
6204 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6205 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6206 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6207 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6208 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
6210 * config/i386/linux.h (REG_NAME): Don't define.
6211 * config/i386/linux64.h (REG_NAME): Don't define.
6212 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
6213 Undefine before defining.
6215 2011-04-28 Jan Hubicka <jh@suse.cz>
6217 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
6218 nonconstant_names array.
6219 (estimate_function_body_sizes): Build nonconstant_names array; handle
6220 BUILT_IN_CONSTANT_P.
6222 2011-04-28 Richard Guenther <rguenther@suse.de>
6226 2011-04-28 Richard Guenther <rguenther@suse.de>
6228 * tree-ssa-structalias.c (solve_constraints): Build succ graph
6229 as late as possible.
6231 2011-04-28 Richard Guenther <rguenther@suse.de>
6233 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
6234 (debug_constraint): Do it here.
6235 (dump_constraints): And here.
6236 (rewrite_constraints): And here.
6237 (dump_constraint_edge): Remove.
6238 (dump_constraint_graph): Rewrite to produce DOT output.
6239 (solve_constraints): Build succ graph as late as possible.
6240 Dump constraint graphs before and after solving.
6242 2011-04-28 Richard Guenther <rguenther@suse.de>
6244 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
6245 New function split out from ...
6246 (find_func_aliases): ... here. Call it.
6247 (find_func_aliases_for_call): Likewise.
6249 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
6251 * internal-fn.h (internal_fn_name_array): Declare.
6252 (internal_fn_flags_array): Likewise.
6254 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
6256 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
6257 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
6259 (ssemodefsuffix): Remove.
6260 (ssevecmodesuffix): New mode attribute.
6261 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
6262 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
6263 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
6264 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
6265 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
6266 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
6267 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
6268 ssemodesuffix mode attribute.
6269 (float splitters): Use ssevecmodesuffix mode attribute.
6270 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
6271 (sseinsmode): Rename from avxvecmode.
6272 (avxsizesuffix): Rename from avxmodesuffix.
6273 (sseintvecmode): Rename from avxpermvecmode.
6274 (ssedoublevecmode): Rename from ssedoublesizemode.
6275 (ssehalfvecmode): Rename from avxhalfvecmode.
6276 (ssescalarmode): Rename from avxscalarmode.
6277 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
6278 templates for ssemodesuffix mode attribute.
6279 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
6282 Adjust RTX patterns globally for renamed mode attributes.
6284 2011-04-27 Jan Hubcika <jh@suse.cz>
6286 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
6287 * ipa-inline-analysis.c: Include alloc-pool.h.
6288 (edge_predicate_pool): New.
6289 (trye_predicate_p): New function
6290 (false_predicate_p): New function.
6291 (add_clause): Sanity check that false clauses are "optimized";
6292 never add clauses to predicate that is already known to be false.
6293 (and_predicate): Use flase_predicate_p.
6294 (evaulate_predicate): Rename to ...
6295 (evaluate_predicate): ... this one; update all callers; assert
6296 that false is not listed among possible truths.
6297 (dump_predicate): Use true_predicate_p.
6298 (account_size_time): Use false_predicate_p.
6299 (evaulate_conditions_for_edge): Rename to ...
6300 (evaluate_conditions_for_edge) ... this one.
6301 (edge_set_predicate): New function.
6302 (inline_edge_duplication_hook): Duplicate edge predicates.
6303 (inline_edge_removal_hook): Free edge predicates.
6304 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
6305 (dump_inline_summary): Update.
6306 (estimate_function_body_sizes): Set edge predicates.
6307 (estimate_calls_size_and_time): Handle predicates.
6308 (estimate_callee_size_and_time): Update.
6309 (remap_predicate): Add toplev_predicate; update comment.
6310 (remap_edge_predicates): New function.
6311 (inline_merge_summary): Compute toplev predicate; update.
6312 (read_predicate): New function.
6313 (read_inline_edge_summary): Use it.
6314 (inline_read_section): Likewise.
6315 (write_predicate): New function.
6316 (write_inline_edge_summary): Use it.
6317 (inline_write_summary): Likewise.
6318 (inline_free_summary): Free alloc pool and edge summary vec.
6320 2011-04-27 Richard Guenther <rguenther@suse.de>
6322 * tree-ssa-structalias.c (changed_count): Remove.
6323 (changed): Use a bitmap.
6324 (unify_nodes): Adjust.
6325 (do_sd_constraint): Likewise.
6326 (do_ds_constraint): Likewise.
6327 (do_complex_constraint): Likewise.
6328 (solve_graph): Likewise.
6330 2011-04-27 Jan Hubicka <jh@suse.cz>
6332 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
6334 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
6336 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
6337 (avx_vperm2f128_*_operand): Ditto.
6338 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
6339 Use avx_vpermilp_parallel in insn condition.
6340 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
6341 Use avx_vperm2f128_parallel in insn condition.
6343 2011-04-27 Richard Guenther <rguenther@suse.de>
6345 * Makefile.in (tree-ssa-structalias.o): Remove
6346 gt-tree-ssa-structalias.h dependency.
6347 (GTFILES): Remove tree-ssa-structalias.c.
6348 * tree.c (allocate_decl_uid): New function.
6349 (make_node_stat): Use it.
6350 (copy_node_stat): Likewise.
6351 * tree.h (allocate_decl_uid): Declare.
6352 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
6353 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
6354 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
6355 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
6356 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
6357 (struct heapvar_map): Likewise.
6358 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
6359 heapvar_insert): Likewise.
6360 (make_heapvar_for): Rename to ...
6361 (make_heapvar): ... this. Simplify.
6362 (fake_var_decl_obstack): New global var.
6363 (build_fake_var_decl): New function.
6364 (make_constraint_from_heapvar): Adjust.
6365 (handle_lhs_call): Likewise.
6366 (create_function_info_for): Likewise.
6367 (intra_create_variable_infos): Likewise.
6368 (init_alias_vars): Allocate fake_var_decl_obstack.
6369 (init_alias_heapvars, delete_alias_heapvars): Remove.
6370 (compute_points_to_sets): Do not call init_alias_heapvars.
6371 (ipa_pta_execute): Likewise.
6372 (delete_points_to_sets): Free fake_var_decl_obstack.
6374 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6376 * config/spu/divmovti4.c (union qword_UTItype): New data type.
6377 (si_from_UTItype, si_to_UTItype): New functions.
6378 (__udivmodti4): Use them to implement type-punning.
6379 * config/spu/multi3.c (union qword_TItype): New data type.
6380 (si_from_TItype, si_to_TItype): New functions.
6381 (__multi3): Use them to implement type-punning.
6383 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6385 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
6387 2011-04-27 Jan Hubicka <jh@suse.cz>
6389 * ipa-prop.c (function_insertion_hook_holder): New holder.
6390 (ipa_add_new_function): New function.
6391 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
6392 Register/deregister holder.
6394 2011-04-27 Richard Guenther <rguenther@suse.de>
6396 PR tree-optimization/48772
6397 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
6399 2011-04-27 Richard Guenther <rguenther@suse.de>
6401 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
6402 TARGET_MEM_REF handling.
6404 2011-04-27 Nick Clifton <nickc@redhat.com>
6406 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
6407 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
6408 (REG_CLASS_NAMES): Likewise.
6409 (REG_CLASS_CONTENTS): Likewise.
6410 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
6411 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
6412 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
6413 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
6414 (EVEN_REGS): New macro. Alias for QUAD_REGS.
6415 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
6416 duplicate register classes.
6417 (frv_class_likely_spilled_p): Likewise.
6418 (frv_register_move_cost): Likewise.
6420 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
6421 end of the regno_reg_class array.
6423 2011-04-27 Jakub Jelinek <jakub@redhat.com>
6426 * c-typeck.c (build_binary_op): Don't wrap arguments if
6427 int_operands is true.
6429 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
6432 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
6433 targetm.calls.must_pass_in_stack for void type.
6435 2011-04-26 Jan Hubicka <jh@suse.cz>
6437 * cgraphbuild.c (build_cgraph_edges): Update call
6438 of cgraph_create_edge and cgraph_create_indirect_edge.
6439 * cgraph.c (cgraph_create_edge_including_clones,
6440 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
6441 cgraph_update_edges_for_call_stmt_node): Do not take nest
6442 argument; do not initialize call_stmt_size/time.
6443 (dump_cgraph_node): Do not dump nest.
6444 (cgraph_clone_edge): Do not take loop_nest argument;
6445 do not propagate it; do not clone call_stmt_size/time.
6446 (cgraph_clone_node): Likewise.
6447 (cgraph_create_virtual_clone): Update.
6448 * cgraph.h (struct cgraph_edge): Remove
6449 call_stmt_size/call_stmt_time/loop_nest.
6450 (cgraph_create_edge, cgraph_create_indirect_edge,
6451 cgraph_create_edge_including_clones, cgraph_clone_node): Update
6453 * tree-emutls.c (gen_emutls_addr): Update.
6454 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
6455 loop_nest; handle indirect calls, too.
6456 (clone_inlined_nodes): Do not care about updating inline summaries.
6457 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
6458 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
6459 stream call_stmt_size/call_stmt_time/loop_nest.
6460 * ipa-inline.c (edge_badness): Update.
6461 (ipa_inline): dump summaries after inlining.
6462 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
6464 (inline_edge_summary): New function.
6465 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
6466 (inline_edge_removal_hook): Handle edge summaries.
6467 (inline_edge_duplication_hook): New hook.
6468 (inline_summary_alloc): Alloc hooks.
6469 (initialize_growth_caches): Do not register removal hooks.
6470 (free_growth_caches); Do not free removal hook.
6471 (dump_inline_edge_summary): New function.
6472 (dump_inline_summary): Use it.
6473 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
6474 (inline_update_callee_summaries): New function.
6475 (inline_merge_summary): Use it.
6476 (do_estimate_edge_time, do_estimate_edge_growth): Update.
6477 (read_inline_edge_summary): New function.
6478 (inline_read_section): Use it.
6479 (write_inline_edge_summary): New function.
6480 (inline_write_summary): Use it.
6481 (inline_free_summary): Free edge new holders.
6482 * tree-inline.c (copy_bb): Update.
6484 2011-04-26 Jason Merrill <jason@redhat.com>
6486 * tree-eh.c (lower_try_finally_switch): Create the label along with
6487 the CASE_LABEL_EXPR.
6489 2011-04-26 David S. Miller <davem@davemloft.net>
6490 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6492 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
6493 * configure: Regenerate.
6495 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
6498 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
6500 (VEC_reduc): New code iterator and splitters for vector reduction.
6501 (VEC_reduc_name): Ditto.
6502 (VEC_reduc_rtx): Ditto.
6503 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
6504 (reduc_<VEC_reduc_name>_v4sf): Ditto.
6506 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
6507 support for extracting SF on VSX.
6509 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
6510 generating xscvspdp.
6511 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
6512 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
6513 double add, minimum, maximum vector reduction.
6514 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
6515 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
6516 optimize double vector reduction.
6517 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
6519 2011-04-26 Joseph Myers <joseph@codesourcery.com>
6521 * config/fr30/fr30.h (inhibit_libc): Don't define.
6522 * config/m32r/m32r-protos.h: Correct comment.
6523 * config/v850/v850.h (GHS_default_section_names,
6524 GHS_current_section_names): Use tree, not union tree_node *.
6526 2011-04-26 Xinliang David Li <davidxl@google.com>
6528 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
6529 * c-family/c-opts.c (c_common_handle_option): Set
6530 warn_maybe_uninitialized.
6531 * opts.c (common_handle_option): Ditto.
6532 * common.opt: New option.
6533 * tree-ssa.c (warn_uninit): Add one more parameter.
6534 (warn_uninitialized_var): Pass warning code.
6535 * tree-flow.h: Interface change.
6537 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6539 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
6540 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
6541 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
6543 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6545 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
6546 * config/mips/mips.opt (mmips-tfile): Remove.
6548 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
6549 mips-tdump reference to ...
6550 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
6551 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
6552 reference by Tru64 UNIX.
6554 2011-04-26 Jakub Jelinek <jakub@redhat.com>
6557 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
6558 is error_mark_node, set value to NULL.
6560 PR tree-optimization/48734
6561 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
6562 if return value from maybe_fold_*_comparsions isn't something
6563 the code is prepared to handle.
6565 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
6567 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
6569 (ext_QIreg_nomode_operands): Remove.
6570 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
6574 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
6576 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
6578 2011-04-26 Richard Guenther <rguenther@suse.de>
6580 * c-typeck.c (build_unary_op): Do not expand array-refs via
6581 pointer arithmetic. Only adjust qualifiers for function types.
6583 2011-04-26 Richard Guenther <rguenther@suse.de>
6586 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
6587 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
6588 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
6589 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
6591 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
6593 * doc/extend.texi: Document __underlying_type.
6595 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
6597 * config/rs6000/titan.md (automata_option "progress"): Remove.
6599 2011-04-25 Jeff Law <law@redhat.com>
6601 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
6603 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6605 * system.h (ENUM_BITFIELD): Remove.
6607 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
6608 Eric Botcazou <ebotcazou@adacore.com>
6610 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
6611 for STORE_FLAG_VALUE==-1 case.
6613 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
6616 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
6617 LEGITIMATE_PIC_OPERAND_P.
6619 2011-04-24 Jan Hubicka <jh@suse.cz>
6621 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
6623 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
6624 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
6625 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
6626 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
6627 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
6628 Sanity check predicate length.
6629 (remap_predicate): Likewise; sanity check jump functions.
6630 (inline_read_section, inline_write_summary): Sanity check
6633 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
6636 * doc/extend.texi (Type Traits): Document __is_standard_layout,
6637 __is_literal_type, and __is_trivial; update throughout about
6638 possibly cv-qualified void types.
6640 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
6642 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
6643 testsuite and make it version agnostic.
6645 2011-04-22 Jan Hubicka <jh@suse.cz>
6647 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
6649 2011-04-23 Jakub Jelinek <jakub@redhat.com>
6652 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
6653 to VOID_TYPE even around MODIFY_EXPR.
6655 2011-04-22 Mike Stump <mikestump@comcast.net>
6657 * gensupport.c (read_md_rtx): Fix typo in comment.
6658 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
6661 2011-04-22 Jan Hubicka <jh@suse.cz>
6663 * gengtype.c (open_base_files): Add ipa-inline.h include.
6664 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
6665 ipa-prop.c; update all uses.
6666 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
6667 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
6668 merge summary of inlined function into former caller.
6669 * ipa-inline.c (max_benefit): Remove.
6670 (edge_badness): Compensate for removal of benefits.
6671 (update_caller_keys): Use
6672 reset_node_growth_cache/reset_edge_growth_cache.
6673 (update_callee_keys): Likewise.
6674 (update_all_callee_keys): Likewise.
6675 (inline_small_functions): Do not collect max_benefit; do not reset
6676 estimated_growth; call free_growth_caches and initialize_growth_caches.
6677 * ipa-inline.h (struct condition, type clause_t, struct predicate,
6678 struct size_time_entry): New structures.
6679 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
6680 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
6681 and estimated_growth.
6682 (edge_growth_cache_entry): New structure.
6683 (node_growth_cache, edge_growth_cache): New global vars.
6684 (estimate_growth): Turn into inline.
6685 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
6686 initialize_growth_caches, free_growth_caches): Declare.
6687 (estimate_edge_growth): Rewrite.
6688 (estimate_edge_time): Implement as inline cache lookup.
6689 (reset_node_growth_cache, reset_edge_growth_cache): New inline
6691 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
6692 (NUM_CONDITIONS): New constant.
6693 (predicate_conditions): New enum.
6694 (IS_NOT_CONSTANT): New constant.
6695 (edge_removal_hook_holder): New var.
6696 (node_growth_cache, edge_growth_cache): New global vars.
6697 (true_predicate, single_cond_predicate, false_predicate,
6698 not_inlined_predicate, add_condition, add_clause, and_predicates,
6699 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
6700 dump_clause, dump_predicate, account_size_time,
6701 evaulate_conditions_for_edge): New functions.
6702 (inline_summary_alloc): Move to heap.
6703 (inline_node_removal_hook): Clear condition and entry vectors.
6704 (inline_edge_removal_hook): New function.
6705 (initialize_growth_caches, free_growth_caches): New function.
6706 (dump_inline_summary): Update.
6707 (edge_execution_predicate): New function.
6708 (will_be_nonconstant_predicate): New function.
6709 (estimate_function_body_sizes): Compute BB and constantness predicates.
6710 (compute_inline_parameters): Do not clear estimated_growth.
6711 (estimate_edge_size_and_time): New function.
6712 (estimate_calls_size_and_time): New function.
6713 (estimate_callee_size_and_time): New function.
6714 (remap_predicate): New function.
6715 (inline_merge_summary): New function.
6716 (do_estimate_edge_time): New function based on...
6717 (estimate_edge_time): ... this one.
6718 (do_estimate_edge_growth): New function.
6719 (do_estimate_growth): New function based on....
6720 (estimate_growth): ... this one.
6721 (inline_analyze_function): Analyze after deciding on jump functions.
6722 (inline_read_section): New function.
6723 (inline_read_summary): Use it.
6724 (inline_write_summary): Write all the new data.
6725 * ipa-prop.c (ipa_get_param_decl_index): Export.
6726 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
6727 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
6729 (ipa_get_lattice): Move here from ipa-cp.c
6730 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
6731 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
6732 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
6733 cgraph_edge_inlinable_p): Remove.
6734 * cgraphunit.c: Include ipainline.h
6735 (cgraph_process_new_functions): Update call of
6736 compute_inline_parameters.
6738 2011-04-22 Richard Guenther <rguenther@suse.de>
6740 * tree.c (build_int_cst): Properly create canonicalized integer
6742 (build_int_cst_type): Remove scary comments.
6744 2011-04-22 Xinliang David Li <davidxl@google.com>
6746 * toplev.c (process_options): Enable -Werror=coverage-mismatch
6747 by default when -Wno-error is not specified.
6748 * opts-global.c (decode_options): Remove call to
6749 control_warning_options.
6751 2011-04-22 Jakub Jelinek <jakub@redhat.com>
6753 PR tree-optimization/48717
6754 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
6755 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
6757 2011-04-22 Joseph Myers <joseph@codesourcery.com>
6759 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
6760 definition where used.
6762 2011-04-22 Jakub Jelinek <jakub@redhat.com>
6765 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
6766 TREE_STATIC variables declared inside of some OpenMP construct.
6768 2011-04-22 Martin Jambor <mjambor@suse.cz>
6771 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
6773 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
6776 * c-typeck.c (pop_init_level): Do not warn about initializing
6779 2011-04-22 Alan Modra <amodra@gmail.com>
6781 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
6782 when returning call_cookie.
6783 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
6784 pointers, to functions with no more vector args than the current
6785 function, and some non-local calls for ABI_V4.
6786 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
6787 sibcall_nonlocal_aix64): Combine to ..
6788 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
6789 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
6790 (sibcall_value_nonlocal_aix<mode>): ..likewise.
6791 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
6792 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
6794 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
6795 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
6796 sibcall_value_symbolic_64): Delete.
6798 2011-04-21 Xinliang David Li <davidxl@google.com>
6800 * cgraph.h: Remove pid.
6801 * cgraph.c: Remove pid.
6802 * value-prof.c (init_node_map): New function.
6803 (del_node_map): New function.
6804 (find_func_by_funcdef_no): New function.
6805 (gimple_ic_transform): Call new function.
6806 * cgraphunit.c (cgraph_finalize_function): Remove pid.
6807 * function.c (get_last_funcdef_no): New function.
6808 * function.h (get_last_funcdef_no): New function.
6809 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
6810 to libgcov function.
6811 (tree-profiling): Call node map init and delete function.
6813 2011-04-21 Ian Lance Taylor <iant@google.com>
6815 * godump.c (go_format_type): Use exported Go name for anonymous
6818 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
6820 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
6821 Call builtin_function_type_list instead of builtin_function_type.
6822 (UNARY, BINARY, TRINARY, QUAD): Likewise.
6824 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
6826 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
6827 build_function_type_list instead of build_function_type.
6828 Delete variable `endlink'.
6830 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
6832 * config/s390/s390.c (s390_init_builtins): Call
6833 build_function_type_list instead of build_function_type.
6835 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
6837 * config/ia64/ia64.c (ia64_init_builtins): Call
6838 build_function_type_list instead of builtin_function_type.
6840 2011-04-21 Easwaran Raman <eraman@google.com>
6842 * cfgexpand.c (stack_var): Remove OFFSET...
6843 (add_stack_var): ...and its reference here...
6844 (expand_stack_vars): ...and here.
6845 (stack_var_cmp): Sort by descending order of size.
6846 (partition_stack_vars): Change heuristic.
6847 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
6848 (dump_stack_var_partition): Add newline after each partition.
6850 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
6851 Jeff Law <law@redhat.com>
6853 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
6854 * gengtype.c (matching_file_name_substitute): Likewise.
6856 2011-04-21 Richard Guenther <rguenther@suse.de>
6859 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
6861 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
6863 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
6865 2011-04-21 Richard Guenther <rguenther@suse.de>
6867 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
6870 2011-04-21 Richard Guenther <rguenther@suse.de>
6872 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
6873 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
6874 Use DECL_P, not SSA_VAR_P.
6875 (ptr_derefs_may_alias_p): Likewise.
6876 (ptr_deref_may_alias_ref_p_1): Likewise.
6877 (decl_refs_may_alias_p): Likewise.
6878 (refs_may_alias_p_1): Likewise.
6879 (ref_maybe_used_by_call_p_1): Likewise.
6880 (call_may_clobber_ref_p_1): Likewise.
6881 (indirect_ref_may_alias_decl_p): Assume indirect refrences
6882 are either MEM_REF or TARGET_MEM_REF.
6883 (indirect_refs_may_alias_p): Likewise.
6884 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
6885 for MEM_EXPR of indirect calls.
6887 2011-04-21 Tristan Gingold <gingold@adacore.com>
6889 * vmsdbgout.c (write_srccorr): Compute file length from the string.
6890 (dst_file_info_struct): Remove flen field.
6891 (lookup_filename): Remove code that set flen field.
6893 2011-04-21 Tristan Gingold <gingold@adacore.com>
6895 * config/ia64/ia64.c (ia64_start_function): Add a guard.
6897 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
6900 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
6901 vec_extract and vec_concat for non-SSE4_1 targets.
6903 2011-04-21 Richard Guenther <rguenther@suse.de>
6905 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
6908 2011-04-21 Joseph Myers <joseph@codesourcery.com>
6910 * config/i386/cygming.h (union tree_node, TREE): Don't define or
6912 (FILE): Don't undefine.
6914 2011-04-21 Joseph Myers <joseph@codesourcery.com>
6916 * config/alpha/alpha.c (struct machine_function): Use rtx, not
6918 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
6920 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
6921 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
6922 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
6924 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
6925 definitions where used.
6926 * config/microblaze/microblaze.h (struct microblaze_args): Use
6927 rtx, not struct rtx_def *.
6928 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
6930 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
6931 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
6932 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
6933 not struct rtx_def *.
6934 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
6936 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
6938 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
6940 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
6942 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
6943 operand_equal_p to compare DR_BASE_ADDRESSes.
6944 (vect_check_interleaving): Likewise.
6946 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
6949 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
6950 for all Neon struct constants.
6952 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
6954 * target.def (legitimate_constant_p): New hook.
6955 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
6956 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
6957 * doc/tm.texi: Regenerate.
6958 * hooks.h (hook_bool_mode_rtx_true): Declare.
6959 * hooks.c (hook_bool_mode_rtx_true): Define.
6960 * system.h (LEGITIMATE_CONSTANT_P): Poison.
6961 * calls.c (precompute_register_parameters): Replace uses of
6962 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
6963 (emit_library_call_value_1): Likewise.
6964 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
6965 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
6966 * ira-costs.c (scan_one_insn): Likewise.
6967 * recog.c (general_operand, immediate_operand): Likewise.
6968 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
6969 * reload1.c (init_eliminable_invariants): Likewise.
6971 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
6973 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
6974 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
6976 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6977 * config/alpha/predicates.md (input_operand): Update call to
6978 alpha_legitimate_constant_p.
6980 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
6981 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
6982 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
6983 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6984 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
6985 (arm_legitimate_constant_p): New functions.
6986 (arm_cannot_force_const_mem): Make static.
6988 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
6990 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
6991 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
6992 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
6993 instead of bfin_legitimate_constant_p.
6994 (bfin_legitimate_constant_p): Make static. Add a mode argument.
6995 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6997 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
6999 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
7001 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
7002 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
7003 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7004 (frv_legitimate_constant_p): Make static. Add a mode argument.
7006 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
7007 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
7008 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
7010 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
7011 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
7012 * config/i386/i386.c (legitimate_constant_p): Rename to...
7013 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
7015 (ix86_cannot_force_const_mem): Update accordingly.
7016 (ix86_legitimate_address_p): Likewise.
7017 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7018 * config/i386/i386.md: Update commentary.
7020 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
7021 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
7022 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7023 (ia64_legitimate_constant_p): Make static. Add a mode argument.
7025 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
7027 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
7028 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
7029 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7030 (lm32_legitimate_constant_p): Make static. Add a mode argument.
7032 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
7033 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
7034 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
7036 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
7037 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7038 (m32r_legitimate_constant_p): New function.
7040 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
7041 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
7042 LEGITIMATE_CONSTANT_P.
7043 (LEGITIMATE_CONSTANT_P): Delete.
7044 * config/m68k/m68k.c (m68k_expand_prologue): Call
7045 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
7046 (m68k_legitimate_constant_p): New function.
7047 * config/m68k/m68k.md: Update comments.
7049 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
7050 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7051 (mcore_legitimate_constant_p): New function.
7053 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
7054 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
7055 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
7056 Add a mode argument.
7057 (mep_legitimate_address): Update accordingly.
7058 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7060 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
7062 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
7063 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
7064 static. Check OP's mode for VOIDmode.
7065 (microblaze_legitimate_constant_p): New function.
7066 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7068 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
7069 * config/mips/mips.c (mips_legitimate_constant_p): New function.
7070 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
7071 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7072 * config/mips/predicates.md: Update comments.
7074 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
7075 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
7076 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7077 (mmix_legitimate_constant_p): Make static, return a bool, and take
7079 (mmix_print_operand_address): Update accordingly.
7081 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
7083 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
7084 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
7085 static. Add a mode argument.
7086 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7088 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
7090 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
7091 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7092 (pa_legitimate_constant_p): New function.
7094 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
7096 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
7097 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7098 (pdp11_legitimate_constant_p): New function.
7100 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
7101 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7102 (rs6000_legitimate_constant_p): New function.
7104 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
7105 (rx_legitimate_constant_p): ...this.
7106 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
7107 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
7108 (rx_legitimate_constant_p): ...this.
7109 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7110 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
7112 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
7113 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
7114 * config/s390/s390.c (legitimate_constant_p): Rename to...
7115 (s390_legitimate_constant_p): ...this. Make static, return a bool,
7116 and add a mode argument.
7117 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7119 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
7121 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
7122 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7123 (sh_legitimate_constant_p): New function.
7125 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
7126 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
7127 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7128 (legitimate_constant_p): Rename to...
7129 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
7131 (constant_address_p): Update accordingly.
7133 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
7134 argument and return a bool.
7135 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
7136 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7137 (spu_legitimate_constant_p): Add a mode argument and return a bool.
7138 (spu_rtx_costs): Update accordingly.
7139 * config/spu/predicates.md (vec_imm_operand): Likewise.
7141 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
7143 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
7144 * config/v850/v850.c (v850_legitimate_constant_p): New function.
7145 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7147 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
7148 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
7149 * config/vax/vax.c (legitimate_constant_p): Likewise.
7151 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
7152 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7153 (xtensa_legitimate_constant_p): New function.
7155 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
7157 * target.def (cannot_force_const_mem): Add a mode argument.
7158 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
7159 * doc/tm.texi: Regenerate.
7160 * hooks.h (hook_bool_mode_rtx_false): Declare.
7161 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
7162 (hook_bool_mode_const_rtx_true): Likewise.
7163 (hook_bool_mode_rtx_false): New function.
7164 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
7165 to be non-VOID. Update call to cannot_force_const_mem.
7166 (find_reloads): Update accordingly.
7167 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
7168 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
7170 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
7171 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
7172 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
7173 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
7174 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
7175 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
7176 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
7177 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
7178 (m68k_cannot_force_const_mem): ...this new function.
7179 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
7181 (mips_const_insns, mips_legitimize_const_move): Update calls.
7182 (mips_secondary_reload_class): Likewise.
7183 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
7184 (pa_cannot_force_const_mem): ...this new function.
7185 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
7186 (rs6000_cannot_force_const_mem): ...this new function.
7187 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
7189 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
7190 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
7192 (xtensa_cannot_force_const_mem): ...this new function.
7194 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
7196 * config/mips/mips.c (mips16_build_function_stub): Call
7197 build_function_type_list instead of build_function_type.
7198 (mips16_build_call_stub): Likewise.
7200 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
7202 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
7203 instead of build_function_type.
7205 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
7207 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
7208 instead of build_function_type.
7210 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
7213 * config/i386/i386.md (insv): Change operand 0 constraint to
7214 "register_operand". Change operand 1 and 2 constraint to
7215 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
7216 * config/i386/sse.md (sse4_1_pinsrb): Export.
7217 (sse2_pinsrw): Ditto.
7218 (sse4_1_pinsrd): Ditto.
7219 (sse4_1_pinsrq): Ditto.
7220 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
7221 * config/i386/i386.c (ix86_expand_pinsr): New.
7223 2011-04-20 Easwaran Raman <eraman@google.com>
7225 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
7226 containing union type only with -fstrict-aliasing.
7228 2011-04-20 Jim Meyering <meyering@redhat.com>
7230 Remove useless if-before-free tests.
7231 * calls.c (expand_call, save_area): Likewise.
7232 * cfgcleanup.c (try_forward_edges): Likewise.
7233 * collect2.c (collect_execute): Likewise.
7234 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
7235 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
7236 * coverage.c (coverage_checksum_string): Likewise.
7237 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
7238 * cselib.c (cselib_init): Likewise.
7239 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
7240 (df_set_clean_cfg): Likewise.
7241 * function.c (free_after_compilation): Likewise.
7242 * gcc.c (do_spec_1, main): Likewise.
7243 * gcov.c (create_file_names): Likewise.
7244 * gensupport.c (identify_predicable_attribute): Likewise.
7245 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
7246 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
7247 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
7248 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
7249 * ipa-pure-const.c (local_pure_const): Likewise.
7250 * ipa-reference.c (propagate): Likewise.
7251 * ira-costs.c (free_ira_costs): Likewise.
7252 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
7253 * matrix-reorg.c (mat_free): Likewise.
7254 * prefix.c (get_key_value): Likewise.
7255 * profile.c (compute_value_histograms): Likewise.
7256 * reload1.c (free_reg_equiv): Likewise.
7257 * sched-deps.c (free_deps): Likewise.
7258 * sel-sched-ir.c (fence_clear): Likewise.
7259 * sese.c (set_rename, if_region_set_false_region): Likewise.
7260 * tree-data-ref.c (free_rdg): Likewise.
7261 * tree-eh.c (lower_try_finally): Likewise.
7262 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
7263 * tree-ssa-live.c (delete_var_map): Likewise.
7264 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
7265 * tree-ssa-pre.c (phi_trans_add): Likewise.
7267 2011-04-20 Jakub Jelinek <jakub@redhat.com>
7269 PR tree-optimization/48611
7270 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
7271 beyond ERT_MUST_NOT_THROW region.
7273 2011-04-20 Catherine Moore <clm@codesourcery.com>
7275 * config/mips/mips.opt (mfix-24k): New.
7276 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
7277 * config/mips/mips.md (length): Increase by 4 for stores if
7279 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
7280 all noreorder if fixing 24K errata.
7281 * doc/invoke.texi: Document mfix-24k.
7283 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
7285 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
7286 quad-word modes, reduce to 9-bit index range when above 1016 limit.
7288 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
7290 * config/arm/arm.c (arm_gen_constant): Move movw support ....
7291 (const_ok_for_op): ... to here.
7293 2011-04-20 Kai Tietz <ktietz@redhat.com>
7295 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
7296 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
7298 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
7300 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
7302 2011-04-20 Richard Guenther <rguenther@suse.de>
7304 PR tree-optimization/47892
7305 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
7308 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
7310 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
7312 2011-04-20 Tristan Gingold <gingold@adacore.com>
7314 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
7316 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
7320 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
7321 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
7322 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
7323 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
7324 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
7326 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
7329 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
7330 (avr_asm_named_section, avr_asm_output_aligned_common,
7331 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
7332 New functions to update...
7333 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
7334 (avr_asm_init_sections): Overwrite section callbacks for
7335 data_section, bss_section.
7336 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
7338 (avr_file_end): ...here.
7340 2011-04-20 Richard Guenther <rguenther@suse.de>
7343 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
7344 objects and types here. Adjust for their offset before comparing.
7346 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
7348 * tree-vect-stmts.c (vectorizable_store): Only chain one related
7351 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
7353 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
7354 (GIMPLE_H): Include $(INTERNAL_FN_H).
7355 (OBJS-common): Add internal-fn.o.
7356 (internal-fn.o): New rule.
7357 * internal-fn.def: New file.
7358 * internal-fn.h: Likewise.
7359 * internal-fn.c: Likewise.
7360 * gimple.h: Include internal-fn.h.
7361 (GF_CALL_INTERNAL): New gf_mask.
7362 (gimple_statement_call): Put fntype into a union with a new
7364 (gimple_build_call_internal): Declare.
7365 (gimple_build_call_internal_vec): Likewise.
7366 (gimple_call_same_target_p): Likewise.
7367 (gimple_call_internal_p): New function.
7368 (gimple_call_internal_fn): Likewise.
7369 (gimple_call_fntype): Return null for internal calls.
7370 (gimple_call_set_fntype): Assert that the function is not internal.
7371 (gimple_call_set_fn): Likewise.
7372 (gimple_call_set_fndecl): Likewise.
7373 (gimple_call_set_internal_fn): New function.
7374 (gimple_call_addr_fndecl): Handle null functions.
7375 (gimple_call_return_type): Likewise null types.
7376 * gimple.c (gimple_build_call_internal_1): New function.
7377 (gimple_build_call_internal): Likewise.
7378 (gimple_build_call_internal_vec): Likewise.
7379 (gimple_call_same_target_p): Likewise.
7380 (gimple_call_flags): Handle calls to internal functions.
7381 (gimple_call_fnspec): New function.
7382 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
7383 (gimple_has_side_effects): Handle null functions.
7384 (gimple_rhs_has_side_effects): Likewise.
7385 (gimple_call_copy_skip_args): Handle calls to internal functions.
7386 * cfgexpand.c (expand_call_stmt): Likewise.
7387 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
7388 * gimple-fold.c (gimple_fold_call): Handle null functions.
7389 (gimple_fold_stmt_to_constant_1): Don't fold
7390 calls to internal functions.
7391 * gimple-low.c (gimple_check_call_args): Handle calls to internal
7393 * gimple-pretty-print.c (dump_gimple_call): Likewise.
7394 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
7395 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
7396 (do_warn_unused_result): Likewise.
7397 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
7398 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
7399 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
7400 the target of a call.
7401 (initialize_hash_element): Update accordingly.
7402 (hashable_expr_equal_p): Use gimple_call_same_target_p.
7403 (iterative_hash_hashable_expr): Handle calls to internal functions.
7404 (print_expr_hash_elt): Likewise.
7405 * tree-ssa-pre.c (can_value_number_call): Likewise.
7406 (eliminate): Handle null functions.
7407 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
7408 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
7409 (find_func_aliases): Likewise.
7410 * value-prof.c (gimple_ic_transform): Likewise.
7411 (gimple_indirect_call_to_profile): Likewise.
7412 * lto-streamer-in.c (input_gimple_stmt): Likewise.
7413 * lto-streamer-out.c (output_gimple_stmt): Likewise.
7415 2011-04-19 Jan Hubicka <jh@suse.cz>
7417 * ipa-inline-transform.c (save_inline_function_body): Add comments.
7418 * ipa-inline.c (inline_small_functions): Compute summaries first,
7419 populate heap later.
7421 2011-04-19 Jan Hubicka <jh@suse.cz>
7423 * cgraph.h (save_inline_function_body): Remove.
7424 * ipa-inline-transform.c: New file, broke out of...
7425 * ipa-inline.c: ... this one; Update toplevel comment.
7426 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
7428 (update_noncloned_frequencies): Move to ipa-inline-transform.c
7429 (cgraph_mark_inline_edge): Rename to inline_call; move to
7430 ipa-inline-transform.c.
7431 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
7432 move to ipa-inline-transform.c
7433 (recursive_inlining, inline_small_functions, flatten_function,
7434 ipa_inline, inline_always_inline_functions,
7435 early_inline_small_functions): Update.
7436 (inline_transform): Move to ipa-inline-transform.c.
7437 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
7439 * Makefile.in (ipa-inline-transform.o): New file.
7440 * cgraphunit.c (save_inline_function_body): Move to
7441 ipa-inline-transform.c
7443 2011-04-19 DJ Delorie <dj@redhat.com>
7445 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
7446 registers if we already know there aren't any.
7447 (m32c_emit_epilogue): Don't emit a barrier here.
7448 (m32c_emit_eh_epilogue): Likewise.
7449 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
7450 operands at expand time.
7451 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
7453 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
7454 duplicates. Provide aliases instead.
7455 * config/m32c/prologue.md (eh_return): Emit a barrier here.
7456 (eh_epilogue): Add a "(return)" here as a hint to other parts of
7459 2011-04-19 Anatoly Sokolov <aesok@post.ru>
7461 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
7462 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
7463 (general_or_i64_p, sparc_register_move_cost): New function.
7465 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7467 * doc/install.texi (Configuration, --enable-threads): Remove mach.
7468 Add lynx, mipssde. Sort table.
7470 2011-04-19 Xinliang David Li <davidxl@google.com>
7472 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
7475 2011-04-19 Jakub Jelinek <jakub@redhat.com>
7478 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
7479 is a SUBREG with non-MODE_INT mode inside of it.
7481 2011-04-19 Martin Jambor <mjambor@suse.cz>
7483 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
7484 also according to actual contants.
7485 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
7486 (gimple_fold_call): Use it.
7487 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
7489 2011-04-19 Martin Jambor <mjambor@suse.cz>
7491 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
7492 non-pointer assignments.
7494 2011-04-19 Martin Jambor <mjambor@suse.cz>
7496 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
7497 account anc_offset and otr_type from the indirect edge info.
7498 * ipa-prop.c (get_ancestor_addr_info): New function.
7499 (compute_complex_ancestor_jump_func): Assignment analysis moved to
7500 get_ancestor_addr_info, call it.
7501 (ipa_note_param_call): Do not initialize information about polymorphic
7502 calls, return the indirect call graph edge. Remove the last
7503 parameter, adjust all callers.
7504 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
7505 parameters. Initialize polymorphic information in the indirect edge.
7507 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
7510 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
7511 the types if they have different enumeration identifiers.
7513 2011-04-19 Jan Hubicka <jh@suse.cz>
7515 * cgraph.h (cgraph_optimize_for_size_p): Declare.
7516 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
7517 * predict.c (cgraph_optimize_for_size_p): Break out from ...
7518 (optimize_function_for_size_p) ... here.
7520 2011-04-19 Richard Guenther <rguenther@suse.de>
7523 * tree.c (free_lang_data): Do not reset the decl-assembler-name
7526 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
7528 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
7529 if DECL_NO_INLINE_WARNING_P is set on the function.
7531 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
7534 * reload1.c (inc_for_reload): Return void. All callers changed.
7535 (emit_input_reload_insns): Don't try to delete previous output
7536 reloads to a register, or record spill_reg_store for autoincs.
7538 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
7540 * gengtype.h: Updated copyright year.
7541 (struct input_file_st): Add inpisplugin field.
7542 (type_fileloc): New function.
7544 (write_typed_struct_alloc_def): Add gcc_assert.
7545 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
7546 (write_typed_alloc_defns): Don't output for plugin files.
7547 (input_file_by_name): Clear inpisplugin field.
7548 (main): Set inpisplugin field for plugin files.
7550 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
7552 * gengtype-state.c (string_eq): New.
7553 (read_state): Use string_eq instead of strcmp when creating the
7556 2011-04-19 Wei Guozhi <carrot@google.com>
7559 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
7560 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
7562 * config/arm/constraints.md (Uu): New constraint.
7563 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
7565 2011-04-19 Tristan Gingold <gingold@adacore.com>
7567 * config.gcc (-*-*-*vms): Added.
7568 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
7570 * config/vms/vms-ld.c: New file.
7571 * config/vms/vms-ar.c: New file.
7572 * config/vms/t-vmsnative: New file.
7574 2011-04-18 Xinliang David Li <davidxl@google.com>
7576 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
7578 2011-04-18 Jakub Jelinek <jakub@redhat.com>
7581 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
7582 if TREE_TYPE (v) is non-NULL.
7584 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
7585 gimple_get_virt_mehtod_for_binfo.
7586 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
7587 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
7589 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
7591 2011-04-18 Michael Matz <matz@suse.de>
7592 Steve Ellcey <sje@cup.hp.com>
7594 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
7595 use its mode as source mode if it isn't VOIDmode.
7597 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
7599 * doc/passes.texi: Fill crossref nodes.
7601 2011-04-18 Jim Meyering <meyering@redhat.com>
7603 Fix doubled-word typos in comments and strings
7604 * config/alpha/vms-unwind.h: s/for for/for/
7605 * config/arm/unwind-arm.h: Likewise.
7606 * config/microblaze/microblaze.c: Likewise.
7607 * config/sh/constraints.md: s/in in/in/
7608 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
7610 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
7612 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
7613 (AVX_FLOAT_MODE_P): Ditto.
7614 (AVX128_VEC_FLOAT_MODE_P): Ditto.
7615 (AVX256_VEC_FLOAT_MODE_P): Ditto.
7616 (AVX_VEC_FLOAT_MODE_P): Ditto.
7617 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
7618 (UNSPEC_MASKSTORE): Ditto.
7619 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
7620 Merge from <sse>_movmsk<ssemodesuffix> and
7621 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
7622 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
7624 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
7625 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
7626 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
7628 2011-04-18 Jan Hubicka <jh@suse.cz>
7630 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
7632 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
7633 (want_inline_function_called_once_p): Break out the logic from
7635 (edge_badness): Ensure that profile is not misupdated.
7636 (lookup_recursive_calls): Prioritize by call frequencies.
7637 (inline_small_functions): Move program size estimates here;
7638 actually process whole queue even when unit growth has been
7639 met. (to properly compute inline_failed reasons and for the
7640 case unit size decrease.) Revisit comments on recursive inlining.
7641 (ipa_inline): Remove unit summary code; first inline hot calls
7642 of functions called once, cold calls next.
7643 (order, nnodes): Remove unused variables.
7644 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
7645 (GTFILES): Remove ipa-inline.c
7646 * sel-sched.c (fill_insns): Silence uninitialized var warning.
7648 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
7650 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
7652 2011-04-18 Jie Zhang <jie@codesourcery.com>
7653 Richard Earnshaw <rearnsha@arm.com>
7655 * arm.c (neon_builtin_type_bits): Remove.
7656 (typedef enum neon_builtin_mode): New.
7657 (T_MAX): Don't define.
7658 (typedef enum neon_builtin_datum): Remove bits, codes[],
7659 num_vars and base_fcode. Add mode, code and fcode.
7660 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
7661 VAR10): Change accordingly.
7662 (neon_builtin_data[]): Change accordingly
7663 (arm_init_neon_builtins): Change accordingly.
7664 (neon_builtin_compare): Remove.
7665 (locate_neon_builtin_icode): Remove.
7666 (arm_expand_neon_builtin): Change accordingly.
7668 * arm.h (enum arm_builtins): Move to ...
7669 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
7671 * arm.c (arm_builtin_decl): Declare.
7672 (TARGET_BUILTIN_DECL): Define.
7673 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
7674 (arm_builtin_decls[]): New.
7675 (arm_init_neon_builtins): Store builtin declarations in
7676 arm_builtin_decls[].
7677 (arm_init_tls_builtins): Likewise.
7678 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
7679 (arm_builtin_decl): New.
7681 2011-04-18 Richard Guenther <rguenther@suse.de>
7683 * tree.c (upper_bound_in_type): Build properly canonicalized
7685 (lower_bound_in_type): Likewise.
7687 2011-04-18 Richard Guenther <rguenther@suse.de>
7689 * gimple.h (gimple_call_addr_fndecl): New function.
7690 (gimple_call_fndecl): Use it.
7691 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
7693 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
7694 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
7696 2011-04-18 Richard Guenther <rguenther@suse.de>
7699 * tree.c (build_string): STRING_CST is now derived from tree_typed.
7701 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
7704 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
7705 DECL_IN_CONSTANT_POOL without RTL.
7707 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
7708 Ira Rosen <ira.rosen@linaro.org>
7711 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
7712 to match neon_vzip/vuzp/vtrn_internal.
7713 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
7714 outputs explicitly dependent on both inputs.
7715 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
7717 2011-04-18 Jakub Jelinek <jakub@redhat.com>
7719 PR tree-optimization/48616
7720 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
7721 whether the shift is by scalar or vector based on whether all SLP
7722 scalar stmts have the same rhs.
7724 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
7726 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
7729 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
7732 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
7735 2011-04-17 Jan Hubicka <jh@suse.cz>
7737 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
7738 * cgrpahunit.c (cgraph_finalize_function): Do not set
7739 finalized_by_frontend.
7740 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
7741 finalized_by_frontend.
7743 2011-04-17 Jan Hubicka <jh@suse.cz>
7745 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
7746 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
7747 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
7748 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
7750 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
7752 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
7754 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
7757 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
7758 is non-null before accessing it.
7759 (input_cgraph): Remove trailing spaces.
7761 2011-04-17 Revital Eres <revital.eres@linaro.org>
7763 * params.def (sms-min-sc): New param flag.
7764 * modulo-sched.c (sms_schedule): Use it.
7765 * doc/invoke.texi (sms-min-sc): Document it.
7767 2011-04-17 Jan Hubicka <jh@suse.cz>
7769 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
7770 present, also set gimple_call_set_cannot_inline.
7771 * ipa-inline.c: Update toplevel comment.
7773 (cgraph_clone_inlined_nodes): Fix linebreaks.
7774 (cgraph_check_inline_limits): Restructure to ...
7775 (caller_growth_limits): ... this one; be more tolerant
7776 on growth in nested inline chains; add explanatory comment;
7777 fix stack accounting thinko introduced by previous patch.
7778 (cgraph_default_inline_p): Remove.
7779 (report_inline_failed_reason): New function.
7780 (can_inline_edge_p): New function.
7781 (can_early_inline_edge_p): New function.
7782 (leaf_node_p): Move upwards in file.
7783 (want_early_inline_function_p): New function.
7784 (want_inline_small_function_p): New function.
7785 (want_inline_self_recursive_call_p): New function.
7786 (cgraph_edge_badness): Rename to ...
7787 (edge_badness) ... this one; fix linebreaks.
7788 (update_edge_key): Update call of edge_baddness; add
7789 detailed dump about queue updates.
7790 (update_caller_keys): Use can_inline_edge_p and
7791 want_inline_small_function_p.
7792 (cgraph_decide_recursive_inlining): Rename to...
7793 (recursive_inlining): Use can_inline_edge_p and
7794 want_inline_self_recursive_call_p; simplify and remove no longer
7796 (cgraph_set_inline_failed): Remove.
7797 (add_new_edges_to_heap): Use can_inline_edge_p and
7798 want_inline_small_function_p.
7799 (cgraph_decide_inlining_of_small_functions): Rename to ...
7800 (inline_small_functions): ... this one; cleanup; use
7801 can/want predicates; cleanup debug ouput; work edges till fibheap
7802 is exhausted and do not stop once unit growth is reached; remove
7803 later loop processing remaining edges.
7804 (cgraph_flatten): Rename to ...
7805 (flatten_function): ... this one; use can_inline_edge_p
7806 and can_early_inline_edge_p predicates.
7807 (cgraph_decide_inlining): Rename to ...
7808 (ipa_inline): ... this one; remove unreachable nodes before
7809 inlining functions called once; simplify the pass.
7810 (cgraph_perform_always_inlining): Rename to ...
7811 (inline_always_inline_functions): ... this one; use
7812 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
7813 (cgraph_decide_inlining_incrementally): Rename to ...
7814 (early_inline_small_functions): ... this one; simplify
7815 using new predicates; cleanup; make dumps prettier.
7816 (cgraph_early_inlining): Rename to ...
7817 (early_inliner): newer inline regular functions into always-inlines;
7818 fix updating of call stmt summaries.
7819 (pass_early_inline): Update for new names.
7820 (inline_transform): Fix formating.
7821 (gate_cgraph_decide_inlining): Rename to ...
7822 (pass_ipa_inline): ... this one.
7823 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
7824 * ipa-inline-analysis.c (dump_inline_summary): Update.
7825 (compute_inline_parameters): Do not compute disregard_inline_limits;
7826 look for mismatching arguments.
7827 (estimate_growth): Fix handlig of non-trivial self recursion.
7828 (inline_read_summary): Do not read info->disregard_inline_limits.
7829 (inline_write_summary): Do not write info->disregard_inline_limits.
7830 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
7831 and move all checks into can_inline_edge_p predicate; re-enable code
7832 comparing optimization levels.
7833 (expand_call_inline): Do not test inline_forbidden_into_p.
7834 * Makefile.in (ipa-inline.o): Update arguments.
7836 2011-04-17 Revital Eres <revital.eres@linaro.org>
7838 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
7840 2011-04-17 Revital Eres <revital.eres@linaro.org>
7842 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
7844 2011-04-17 Michael Matz <matz@suse.de>
7846 PR tree-optimization/48622
7848 * ipa-inline-analysis.c (inline_read_summary): Read size/time
7849 in same order as they're written.
7851 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7853 * config/pa/predicates.md: Reorganize and simplify predicates.
7854 Eliminate duplicate code checks.
7855 (arith_operand): Rename to arith14_operand
7856 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
7857 * config/pa/pa.md: Use renamed operands.
7858 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
7859 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
7860 arith11_operand, adddi3_operand, indexed_memory_operand,
7861 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
7862 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
7863 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
7864 move_dest_operand, move_src_operand, prefetch_cc_operand,
7865 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
7866 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
7867 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
7868 div_operand, int5_operand, movb_comparison_operator,
7869 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
7870 arith_double_operand, ireg_operand, lhs_lshift_operand,
7871 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
7872 integer_store_memory_operand): Likewise.
7873 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
7874 (integer_store_memory_operand, read_only_operand,
7875 function_label_operand, borx_reg_operand,
7876 non_hard_reg_operand): Likewise.
7877 (eq_neq_comparison_operator): Delete unused operator.
7878 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
7879 function_label_operand.
7880 (emit_move_sequence): Likewise.
7882 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
7884 * config/i386/sse.md (sseunpackmode): New mode attribute.
7885 (ssepackmode): Ditto.
7886 (vec_pack_trunc_<mode>): Macroize expander from
7887 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
7888 (vec_unpacks_lo_<mode>): Macroize expander from
7889 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
7890 (vec_unpacks_hi_<mode>): Macroize expander from
7891 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
7892 (vec_unpacku_lo_<mode>): Macroize expander from
7893 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
7894 (vec_unpacku_hi_<mode>): Macroize expander from
7895 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
7896 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
7897 ix86_expand_sse4_unpack.
7898 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
7900 2011-04-16 Jan Hubicka <jh@suse.cz>
7902 * cgraphbuild.c: Include ipa-inline.h.
7903 (reset_inline_failed): Use initialize_inline_failed.
7904 * cgraph.c: Include ipa-inline.h.
7905 (cgraph_create_node_1): Do not initialize estimated_growth.
7906 (initialize_inline_failed): More to ipa-inline-analysis.c
7907 (dump_cgraph_node): Do not dump inline flags.
7908 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
7909 and disregard_inline_limits flags.
7910 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
7911 time, size, estimated_growth.
7912 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
7914 * cgraphunit.c (cgraph_decide_is_function_needed): Use
7915 DECL_DISREGARD_INLINE_LIMITS.
7916 (cgraph_analyze_function): Do not initialize
7917 node->local.disregard_inline_limits.
7918 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
7919 inlinable, versionable and disregard_inline_limits.
7920 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
7921 cgraph_check_inline_limits, cgraph_default_inline_p,
7922 cgraph_edge_badness, update_caller_keys, update_callee_keys,
7923 add_new_edges_to_heap): Update.
7924 (cgraph_decide_inlining_of_small_function): Update; set
7925 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
7926 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
7927 cgraph_decide_inlining_incrementally): Update.
7928 * ipa-inline.h (inline_summary): Add inlinable, versionable,
7929 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
7930 time, size and estimated_growth parameters.
7931 (estimate_edge_growth): Update.
7932 (initialize_inline_failed): Declare.
7933 * ipa-split.c: Include ipa-inline.h
7934 (execute_split_functions): Update.
7935 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
7936 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
7937 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
7938 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
7939 estimated_growth to INT_MIN.
7940 (inline_node_duplication_hook): Likewise.
7941 (dump_inline_summary): Dump new fields.
7942 (compute_inline_parameters): Update.
7943 (estimate_edge_time, estimate_time_after_inlining,
7944 estimate_size_after_inlining, estimate_growth, inline_read_summary,
7945 inline_write_summary):
7946 (initialize_inline_failed): Move here from cgraph.c.
7947 * tree-sra.c: Include ipa-inline.h.
7948 (ipa_sra_preliminary_function_checks): Update.
7949 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
7952 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
7954 * config/i386/sse.md (V16): New mode iterator.
7956 (AVXMODEQI, AVXMODEDI): Remove.
7957 (sse2, sse3): New mode attribute.
7958 (mov<mode>): Use V16 mode iterator.
7959 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
7960 (push<mode>1): Use V16 mode iterator.
7961 (movmisalign<mode>): Ditto.
7962 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
7963 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
7964 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
7965 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
7966 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
7967 avx_movdqu<avxmodesuffix>.
7968 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
7969 *avx_movdqu<avxmodesuffix>.
7970 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
7971 avx_lddqu<avxmodesuffix>.
7972 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
7973 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
7974 avx_movnt<AVXMODEDI:mode>.
7975 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
7976 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
7978 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
7981 * haifa-sched.c (prune_ready_list, schedule_block): Use
7982 sched_pressure_p rather than flag_sched_pressure.
7984 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
7986 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
7987 cgraph_get_node instead of cgraph_get_create_node.
7989 2011-04-15 Jakub Jelinek <jakub@redhat.com>
7991 * cfgexpand.c (expand_debug_expr): Use
7992 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
7994 2011-04-15 Michael Matz <matz@suse.de>
7996 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
7997 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
7998 * function.c (gimplify_parameters): Ditto.
7999 * gimplify.c (gimplify_vla_decl): Ditto.
8001 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
8002 (gimple_call_set_alloca_for_var): New inline function.
8003 (gimple_call_alloca_for_var_p): Ditto.
8004 * gimple.c (gimple_build_call_from_tree): Remember
8005 CALL_ALLOCA_FOR_VAR_P state.
8006 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
8008 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
8009 calls if they were for VLA objects.
8011 2011-04-15 Martin Jambor <mjambor@suse.cz>
8013 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
8016 2011-04-15 Martin Jambor <mjambor@suse.cz>
8019 * tree-emutls.c (lower_emutls_function_body): Call
8020 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
8023 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
8025 * c-decl.c (detect_field_duplicates): Call
8026 objc_detect_field_duplicates instead of objc_get_interface_ivars.
8028 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
8030 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
8031 * gimple.c (gimple_asm_clobbers_memory_p): Define.
8032 * ipa-pure-const.c (check_stmt): Call it.
8033 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
8035 2011-04-15 Richard Guenther <rguenther@suse.de>
8037 PR tree-optimization/48290
8038 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
8039 Properly decide inhibiting propagation based on the valueized
8040 operand. Do loop-closed SSA form preserving here ...
8041 (init_copy_prop): ... not here.
8043 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
8046 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
8047 (*ieee_smax<mode>3): Likewise.
8049 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8051 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
8052 Replace match_operand with match_dup for the third operand in
8055 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
8057 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
8058 to track processing of conditionals. Update all callers.
8059 (try_combine, simplify_if_then_else): Update.
8061 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
8063 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
8066 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
8068 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
8069 instead of match_operand for operand 3.
8071 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
8073 * recog.h (insn_operand_data): Add an "allows_mem" field.
8074 * genoutput.c (output_operand_data): Initialize it.
8075 * optabs.c (maybe_legitimize_operand_same_code): New function.
8076 (maybe_legitimize_operand): Use it when matching the original
8079 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
8081 * gimplify.c: Fix issues in comments throughout.
8082 (voidify_wrapper_expr): Fix long line.
8083 (build_stack_save_restore): Likewise.
8084 (gimplify_loop_expr): Likewise.
8085 (gimplify_compound_lval): Likewise.
8086 (gimplify_init_ctor_eval): Likewise.
8087 (gimplify_modify_expr_rhs): Likewise.
8088 (omp_notice_threadprivate_variable): Likewise.
8090 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
8092 * cfgexpand.c (expand_call_stmt): Convert the function type to the
8093 original one if this is not a builtin function.
8095 2011-04-14 Jakub Jelinek <jakub@redhat.com>
8098 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
8099 offset it as needed based on top 2 bits in operands[3], change
8100 MEM mode to SFmode and mask those 2 bits away from operands[3].
8102 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
8104 * c-parser.c (c_parser_objc_protocol_definition): Updated for
8105 change from objc_declare_protocols() to objc_declare_protocol().
8107 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
8109 * config/i386/sse.md (sse4_1): New mode attribute.
8110 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
8111 avx_blend<ssemodesuffix><avxmodesuffix> and
8112 sse4_1_blend<ssemodesuffix> using VF mode iterator.
8113 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
8114 avx_blendv<ssemodesuffix><avxmodesuffix> and
8115 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
8116 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
8117 avx_dp<ssemodesuffix><avxmodesuffix> and
8118 sse4_1_dp<ssemodesuffix> using VF mode iterator.
8119 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
8120 (sse4_1_packusdw): Merge with *avx_packusdw.
8121 (sse4_1_pblendvb): Merge with *avx_pblendvb.
8122 (sse4_1_pblendw): Merge with *avx_pblendw.
8123 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
8124 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
8125 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
8127 (sse4_1_round<ssescalarmodesuffix>): Merge with
8128 *avx_round<ssescalarmodesuffix>.
8129 (aesenc): Merge with *avx_aesenc.
8130 (aesenclast): Merge with *avx_aesenclast.
8131 (aesdec): Merge with *avx_aesdec.
8132 (aesdeclast): Merge with *avx_aesdeclast.
8133 (pclmulqdq): Merge with *pclmulqdq.
8134 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
8136 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
8138 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
8141 * cfgexpand.c (get_decl_align_unit): Renamed to ...
8142 (align_local_variable): This. Update DECL_ALIGN.
8143 (add_stack_var): Updated.
8144 (expand_one_stack_var): Likewise.
8146 2011-04-14 Richard Guenther <rguenther@suse.de>
8148 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
8150 (dse_initialize_block_local_data, dse_leave_block,
8151 record_voperand_set, get_stmt_uid): Likewise.
8152 (dse_possible_dead_store_p): Allow any kind of killing stmt.
8153 (dse_optimize_stmt): Remove voperand set handling code.
8154 Simplify and improve to handle any kind of killing stmt.
8155 (dse_record_phi): Remove.
8156 (dse_enter_block): Simplify.
8157 (tree_ssa_dse): Likewise.
8158 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
8160 2011-04-14 Jan Hubicka <jh@suse.cz>
8162 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
8163 * cgraph.h (struct inline_summary): Move to ipa-inline.h
8164 (cgraph_local_info): Remove inline_summary.
8165 * ipa-cp.c: Include ipa-inline.h.
8166 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
8167 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
8169 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
8170 (input_overwrite_node): Do not set inline summary.
8171 (input_node): Do not stream inline summary.
8172 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
8173 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
8174 growth; we do not have inline parameters computed for that anyway.
8175 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
8176 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
8177 (inline_summary_t): New type and VECtor.
8178 (debug_inline_summary, dump_inline_summaries): Declare.
8179 (inline_summary): Use VOCtor.
8180 (estimate_edge_growth): Kill hack computing call stmt size directly.
8181 * lto-section-in.c (lto_section_name): Add inline section.
8182 * ipa-inline-analysis.c: Include lto-streamer.h
8183 (node_removal_hook_holder, node_duplication_hook_holder): New holders
8184 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
8185 (inline_summary_vec): Define.
8186 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
8187 dump_inline_summaries): New functions.
8188 (estimate_function_body_sizes): Properly compute size/time of outgoing
8190 (compute_inline_parameters): Alloc inline_summary; do not compute
8191 size/time of incomming calls.
8192 (estimate_edge_time): Avoid missing time summary hack.
8193 (inline_read_summary): Read inline summary info.
8194 (inline_write_summary): Write inline summary info.
8195 (inline_free_summary): Free all hooks and inline summary vector.
8196 * lto-streamer.h: Add LTO_section_inline_summary section.
8197 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
8198 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
8200 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
8202 * tree-vectorizer.h (vect_strided_store_supported): Add a
8203 HOST_WIDE_INT argument.
8204 (vect_strided_load_supported): Likewise.
8205 (vect_permute_store_chain): Return void.
8206 (vect_transform_strided_load): Likewise.
8207 (vect_permute_load_chain): Delete.
8208 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
8209 count argument. Check that the count is a power of two.
8210 (vect_strided_load_supported): Likewise.
8211 (vect_permute_store_chain): Return void. Update after above changes.
8212 Assert that the access is supported.
8213 (vect_permute_load_chain): Likewise.
8214 (vect_transform_strided_load): Return void.
8215 * tree-vect-stmts.c (vectorizable_store): Update calls after
8216 above interface changes.
8217 (vectorizable_load): Likewise.
8218 (vect_analyze_stmt): Don't check for strided powers of two here.
8220 2011-04-14 Richard Guenther <rguenther@suse.de>
8222 PR tree-optimization/48590
8223 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
8224 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
8225 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
8226 BUILT_IN_STACK_SAVE.
8227 * tree-ssa-dce.c (propagate_necessity): Handle
8228 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
8230 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
8232 * c-parser.c (c_parser_objc_class_declaration): Updated call to
8235 2011-04-14 Richard Guenther <rguenther@suse.de>
8237 * tree.h (get_object_alignment_1): Declare.
8238 * builtins.c (get_object_alignment_1): Split out worker from ...
8239 (get_object_alignment): ... here.
8240 * fold-const.c (get_pointer_modulus_and_residue): Use
8241 get_object_alignment_1.
8243 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
8245 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
8247 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
8248 parameter. Generalise code to handle arrays as well as vectors.
8249 (vect_setup_realignment): Update accordingly.
8250 * tree-vect-stmts.c (vectorizable_store): Likewise.
8251 (vectorizable_load): Likewise.
8253 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
8255 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
8256 within the per-copy loop.
8258 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
8260 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
8263 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
8265 * doc/options.texi (Negative): Explicitly mention that the
8266 Negative chain must be circular.
8268 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
8270 * function.h (block_chainon): Declare.
8271 * function.c (block_chainon): Define.
8273 2011-04-14 Anatoly Sokolov <aesok@post.ru>
8274 Eric Weddington <eric.weddington@atmel.com>
8275 Georg-Johann Lay <avr@gjlay.de>
8277 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
8279 (avr_init_builtins, avr_expand_builtin,
8280 avr_expand_delay_cycles, avr_expand_unop_builtin,
8281 avr_expand_binop_builtin ): New functions.
8282 (avr_builtin_id): New enum
8283 (struct avr_builtin_description): New struct
8284 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
8285 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
8287 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
8288 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
8289 UNSPECV_DELAY_CYCLES): new enumeration values
8290 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
8291 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
8292 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
8293 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
8294 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
8295 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
8296 "fmulsu"): New insns
8298 * config/avr/avr-c.c: fix line endings
8299 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
8300 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
8301 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
8302 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
8303 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
8305 * doc/extend.texi (AVR Built-in Functions): New node
8306 (Target Builtins): Add documentation of AVR
8309 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
8312 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
8313 alone. Error if non-const data has attribute progmem.
8315 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
8317 * tree.h (struct tree_constructor): Include tree_typed instead of
8319 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
8320 TS_TYPED instead of TS_COMMON.
8322 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
8324 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
8325 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
8326 (sse2_psadbw): Merge with *avx_psadbw.
8327 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
8328 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
8329 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
8330 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
8331 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
8332 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
8333 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
8334 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
8335 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
8336 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
8337 (ssse3_palignrti): Merge with *avx_palignrti.
8339 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
8341 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
8342 * tree-ssanames.c (fini_ssanames): VEC_free it.
8343 (make_ssa_name_fn): Update for VECness of free_ssanames.
8344 (release_ssa_name, release_dead_ssa_names): Likewise.
8345 * tree.h (struct tree_ssa_name): Include tree_typed instead of
8347 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
8348 TS_TYPED instead of TS_COMMON.
8350 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
8352 * postreload-gcse.c (gcse_after_reload_main): Add calls to
8353 statistics_counter_event.
8354 * tree-ssa-copyrename.c (stats): Define.
8355 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
8356 statistics_counter_event.
8357 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
8358 (bswap_stats, widen_mul_stats): Define.
8359 (insert_reciprocals): Increment rdivs_inserted.
8360 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
8361 rfuncs_inserted. Add calls to statistics_counter_event.
8362 (execute_cse_sincos_1): Increment inserted.
8363 (execute_cse_sincos): Zeroize sincos_stats. Add call to
8364 statistics_counter_event.
8365 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
8366 of bswap_stats. Add calls to statistics_counter_event.
8367 (convert_mult_to_widen): Increment widen_mults_inserted.
8368 (convert_plusminus_to_widen): Increment maccs_inserted.
8369 (convert_mult_to_fma): Increment fmas_inserted.
8370 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
8371 calls to statistics_counter_event.
8373 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
8375 PR rtl-optimization/48455
8376 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
8377 `temp_costs->mem_cost'.
8379 2011-04-13 Jan Hubicka <jh@suse.cz>
8381 * ipa-inline.h: New file.
8382 * ipa-inline-analysis.c: New file. Broken out of ...
8383 * ipa-inline.c: ... this file; update toplevel comment;
8384 include ipa-inline.h
8385 (inline_summary): Move to ipa-inline.h
8386 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
8387 ipa-inline-analysis.c.
8388 (cgraph_estimate_time_after_inlining): Rename to
8389 estiamte_time_after_inlining; move to ipa-inline-analysis.c
8390 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
8391 to estimate_edge_growth.
8392 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
8393 rename to estimate_size_after_inlining.
8394 (cgraph_mark_inline_edge): Update for new naming convention.
8395 (cgraph_check_inline_limits): Likewise.
8396 (cgraph_edge_badness): Likewise.
8397 (cgraph_decide_recursive_inlining): Likewise.
8398 (cgraph_decide_inlining_of_small_functions): Likewise.
8399 (cgraph_decide_inlining_incrementally): Likewise.
8400 (cgraph_estimate_growth): Rename to estimate_growth; move to
8401 ipa-inline-analysis.c.
8402 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
8403 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
8404 (compute_inline_parameters): Likewise.
8405 (compute_inline_parameters_for_current): Likewise.
8406 (pass_inline_parameters): Likewise.
8407 (inline_indirect_intraprocedural_analysis): Likewise.
8408 (analyze_function): Rename to inline_analyze_function; likewise.
8409 (add_new_function): Move to ipa-inline-analysis.c.
8410 (inline_generate_summary): Likewise.
8411 (inline_read_summary): Likewise.
8412 (inline_write_summary): Likewise.
8413 * Makefile.in (ipa-inline-analysis.c): New file.
8415 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8417 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
8418 * configure: Regenerate.
8420 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
8422 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
8423 instead of tree_common.
8424 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
8426 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
8427 TS_TYPED rather than TS_COMMON.
8428 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
8430 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
8433 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
8434 r20 around calls of __tablejump_elpm__
8436 2011-04-13 Jakub Jelinek <jakub@redhat.com>
8439 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
8441 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
8443 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
8445 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
8446 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
8447 (cfi_vec): New typedef.
8448 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
8449 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
8450 (cie_cfi_vec): New static variable.
8451 (cie_cfi_head): Delete.
8452 (add_cfi): Accept a cfi_vec * as first argument. All callers and
8453 declaration changed. Use vector rather than list operations.
8454 (new_cfi): Don't initialize the dw_cfi_next field.
8455 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
8456 rather than list operations.
8457 (lookup_cfa): Use vector rather than list operations.
8458 (output_cfis): New argument upto. Accept a cfi_vec rather than
8459 a dw_cfi_ref list head as argument. All callers changed.
8460 Iterate over the vector using upto as a maximum index.
8461 (output_all_cfis): New static function.
8462 (output_fde): Use vector rather than list operations. Use the
8463 new upto argument for output_cfis rather than manipulating a
8465 (dwarf2out_begin_prologue): Change initializations to match
8467 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
8468 from the vector length rather than searching for the end of a list.
8469 Use output_all_cfis.
8470 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
8472 2011-04-13 Nick Clifton <nickc@redhat.com>
8474 * config/rx/rx.md (movmemsi): Do not use this pattern when
8475 volatile pointers are involved.
8477 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
8479 * config/i386/sse.md (pinsrbits): Remove.
8480 (sse2_packsswb): Merge with *avx_packsswb.
8481 (sse2_packssdw): Merge with *avx_packssdw.
8482 (sse2_packuswb): Merge with *avx_packuswb.
8483 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
8484 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
8485 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
8486 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
8487 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
8488 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
8489 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
8490 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
8491 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
8492 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
8493 (sse2_loadld): Merge with *avx_loadld.
8494 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
8495 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
8496 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
8497 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
8498 (vec_concatv2di): Merge with *vec_concatv2di_avx.
8500 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
8502 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
8504 * print-tree.c (print_node): Likewise.
8505 * tree-inline.c (copy_tree_r): Likewise.
8506 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
8507 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
8508 instead of TS_COMMON.
8509 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
8510 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
8511 (copy_node_stat): Zero TREE_CHAIN only if necessary.
8512 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
8513 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
8515 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
8517 (TREE_CHAIN): Check for a TS_COMMON structure.
8518 (TREE_TYPE): Check for a TS_TYPED structure.
8520 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
8522 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
8523 cgraph_get_create_node instead of cgraph_node.
8525 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
8527 * c-parser.c (c_parser_initelt): Updated call to
8528 objc_build_message_expr.
8529 (c_parser_postfix_expression): Likewise.
8531 2011-04-12 Kai Tietz <ktietz@redhat.com>
8533 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
8534 MASK_MS_BITFIELD_LAYOUT bit.
8536 2011-04-12 Jakub Jelinek <jakub@redhat.com>
8538 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
8539 assert it is always true.
8540 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
8543 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
8545 * c-parser.c (c_lex_one_token): Rewritten conditional used when
8546 compiling Objective-C to be more efficient.
8548 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
8550 * opts-common.c (decode_cmdline_options_to_array): Remove variable
8553 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
8555 * recog.h, genoutput.c, optabs.c: Revert last patch.
8557 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8560 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
8562 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
8564 * recog.h (insn_operand_data): Add an "allows_mem" field.
8565 * genoutput.c (output_operand_data): Initialize it.
8566 * optabs.c (maybe_legitimize_operand_same_code): New function.
8567 (maybe_legitimize_operand): Use it when matching the original
8570 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
8572 * genpreds.c (process_define_predicate): Move most processing
8573 to gensupport.c. Continue to validate the expression.
8574 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
8575 (process_define_predicate): Move processing to gensupport.c.
8576 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
8577 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
8578 (compute_predicate_codes): Moved from genrecog.c. Add lineno
8580 (valid_predicate_name_p): New function, split out from old
8581 genpreds.c:process_define_predicate.
8582 (process_define_predicate): New function, combining code from
8583 old genpreds.c and genrecog.c functions.
8584 (process_rtx): Call it for DEFINE_PREDICATE and
8585 DEFINE_SPECIAL_PREDICATE.
8587 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
8589 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
8590 size of a '%A' memory reference.
8591 (T_DREG, T_QREG): New neon_builtin_type_bits.
8592 (arm_init_neon_builtins): Assert that the load and store operands
8593 are neon_struct_operands.
8594 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
8595 (NEON_ARG_MEMORY): New builtin_arg.
8596 (neon_dereference_pointer): New function.
8597 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
8598 Handle NEON_ARG_MEMORY.
8599 (arm_expand_neon_builtin): Update after above interface changes.
8600 Use NEON_ARG_MEMORY for loads and stores.
8601 * config/arm/predicates.md (neon_struct_operand): New predicate.
8602 * config/arm/iterators.md (V_two_elem): Tweak formatting.
8603 (V_three_elem): Use BLKmode for accesses that have no associated mode.
8604 (V_four_elem): Tweak formatting.
8605 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
8606 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
8607 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
8608 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
8609 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
8610 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
8611 (neon_vst4<mode>): Replace pointer operand with a memory operand.
8612 Use %A in the output template.
8613 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
8614 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
8615 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
8616 the width of the memory access. Remove post-increment.
8617 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
8619 2011-04-12 Nick Clifton <nickc@redhat.com>
8621 * config/v850/v850.c (expand_prologue): Do not use the CALLT
8622 instruction for interrupt handlers if the target is the basic V850
8624 (expand_epilogue): Likewise.
8626 2011-04-12 Jakub Jelinek <jakub@redhat.com>
8628 PR rtl-optimization/48549
8629 * combine.c (propagate_for_debug): Also stop after BB_END of
8630 this_basic_block. Process LAST and just stop processing after it.
8631 (combine_instructions): If last_combined_insn has been deleted,
8632 set last_combined_insn to its PREV_INSN.
8634 2011-04-12 Richard Guenther <rguenther@suse.de>
8636 PR tree-optimization/46076
8637 * gimple.h (struct gimple_statement_call): Add fntype field.
8638 (gimple_call_fntype): Adjust.
8639 (gimple_call_set_fntype): New function.
8640 * gimple.c (gimple_build_call_1): Set the call function type.
8641 * gimplify.c (gimplify_call_expr): Preserve the function
8642 type the frontend used for the call.
8643 (gimplify_modify_expr): Likewise.
8644 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
8646 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
8648 * tree-ssa.c (useless_type_conversion_p): Function pointer
8649 conversions are useless.
8651 2011-04-12 Martin Jambor <mjambor@suse.cz>
8653 * cgraph.h (cgraph_node): Remove function declaration.
8654 (cgraph_create_node): Declare.
8655 (cgraph_get_create_node): Likewise.
8656 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
8657 Updated all callers.
8658 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
8659 the decl does not already exist. Call cgraph_get_create_node instead
8661 (cgraph_get_create_node): New function.
8662 (cgraph_same_body_alias): Update comment.
8663 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
8664 assert it does not return NULL.
8665 (cgraph_update_edges_for_call_stmt): Likewise.
8666 (cgraph_clone_edge): Likewise.
8667 (cgraph_create_virtual_clone): Likewise.
8668 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
8669 instead of cgraph_node.
8670 (cgraph_add_new_function): Call cgraph_create_node or
8671 cgraph_get_create_node instead of cgraph_node.
8672 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
8673 instead of cgraph_node.
8674 (record_eh_tables): Likewise.
8675 (mark_address): Likewise.
8676 (mark_load): Likewise.
8677 (build_cgraph_edges): Call cgraph_get_create_node instead
8679 (rebuild_cgraph_edges): Likewise.
8680 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
8681 instead of cgraph_node.
8682 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
8684 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
8685 cgraph_create_node instead of cgraph_node.
8686 * c-decl.c (finish_function): Call cgraph_get_create_node instead
8688 * lto-cgraph.c (input_node): Likewise.
8689 * lto-streamer-in.c (input_function): Likewise.
8690 * varasm.c (mark_decl_referenced): Likewise.
8691 (assemble_alias): Likewise.
8693 2011-04-12 Martin Jambor <mjambor@suse.cz>
8695 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
8696 instead of cgraph_node and assert it does not return NULL.
8697 * lto-streamer-in.c (lto_read_body): Likewise.
8698 * omp-low.c (new_omp_context): Likewise.
8699 (create_task_copyfn): Likewise.
8700 * tree-emutls.c (lower_emutls_function_body): Likewise.
8701 * matrix-reorg.c (transform_allocation_sites): Likewise.
8703 2011-04-12 Jakub Jelinek <jakub@redhat.com>
8706 * c-typeck.c (build_asm_expr): Error out on attempts to use
8707 void type outputs or inputs for constraints that allow reg or
8710 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
8711 Richard Earnshaw <rearnsha@arm.com>
8714 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
8715 to use sign-magnitude offsets. Reject unsupported unaligned
8716 cases. Add detailed description in comments.
8717 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
8718 condition from TARGET_32BIT to TARGET_ARM.
8720 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
8722 * tree.h (struct typed_tree): New.
8723 (struct tree_common): Include it instead of tree_base.
8724 (TREE_TYPE): Update for new location of type field.
8725 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
8726 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
8727 (union tree_node): Add typed field.
8728 * treestruct.def (TS_TYPED): New.
8729 * lto-streamer.c (check_handled_ts_structures): Handle it.
8730 * tree.c (MARK_TS_TYPED): New macro.
8731 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
8733 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
8735 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
8736 (force_nonfallthru): Do not alter the loop nest if no basic block
8739 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
8741 * config/i386/sse.md (VI): New mode iterator.
8743 (AVX256MODEI): Ditto.
8744 (AVXMODEF4P): Ditto.
8745 (avxvecpsmode): Ditto.
8746 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
8747 (sse2_andnot<mode>3): New expander.
8748 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
8749 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
8750 (<any_logic:code><mode>3): Use VI mode iterator.
8751 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
8752 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
8753 (*andnottf3): Handle AVX three-operand constraints.
8754 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
8756 2011-04-11 Joseph Myers <joseph@codesourcery.com>
8757 Robert Millan <rmh@gnu.org>
8759 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
8760 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
8761 GNU_USER_DYNAMIC_LINKER64): Define.
8762 (REG_NAME): Don't undefine.
8763 (MD_UNWIND_SUPPORT): Undefine.
8764 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
8765 (REG_NAME): Don't undefine.
8766 (MD_UNWIND_SUPPORT): Undefine.
8767 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
8769 2011-04-11 Joseph Myers <joseph@codesourcery.com>
8771 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
8772 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
8774 2011-04-11 Xinliang David Li <davidxl@google.com>
8776 * value-profile.c (check_ic_target): New function.
8777 (gimple_ic_transform): Sanity check indirect call target.
8778 * gimple-low.c (gimple_check_call_args): Interface change.
8779 (gimple_check_call_matching_types): New function.
8780 * tree-inline.c (tree_can_inline_p): Call new function.
8782 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
8784 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
8785 tree-pretty-print.h & realmpfr.h.
8787 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
8790 * ira.c (setup_pressure_classes): Fix typo in loop condition.
8791 (setup_allocno_and_important_classes): Ditto.
8793 2011-04-11 Joseph Myers <joseph@codesourcery.com>
8795 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
8796 GNU_USER_DYNAMIC_LINKER.
8797 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
8798 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8799 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
8800 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
8801 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
8802 GNU_USER_TARGET_OS_CPP_BUILTINS.
8803 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
8804 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8805 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
8806 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8807 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
8808 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
8809 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
8810 GNU_USER_TARGET_OS_CPP_BUILTINS.
8811 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8812 GNU_USER_DYNAMIC_LINKER.
8813 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
8814 GNU_USER_TARGET_OS_CPP_BUILTINS.
8815 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
8816 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8817 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
8818 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8819 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
8820 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
8821 GNU_USER_DYNAMIC_LINKER64): Remove.
8822 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
8823 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8824 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8825 GNU_USER_DYNAMIC_LINKER.
8826 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
8827 GNU_USER_TARGET_OS_CPP_BUILTINS.
8828 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
8829 GNU_USER_TARGET_OS_CPP_BUILTINS.
8830 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
8831 to GNU_USER_TARGET_OS_CPP_BUILTINS.
8832 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
8833 GNU_USER_TARGET_OS_CPP_BUILTINS.
8834 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
8835 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
8836 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
8837 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
8838 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8839 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8840 GNU_USER_DYNAMIC_LINKER.
8841 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
8842 GNU_USER_TARGET_OS_CPP_BUILTINS.
8843 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
8844 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8845 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8846 GNU_USER_DYNAMIC_LINKER.
8847 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
8848 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8849 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
8850 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8851 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8852 GNU_USER_DYNAMIC_LINKER.
8853 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
8854 GNU_USER_DYNAMIC_LINKERN32.
8855 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
8856 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
8857 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
8858 GNU_USER_DYNAMIC_LINKER32.
8859 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
8860 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8861 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8862 GNU_USER_DYNAMIC_LINKER.
8863 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
8864 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8865 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
8866 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8867 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
8868 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
8869 GNU_USER_DYNAMIC_LINKER32.
8870 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
8871 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
8872 GNU_USER_DYNAMIC_LINKER.
8873 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
8874 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8875 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
8876 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
8877 GNU_USER_DYNAMIC_LINKER64.
8878 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
8879 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8880 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8881 GNU_USER_DYNAMIC_LINKER.
8882 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
8883 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8884 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8885 GNU_USER_DYNAMIC_LINKER.
8886 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
8887 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8888 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
8889 GNU_USER_DYNAMIC_LINKER32.
8890 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
8891 GNU_USER_DYNAMIC_LINKER64.
8892 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
8893 GNU_USER_DYNAMIC_LINKER64.
8894 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
8895 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8896 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
8897 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8898 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
8900 2011-04-11 Joseph Myers <joseph@codesourcery.com>
8902 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
8903 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
8904 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
8905 GNU_USER_DYNAMIC_LINKER.
8906 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
8907 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
8908 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
8909 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
8910 GNU_USER_DYNAMIC_LINKER64.
8911 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
8912 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
8913 GNU_USER_LINK_EMULATION.
8914 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
8915 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
8916 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
8917 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
8918 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
8919 CPP_SPEC, CC1_SPEC): Remove.
8920 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
8921 (GNU_USER_DYNAMIC_LINKER): Define.
8922 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
8923 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
8924 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
8925 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
8926 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
8927 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
8928 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
8929 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
8930 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
8931 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
8932 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
8933 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
8934 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
8935 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
8936 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
8937 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
8938 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
8939 GNU_USER_DYNAMIC_LINKER.
8940 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
8941 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
8942 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
8943 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
8944 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
8945 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
8946 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
8947 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
8948 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
8949 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
8951 2011-04-11 Kai Tietz <ktietz@redhat.com>
8955 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
8956 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
8958 (ix86_is_msabi_thiscall): Removed.
8959 (ix86_is_type_thiscall): Likewise.
8960 (ix86_get_callcvt): New function.
8961 (ix86_comp_type_attributes): Simplify check.
8962 (ix86_function_regparm): Use ix86_get_callcvt for calling
8963 convention attribute checks.
8964 (ix86_return_pops_args): Likewise.
8965 (ix86_static_chain): Likewise.
8966 (x86_this_parameter): Likewise.
8967 (x86_output_mi_thunk): Likewise.
8968 (ix86_function_type_abi): Optimize check for types without attributes.
8969 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
8970 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
8971 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
8973 (IX86_BASE_CALLCVT): Helper macro.
8974 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
8975 Use ix86_get_callcvt for calling convention attribute checks and avoid
8976 symbol-decoration for stdcall in TARGET_RTD case.
8977 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
8979 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
8982 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
8984 * config/i386/sse.md (VI_128): New mode iterator.
8985 (VI12_128): Rename from SSEMODE12.
8986 (VI14_128): Rename from SSEMODE14.
8987 (VI124_128): New mode iterator.
8988 (VI24_128): Rename from SSEMODE248.
8989 (VI248_128): Rename from SSEMODE248.
8990 (SSEMODE124C8): Remove.
8991 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
8992 (*sse2_<plusminus_insn><mode>3): Merge with
8993 *avx_<plusminus_insn><mode>3.
8994 (*mulv8hi3): Merge with *avx_mulv8hi3.
8995 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
8996 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
8997 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
8998 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
8999 (ashr<mode>3): Merge with *avx_ashr<mode>3.
9000 (lshr<mode>3): Merge with *avx_lshr<mode>3.
9001 (ashl<mode>3): Merge with *avx_ashl<mode>3.
9002 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
9003 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
9004 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
9005 (*<smaxmin:code>v8hi3): Ditto.
9006 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
9007 (*<smaxmin:code>v16qi3): Ditto.
9008 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
9009 (*sse2_eq<mode>3): Ditto.
9010 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
9011 (*sse2_gt<mode>3): Ditto.
9012 (vcondv2di): Split out of vcond<mode>.
9013 (vconduv2di): Split out of vcondu<mode>.
9015 2011-04-11 Richard Guenther <rguenther@suse.de>
9017 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
9018 before calling tree_low_cst.
9020 2011-04-11 Richard Guenther <rguenther@suse.de>
9022 * stor-layout.c (layout_type): Compute all array index size operations
9023 in the original type.
9024 (initialize_sizetypes): Add comment.
9025 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
9027 2011-04-11 Joseph Myers <joseph@codesourcery.com>
9029 * common.opt (Tbss=, Tdata=, Ttext=): New options.
9031 2011-04-11 Martin Jambor <mjambor@suse.cz>
9033 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
9034 of cgraph_node, handle NULL return value.
9035 (cgraph_global_info): Likewise.
9036 (cgraph_rtl_info): Likewise.
9037 * tree-inline.c (estimate_num_insns): Likewise.
9038 * gimplify.c (unshare_body): Likewise.
9039 (unvisit_body): Likewise.
9040 (gimplify_body): Likewise.
9041 * predict.c (optimize_function_for_size_p): Likewise.
9042 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
9043 (call_may_clobber_ref_p_1): Likewise.
9044 * varasm.c (function_section_1): Likewise.
9045 (assemble_start_function): Likewise.
9047 2011-04-11 Martin Jambor <mjambor@suse.cz>
9049 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
9051 * final.c (rest_of_clean_state): Likewise.
9052 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
9053 * passes.c (pass_init_dump_file): Likewise.
9054 (execute_all_ipa_transforms): Likewise.
9055 (function_called_by_processed_nodes_p): Likewise.
9056 * predict.c (maybe_hot_frequency_p): Likewise.
9057 (probably_never_executed_bb_p): Likewise.
9058 (compute_function_frequency): Likewise.
9059 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
9060 (unnest_nesting_tree_1): Likewise.
9061 (lower_nested_functions): Likewise.
9062 * tree-optimize.c (execute_fixup_cfg): Likewise.
9063 (tree_rest_of_compilation): Likewise.
9064 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
9065 * tree-sra.c (ipa_early_sra): Likewise.
9066 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
9067 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
9068 * ipa.c (record_cdtor_fn): Likewise.
9069 * ipa-inline.c (cgraph_early_inlining): Likewise.
9070 (compute_inline_parameters_for_current): Likewise.
9071 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
9072 * ipa-pure-const.c (local_pure_const): Likewise.
9073 * ipa-split.c (split_function): Likewise.
9074 (execute_split_functions): Likewise.
9075 * cgraphbuild.c (build_cgraph_edges): Likewise.
9076 (rebuild_cgraph_edges): Likewise.
9077 (cgraph_rebuild_references): Likewise.
9078 (remove_cgraph_callee_edges): Likewise.
9079 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
9080 (verify_cgraph_node): Likewise.
9081 (cgraph_analyze_functions): Likewise.
9082 (cgraph_preserve_function_body_p): Likewise.
9083 (save_inline_function_body): Likewise.
9084 (save_inline_function_body): Likewise.
9085 * tree-inline.c (copy_bb): Likewise.
9086 (optimize_inline_calls): Likewise.
9088 2011-04-11 Martin Jambor <mjambor@suse.cz>
9090 PR tree-optimization/48195
9091 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
9092 ipa_check_create_edge_args.
9093 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
9094 ipa_check_create_edge_args.
9095 * ipa-inline.c (inline_generate_summary): Do not call
9096 ipa_check_create_node_params and ipa_check_create_edge_args.
9097 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
9098 ipa_check_create_edge_args.
9100 2011-04-09 Anatoly Sokolov <aesok@post.ru>
9102 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
9104 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
9105 * function.c (record_hard_reg_sets): Likewise.
9106 * ira.c (compute_regs_asm_clobbered): Likewise.
9107 * sched-deps.c (sched_analyze_1): Likewise.
9108 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
9110 2011-04-09 Xinliang David Li <davidxl@google.com>
9112 PR tree-optimization/PR48484
9113 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
9114 has_valid_pred lazily
9116 2011-04-09 Duncan Sands <baldrick@free.fr>
9118 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
9120 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
9122 * combine.c (combine_validate_cost): Adjust comments. Set registered
9123 cost of I0 to zero at the end, if any.
9125 2011-04-08 Xinliang David Li <davidxl@google.com>
9127 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
9128 to insane profile data.
9130 2011-04-08 Xinliang David Li <davidxl@google.com>
9132 * ipa-cp.c (ipcp_update_profiling): Correct
9133 negative scale factor due to insane profile data.
9135 2011-04-08 Xinliang David Li <davidxl@google.com>
9137 * final.c (dump_basic_block_info): New function.
9138 (final): Dump basic block.
9139 (final_scan_insn): Remove old dump.
9141 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
9144 * config.gcc (i386-*-freebsd): Disable unwind table generation for
9147 2011-04-08 Michael Matz <matz@suse.de>
9150 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
9152 (rebuild_jump_labels): Call rebuild_jump_labels_1.
9153 * rtl.h (rebuild_jump_labels_chain): Declare.
9154 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
9155 insns inserted on edges.
9157 2011-04-08 Joseph Myers <joseph@codesourcery.com>
9159 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
9160 * config/arm/arm-arches.def: New.
9161 * config/arm/arm-opts.h: New.
9162 * config/arm/genopt.sh: New.
9163 * config/arm/arm-tables.opt: New (generated).
9164 * config/arm/arm.c (arm_handle_option, arm_target_help,
9165 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
9166 (all_architectures): Get most table contents from arm-arches.def.
9167 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
9168 arm_selected_tune here.
9169 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
9170 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
9171 (march=, mcpu=, mtune=): Use Enum and Var.
9172 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
9173 (arm.o): Update dependencies.
9175 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
9177 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
9179 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
9180 (write_typed_alloc_defns): Likewise.
9181 (main): Calls write_typed_alloc_defns with output_header.
9183 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
9186 * ira-color.c (setup_profitable_hard_regs): Add comments.
9187 Don't take prohibited hard regs into account.
9188 (setup_conflict_profitable_regs): Rename to
9189 get_conflict_profitable_regs.
9190 (check_hard_reg_p): Check prohibited hard regs.
9192 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
9194 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
9195 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
9196 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
9198 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9201 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
9202 move from floating point to shift amount register.
9203 (emit_move_sequence): Remove secondary reload support for floating
9204 point to shift amount amount register copies.
9205 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
9206 amount register copies.
9207 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
9208 register, return false if mode isn't a scalar integer mode.
9209 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
9211 2011-04-08 Richard Guenther <rguenther@suse.de>
9213 * gimple.c (gimple_call_flags): Remove kludge.
9215 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
9217 * sel-sched.c (sel_region_init): Move call to
9218 sel_setup_region_sched_flags after setup_current_loop_nest.
9220 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
9222 PR rtl-optimization/48272
9223 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
9224 init_insn_reg_pressure_info. Adjust a caller.
9225 * sched-int.h (init_insn_reg_pressure_info): Declare.
9226 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
9227 when sched-pressure is enabled.
9229 2011-04-08 Richard Guenther <rguenther@suse.de>
9231 * gimple.c (gimple_set_modified): Do not queue calls to
9232 MODIFIED_NORETURN_CALLS here ...
9233 * tree-ssa-operands.c (update_stmt_operands): ... but here.
9235 2011-04-08 Richard Guenther <rguenther@suse.de>
9238 * toplev.c (lang_dependent_init): Do not open asm_out_file
9239 in WPA mode, nor perform debug machinery initialization.
9240 (finalize): Do not unlink asm_out_file in WPA mode.
9242 2011-04-08 Richard Guenther <rguenther@suse.de>
9244 * gimple.h (gimple_call_fntype): New function.
9245 (gimple_call_return_type): Use it.
9246 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
9247 * gimple-low.c (gimple_check_call_args): Likewise.
9248 * gimple.c (gimple_call_flags): Likewise.
9249 (gimple_call_arg_flags): Likewise.
9250 (gimple_call_return_flags): Likewise.
9251 * tree-cfg.c (verify_gimple_call): Likewise.
9252 (do_warn_unused_result): Likewise.
9253 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
9254 * value-prof.c (gimple_ic_transform): Fix fndecl check.
9256 2011-04-08 Dmitry Melnik <dm@ispras.ru>
9258 PR rtl-optimization/48235
9259 * sel-sched.c (code_motion_process_successors): Recompute the last
9260 insn in basic block if control flow changed.
9261 (code_motion_path_driver): Ditto. Recompute the first insn as well.
9262 Update condition for ilist_remove.
9264 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
9266 PR rtl-optimization/48302
9267 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
9268 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
9269 it to record added preheader blocks.
9270 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
9271 on to sel_add_loop_preheaders.
9272 (sel_region_init): Move call to setup_current_loop_nest after
9275 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
9278 * cfgloop.h (loop_has_exit_edges): New helper.
9279 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
9281 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
9282 that have no exit edges.
9284 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
9286 PR rtl-optimization/48442
9287 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
9288 all callers. Adjust assert.
9290 2011-04-08 Jakub Jelinek <jakub@redhat.com>
9292 PR tree-optimization/48377
9293 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
9294 is_packed to true even for types with smaller TYPE_ALIGN than
9297 2011-04-08 Richard Guenther <rguenther@suse.de>
9300 * doc/tm.texi: Re-generate.
9302 2011-04-08 Wei Guozhi <carrot@google.com>
9305 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
9306 * config/arm/arm.c (arm_attr_length_push_multi): New function.
9307 * config/arm/arm.md (*push_multi): Change the length computation to
9310 2011-04-08 Anatoly Sokolov <aesok@post.ru>
9312 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
9313 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
9314 * doc/tm.texi: Regenerate.
9315 * system.h (ASM_OUTPUT_BSS): Poison.
9316 * varasm.c (asm_output_bss): Remove function.
9317 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
9319 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
9320 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
9321 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
9322 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
9324 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
9326 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
9328 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
9330 2011-04-07 Joseph Myers <joseph@codesourcery.com>
9332 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
9335 2011-04-07 Joseph Myers <joseph@codesourcery.com>
9337 * config/m68k/m68k.c (m68k_handle_option): Don't handle
9338 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
9339 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
9341 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
9342 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
9343 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
9344 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
9345 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
9346 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
9347 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
9348 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
9349 options. Don't map other m68k options manually. Don't handle
9350 old-style options as canonical.
9351 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
9352 * doc/install.texi (m68k-*-*): Document binutils version requirement.
9354 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
9356 * basic-block.h (force_nonfallthru): Move to...
9357 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
9358 (force_nonfallthru): ...here.
9359 * cfghooks.c (force_nonfallthru): New function.
9360 * cfgrtl.c (force_nonfallthru): Rename into...
9361 (rtl_force_nonfallthru): ...this.
9362 (commit_one_edge_insertion): Do not set AUX field.
9363 (commit_edge_insertions): Do not discover new basic blocks.
9364 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
9365 (cfg_layout_rtl_cfg_hooks): Likewise.
9366 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
9367 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
9368 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
9370 2011-04-07 Anatoly Sokolov <aesok@post.ru>
9372 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
9375 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
9377 * config/i386/sse.md: Update copyright year.
9378 (avxcvtvecmode): Remove.
9379 (sse_movhlps): Merge with *avx_movhlps.
9380 (sse_movlhps): Merge with *avx_movlhps.
9381 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
9382 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
9383 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
9384 (sse_loadhps): Merge with *avx_loadhps.
9385 (sse_storelps): Merge with *avx_storelps.
9386 (sse_loadlps): Merge with *avx_loadlps.
9387 (sse_movss): Merge with *avx_movss.
9388 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
9389 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
9390 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
9391 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
9392 (vec_set<mode>_0): Ditto.
9393 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
9394 (sse4_1_insertps): Merge with *avx_insertps.
9395 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
9396 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
9397 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
9398 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
9399 (sse2_storehpd): Merge with *avx_storehpd.
9400 (sse2_loadhpd): Merge with *avx_loadhpd.
9401 (sse2_loadlpd): Merge with *avx_loadlpd.
9402 (sse2_movsd): Merge with *avx_movsd.
9403 (*vec_concatv2df): Merge with *vec_concatv2df.
9405 2011-04-07 Jakub Jelinek <jakub@redhat.com>
9408 * combine.c (combine_instructions): Add last_combined_insn,
9409 update it if insn is after it, pass it to all try_combine calls.
9410 (try_combine): Add last_combined_insn parameter, pass it instead of
9411 i3 to propagate_for_debug.
9413 2011-04-07 Nick Clifton <nickc@redhat.com>
9415 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
9416 to handle MDR <-> data register transfers.
9417 (movhi_internal): Likewise.
9419 2011-04-07 Alan Modra <amodra@gmail.com>
9421 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
9422 previous stack info.
9424 2011-04-07 Tom de Vries <tom@codesourcery.com>
9427 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
9428 flow_find_cross_jump. Swap variables to implement backward replacement.
9429 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
9431 2011-04-07 Tom de Vries <tom@codesourcery.com>
9434 * cfgcleanup.c (walk_to_nondebug_insn): New function.
9435 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
9437 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
9438 src1 or src2. Redirect edges to the last basic block. Update
9439 frequency and count on multiple basic blocks in case of fallthru.
9441 2011-04-07 Tom de Vries <tom@codesourcery.com>
9444 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
9446 (old_insns_match_p): Change return type. Replace return false/true
9447 with return dir_none/dir_both. Use can_replace_by.
9448 (flow_find_cross_jump): Add dir_p parameter. Init replacement
9449 direction from dir_p. Register replacement direction in dir, last_dir
9450 and afterlast_dir. Handle new return type of old_insns_match_p using
9451 merge_dir. Return replacement direction in dir_p.
9452 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
9453 return type of old_insns_match_p.
9454 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
9455 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
9456 flow_find_cross_jump.
9457 * basic-block.h (enum replace_direction): New type.
9458 (flow_find_cross_jump): Add parameter to declaration.
9460 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
9462 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
9463 (AVXMODEDCVTPS2DQ): Ditto.
9464 (VEC_FLOAT_MODE): Ditto.
9465 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
9466 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
9467 (<any_logic:code><mode>3): Use VF mode iterator.
9468 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
9469 Use VF mode iterator.
9470 (copysign<mode>3): Use VF mode iterator.
9471 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
9472 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
9473 (*<any_logic:code><MODEF:mode>3): Merge with
9474 *avx_<any_logic:code><MODEF:mode>3.
9475 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
9476 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
9477 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
9478 (avx_cvtdq2ps<avxmodesuffix>): Remove.
9479 (sse2_cvtdq2ps): Use %v modifier.
9480 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
9481 (avx_cvtps2dq<avxmodesuffix>): Remove.
9482 (sse2_cvtps2dq): Use %v modifier.
9483 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
9484 (avx_cvttps2dq<avxmodesuffix>): Remove.
9485 (sse2_cvttps2dq): Use %v modifier.
9486 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
9487 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
9488 (sse2_cvtsd2siq): Fix insn template.
9489 (sse2_cvtsd2siq_2): Ditto.
9490 (sse2_cvttsd2siq): Ditto.
9491 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
9492 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
9494 2011-04-06 Joseph Myers <joseph@codesourcery.com>
9496 * gcov-io.c: Use GCC Runtime Library Exception.
9498 2011-04-06 Jakub Jelinek <jakub@redhat.com>
9501 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
9502 as base_reg whatever register reg has been eliminated to, instead
9503 of hardcoding STACK_POINTER_REGNUM.
9505 2011-04-06 Joseph Myers <joseph@codesourcery.com>
9507 * doc/tm.texi.in: Document C target hooks as separate from general
9509 * doc/tm.texi: Regenerate.
9510 * genhooks.c (struct hook_desc): Add docname field.
9511 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
9513 (hook_array): Include c-target.def.
9514 (emit_documentation): Use docname field in output.
9515 (emit_init_macros): Take docname argument. Only emit definitions
9516 for hooks matching docname.
9517 (main): Expect additional arguments in all cases. Pass argument
9518 to emit_init_macros.
9519 * target.def: Move initial macro definitions and comments to
9520 target-hooks-macros.h.
9521 (gcc_targetcm): Move to c-family/c-target.def.
9522 * target.h (targetcm): Move declaration to c-family/c-target.h.
9523 * targhooks.c (default_handle_c_option): Move to
9525 * targhooks.h (default_handle_c_option): Move declaration to
9526 c-family/c-common.h.
9527 * target-hooks-macros.h: New file.
9528 * config.gcc (target_has_targetcm): Define and use to add to
9529 c_target_objs and cxx_target_objs.
9530 * config/default-c.c: New file.
9531 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
9532 of target.h and target-def.h.
9533 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
9534 (darwin_objc_construct_string, darwin_cfstring_ref_p,
9535 darwin_check_cfstring_format_arg): Make static.
9536 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
9537 TARGET_STRING_OBJECT_REF_TYPE_P,
9538 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
9539 * config/darwin-protos.h (darwin_objc_construct_string,
9540 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
9542 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
9543 TARGET_STRING_OBJECT_REF_TYPE_P,
9544 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
9545 * config/t-darwin (darwin-c.o): Update dependencies.
9546 * system.h (TARGET_HAS_TARGETCM): Poison.
9547 * Makefile.in (TARGET_H): Update.
9548 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
9549 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
9550 (default-c.o): New target.
9551 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
9552 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
9553 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
9555 (build/genhooks.o): Update dependencies.
9557 2011-04-06 Richard Guenther <rguenther@suse.de>
9559 * ipa-inline.c (enum inlining_mode): Remove.
9560 (cgraph_flatten): Use some other token.
9561 (cgraph_edge_early_inlinable_p): New function, split out from ...
9562 (cgraph_perform_always_inlining): New function, split out from ...
9563 (cgraph_decide_inlining_incrementally): ... here.
9564 (cgraph_mark_inline_edge): Adjust.
9565 (cgraph_early_inlining): Re-structure.
9566 (pass_early_inline): Require SSA form.
9568 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
9569 Julian Brown <julian@codesourcery.com>
9570 Mark Shinwell <shinwell@codesourcery.com>
9572 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
9573 LO_REGS only for Thumb-1.
9574 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
9575 be used in short instructions when optimising for size on Thumb-2.
9577 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
9579 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
9580 associated with user returns to be preserved.
9582 2011-04-06 Tristan Gingold <gingold@adacore.com>
9584 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
9585 symbol_queue_size, DBXOUT_DECR_NESTING,
9586 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
9587 if XCOFF_DEBUGGING_INFO.
9589 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
9591 * config/i386/i386.md (attribute isa): New.
9592 (attribute enabled): New.
9593 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
9594 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
9595 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
9596 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
9597 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
9598 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
9599 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
9600 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
9602 * config/i386/sse.md (VF): New mode iterator.
9606 (SSEMODEF4): Remove.
9607 (attribute sse): Handle V8SF and V4DF modes.
9608 (<absneg:code><mode>2): Use VF mode iterator.
9609 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
9611 (<plusminus_insn><mode>3): Use VF mode iterator.
9612 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
9613 Use VF mode iterator.
9614 (<sse>_vm<plusminus_insn><mode>3): Merge with
9615 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
9616 (mul<mode>3): Use VF mode iterator.
9617 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
9618 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
9620 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
9621 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
9622 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
9623 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
9625 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
9626 Use VF1 mode iterator.
9627 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
9628 (sqrt<VF2:mode>2): New expander.
9629 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
9630 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
9631 and sqrtv2df2. Use VF mode iterator.
9632 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
9634 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
9635 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
9636 Use VF1 mode iterator.
9637 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
9638 (<smaxmin:code><mode>3): Use VF mode iterator.
9639 (*<smaxmin:code><mode>3_finite): Merge with
9640 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
9641 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
9642 (<sse>_vm<smaxmin:code><mode>2): Merge with
9643 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
9644 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
9646 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
9648 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
9649 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
9650 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
9651 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
9652 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
9654 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
9655 Use VF_128 mode iterator.
9656 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
9658 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
9659 VF_128 mode iterator.
9660 (vcond<mode>): Use VF mode iterator.
9661 * config/i386/predicates.md (sse_comparison_operator): Merge with
9662 avx_comparison_float_operator. Do not declare as special_predicate.
9663 * config/i386/i386.c (struct builtin_description): Update for renamed
9665 (ix86_expand_args_builtin): Ditto.
9666 (ix86_expand_sse_compare_mask): Ditto.
9668 2011-04-06 Richard Guenther <rguenther@suse.de>
9670 * tree-inline.c (estimate_num_insns): For calls simply account
9671 for all passed arguments and a used return value.
9673 2011-04-06 Richard Guenther <rguenther@suse.de>
9675 PR tree-optimization/47663
9676 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
9677 call_stmt_time fields.
9678 (cgraph_edge_inlinable_p): Declare.
9679 (cgraph_edge_recursive_p): New inline function.
9680 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
9681 (cgraph_clone_edge): Copy it.
9682 * ipa-inline.c (cgraph_estimate_edge_time): New function.
9683 Account for call stmt time.
9684 (cgraph_estimate_time_after_inlining): Take edge argument.
9685 (cgraph_estimate_edge_growth): Account call stmt size.
9686 (cgraph_estimate_size_after_inlining): Take edge argument.
9687 (cgraph_mark_inline_edge): Adjust.
9688 (cgraph_check_inline_limits): Likewise.
9689 (cgraph_recursive_inlining_p): Remove.
9690 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
9691 (cgraph_decide_recursive_inlining): Take edge argument and
9693 (cgraph_decide_inlining_of_small_functions): Do not avoid
9694 diags for recursive inlining here.
9695 (cgraph_flatten): Adjust.
9696 (cgraph_decide_inlining_incrementally): Likewise.
9697 (estimate_function_body_sizes): Remove call cost handling.
9698 (compute_inline_parameters): Initialize caller edge call costs.
9699 (cgraph_estimate_edge_growth): New function.
9700 (cgraph_estimate_growth): Use it.
9701 (cgraph_edge_badness): Likewise.
9702 (cgraph_check_inline_limits): Take an edge argument.
9703 (cgraph_decide_inlining_of_small_functions): Adjust.
9704 (cgraph_decide_inlining): Likewise.
9705 * tree-inline.c (estimate_num_insns): Only account for call
9706 return value if it is used.
9707 (expand_call_inline): Avoid diagnostics on recursive inline
9709 * lto-cgraph.c (lto_output_edge): Output edge call costs.
9710 (input_edge): Input edge call costs.
9712 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9714 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
9716 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
9718 * doc/invoke.texi (Spec Files): Fix typo.
9720 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
9722 * profile.c (branch_prob): Move declaration of local variable. Remove
9723 obsolete ??? comment. Expand the location explicitly instead of using
9724 the LOCATION_FILE and LOCATION_LINE macros.
9726 2011-04-06 Wei Guozhi <carrot@google.com>
9729 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
9730 (arm_cond_branch): Likewise.
9731 (arm_cond_branch_reversed): Likewise.
9732 (arm_jump): Likewise.
9733 (push_multi): Likewise.
9734 * config/arm/constraints.md (Py): New constraint.
9736 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9739 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
9741 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
9742 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
9743 #ifdef DBX_DEBUGGING_INFO.
9745 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
9748 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
9749 if old and new states differ.
9751 2011-04-05 Joseph Myers <joseph@codesourcery.com>
9753 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
9754 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
9755 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
9756 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
9757 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
9759 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
9760 ColdFire options to -mcpu= options.
9762 2011-04-05 Jeff Law <law@redhat.com>
9764 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
9765 check if BB is a successor of LOOP->header and return
9766 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
9768 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
9770 * cprop.c (struct reg_use): Remove.
9771 (reg_use_table): Make an array of RTX.
9772 (find_used_regs, constprop_register, local_cprop_pass,
9773 bypass_block): Simplify users of reg_use_table.
9774 (cprop_insn): Likewise. Iterate if copy propagation succeeded
9775 on one of the uses found by find_used_regs.
9777 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9780 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
9783 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9785 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
9787 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
9789 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
9792 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
9794 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9796 * combine.c: Include obstack.h.
9797 (struct insn_link): Define.
9798 (uid_log_links): Adjust type.
9799 (FOR_EACH_LOG_LINK): New macro.
9800 (insn_link_obstack): Declare.
9801 (alloc_insn_link): Define.
9802 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
9803 type of link variables.
9804 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
9805 (try_combine, record_promoted_values, distribute_notes): Likewise.
9806 (distribute_links): Likewise. Tweak prototype.
9807 (clear_log_links): Delete.
9808 (adjust_for_new_dest): Call alloc_insn_link.
9809 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
9811 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9813 * gcse.c (modify_mem_list): Convert to an array of VECs.
9814 (canon_modify_mem_list, compute_transp): Tweak formatting.
9815 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
9816 (load_killed_in_block_p): Likewise.
9817 (record_last_mem_set_info): Likewise.
9818 (clear_modify_mem_tables): Likewise.
9820 2011-04-05 Tom de Vries <tom@codesourcery.com>
9823 * function.c (emit_use_return_register_into_block): Only define if
9826 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
9828 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
9830 2011-04-05 Joseph Myers <joseph@codesourcery.com>
9832 * config/rx/rx-opts.h: New.
9833 * config/rx/rx.c (rx_cpu_type): Remove.
9834 (rx_handle_option): Don't assert that global structures are in
9835 use. Access variables via opts pointer. Defer most handling of
9836 OPT_mint_register_. Use error_at.
9837 (rx_option_override): Handle deferred OPT_mint_register_ here.
9838 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
9839 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
9840 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
9841 (rx_cpu_types): New Enum and EnumValue entries.
9842 (mint-register=): Use Defer and use Var accordingly.
9844 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9846 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
9847 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
9848 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
9850 (debug_free_queue, debug_nesting, symbol_queue_index):
9852 * dbxout.c: ...to here. Make static.
9854 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9856 * gcse.c (modify_pair): Define. Define a VEC of it.
9857 (canon_modify_mem_list): Convert to an array of VECs.
9858 (free_insn_expr_list_list): Delete.
9859 (clear_modify_mem_tables): Call VEC_free instead.
9860 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
9861 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
9862 (canon_list_insert, compute_transp): Likewise.
9864 2011-04-05 Tom de Vries <tom@codesourcery.com>
9867 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
9870 2011-04-05 Tom de Vries <tom@codesourcery.com>
9873 * function.c (emit_use_return_register_into_block): New function.
9874 (thread_prologue_and_epilogue_insns): Use
9875 emit_use_return_register_into_block.
9877 2011-04-05 Tom de Vries <tom@codesourcery.com>
9880 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
9883 2011-04-05 Tom de Vries <tom@codesourcery.com>
9885 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
9887 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
9889 * config/arm/arm.md (define_constants for unspec): Replace with
9891 (define_constants for unspecv): Replace with define_c_enum.
9892 * config/arm/neon.md (define_constants for unspec): Replace with
9895 2011-04-04 Richard Henderson <rth@redhat.com>
9898 * dwarf2out.c (output_line_info): Always emit line info from
9899 at least one section.
9900 (dwarf2out_init): Create text_section_line_info here ...
9901 (set_cur_line_info_table): ... not here.
9903 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
9906 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
9909 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
9911 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
9913 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
9914 (expr_equiv_p): Remove.
9915 (insert_set_in_table): Look at <dest, src> pair instead of expr.
9916 (hash_scan_set): Update call to insert_set_in_table.
9917 (dump_hash_table): Dump <dest, src> pair.
9918 (lookup_set): Simplify. Lookup <dest, src> pair.
9919 (compute_transp): Remove, fold heavily simplified code into...
9920 (compute_local_properties): ...here. Expect COMP and TRANSP
9922 (find_avail_set): Take set directly from struct expr.
9923 (find_bypass-set): Likewise.
9924 (bypass_block): Likewise.
9925 (cprop_insn): Likewise. Remove redundant INSN_P test.
9927 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
9928 checks on form of COND from find_implicit_sets to here.
9929 (find_implicit_sets): Cleanup control flow. Split critical edges
9930 if it exposes implicit sets. Allocate/resize implicit_sets as
9932 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
9933 changed something. Run df_analyze after find_implicit_sets if any
9934 edges were split. Do not allocate implicit_sets here.
9936 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
9937 (gcse_obstack): Renamed to cprop_obstack.
9938 (GNEW, GNEWVEC, GNEWVAR): Remove.
9940 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
9941 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
9942 (gcse_alloc): Likewise, and rename to cprop_alloc.
9943 (alloc_gcse_men, free_gcse_mem): Remove.
9944 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
9945 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
9946 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
9948 * cprop.c (oprs_not_set_p): Remove.
9949 (mark_set, mark_clobber): Remove.
9950 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
9951 (reg_not_set_p): New function.
9952 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
9953 (cprop_insn): Likewise.
9954 (cprop_jump): Use FOR_EACH_EDGE.
9956 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
9959 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
9960 (rank_for_schedule): Use scheduled_insns vector instead of
9961 last_scheduled_insn.
9962 (ok_for_early_queue_removal): Likewise.
9963 (queue_to_ready): Search forward in nonscheduled_insns_begin if
9965 (choose_ready): Likewise.
9966 (commit_schedule): Use VEC_iterate.
9967 (schedule_block): Initialize nonscheduled_insns_begin. If we have
9968 a dbg_cnt, use it and ensure the first insn is in the ready list.
9969 (haifa_sched_init): Allocate scheduled_insns.
9970 (sched_extend_ready_list): Don't allocate it; reserve space.
9971 (haifa_sched_finish): Free it.
9973 2011-04-04 Joseph Myers <joseph@codesourcery.com>
9975 * optc-gen.awk: Always remove type from Variable entry before
9976 recording in var_seen.
9978 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
9980 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
9981 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
9982 call to tidy_fallthru_edges.
9984 2011-04-04 Joseph Myers <joseph@codesourcery.com>
9986 * doc/options.texi (ToLower): Document.
9987 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
9988 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
9989 * opts.h (cl_option): Add cl_tolower field.
9990 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
9991 arguments with lowercase strings.
9992 * config/rx/rx.opt (mcpu=): Add ToLower.
9993 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
9996 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
9998 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
10000 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
10002 * config/vax/vax.c: Include reload.h.
10004 2011-04-04 Anatoly Sokolov <aesok@post.ru>
10006 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
10007 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
10008 (sparc_preferred_reload_class): New function.
10010 2011-04-04 Jakub Jelinek <jakub@redhat.com>
10013 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
10014 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
10016 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
10018 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
10019 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
10021 2011-04-03 Anatoly Sokolov <aesok@post.ru>
10023 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
10024 (ASM_OUTPUT_ALIGNED_BSS): Define.
10026 2011-04-03 Michael Matz <matz@suse.de>
10028 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
10029 and next_slot members.
10030 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
10031 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
10032 (lto_streamer_cache_append): Declare.
10033 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
10034 unsigned index, remove offset parameter, ensure that we append
10035 or update existing entries.
10036 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
10037 parameter, update next_slot for append.
10038 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
10040 (lto_streamer_cache_insert_at): Likewise.
10041 (lto_streamer_cache_append): New function.
10042 (lto_streamer_cache_lookup): Use unsigned index.
10043 (lto_streamer_cache_get): Likewise.
10044 (lto_record_common_node): Don't test tree_node_can_be_shared.
10045 (preload_common_node): Adjust call to lto_streamer_cache_insert.
10046 (lto_streamer_cache_delete): Don't free offsets member.
10047 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
10048 (lto_output_string_with_length): Use lto_output_data_stream.
10049 (lto_output_tree_header): Remove ix parameter, don't write it.
10050 (lto_output_builtin_tree): Likewise.
10051 (lto_write_tree): Adjust callers to above, don't track and write
10052 offset, write unsigned index.
10053 (output_unreferenced_globals): Don't emit all global vars.
10054 (write_global_references): Use unsigned indices.
10055 (lto_output_decl_state_refs): Likewise.
10056 (write_symbol): Likewise.
10057 * lto-streamer-in.c (lto_input_chain): Move earlier.
10058 (input_function): Use unsigned index.
10059 (input_alias_pairs): Don't read and then ignore all global vars.
10060 (lto_materialize_tree): Remove ix_p parameter, don't read index,
10061 don't pass it back, use lto_streamer_cache_append.
10062 (lto_register_var_decl_in_symtab): Use unsigned index.
10063 (lto_register_function_decl_in_symtab): Likewise.
10064 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
10066 (lto_get_builtin_tree): Don't read index, use
10067 lto_streamer_cache_append.
10068 (lto_read_tree): Adjust call to lto_materialize_tree.
10070 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
10071 don't use function calls in arguments to MIN.
10073 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
10076 * gimple.c (gimple_type_leader_entry): Mark deletable.
10078 2011-04-03 Alan Modra <amodra@gmail.com>
10080 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
10082 2011-04-03 Michael Matz <matz@suse.de>
10084 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
10086 * tree.h (tree_decl_non_common.vindex): Adjust comment.
10088 2011-04-03 Michael Matz <matz@suse.de>
10090 * cgraphbuild.c (record_reference): Canonicalize constructor values.
10091 * gimple-fold.c (canonicalize_constructor_val): Accept being called
10092 without function context.
10093 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
10094 current_function_decl and cfun.
10096 2011-04-03 Michael Matz <matz@suse.de>
10098 * tree.c (decl_init_priority_insert): Don't create entry for
10100 (decl_fini_priority_insert): Ditto.
10101 (fields_compatible_p, find_compatible_field): Remove.
10102 * tree.h (fields_compatible_p, find_compatible_field): Remove.
10103 * gimple.c (gimple_compare_field_offset): Adjust block comment.
10105 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
10107 * combine.c (try_combine): Remove useless local variable.
10109 2011-04-03 Richard Guenther <rguenther@suse.de>
10110 Ira Rosen <ira.rosen@linaro.org>
10112 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
10113 non-variable offsets and compare the remaining bases of the two
10114 accesses instead of looking for exact same data-ref.
10116 2011-04-02 Kai Tietz <ktietz@redhat.com>
10119 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
10121 * i386.c (ix86_is_msabi_thiscall): New helper function.
10122 (ix86_is_type_thiscall): New helper function.
10123 (ix86_comp_type_attributes): Handle thiscall for method-functions
10125 (init_cumulative_args): Likewise.
10126 (find_drap_reg): Likewise.
10127 (ix86_static_chain): Likewise.
10128 (x86_this_parameter): Likewise.
10129 (x86_output_mi_thunk): Likewise.
10131 2011-04-01 Olivier Hainque <hainque@adacore.com>
10132 Nicolas Setton <setton@adacore.com>
10133 Eric Botcazou <ebotcazou@adacore.com>
10135 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
10136 (add_gnat_descriptive_type_attribute): New function.
10137 (gen_array_type_die): Call it.
10138 (gen_enumeration_type_die): Likewise.
10139 (gen_struct_or_union_type_die): Likewise.
10140 (modified_type_die): Likewise.
10141 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
10142 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
10143 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
10145 2011-04-01 Jakub Jelinek <jakub@redhat.com>
10148 * dwarf2out.c (resolve_addr): Don't call force_decl_die
10149 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
10152 2011-03-17 Richard Guenther <rguenther@suse.de>
10155 * lto-cgraph.c (input_overwrite_node): Clear the abstract
10156 origin for decls in other ltrans units.
10157 (input_varpool_node): Likewise.
10159 2011-04-01 Jakub Jelinek <jakub@redhat.com>
10161 PR middle-end/48335
10162 * expr.c (expand_assignment): Handle all possibilities
10163 if TO_RTX is CONCAT.
10164 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
10165 (store_split_bit_field): If SUBREG_REG (op0) or
10166 op0 itself has smaller mode than word, return it
10167 for offset 0 and const0_rtx for out-of-bounds stores.
10168 If word is const0_rtx, skip it.
10170 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
10172 * config/h8300/h8300.c (print_operand_address): Rename to...
10173 (h8300_print_operand_address): ...this. Make static. Adjust comments.
10174 Call h8300_print_operand and h8300_print_operand_address instead of
10175 print_operand and print_operand_address. Declare.
10176 (print_operand): Renake to...
10177 (h8300_print_operand): ...this. Make static. Adjust comments.
10178 Call h8300_print_operand instead of print_operand. Declare.
10179 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
10180 (h8300_register_move_cost): Likewise.
10181 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
10182 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
10183 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
10184 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
10185 * config/h8300/h8300-protos.h (print_operand): Delete.
10186 (print_operand_address): Delete.
10188 2011-04-01 Richard Henderson <rth@redhat.com>
10191 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
10192 in strict mode before dwarf4. Re-order tests to early out
10193 before switching sections.
10195 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
10197 * config/h8300/constraints.md: New file.
10198 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
10199 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
10200 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
10201 * config/h8300/predicates.md (bit_operand): Likewise.
10202 (incdec_operand): Use satisfies_constraint_M and
10203 satisfies_constraint_O. Don't use C code block.
10204 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
10205 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
10206 (compute_mov_length): Use satisfies_constraint_G.
10207 (fix_bit_operand): Use satisfies_constraint_U.
10208 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
10209 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
10210 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
10211 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
10212 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
10213 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
10214 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10215 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
10216 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
10217 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
10218 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
10219 (EXTRA_MEMORY_CONSTRAINT): Delete.
10221 2011-04-01 Andrew Pinski <pinskia@gmail.com>
10222 Michael Meissner <meissner@linux.vnet.ibm.com>
10225 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
10226 operands, as per the specifications.
10228 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
10229 (vec_extract_evenv4sf): Ditto.
10230 (vec_extract_evenv8hi): Ditto.
10231 (vec_extract_evenv16qi): Ditto.
10232 (vec_extract_oddv4si): Ditto.
10234 2011-03-31 Mark Wielaard <mjw@redhat.com>
10236 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
10237 high_pc attribute if the CU has no associated code. Only output
10238 DW_AT_entry_pc for CU if not generating strict dwarf and
10241 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
10243 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
10244 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
10246 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
10247 * final.c (final_start_function): Call the new function rather
10248 than using a NULL argument for dwarf2out_frame_debug.
10250 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
10251 that contains the prologue.
10253 * haifa-sched.c (queue_insn): New arg REASON. All callers
10254 changed. Print it in debugging output.
10256 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
10258 * sched-ebb.c (begin_schedule_ready): Remove second argument.
10259 Split most of the code into...
10260 (begin_move_insn): ... here. New function.
10261 (ebb_sched_info): Add a pointer to it.
10262 * haifa-sched.c (scheduled_insns): New static variable.
10263 (sched_extend_ready_list): Allocate it.
10264 (schedule_block): Use it to record the order of scheduled insns.
10265 Perform RTL changes to move insns only after all scheduling
10266 decisions have been made.
10267 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
10268 begin_move_insn field.
10269 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
10270 * sched-int.h (struct haifa_sched_info): Remove second argument
10271 from begin_schedule_ready hook. Add new member begin_move_insn.
10272 * sched-rgn.c (begin_schedule_ready): Remove second argument.
10273 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
10275 * haifa-sched.c (prune_ready_list): New function, broken out of
10277 (schedule_block): Use it.
10279 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10281 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
10283 2011-04-01 Kai Tietz <ktietz@redhat.com>
10285 * config.gcc (*-*-mingw*): Allow as option the
10286 posix threading model.
10287 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
10288 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
10290 (CPP_SPEC): Add pthread/no-pthread handling.
10291 (LIB_SPEC): Likewise.
10292 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
10293 (LIB_SPEC): Likewise.
10294 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
10295 flag to pass -pthread option for shared libgcc build.
10296 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
10297 for shared libgcc build.
10298 * config/i386/t-mingw-pthread: New file.
10299 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
10300 New define to enable use of library pthread by default.
10301 * config/i386/mingw.opt (pthread): New driver option.
10302 (no-pthread): New driver option.
10303 * config/i386/cygming.opt: Make sure trailing empty line is retained.
10304 * config/i386/mingw-w64.opt: Likewise.
10306 2011-04-01 Gary Funck <gary@intrepid.com>
10308 * c-decl.c (grokdeclarator): Fix formatting.
10310 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
10312 * expr.c (emit_block_move_via_movmem): Use n_generator_args
10313 instead of n_operands.
10314 (set_storage_via_setmem): Likewise.
10315 * optabs.c (maybe_gen_insn): Likewise.
10316 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
10317 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
10318 (mips_expand_builtin_direct): Likewise.
10319 * config/spu/spu.c (expand_builtin_args): Likewise.
10321 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
10323 * recog.h (insn_data_d): Add n_generator_args.
10324 * genoutput.c (data): Likewise.
10325 (output_insn_data): Print it.
10326 (max_opno, num_dups): Delete.
10327 (scan_operands): Just fill in "d->operand[...]".
10328 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
10330 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
10332 * gensupport.h (pattern_stats): New structure.
10333 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
10334 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
10335 (max_operand_1, max_operand_vec): Delete.
10336 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
10338 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
10340 * emit-rtl.c (emit_pattern_after_setloc): New function.
10341 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
10342 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
10343 (emit_pattern_after): New function.
10344 (emit_insn_after, emit_jump_insn_after): Call it.
10345 (emit_call_insn_after, emit_debug_insn_after): Likewise.
10346 (emit_pattern_before_setloc): New function.
10347 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
10348 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
10350 (emit_pattern_before): New function.
10351 (emit_insn_before, emit_jump_insn_before): Call it.
10352 (emit_call_insn_before, emit_debug_insn_before): Likewise.
10354 2011-03-31 Richard Henderson <rth@redhat.com>
10356 * dwarf2out.c (dw_separate_line_info_ref): Remove.
10357 (dw_separate_line_info_entry): Remove.
10358 (enum dw_line_info_opcode): New.
10359 (dw_line_info_entry): Use it.
10360 (dw_line_info_table, dw_line_info_table_p): New.
10361 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
10362 (line_info_table, line_info_label_num): Remove.
10363 (line_info_table_in_use): Remove.
10364 (separate_line_info_table): Remove.
10365 (separate_line_info_table_allocated): Remove.
10366 (separate_line_info_table_in_use): Remove.
10367 (LINE_INFO_TABLE_INCREMENT): Remove.
10368 (line_info_label_num): New.
10369 (cur_line_info_table): New.
10370 (text_section_line_info, cold_text_section_line_info): New.
10371 (separate_line_info): New.
10372 (SEPARATE_LINE_CODE_LABEL): Remove.
10373 (print_dwarf_line_table): Remove.
10374 (debug_dwarf): Don't dump it.
10375 (output_one_line_info_table): New.
10376 (output_line_info): Use it.
10377 (new_line_info_table): New.
10378 (set_cur_line_info_table): New.
10379 (dwarf2out_switch_text_section): Use it.
10380 (dwarf2out_begin_function): Likewise.
10381 (push_dw_line_info_entry): New.
10382 (dwarf2out_source_line): Rewrite for new line info tables.
10383 (dwarf2out_init): Remove dead initailizations.
10385 2011-03-31 Joseph Myers <joseph@codesourcery.com>
10387 * opts.h (cl_option): Add comments to fields. Add bit-fields for
10389 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
10390 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
10391 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
10392 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
10393 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
10394 * opt-functions.awk (flag_init, switch_bit_fields): New.
10395 (switch_flags): Don't handle flags moved to bit-fields. Don't
10396 generate CL_MISSING_OK or CL_SAVE.
10397 * optc-gen.awk: Update to generate bit-field output as well as
10399 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
10400 bit-field instead of CL_REJECT_DRIVER flag.
10401 * opts-common.c (generate_canonical_option,
10402 decode_cmdline_option): Use bit-fields instead of CL_* flags.
10403 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
10404 instead of CL_REJECT_NEGATIVE flag.
10405 * toplev.c (print_switch_values): Use cl_report bit-field instead
10408 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
10410 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
10411 a zero minimum index only if it is redundant.
10413 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
10415 PR rtl-optimization/48381
10416 * ira-color.c (assign_hard_reg): Use hard reg set intersection
10417 instead of ira_class_hard_reg_index for calculating conflicting
10420 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
10422 * cprop.c: Clean up hash table building.
10423 (reg_avail_info): Remove.
10424 (oprs_available_p): Remove.
10425 (record_last_reg_set_info): Remove.
10426 (record_last_set_info): Remove.
10427 (reg_available_p): New function.
10428 (gcse_constant_p): Do not treat unfolded conditions as constants.
10429 (make_set_regs_unavailable): New function.
10430 (hash_scan_set): Simplify with new reg_available_p.
10431 (compute_hash_table_work): Traverse insns stream only once.
10432 Do not compute reg_avail_info. Traverse insns in reverse order.
10433 Record implicit sets after recording explicit sets from the block.
10435 2011-03-31 Michael Matz <matz@suse.de>
10437 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
10439 2011-03-31 Anatoly Sokolov <aesok@post.ru>
10441 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
10442 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
10443 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10444 (h8300_mode_dependent_address_p): New function.
10445 (h8300_get_index): Make static.
10447 2011-03-31 Jeff Law <law@redhat.com>
10449 * reload1.c (elimination_effects): Fix typo in recent change.
10451 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
10452 typo potentially leading to null pointer dereference.
10454 * caller-save.c (new_saved_hard_reg): Eliminate return value.
10455 (setup_save_areas): Corresponding changes to avoid useless
10458 * jump.c (reversed_comparison_code_parts): Avoid successive return
10459 statements when REVERSE_CONDITION is defined.
10461 * expr.c (expand_assignment): Avoid useless assignments.
10462 (expand_expr_real_1): Likewise.
10463 (expand_expr_real_2): Avoid useless statements.
10465 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
10467 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
10469 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
10472 * stmt.c (expand_expr_stmt): Avoid useless assignment.
10474 2011-03-31 Joseph Myers <joseph@codesourcery.com>
10477 * doc/tm.texi.in (TARGET_VERSION): Remove.
10478 * doc/tm.texi: Regenerate.
10479 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
10480 * collect2.c (main): Don't use TARGET_VERSION.
10481 * mips-tdump.c (main): Don't use TARGET_VERSION.
10482 * mips-tfile.c (main): Don't use TARGET_VERSION.
10483 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
10484 * config/rs6000/vxworksae.h: Remove.
10485 * config/alpha/alpha.h (TARGET_VERSION): Remove.
10486 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
10487 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
10488 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
10489 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
10490 * config/arm/arm.h (TARGET_VERSION): Remove.
10491 * config/arm/coff.h (TARGET_VERSION): Remove.
10492 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
10493 * config/arm/elf.h (TARGET_VERSION): Remove.
10494 * config/arm/freebsd.h (TARGET_VERSION): Remove.
10495 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
10496 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
10497 * config/arm/pe.h (TARGET_VERSION): Remove.
10498 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
10499 * config/arm/semi.h (TARGET_VERSION): Remove.
10500 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
10501 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
10502 * config/arm/vxworks.h (TARGET_VERSION): Remove.
10503 * config/avr/avr.h (TARGET_VERSION): Remove.
10504 * config/bfin/bfin.h (TARGET_VERSION): Remove.
10505 * config/fr30/fr30.h (TARGET_VERSION): Remove.
10506 * config/frv/frv.h (TARGET_VERSION): Remove.
10507 * config/h8300/h8300.h (TARGET_VERSION): Remove.
10508 * config/i386/cygwin.h (TARGET_VERSION): Remove.
10509 * config/i386/darwin.h (TARGET_VERSION): Remove.
10510 * config/i386/darwin64.h (TARGET_VERSION): Remove.
10511 * config/i386/djgpp.h (TARGET_VERSION): Remove.
10512 * config/i386/freebsd.h (TARGET_VERSION): Remove.
10513 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
10514 * config/i386/gnu.h (TARGET_VERSION): Remove.
10515 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
10516 * config/i386/i386elf.h (TARGET_VERSION): Remove.
10517 * config/i386/linux.h (TARGET_VERSION): Remove.
10518 * config/i386/linux64.h (TARGET_VERSION): Remove.
10519 * config/i386/lynx.h (TARGET_VERSION): Remove.
10520 * config/i386/mingw32.h (TARGET_VERSION): Remove.
10521 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
10522 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
10523 * config/i386/netware.h (TARGET_VERSION): Remove.
10524 * config/i386/nto.h (TARGET_VERSION): Remove.
10525 * config/i386/openbsd.h (TARGET_VERSION): Remove.
10526 * config/i386/vxworks.h (TARGET_VERSION): Remove.
10527 * config/ia64/elf.h (TARGET_VERSION): Remove.
10528 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
10529 * config/ia64/hpux.h (TARGET_VERSION): Remove.
10530 * config/ia64/linux.h (TARGET_VERSION): Remove.
10531 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
10532 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
10533 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
10534 * config/lm32/lm32.h (TARGET_VERSION): Remove.
10535 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
10536 * config/m32c/m32c.h (TARGET_VERSION): Remove.
10537 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
10538 * config/m32r/m32r.h (TARGET_VERSION): Remove.
10539 * config/m68k/linux.h (TARGET_VERSION): Remove.
10540 * config/m68k/m68k.h (TARGET_VERSION): Remove.
10541 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
10542 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
10543 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
10544 * config/mep/mep.h (TARGET_VERSION): Remove.
10545 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
10546 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
10547 * config/mips/iris6.h (MACHINE_TYPE): Remove.
10548 * config/mips/linux.h (TARGET_VERSION): Remove.
10549 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
10550 * config/mips/vxworks.h (TARGET_VERSION): Remove.
10551 * config/mmix/mmix.h (TARGET_VERSION): Remove.
10552 * config/mn10300/linux.h (TARGET_VERSION): Remove.
10553 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
10554 * config/pa/pa.h (TARGET_VERSION): Remove.
10555 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
10556 * config/picochip/picochip.h (TARGET_VERSION): Remove.
10557 * config/rs6000/aix.h (TARGET_VERSION): Remove.
10558 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
10559 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
10560 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
10561 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
10562 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
10563 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
10564 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
10565 * config/rs6000/linux.h (TARGET_VERSION): Remove.
10566 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
10567 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
10568 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
10569 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
10570 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
10571 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
10572 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
10573 * config/s390/linux.h (TARGET_VERSION): Remove.
10574 * config/s390/s390.h (TARGET_VERSION): Remove.
10575 * config/s390/tpf.h (TARGET_VERSION): Remove.
10576 * config/score/score.h (TARGET_VERSION): Remove.
10577 * config/sh/linux.h (TARGET_VERSION): Remove.
10578 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
10579 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
10580 * config/sh/sh.h (TARGET_VERSION): Remove.
10581 * config/sh/sh64.h (TARGET_VERSION): Remove.
10582 * config/sh/superh.h (TARGET_VERSION): Remove.
10583 * config/sh/vxworks.h (TARGET_VERSION): Remove.
10584 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
10585 * config/sparc/linux.h (TARGET_VERSION): Remove.
10586 * config/sparc/linux64.h (TARGET_VERSION): Remove.
10587 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
10588 TARGET_NAME32, TARGET_NAME): Remove.
10589 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
10590 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
10591 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
10592 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
10593 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
10594 * config/spu/spu.h (TARGET_VERSION): Remove.
10595 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
10596 * config/v850/v850.h (TARGET_VERSION): Remove.
10597 * config/vax/linux.h (TARGET_VERSION): Remove.
10598 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
10599 * config/xtensa/elf.h (TARGET_VERSION): Remove.
10600 * config/xtensa/linux.h (TARGET_VERSION): Remove.
10602 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
10605 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
10606 frame-related from frame-unrelated adjustments to the stack pointer.
10608 2011-03-31 Jakub Jelinek <jakub@redhat.com>
10610 * common.opt (fdebug-types-section): Move earlier.
10611 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
10613 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
10615 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
10618 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
10620 * tree.h (CASE_CHAIN): Define.
10621 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
10622 (gimple_redirect_edge_and_branch): Likewise.
10624 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
10626 PR middle-end/48367
10627 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
10630 2011-03-30 Jeff Law <law@redhat.com>
10632 * PR bootstrap/48371
10633 * reload1.c (reload): Fix botch in last change.
10635 * reload.h (struct reload): Fix typo introduced in last change.
10637 2011-03-30 Joseph Myers <joseph@codesourcery.com>
10639 * config/arm/arm.opt (mhard-float, msoft-float): Mark
10640 Undocumented. Remove help text.
10641 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
10644 2011-03-30 Joseph Myers <joseph@codesourcery.com>
10646 * doc/options.texi (NegativeAlias): Document.
10647 (Alias): Mention NegativeAlias.
10648 * opt-functions.awk: Handle NegativeAlias.
10649 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
10650 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
10651 * opts.h (CL_NEGATIVE_ALIAS): Define.
10652 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
10653 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
10655 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
10657 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
10658 mno-spe and mno-isel instead of mspe=no and -misel=no.
10660 2011-03-29 Mark Wielaard <mjw@redhat.com>
10662 * common.opt (fdebug-types-section): New flag.
10663 * doc/invoke.texi: Document new -fno-debug-types-section flag.
10664 * dwarf2out.c (use_debug_types): New define.
10665 (struct die_struct): Mark die_id with GTY desc use_debug_types.
10666 (print_die): Guard output of type unit signatures using
10668 (build_abbrev_table): Replace assert of dwarf_version >= 4
10669 with assert on use_debug_types.
10670 (size_of_die): Likewise.
10671 (unmark_dies): Likewise.
10672 (value_format): Decide AT_ref_external form on use_debug_types.
10673 (output_die): Replace dwarf_version version check guard with
10674 use_debug_types where appropriate.
10675 (modified_type_die): Likewise.
10676 (gen_reference_type_die): Likewise.
10677 (dwarf2out_start_source_file): Likewise.
10678 (dwarf2out_end_source_file): Likewise.
10679 (prune_unused_types_walk_attribs): Likewise.
10680 (dwarf2out_finish): Likewise.
10682 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
10684 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
10686 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
10688 PR rtl-optimization/48332
10689 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
10690 mode of input operand N and modeN to its actual mode.
10692 2011-03-30 Jeff Law <law@redhat.com>
10694 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
10695 define accessor macro.
10696 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
10697 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
10698 (reg_equiv_init): Likewise.
10699 (reg_equivs_size): New variable.
10700 (reg_equiv_init_size): Remove.
10701 (allocate_initial_values): Move prototype to here from....
10702 * integrate.h (allocate_initial_values): Remove prototype.
10703 * integrate.c: Include reload.h.
10704 (allocate_initial_values): Corresponding changes.
10705 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
10706 (fix_reg_equiv_init, no_equiv): Corresponding changes.
10707 (update_equiv_regs): Corresponding changes.
10708 (ira): Corresponding changes.
10709 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
10710 (push_secondary_reload): Corresponding changes.
10711 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
10712 (make_memloc, find_reloads_address): Corresponding changes.
10713 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
10714 (find_reloads_address_1): Corresponding changes.
10715 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
10716 (refers_to_regno_for_reload_p): Corresponding changes.
10717 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
10718 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
10719 * reload1.c: Include ggc.h.
10720 (grow_reg_equivs): New function.
10721 (replace_pseudos_in, reload): Corresponding changes.
10722 (calculate_needs_all_insns, alter_regs): Corresponding changes.
10723 (eliminate_regs_1, elimination_effects): Corresponding changes.
10724 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
10725 (delete_output_reload): Likewise.
10726 * caller-save.c (mark_referenced_regs): Corresponding changes.
10727 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
10728 * frv/predicates.md (frv_load_operand): Corresponding changes.
10729 * microblaze/microblaze.c (double_memory_operand): Corresponding
10731 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
10732 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
10733 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
10734 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
10735 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
10737 * pa/pa.c (emit_move_sequence): Corresponding changes.
10738 * vax/vax.c (nonindexed_address_p): Corresponding changes.
10740 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
10743 * config/arm/arm.c (coproc_secondary_reload_class): Handle
10744 structure modes. Don't check neon_vector_mem_operand for
10745 vector or structure modes.
10747 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
10748 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10751 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
10752 operand 1 and reshuffle the operands to match.
10753 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
10755 2011-03-30 Christian Schüler <cschueler@gmx.de>
10758 * config/c.opt (F): Added 'Driver' to -F option.
10761 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
10763 * config/darwin.opt: Added '-arch' option.
10765 2011-03-30 Nick Clifton <nickc@redhat.com>
10767 * config/rx/rx.md: Add peepholes and patterns to combine
10768 extending loads and simple arithmetic instructions.
10769 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
10770 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
10771 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
10772 modes to use pre-decrement and post-increment addressing.
10773 (rx_is_restricted_memory_address): Add range checking of REG+INT
10775 (rx_print_operand): Add support for %Q. Fix handling of %Q.
10776 (rx_memory_move_cost): Adjust cost of stores.
10777 (rx_adjust_insn_length): New function.
10779 2011-03-30 Jakub Jelinek <jakub@redhat.com>
10782 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
10783 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
10784 matching arg00/arg01 types.
10786 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
10788 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
10789 last_location to UNKNOWN_LOCATION.
10791 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
10794 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
10797 2011-03-30 Joseph Myers <joseph@codesourcery.com>
10798 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10801 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
10802 Init(PROCESSOR_V7).
10803 (sparc_cpu): Likewise.
10804 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
10807 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
10810 PR middle-end/48342
10811 PR rtl-optimization/48345
10812 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
10813 hard regs for given mode from profitable regs when doing secondary
10816 2011-03-29 Jeff Law <law@redhat.com>
10819 * tree-ssa-threadupdate.c (struct redirection_data): Remove
10820 do_not_duplicate field.
10821 (lookup_redirection_data): Corresponding changes.
10822 (create_duplicates): Always create a template block.
10823 (redirect_edges): Remove code which reused the original block
10824 when it was going to become unreachable code.
10825 (thread_block): Don't set do_not_duplicate field.
10827 2011-03-29 Joseph Myers <joseph@codesourcery.com>
10829 * lto-opts.c (register_user_option_p, lto_register_user_option):
10830 Make type argument unsigned.
10831 * lto-streamer.h (lto_register_user_option): Make type argument
10833 * opth-gen.awk: Make CL_* macros unsigned.
10834 * opts-common.c (find_opt): Make lang_mask argument unsigned.
10835 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
10836 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
10837 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
10838 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
10839 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
10840 (find_opt): Make lang_mask argument unsigned.
10842 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
10844 PR rtl-optimization/48331
10845 PR rtl-optimization/48334
10846 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
10847 for any used algorithm.
10849 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
10851 * ira-conflicts.c (build_object_conflicts): Add unused attribute
10854 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
10856 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
10857 (alpha_option_override): Don't set alpha_sr_alias_set.
10858 (emit_frame_store_1): Use gen_frame_mem rather than calling
10860 (alpha_expand_epilogue): Ditto.
10862 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
10864 PR tree-optimization/48290
10865 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
10866 vectorization, check that relevant phis in the basic block after
10867 the inner loop are really inner loop's exit phis.
10869 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
10872 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
10873 (cached_dw_loc_list_def): New structure.
10874 (cached_dw_loc_list): New typedef.
10875 (cached_dw_loc_list_table): New variable.
10876 (cached_dw_loc_list_table_hash): New function.
10877 (cached_dw_loc_list_table_eq): Likewise.
10878 (add_location_or_const_value_attribute): Take a bool cache_p.
10879 Cache the list when the parameter is true.
10880 (gen_formal_parameter_die): Update caller.
10881 (gen_variable_die): Likewise.
10882 (dwarf2out_finish): Likewise.
10883 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
10884 while generating debug info for the decl.
10885 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
10886 (dwarf2out_init): Initialize cached_dw_loc_list_table.
10887 (resolve_addr): Cache the result of resolving a chain of
10890 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
10892 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
10893 conflict object hard regset nodes have intersecting hard reg sets.
10895 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
10896 after regstat_init_n_sets_and_refs.
10898 * ira.c: Add more comments at the top.
10899 (setup_stack_reg_pressure_class, setup_pressure_classes):
10900 Add comments how we compute the register pressure classes.
10901 (setup_allocno_and_important_classes): Add more comments.
10902 (setup_class_translate_array, reorder_important_classes)
10903 (setup_reg_class_relations): Add comments.
10905 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
10908 * ira-color.c: Add 2011 to the Copyright line.
10909 (assign_hard_reg): Add more comments.
10910 (improve_allocation): Ditto.
10912 * ira-costs.c: Add 2011 to the Copyright line.
10913 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
10915 (setup_regno_cost_classes_by_mode): Ditto.
10917 Initial patches from ira-improv branch:
10919 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
10921 * ira-build.c (ira_create_object): Remove initialization of
10922 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
10923 (ira_create_allocno): Remove initialization of
10924 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
10925 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
10926 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
10927 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
10928 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
10929 Initialize ALLOCNO_ADD_DATA.
10930 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
10931 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
10933 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
10934 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
10936 * ira.c (ira_reallocate): Remove.
10937 (setup_pressure_classes): Call
10938 ira_init_register_move_cost_if_necessary. Use
10939 ira_register_move_cost instead of ira_get_register_move_cost.
10940 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
10941 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
10943 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
10944 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
10945 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
10946 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
10947 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
10948 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
10950 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
10951 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
10952 (struct allocno_color_data): New.
10953 (allocno_color_data_t): New typedef.
10954 (allocno_color_data): New definition.
10955 (ALLOCNO_COLOR_DATA): New macro.
10956 (struct object_color_data): New.
10957 (object_color_data_t): New typedef.
10958 (object_color_data): New definition.
10959 (OBJECT_COLOR_DATA): New macro.
10960 (update_copy_costs, calculate_allocno_spill_cost): Call
10961 ira_init_register_move_cost_if_necessary. Use
10962 ira_register_move_cost instead of ira_get_register_move_cost.
10963 (move_spill_restore, update_curr_costs): Ditto.
10964 (allocno_spill_priority): Make it inline.
10965 (color_pass): Allocate and free allocno_color_dat and object_color_data.
10966 (struct coalesce_data, coalesce_data_t): New.
10967 (allocno_coalesce_data): New definition.
10968 (ALLOCNO_COALESCE_DATA): New macro.
10969 (merge_allocnos, coalesced_allocno_conflict_p): Use
10970 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
10971 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
10972 (coalesce_allocnos): Ditto.
10973 (setup_coalesced_allocno_costs_and_nums): Ditto.
10974 (collect_spilled_coalesced_allocnos): Ditto.
10975 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
10976 (setup_slot_coalesced_allocno_live_ranges): Ditto.
10977 (coalesce_spill_slots): Ditto.
10978 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
10979 free allocno_coalesce_data.
10981 * ira-conflicts.c: Fix formatting.
10982 (process_regs_for_copy): Call
10983 ira_init_register_move_cost_if_necessary. Use
10984 ira_register_move_cost instead of ira_get_register_move_cost.
10985 (build_object_conflicts): Optimize.
10987 * ira-costs.c (record_reg_classes): Optimize. Call
10988 ira_init_register_move_cost_if_necessary. Use
10989 ira_register_move_cost, ira_may_move_in_cost, and
10990 ira_may_move_out_cost instead of ira_get_register_move_cost and
10991 ira_get_may_move_cost.
10992 (record_address_regs): Ditto.
10993 (scan_one_insn): Optimize.
10994 (find_costs_and_classes): Optimize.
10995 (process_bb_node_for_hard_reg_moves): Call
10996 ira_init_register_move_cost_if_necessary. Use
10997 ira_register_move_cost instead of ira_get_register_move_cost.
10999 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
11000 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
11001 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
11002 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
11004 (ira_initiate_emit_data, ira_finish_emit_data)
11005 (create_new_allocno): New functions.
11006 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
11007 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
11008 Use ira_register_move_cost instead of ira_get_register_move_cost.
11010 * ira-int.h: Fix some comments.
11011 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
11012 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
11013 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
11014 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
11016 (struct ira_allocno): Make mode and aclass a bitfield. Move other
11017 bitfield after mode. Make hard_regno a short int. Make
11018 hard_regno short. Remove first_coalesced_allocno and
11019 next_coalesced_allocno. Move mem_optimized_dest_p,
11020 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
11021 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
11022 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
11023 temp, colorable_p. Add new member add_data.
11024 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
11025 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
11026 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
11027 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
11028 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
11029 (ALLOCNO_ADD_DATA): New macro.
11030 (ira_emit_data_t): New typedef.
11031 (struct ira_emit_data): New. Move mem_optimized_dest_p,
11032 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
11033 from struct ira_allocno.
11034 (ALLOCNO_EMIT_DATA): New macro.
11035 (ira_allocno_emit_data, allocno_emit_reg): New.
11036 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
11037 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
11038 (OBJECT_ADD_DATA): New macro.
11039 (ira_reallocate): Remove.
11040 (ira_initiate_emit_data, ira_finish_emit_data): New.
11041 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
11042 (ira_init_register_move_cost_if_necessary): New.
11043 (ira_object_conflict_iter_next): Merge into
11044 ira_object_conflict_iter_cond.
11045 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
11047 * ira-live.c (process_single_reg_class_operands): Call
11048 ira_init_register_move_cost_if_necessary. Use
11049 ira_register_move_cost instead of ira_get_register_move_cost.
11051 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
11053 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
11055 * ira-costs.c: Fix formatting.
11056 (cost_classes, cost_classes_num): Remove.
11057 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
11058 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
11059 (cost_classes_del, cost_classes_htab): New.
11060 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
11061 (initiate_regno_cost_classes, setup_cost_classes): New.
11062 (setup_regno_cost_classes_by_aclass): New.
11063 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
11064 (record_reg_classes): Use regno_cost_classes instead of
11065 cost_classes. Move checking opposite operand up.
11066 (record_address_regs): Use regno_cost_classes
11067 instead of cost_classes.
11068 (scan_one_insn): Ditto. Use always general register.
11069 (print_allocno_costs): Use regno_cost_classes instead of
11071 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
11072 (find_costs_and_classes): Set up cost classes for each registers.
11073 Use also their mode for this. Use regno_cost_classes instead of
11075 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
11077 (free_ira_costs, ira_init_costs): Don't use cost_classes.
11078 (ira_costs, ira_set_pseudo_classes): Call
11079 initiate_regno_cost_classes and finish_regno_cost_classes.
11081 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
11083 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
11085 * target.def (ira_cover_classes): Remove.
11087 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
11089 * doc/tm.texi.in: Ditto.
11091 * ira-conflicts.c: Remove mentioning cover classes from the file.
11092 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
11093 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
11095 * targhooks.c (default_ira_cover_classes): Remove.
11097 * targhooks.h (default_ira_cover_classes): Ditto.
11099 * haifa-sched.c: Remove mentioning cover classes from the file.
11100 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
11101 ira_pressure_classes and ira_pressure_classes_num instead of
11102 ira_reg_class_cover_size and ira_reg_class_cover. Use
11103 sched_regno_pressure_class instead of sched_regno_cover_class.
11104 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
11105 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
11107 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
11108 classes from the file.
11109 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
11110 (struct object_hard_regs, struct object_hard_regs_node): New.
11111 (struct ira_object): New members profitable_hard_regs,
11112 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
11113 (struct ira_allocno): Rename cover_class to aclass. Rename
11114 cover_class_cost and updated_cover_class_cost to class_cost and
11115 updated_class_cost. Remove splay_removed_p and
11116 left_conflict_size. Add new members colorable_p.
11117 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
11118 (ALLOCNO_COLORABLE_P): New macro.
11119 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
11120 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
11121 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
11122 (OBJECT_...): Rename parameter C to O.
11123 (OBJECT_PROFITABLE_HARD_REGS): New macro.
11124 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
11125 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
11126 (struct target_ira_int): New members x_ira_max_memory_move_cost,
11127 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
11128 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
11129 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
11130 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
11131 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
11132 x_ira_reg_class_subunion.
11133 (ira_max_memory_move_cost, ira_max_register_move_cost)
11134 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
11135 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
11136 (ira_important_class_nums, ira_reg_class_superunion): New macros.
11137 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
11138 (ira_reg_class_union): Rename to ira_reg_class_subunion.
11139 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
11140 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
11141 (ira_tune_allocno_costs_and_cover_classes): Rename to
11142 ira_tune_allocno_costs.
11143 (ira_debug_hard_regs_forest): New.
11144 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
11145 (ira_object_conflict_iter_next): Fix comments.
11146 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
11147 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
11148 cover_class to aclass.
11149 (ira_allocate_and_accumulate_costs): Ditto.
11150 (ira_allocate_and_set_or_copy_costs): Ditto.
11152 * opts.c (decode_options): Remove ira_cover_class check.
11154 * ira-color.c: Remove mentioning cover classes from the file. Use
11155 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
11156 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
11157 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
11158 (splay-tree.h): Remove include.
11159 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
11160 before copy_freq_compare_func.
11161 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
11162 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
11164 (hard_regs_roots, hard_regs_node_vec): Ditto.
11165 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
11166 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
11167 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
11168 (create_new_object_hard_regs_node): Ditto.
11169 (add_new_object_hard_regs_node_to_forest): Ditto.
11170 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
11171 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
11173 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
11174 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
11175 (remove_unused_object_hard_regs_nodes): Ditto.
11176 (enumerate_object_hard_regs_nodes): Ditto.
11177 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
11178 (object_hard_regs_subnode_t): Ditto.
11179 (struct object_hard_regs_subnode): Ditto.
11180 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
11181 (setup_object_hard_regs_subnode_index): Ditto.
11182 (get_object_hard_regs_subnodes_num): Ditto.
11183 (form_object_hard_regs_nodes_forest): Ditto.
11184 (finish_object_hard_regs_nodes_tree): Ditto.
11185 (finish_object_hard_regs_nodes_forest): Ditto.
11186 (allocnos_have_intersected_live_ranges_p): Rename to
11187 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
11188 (pseudos_have_intersected_live_ranges_p): Rename to
11189 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
11190 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
11191 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
11192 (update_copy_costs): Remove assert. Skip cost update if the hard
11193 reg does not belong the class.
11194 (assign_hard_reg): Process only profitable hard regs.
11195 (uncolorable_allocnos_num): Make it scalar.
11196 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
11197 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
11198 and ira_reg_class_max_nregs.
11199 (bucket_allocno_compare_func): Check frequency first.
11200 (sort_bucket): Add compare function as a parameter.
11201 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
11202 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
11203 (push_allocno_to_stack): Rewrite for checking new allocno
11205 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
11206 (push_only_colorable): Pass new parameter to sort_bucket.
11207 (push_allocno_to_spill): Remove.
11208 (allocno_spill_priority_compare): Make it inline and rewrite.
11209 (splay_tree_allocate, splay_tree_free): Remove.
11210 (allocno_spill_sort_compare): New function.
11211 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
11212 build and use splay tree. Choose first allocno in uncolorable
11213 allocno bucket to spill. Remove setting spill cost.
11214 (all_conflicting_hard_regs): Remove.
11215 (setup_allocno_available_regs_num): Check only profitable hard
11216 regs. Print info about hard regs nodes.
11217 (setup_allocno_left_conflicts_size): Remove.
11218 (put_allocno_into_bucket): Don't call
11219 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
11220 (improve_allocation): New.
11221 (color_allocnos): Call setup_profitable_hard_regs,
11222 form_object_hard_regs_nodes_forest, improve_allocation,
11223 finish_object_hard_regs_nodes_forest. Setup spill cost.
11224 (print_loop_title): Use pressure classes.
11225 (color_allocnso): Ditto.
11226 (do_coloring): Remove allocation and freeing splay_tree_node_pool
11227 and allocnos_for_spilling.
11228 (ira_sort_regnos_for_alter_reg): Don't setup members
11229 {first,next}_coalesced_allocno.
11230 (color): Remove allocating and freeing removed_splay_allocno_vec.
11231 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
11232 prohibited_class_mode_regs.
11234 * ira-lives.c: Remove mentioning cover classes from the file. Fix
11236 (update_allocno_pressure_excess_length): Use pressure classes.
11237 (inc_register_pressure, dec_register_pressure): Check for pressure
11239 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
11240 pressure class. Use ira_reg_class_nregs instead of
11241 ira_reg_class_max_nregs.
11242 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
11243 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
11244 (single_reg_class): Use ira_reg_class_nregs instead of
11245 ira_reg_class_max_nregs.
11246 (process_bb_node_lives): Use pressure classes.
11248 * ira-emit.c: Remove mentioning cover classes from the file. Use
11249 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
11250 (change_loop): Use pressure classes.
11251 (modify_move_list): Call ira_set_allocno_class instead of
11252 ira_set_allocno_cover_class.
11254 * ira-build.c: Remove mentioning cover classes from the file. Use
11255 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
11256 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
11257 ALLOCNO_UPDATED_CLASS_COST instead of
11258 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
11259 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
11260 (ira_create_allocno): Remove initialization of
11261 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
11262 ALLOCNO_COLORABLE_P.
11263 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
11264 Update conflict regs for the objects.
11265 (create_cap_allocno): Remove assert. Don't propagate
11266 ALLOCNO_AVAILABLE_REGS_NUM.
11267 (ira_free_allocno_costs): New function.
11268 (finish_allocno): Change a part of code into call of
11269 ira_free_allocno_costs.
11270 (low_pressure_loop_node_p): Use pressure classes.
11271 (object_range_compare_func): Don't compare classes.
11272 (setup_min_max_conflict_allocno_ids): Ditto.
11274 * loop-invariant.c: Remove mentioning cover classes from the file.
11275 Use ira_pressure_classes and ira_pressure_classes_num instead of
11276 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
11277 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
11278 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
11279 Use reg_allocno_class instead of reg_cover_class.
11280 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
11281 STACK_REG_COVER_CLASS.
11282 (get_regno_cover_class): Rename to get_regno_pressure_class.
11283 (move_loop_invariants): Initialize and finalize regstat.
11285 * ira.c: Remove mentioning cover classes from the file. Add
11286 comments about coloring without cover classes. Use ALLOCNO_CLASS
11287 instead of ALLOCNO_COVER_CLASS. Fix formatting.
11288 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
11289 setup_class_subset_and_memory_move_costs.
11290 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
11291 (setup_cover_and_important_classes): Rename to
11292 setup_allocno_and_important_classes.
11293 (setup_class_translate_array): New.
11294 (setup_class_translate): Call it for allocno and pressure classes.
11295 (cover_class_order): Rename to allocno_class_order.
11296 (comp_reg_classes_func): Use ira_allocno_class_translate instead
11297 of ira_class_translate.
11298 (reorder_important_classes): Set up ira_important_class_nums.
11299 (setup_reg_class_relations): Set up ira_reg_class_superunion.
11300 (print_class_cover): Rename to print_classes. Add parameter.
11301 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
11302 Print pressure classes too.
11303 (find_reg_class_closure): Rename to find_reg_classes. Don't call
11304 setup_reg_subclasses.
11305 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
11306 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
11307 (setup_prohibited_class_mode_regs): Use
11308 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
11309 (clarify_prohibited_class_mode_regs): New function.
11310 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
11311 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
11312 (ira_init_once): Initialize them.
11313 (free_register_move_costs): Process them.
11314 (ira_init): Move calls of find_reg_classes and
11315 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
11316 Call clarify_prohibited_class_mode_regs.
11317 (ira_no_alloc_reg): Remove.
11318 (too_high_register_pressure_p): Use pressure classes.
11320 * sched-deps.c: Remove mentioning cover classes from the file.
11321 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
11322 ira_pressure_classes and ira_pressure_classes_num instead of
11323 ira_reg_class_cover_size and ira_reg_class_cover.
11324 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
11325 sched_regno_pressure_class instead of sched_regno_cover_class.
11326 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
11327 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
11329 * ira.h: Add 2010 to Copyright.
11330 (ira_no_alloc_reg): Remove external.
11331 (struct target_ira): Rename x_ira_hard_regno_cover_class,
11332 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
11333 x_ira_class_translate to x_ira_hard_regno_allocno_class,
11334 x_ira_allocno_classes_num, x_ira_allocno_classes, and
11335 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
11336 x_ira_pressure_classes, x_ira_pressure_class_translate, and
11337 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
11338 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
11339 x_ira_no_alloc_regs.
11340 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
11341 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
11342 ira_allocno_classes_num and ira_allocno_classes.
11343 (ira_class_translate): Rename to ira_allocno_class_translate.
11344 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
11345 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
11346 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
11347 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
11348 (ira_no_alloc_regs): New.
11350 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
11351 classes from the file. Use ALLOCNO_CLASS instead of
11352 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
11353 ALLOCNO_COVER_CLASS_COST.
11354 (regno_cover_class): Rename to regno_aclass.
11355 (record_reg_classes): Use ira_reg_class_subunion instead of
11356 ira_reg_class_union.
11357 (record_address_regs): Check overflow.
11358 (scan_one_insn): Ditto.
11359 (print_allocno_costs): Print total mem cost fore regional allocation.
11360 (print_pseudo_costs): Use REG_N_REFS.
11361 (find_costs_and_classes): Use classes intersected with them on the
11362 1st pass. Check overflow. Use ira_reg_class_subunion instead of
11363 ira_reg_class_union. Use ira_allocno_class_translate and
11364 regno_aclass instead of ira_class_translate and regno_cover_class.
11365 Modify code for finding regno_aclass. Setup preferred classes for
11367 (setup_allocno_cover_class_and_costs): Rename to
11368 setup_allocno_class_and_costs. Use regno_aclass instead of
11369 regno_cover_class. Use ira_set_allocno_class instead of
11370 ira_set_allocno_cover_class.
11371 (init_costs, finish_costs): Use regno_aclass instead of
11373 (ira_costs): Use setup_allocno_class_and_costs instead of
11374 setup_allocno_cover_class_and_costs.
11375 (ira_tune_allocno_costs_and_cover_classes): Rename to
11376 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
11377 by processing objects. Use ira_reg_class_max_nregs instead of
11378 ira_reg_class_nregs.
11380 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
11382 * sched-int.h: Remove mentioning cover classes from the file.
11383 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
11385 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
11386 classes from the file.
11387 (struct reg_pref): Rename coverclass into allocnoclass.
11388 (reg_cover_class): Rename to reg_allocno_class.
11390 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
11392 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
11394 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
11396 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
11398 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
11400 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
11402 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
11404 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
11406 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
11408 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
11410 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
11411 (i386_ira_cover_classes): Ditto.
11413 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
11415 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
11417 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
11419 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
11421 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
11423 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
11425 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
11426 (mips_ira_cover_classes): Ditto.
11428 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
11430 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
11432 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
11434 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
11436 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
11438 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
11439 (IRA_COVER_CLASSES_VSX): Ditto.
11441 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
11442 (rs6000_ira_cover_classes): Ditto.
11444 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
11446 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
11448 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
11450 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
11452 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
11454 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
11456 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
11458 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
11460 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
11462 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
11464 2011-03-29 Jakub Jelinek <jakub@redhat.com>
11467 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
11468 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
11469 dw_fde_unlikely_section_end_label, cold_in_std_section,
11470 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
11471 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
11473 (output_fde): Use dw_fde_second_{begin,end} if second is
11474 true, otherwise dw_fde_{begin,end}.
11475 (output_call_frame_info): Test dw_fde_second_begin != NULL
11476 instead of dw_fde_switched_sections.
11477 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
11478 fields, initialize new fields. Initialize in_std_section
11479 unconditionally from the first partition.
11480 (dwarf2out_end_epilogue): Don't override dw_fde_end when
11481 dw_fde_second_begin is non-NULL.
11482 (dwarf2out_switch_text_section): Stop initializing removed
11483 dw_fde_struct fields, initialize new fields, initialize
11484 also dw_fde_end here. Set dw_fde_switch_cfi even when
11485 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
11486 (struct var_loc_list_def): Add last_before_switch field.
11487 (arange_table, arange_table_allocated, arange_table_in_use,
11488 ARANGE_TABLE_INCREMENT, add_arange): Removed.
11489 (size_of_aranges): Count !in_std_section and !second_in_std_section
11490 hunks in fdes, instead of looking at arange_table_in_use.
11491 (output_aranges): Add aranges_length argument, don't call
11492 size_of_aranges here. Instead of using aranges_table*
11493 emit ranges for fdes when !in_std_section resp.
11494 !second_in_std_section.
11495 (dw_loc_list): Break ranges crossing section switch.
11496 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
11497 use dw_fde_second_end instead of dw_fde_end as end of last range.
11498 (gen_subprogram_die): Don't call add_arange. Use
11499 dw_fde_{begin,end} for first partition and if switched
11500 section dw_fde_second_{begin,end} for the second.
11501 (var_location_switch_text_section_1,
11502 var_location_switch_text_section): New functions.
11503 (dwarf2out_begin_function): Initialize cold_text_section even
11504 when function_section () isn't text_section.
11505 (prune_unused_types): Don't walk arange_table.
11506 (dwarf2out_finish): Don't needlessly test
11507 flag_reorder_blocks_and_partition when testing cold_text_section_used.
11508 If info_section_emitted, call size_of_aranges and if it indicates
11509 non-empty .debug_aranges, call output_aranges with the computed
11510 size. Stop using removed dw_fde_struct fields, use
11511 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
11515 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
11516 create ENTRY_VALUE if incoming or address of incoming's MEM
11518 * dwarf2out.c (mem_loc_descriptor): Don't emit
11519 DW_OP_GNU_entry_value of DW_OP_fbreg.
11520 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
11521 on ENTRY_VALUE is able to find the canonical parameter VALUE.
11522 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
11523 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
11525 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
11526 is a REG_P or MEM_P with REG_P address, compute hash directly
11527 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
11528 (preserve_only_constants): Don't clear VALUES forwaring
11529 ENTRY_VALUE to some other VALUE.
11531 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
11533 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
11534 instead of GEN_INT.
11536 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
11538 * cfgexpand.c (expand_gimple_cond): Always set the source location and
11539 block before expanding the statement.
11540 (expand_gimple_stmt_1): Likewise. Set them here...
11541 (expand_gimple_stmt): ...and not here. Tidy.
11542 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
11545 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
11547 * Makefile.in: New rule for cprop.o.
11548 * gcse.c: Move constant/copy propagation to cprop.c.
11549 (compute_local_properties): Only handle expression tables.
11550 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
11551 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
11552 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
11553 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
11554 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
11555 compute_cprop_data, find_used_regs, try_replace_reg,
11556 find_avail_set, cprop_jump, constprop_register, cprop_insn,
11557 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
11558 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
11559 find_bypass_set, reg_killed_on_edge, bypass_block,
11560 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
11561 execute_rtl_cprop, pass_rtl_cprop): Move to...
11562 * cprop.c: ...here. New file, constant/copy propagation for RTL
11563 moved from gcse.c to here with minor cleanups in duplicated code.
11565 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
11567 * config/i386/i386.c (flag_opts): Fix a typo in
11568 -mavx256-split-unaligned-store.
11570 2011-03-28 Anatoly Sokolov <aesok@post.ru>
11572 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
11573 LIBCALL_VALUE): Remove macros.
11574 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11575 TARGET_FUNCTION_VALUE_REGNO_P): Define.
11576 (h8300_function_value, h8300_libcall_value,
11577 h8300_function_value_regno_p): New functions.
11579 2011-03-28 Anatoly Sokolov <aesok@post.ru>
11581 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
11583 2011-03-28 Jeff Law <law@redhat.com>
11585 * tree-ssa-threadupdate.c (redirect_edges): Call
11586 create_edge_and_update_destination_phis as needed.
11587 (create_edge_and_update_destination_phis): Accept new BB argument.
11588 All callers updated.
11589 (thread_block): Do not update the profile when threading around
11590 intermediate blocks.
11591 (thread_single_edge): Likewise.
11592 (determine_bb_domination_status): If BB is not a successor of the
11593 loop header, return NONDOMINATING.
11594 (register_jump_thread): Note when we register a jump thread around
11595 an intermediate block.
11596 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
11597 (thread_across_edge): Use it.
11599 2011-03-28 Tristan Gingold <gingold@adacore.com>
11601 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
11602 when for_return is 2.
11604 2011-03-28 Jeff Law <law@redhat.com>
11606 * var-tracking.c (canonicalize_values_mark): Delete unused
11608 (canonicalize_values_star, set_variable_part): Likewise.
11609 (clobber_variable_part, delete_variable_part): Likewise.
11611 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
11613 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
11615 2011-03-28 Martin Jambor <mjambor@suse.cz>
11617 * tree-inline.c (expand_call_inline): Do not check that destination
11619 (optimize_inline_calls): Assert that destination node is analyzed.
11620 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
11621 not call tree_lowering_passes.
11622 * cgraph.h (cgraph_analyze_function): Declare.
11623 * cgraphunit.c (cgraph_analyze_function): Make public.
11625 2011-03-28 Joseph Myers <joseph@codesourcery.com>
11627 * config/sparc/sparc-opts.h: New.
11628 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
11629 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
11630 (sparc_option_override): Store processor_type enumeration rather
11631 than string in cpu_default. Remove name and enumeration from
11632 cpu_table. Directly default -mcpu then default -mtune from -mcpu
11633 without using sparc_select. Use target_flags_explicit instead of
11635 * config/sparc/sparc.h (enum processor_type): Move to
11637 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
11638 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
11639 HeaderInclude entry.
11640 (mcpu=, mtune=): Use Var and Enum.
11641 (sparc_processor_type): New Enum and EnumValue entries.
11643 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11644 Iain Sandoe <iains@gcc.gnu.org>
11647 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
11649 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
11651 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
11652 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
11653 Insert new statements at it in lieu of STMT.
11654 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
11655 * tree-vect-stmts.c (vectorizable_store): Likewise.
11656 (vectorizable_load): Likewise.
11658 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
11660 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
11665 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
11667 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
11668 unaligned 256bit load/store.
11669 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
11670 (*avx_movdqu<avxmodesuffix>): Likewise.
11672 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11675 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
11676 * config/pa/pa.md (iordi3): Use new predicate in expander.
11677 (iorsi3): Likewise.
11679 2011-03-27 Anatoly Sokolov <aesok@post.ru>
11681 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
11682 FUNCTION_VALUE_REGNO_P): Remove macros.
11683 * config/mips/mips-protos.h (mips_function_value): Remove.
11684 * config/mips/mips.c (mips_function_value): Rename to...
11685 (mips_function_value_1): ... this. Make static. Handle receiving
11686 the function type in 'fn_decl_or_type' argument.
11687 (mips_function_value, mips_libcall_value,
11688 mips_function_value_regno_p): New function.
11689 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11690 TARGET_FUNCTION_VALUE_REGNO_P): Define.
11692 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
11694 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
11695 and -mavx256-split-unaligned-store.
11696 (ix86_option_override_internal): Split 32-byte AVX unaligned
11697 load/store by default.
11698 (ix86_avx256_split_vector_move_misalign): New.
11699 (ix86_expand_vector_move_misalign): Use it.
11701 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
11702 -mavx256-split-unaligned-store.
11704 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
11705 256bit load/store. Generate unaligned store on misaligned memory
11707 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
11709 (*avx_movdqu<avxmodesuffix>): Likewise.
11711 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
11712 -mavx256-split-unaligned-store.
11714 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
11717 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
11720 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
11722 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
11723 opno arguments with an expand_operand. Use create_input_operand.
11724 (mips_prepare_builtin_target): Delete.
11725 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
11727 (mips_expand_builtin_direct): Use create_output_operand and
11728 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
11729 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
11730 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
11732 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
11734 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
11736 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
11738 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
11740 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
11741 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
11742 basic blocks and call commit_edge_insertions directly.
11743 (fixup_abnormal_edges): Move from here to...
11744 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
11745 on the edges and return whether some have actually been inserted.
11746 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
11749 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
11751 PR rtl-optimization/48144
11752 * sel-sched-ir.c (merge_history_vect): Factor out from ...
11753 (merge_expr_data): ... here.
11754 (av_set_intersect): Rename to av_set_code_motion_filter.
11755 Update all callers. Call merge_history_vect when an expression
11756 is found in both sets.
11757 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
11759 2011-03-26 Alan Modra <amodra@gmail.com>
11761 * config/rs6000/predicates.md (word_offset_memref_op): Handle
11762 cmodel medium addresses.
11763 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
11764 64-bit gpr loads and stores.
11765 (rs6000_secondary_reload_ppc64): New function.
11766 * config/rs6000/rs6000-protos.h: Declare it.
11767 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
11769 2011-03-26 Alan Modra <amodra@gmail.com>
11772 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
11773 GNU Go in traceback table.
11775 2011-03-25 Richard Henderson <rth@redhat.com>
11777 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
11778 if there are exactly 6 operands.
11779 (set_storage_via_setmem): Similarly.
11781 2011-03-25 Kai Tietz <ktietz@redhat.com>
11783 * collect2.c (write_c_file_stat): Handle backslash
11784 as right-hand directory separator.
11785 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
11786 checking just for slash.
11787 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
11788 instead of checking for trailing slash.
11789 * gcc.c (record_temp_file): Use filename_cmp instead
11791 (do_spec_1): Likewise.
11792 (replace_outfile_spec_function): Likewise.
11793 (is_directory): Use filename_ncmp instead of strncmp.
11794 (print_multilib_info): Likewise.
11795 * gcov.c (find_source): Use filename_cmp instead
11797 (make_gcov_file_name): Fix order of slash/backslash
11799 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
11800 (add_standard_paths): Likewise.
11801 * mips-tfile.c (saber_stop): Handle backslash.
11802 * prefix.c (update_path): Use filename_ncmp instead of
11804 * profile.c (output_location): Use filename_cmp instead
11806 * read-md.c (handle_toplevel_file): Handle backslash.
11807 * tlink.c (frob_extension): Likewise.
11808 * tree-cfg.c (same_line_p): Use filename_cmp instead of
11810 * tree-dump.c (dequeue_and_dump): Handle backslash.
11811 * tree.c (get_file_function_name): Likewise.
11812 * gengtype.c (read_input_list): Likewise.
11813 (get_file_realbasename): Likewise.
11814 (get_output_file_with_visibility): Use filename_cmp
11817 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
11819 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
11822 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
11824 * fold-const.c (expr_location_or): New function.
11825 (fold_truth_not_expr): Call it.
11827 2011-03-25 Jeff Law <law@redhat.com>
11829 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
11831 * c-family/c-common.c (def_fn_type): Likewise.
11832 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
11833 * emit-rtl.c (gen_rtvec): Likewise.
11834 * lto/lto-lang.c (def_fn_type): Likewise.
11836 2011-03-25 Richard Guenther <rguenther@suse.de>
11838 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
11839 also generate copies.
11840 (fini_copy_prop): Handle constant values properly.
11842 2011-03-25 Jakub Jelinek <jakub@redhat.com>
11844 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
11845 mode size instead of bitsize with DWARF2_ADDR_SIZE.
11846 (hash_loc_operands, compare_loc_operands): Handle
11847 DW_OP_GNU_entry_value.
11849 2011-03-25 Kai Tietz <ktietz@redhat.com>
11851 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
11852 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
11853 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
11854 comment and use macro TARGET_64BIT_MS_ABI instead.
11855 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
11856 and change default behavior for 32-bit MS_ABI.
11857 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
11858 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
11860 (ix86_cfun_abi): Likewise.
11861 (ix86_maybe_switch_abi): Adjust comment.
11862 (init_cumulative_args): Check for bit-ness in MS_ABI case.
11863 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
11864 instead of checking for SYSV_ABI.
11865 (ix86_nsaved_sseregs): Likewise.
11866 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
11868 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
11869 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
11870 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
11871 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
11872 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
11874 2011-03-25 Richard Guenther <rguenther@suse.de>
11876 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
11877 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
11878 (verify_gimple): Remove.
11879 * tree-cfg.c (verify_gimple_call): Merge verification
11881 (verify_gimple_phi): Merge verification from verify_stmts.
11882 (verify_gimple_label): New function.
11883 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
11884 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
11885 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
11886 (verify_stmts): Rename to verify_gimple_in_cfg.
11887 (verify_gimple_in_cfg): New function.
11888 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
11889 * tree-ssa.c (verify_ssa): Likewise.
11890 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
11892 2011-03-25 Richard Guenther <rguenther@suse.de>
11894 * passes.c (init_optimization_passes): Add FRE pass after
11897 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
11898 Andrew Stubbs <ams@codesourcery.com>
11900 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
11902 (arm_movdi_vfp_cortexa8): New pattern.
11903 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
11904 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
11905 instructions when tuning for Cortex-A8. Set attribute "arch".
11906 * config/arm/arm.md: Move include arm-tune.md up a bit.
11907 (define_attr "arch"): Add "onlya8" and "nota8" values.
11908 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
11910 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
11914 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
11916 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
11917 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
11918 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
11919 * passes.c (init_optimization_passes): Move
11920 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
11922 2011-03-25 Kai Tietz <ktietz@redhat.com>
11924 * c-typeck.c (comptypes_internal): Replace target
11925 hook call of comp_type_attributes by version in tree.c file.
11926 * gimple.c (gimple_types_compatible_p_1): Likewise.
11927 * tree-ssa.c (useless_type_conversion_p): Likewise.
11928 * tree.c (build_type_attribute_qual_variant): Likewise.
11929 (attribute_value_equal): New static helper function.
11930 (comp_type_attributes): New function.
11931 (merge_attributes): Use attribute_value_equal for comparison.
11932 (attribute_list_contained): Likewise.
11933 * tree.h (comp_type_attributes): New prototype.
11935 2011-03-25 Richard Guenther <rguenther@suse.de>
11937 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
11938 of complex types at -O0.
11939 (verify_gimple_assign_binary): Likewise.
11940 (verify_gimple_assign_ternary): Likewise.
11942 2011-03-24 Mark Wielaard <mjw@redhat.com>
11944 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
11945 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
11947 2011-03-24 Mark Wielaard <mjw@redhat.com>
11950 * dwarf2out.c (output_abbrev_section): Only write table when
11951 abbrev_die_table_in_use > 1.
11953 2011-02-24 Richard Henderson <rth@redhat.com>
11955 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
11956 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
11957 (alpha_expand_unaligned_load_words): Use extql.
11958 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
11959 (emit_insxl): Handle all modes for consistency.
11961 2011-02-24 Richard Henderson <rth@redhat.com>
11963 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
11964 (alpha_expand_unaligned_load): Likewise.
11965 (alpha_expand_unaligned_store): Likewise.
11966 (alpha_expand_unaligned_load_words): Likewise.
11967 (alpha_expand_unaligned_store_words): Likewise.
11968 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
11969 (alpha_split_lock_test_and_set_12): Likewise.
11970 (print_operand, alpha_fold_builtin_extxx): Likewise.
11971 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
11972 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
11973 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
11974 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
11975 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
11976 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
11977 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
11978 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
11979 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
11980 (extwl, extll, extql): Similarly.
11981 (inswh, inslh, insqh): Similarly.
11982 (mskbl, mskwl, mskll, mskql): Similarly.
11983 (mskwh, msklh, mskqh): Similarly.
11985 2011-02-24 Richard Henderson <rth@redhat.com>
11987 * config/alpha/alpha.md (attribute isa): Add er, ner.
11988 (attribute enabled): Handle them.
11989 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
11991 2011-02-24 Richard Henderson <rth@redhat.com>
11993 * config/alpha/alpha.md (attribute isa): Add vms.
11994 (attribute enabled): Handle it.
11995 (*movsf): Merge *movsf_{nofix,fix,nofp}.
11996 (*movdf): Merge *movdf_{nofix,fix,nofp}.
11997 (*movtf): Rename from *movtf_internal for consistency.
11998 (*movsi): Merge with *movsi_nt_vms.
11999 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
12000 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
12001 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
12002 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
12004 2011-02-24 Richard Henderson <rth@redhat.com>
12006 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
12007 (extendqisi2, extendhisi2): Likewise.
12008 (extendqidi2): Simplify BWX/non-BWX expansions.
12009 (extendhidi2): Similarly.
12011 2011-02-24 Richard Henderson <rth@redhat.com>
12013 * config/alpha/alpha.md (attribute isa): New.
12014 (attribute enabled): New.
12015 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
12016 (zero_extendqisi2, zero_extendqidi2): Similarly.
12017 (zero_extendhisi2, zero_extendhidi2): Similarly.
12018 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
12020 2011-02-24 Richard Henderson <rth@redhat.com>
12022 * config/alpha/predicates.md (input_operand): Revert last change;
12023 update comment to mention 32-bit VMS rather than Windows.
12025 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
12027 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
12028 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
12029 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
12030 * passes.c (init_optimization_passes): Move
12031 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
12033 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
12035 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
12037 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
12039 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
12042 2011-03-24 Jakub Jelinek <jakub@redhat.com>
12045 * simplify-rtx.c (simplify_const_unary_operation): Call
12046 real_convert when changing mode class with FLOAT_EXTEND.
12048 2011-03-24 Nick Clifton <nickc@redhat.com>
12050 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
12051 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
12052 * config/rx/rx.c (rx_option_override): Set align_jumps,
12053 align_loops and align_labels if not set by the user.
12054 (rx_align_for_label): New function.
12055 (rx_max_skip_for_label): New function.
12056 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
12057 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
12058 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
12059 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
12060 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
12062 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
12064 PR rtl-optimization/48263
12065 * optabs.c (expand_binop_directly): Reinstate convert_modes code
12066 and original commutative_p handling. Use maybe_gen_insn.
12068 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12070 * reload.c (find_reloads_subreg_address): Add address_reloaded
12071 parameter and return true there if the full address has been
12073 (find_reloads_toplev): Pass address_reloaded flag.
12074 (find_reloads_address_1): Don't use address_reloaded parameter.
12076 2011-03-24 Jeff Law <law@redhat.com>
12078 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
12079 unused variable "ann".
12080 (remove_unused_locals): Likewise.
12082 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
12085 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
12088 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12090 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
12091 for invalid symbolic addresses.
12092 (s390_secondary_reload): Don't use s390_check_symref_alignment for
12095 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
12097 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
12098 the argument in calls to fold_truth_not_expr.
12100 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
12102 * tree.c (record_node_allocation_statistics): New function.
12103 (make_node_stat, copy_node_stat, build_string): Call it.
12104 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
12105 (build1_stat, build_omp_clause): Likewise.
12107 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
12109 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
12112 2011-03-24 Richard Guenther <rguenther@suse.de>
12114 PR tree-optimization/48271
12115 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
12116 blocks that still exist.
12118 2011-03-24 Richard Guenther <rguenther@suse.de>
12120 PR tree-optimization/48270
12121 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
12122 not free datarefs before ddrs.
12124 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
12126 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
12127 from the address built for a reference with variable offset.
12129 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
12132 * config/i386/i386.md (*movdf_internal_rex64): Do not split
12133 alternatives that can be handled with movq or movabsq insn.
12134 (*movdf_internal): Disable for !TARGET_64BIT.
12135 (*movdf_internal_nointeger): Ditto.
12136 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
12138 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
12140 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
12141 (FUNCTION_ARG_ADVANCE): Likewise.
12142 * tm.texi.in: Change references to them to hook references.
12143 * tm.texi: Regenerate.
12144 * targhooks.c (default_function_arg): Eliminate check for target macro.
12145 (default_function_incoming_arg): Likewise.
12146 (default_function_arg_advance): Likewise.
12147 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
12148 (function_arg_advance): Likewise.
12149 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
12151 2011-03-24 Richard Guenther <rguenther@suse.de>
12153 PR middle-end/48269
12154 * tree-object-size.c (addr_object_size): Do not double-account
12155 for MEM_REF offsets.
12157 2011-03-24 Diego Novillo <dnovillo@google.com>
12159 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
12160 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
12161 (lto_input_data_block): Move from lto-opts.c. Make extern.
12163 (lto_input_string): Rename from input_string. Make extern.
12165 * lto-streamer-out.c (lto_output_string_with_length): Rename from
12166 output_string_with_length.
12167 Output 0 to indicate a non-NULL string. Update all callers to
12169 (lto_output_string): Rename from output_string. Make extern.
12171 (lto_output_decl_state_streams): Make extern.
12172 (lto_output_decl_state_refs): Make extern.
12173 * lto-streamer.h (lto_input_string): Declare.
12174 (lto_input_data_block): Declare.
12175 (lto_output_string): Declare.
12176 (lto_output_string_with_length): Declare.
12177 (lto_output_decl_state_streams): Declare.
12178 (lto_output_decl_state_refs): Declare.
12180 2011-03-24 Richard Guenther <rguenther@suse.de>
12182 PR tree-optimization/46562
12183 * tree.c (build_invariant_address): New function.
12184 * tree.h (build_invariant_address): Declare.
12185 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
12186 a renamed function moved ...
12187 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
12188 Take valueization callback parameter.
12189 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
12190 * gimple-fold.h: New file.
12191 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
12192 (ccp_fold, fold_const_aggregate_ref,
12193 fold_ctor_reference, fold_nonarray_ctor_reference,
12194 fold_array_ctor_reference, fold_string_cst_ctor_reference,
12195 get_base_constructor): Move ...
12196 * gimple-fold.c: ... here.
12197 (gimple_fold_stmt_to_constant_1): New function
12198 split out from ccp_fold. Take a valueization callback parameter.
12199 Valueize all operands.
12200 (gimple_fold_stmt_to_constant): New wrapper function.
12201 (fold_const_aggregate_ref_1): New function split out from
12202 fold_const_aggregate_ref. Take a valueization callback parameter.
12203 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
12204 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
12205 invariant POINTER_PLUS_EXPRs to invariant form.
12206 (vn_valueize): New function.
12207 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
12208 * tree-vrp.c (vrp_valueize): New function.
12209 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
12210 to fold statements to constants.
12211 * tree-ssa-pre.c (eliminate): Properly guard propagation of
12212 function declarations.
12213 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
12214 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
12216 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
12218 * config/h8300/predicates.md (jump_address_operand): Fix register
12221 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
12223 * doc/invoke.texi (max-stores-to-sink): Document.
12224 * params.h (MAX_STORES_TO_SINK): Define.
12225 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
12226 if either vectorization or if-conversion is disabled.
12227 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
12228 tree-vect-data-refs.c vect_equal_offsets.
12229 (dr_equal_offsets_p): New function.
12230 (find_data_references_in_bb): Remove static.
12231 * tree-data-ref.h (find_data_references_in_bb): Declare.
12232 (dr_equal_offsets_p): Likewise.
12233 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
12234 (vect_drs_dependent_in_basic_block): Update calls to
12235 vect_equal_offsets.
12236 (vect_check_interleaving): Likewise.
12237 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
12238 (cond_if_else_store_replacement): Rename to...
12239 (cond_if_else_store_replacement_1): ... this. Change arguments and
12241 (cond_if_else_store_replacement): New function.
12242 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
12243 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
12245 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
12248 * config/arm/arm.md (casesi): Use the gen_int_mode() function
12249 to subtract lower bound instead of GEN_INT().
12251 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
12256 * doc/extend.texi (Alignment): Move section to match order in TOC.
12257 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
12258 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
12260 2011-03-23 Jeff Law <law@redhat.com>
12262 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
12263 before removing the edge.
12265 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
12266 it may have been freed by redirect_branch_edge or
12267 redirect_edge_succ_nodup.
12269 2011-03-23 Richard Guenther <rguenther@suse.de>
12271 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
12272 (check_va_list_escapes): Likewise.
12273 (check_all_va_list_escapes): Likewise.
12275 2011-03-23 Richard Guenther <rguenther@suse.de>
12277 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
12278 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
12279 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
12280 (alias.o): Likewise.
12281 (ipa-type-escape.o): Remove.
12282 (ipa-struct-reorg.o): Likewise.
12283 (GTFILES): Remove ipa-struct-reorg.c.
12284 * alias.c: Do not include ipa-type-escape.h.
12285 * tree-ssa-alias.c: Likewise.
12286 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
12287 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
12288 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
12289 and ipa-type-escape passes.
12290 * tree-pass.h (pass_ipa_type_escape): Remove.
12291 (pass_ipa_struct_reorg): Likewise.
12292 * ipa-struct-reorg.h: Remove.
12293 * ipa-struct-reorg.c: Likewise.
12294 * ipa-type-escape.h: Likewise.
12295 * ipa-type-escape.c: Likewise.
12296 * doc/invoke.texi (-fipa-struct-reorg): Remove.
12297 (--param struct-reorg-cold-struct-ratio): Likewise.
12298 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
12299 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
12300 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
12302 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12304 * config/s390/2084.md: Enable all insn reservations also for z9_ec
12305 cpu attribute value.
12306 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
12307 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
12308 * config/s390/s390.c (processor_flags_table): New constant array.
12309 (s390_handle_arch_option): Remove.
12310 (s390_handle_option): Remove s390_handle_arch_option invocations
12311 and OPT_mwarn_framesize_ handling.
12312 (s390_option_override): Remove s390_handle_arch_option invocation.
12313 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
12315 * config/s390/s390.md (cpu attribute): Add z9_ec value.
12316 * config/s390/s390.opt (s390_tune, s390_arch)
12317 (march=): Replace s390_arch_option enum and values with
12318 processor_type. Set variable name to s390_arch. Set
12319 initialization value.
12320 (mtune=): Replace s390_arch_option with processor_type. Set
12321 variable name to s390_tune. Set initialization value.
12323 2011-03-23 Julian Brown <julian@codesourcery.com>
12325 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
12326 accesses which are not naturally aligned.
12328 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
12331 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
12333 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
12335 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
12336 parameter from "int" to "enum insn_code".
12337 (expand_operand_type): New enum.
12338 (expand_operand): New structure.
12339 (create_expand_operand): New function.
12340 (create_fixed_operand, create_output_operand): Likewise
12341 (create_input_operand, create_convert_operand_to): Likewise.
12342 (create_convert_operand_from, create_address_operand): Likewise.
12343 (create_integer_operand): Likewise.
12344 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
12345 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
12346 (expand_insn, expand_jump_insn): Likewise.
12347 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
12348 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
12349 (expand_movstr, expand_builtin___clear_cache): Likewise.
12350 (expand_builtin_lock_release): Likewise.
12351 * explow.c (allocate_dynamic_stack_space): Likewise.
12352 (probe_stack_range): Likewise. Allow check_stack to FAIL,
12353 and use the default handling in that case.
12354 * expmed.c (check_predicate_volatile_ok): Delete.
12355 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
12356 (emit_cstore): Likewise.
12357 * expr.c (emit_block_move_via_movmem): Likewise.
12358 (set_storage_via_setmem, expand_assignment): Likewise.
12359 (emit_storent_insn, try_casesi): Likewise.
12360 (emit_single_push_insn): Likewise. Allow the expansion to fail.
12361 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
12362 (expand_vec_shift_expr, expand_binop_directly): Likewise.
12363 (expand_twoval_unop, expand_twoval_binop): Likewise.
12364 (expand_unop_direct, emit_indirect_jump): Likewise.
12365 (emit_conditional_move, vector_compare_rtx): Likewise.
12366 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
12367 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
12368 (expand_sync_lock_test_and_set): Likewise.
12369 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
12370 (emit_unop_insn): Likewise.
12371 (expand_copysign_absneg): Change icode to an insn_code.
12372 (create_convert_operand_from_type): New function.
12373 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
12374 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
12375 (expand_insn, expand_jump_insn): Likewise.
12376 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
12377 than const_int_operand for operand 2.
12379 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12381 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
12384 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
12386 * emit-rtl.c (emit_pattern_before_noloc): New function.
12387 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
12388 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
12389 (emit_pattern_after_noloc): New function.
12390 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
12391 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
12393 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
12395 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
12396 (__ffsDI2): Likewise.
12398 2011-03-22 Richard Henderson <rth@redhat.com>
12400 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
12401 of !TARGET_ABI_OPEN_VMS.
12402 (alpha_trampoline_init, alpha_start_function): Likewise.
12403 (alpha_expand_epilogue, alpha_file_start): Likewise.
12404 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
12405 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
12406 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
12407 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
12408 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
12410 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12412 * config/s390/s390-opts.h: New.
12413 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
12414 s390_arch_flags, s390_warn_framesize, s390_stack_size,
12415 s390_stack_guard): Remove.
12416 (s390_handle_arch_option): Return void. Take enum
12417 s390_arch_option value instead of string and searching array.
12418 (s390_handle_option): Don't assert that global structures are in
12419 use. Access variables via opts pointer. Use error_at. Don't use
12420 sscanf for -mstack-guard= or -mstack-size=. Update call to
12421 s390_handle_arch_option.
12422 (s390_option_override): Update call to s390_handle_arch_option.
12423 (s390_emit_prologue): Use %d format for s390_stack_size in
12424 diagnostic. Use %wd for HOST_WIDE_INT.
12425 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
12426 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
12427 * config/s390/s390.opt (config/s390/s390-opts.h): New
12428 HeaderInclude entry.
12429 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
12430 s390_arch_flags, s390_warn_framesize): New Variable entries.
12431 (s390_arch_option): New Enum and EnumValue entries.
12432 (march=): Use Enum instead of Var.
12433 (mstack-guard=, mstack-size=): Use UInteger and Var.
12434 (mtune=): Use Enum.
12436 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12438 * config/score/score.c (score_handle_option): Don't assert that
12439 global structures are in use. Access target_flags via opts
12440 pointer. Use value of -march= option to determine target_flags
12442 * config/score/score.opt (march=): Use Enum.
12443 (score_arch): New Enum and EnumValue entries.
12445 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12447 * config/mep/mep.c (option_mtiny_specified): Remove.
12448 (mep_option_override): Move register handling for -mivc2 from
12449 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
12450 instead of option_mtiny_specified.
12451 (mep_handle_option): Access target_flags via opts pointer. Don't
12452 assert that global structures are in use. Defer part of -mivc2
12453 handling and move it to mep_option_override.
12454 * config/mep/mep.opt (IVC2): New Mask entry.
12455 (mivc2): Use Var and Defer instead of Mask.
12457 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12459 * config/v850/v850-opts.h: New.
12460 * config/v850/v850.c (small_memory): Replace with
12461 small_memory_physical_max array. Make that array static const.
12462 (v850_handle_memory_option): Take integer value of argument. Take
12463 gcc_options pointer, option text and location. Return void.
12464 Update for changes to small memory structures.
12465 (v850_handle_option): Access target_flags via opts pointer. Don't
12466 assert that global structures are in use. Update calls to
12467 v850_handle_memory_option.
12468 (v850_encode_data_area): Update references to small memory settings.
12469 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
12470 (enum small_memory_type): Move to v850-opts.h.
12471 * config/v850/v850.opt (config/v850/v850-opts.h): New
12472 HeaderInclude entry.
12473 (small_memory_max): New Variable entry.
12474 (msda): Replace by pair of options msda= and msda-. Use UInteger.
12475 (mtda, mzda): Likewise.
12477 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12479 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
12480 pointer. Don't assert that global structures are in use.
12482 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12484 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
12485 via opts pointer. Don't assert that global structures are in use.
12487 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12489 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
12490 (munix=93): Use Var.
12491 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
12492 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
12493 * config/pa/pa-opts.h: New.
12494 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
12495 (pa_handle_option): Don't assert that global structures are in
12496 use. Access target_flags via opts pointer. Don't handle
12497 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
12499 (pa_option_override): Handle deferred OPT_mfixed_range_.
12501 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12503 * config/mn10300/mn10300-opts.h: New.
12504 * config/mn10300/mn10300.c (mn10300_processor,
12505 mn10300_tune_string): Remove.
12506 (mn10300_handle_option): Don't assert that global structures are
12507 in use. Access mn10300_processor via opts pointer. Don't handle
12509 * config/mn10300/mn10300.h (enum processor_type): Move to
12511 (mn10300_processor): Remove.
12512 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
12513 HeaderInclude entry.
12514 (mn10300_processor): New Variable entry.
12517 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12519 * config/microblaze/microblaze.c: Don't include opts.h.
12520 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
12521 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
12522 (mno-clearbss): Use Var and Warn.
12524 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12526 * config/m32r/m32r-opts.h: New.
12527 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
12528 (m32r_handle_option): Don't assert that global structures are in
12529 use. Access target_flags and m32r_cache_flush_func via opts
12530 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
12531 OPT_mno_flush_trap here.
12532 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
12533 include of m32r-opts.h.
12534 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
12535 HeaderInclude entry.
12536 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
12537 (mmodel=): Use Enum and Var.
12538 (m32r_model): New Enum and EnumValue entries.
12539 (mno-flush-trap): Use Var.
12540 (msdata=): Use Enum and Var.
12541 (m32r_sdata): New Enum and EnumValue entries.
12543 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12545 * config/m32c/m32c.c: Don't include opts.h.
12546 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
12547 m32c_handle_option): Remove.
12548 (m32c_option_override): Check global_options_set.x_target_memregs
12549 instead of target_memregs_set.
12550 * config/m32c/m32c.h (target_memregs): Remove.
12551 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
12554 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12556 * config/iq2000/iq2000-opts.h: New.
12557 * config/iq2000/iq2000.c: Don't include opts.h.
12558 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
12559 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
12560 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
12561 HeaderInclude entry.
12562 (iq2000_tune): New Variable entry.
12563 (march=): Add comment. Use Enum.
12564 (iq2000_arch): New Enum and EnumValue entries.
12565 (mcpu=): Use Enum and Var.
12566 (iq2000_tune): New Enum and EnumValue entries.
12568 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12570 * config/ia64/ia64-opts.h: New.
12571 * config/ia64/ia64.c (ia64_tune): Remove.
12572 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
12573 here. Use error_at.
12574 (ia64_option_override): Handle deferred OPT_mfixed_range_.
12575 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
12576 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
12577 HeaderInclude entry.
12578 (ia64_tune): New Variable entry.
12579 (mfixed-range=): Use Defer and Var.
12580 (mtune=): Use Enum and Var.
12581 (ia64_tune): New Enum and EnumValue entries.
12583 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12585 * config/frv/frv-opts.h: New.
12586 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
12588 (frv_cpu_type): Remove.
12589 * config/frv/frv.c: Don't include opts.h.
12590 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
12591 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
12592 (frv_cpu_type): New Variable entry.
12593 (frv_cpu): New Enum and EnumValue entries.
12595 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12597 * config/cris/cris.c (cris_handle_option): Access target_flags via
12598 opts pointer. Don't assert that global structures are in use.
12599 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
12600 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
12602 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12604 * config/bfin/bfin-opts.h: New.
12605 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
12606 bfin_si_revision, bfin_workarounds): Remove.
12607 (bfin_cpus): Make static const.
12608 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
12609 not bfin_lib_id_given.
12610 (bfin_handle_option): Don't set bfin_lib_id_given. Access
12611 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
12612 pointer. Use error_at. Don't assert that global structures are in use.
12613 * config/bfin/bfin.h: Include bfin-opts.h.
12614 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
12615 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
12616 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
12617 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
12620 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12622 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
12623 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
12624 or -msoft-float here.
12625 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
12626 -msoft-float and -mhard-float.
12627 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
12628 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
12630 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
12632 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
12633 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
12635 (LIBGCC_SPEC): Don't handle -msoft-float.
12636 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
12638 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
12640 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
12641 -mfloat-abi=*, not -msoft-float and -mhard-float.
12642 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
12644 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
12645 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
12646 mhard-float and msoft-float.
12647 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
12648 mfloat-abi=soft in comments, not mhard-float and msoft-float.
12649 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
12650 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
12652 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
12653 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
12655 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
12657 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
12660 2011-03-22 Richard Henderson <rth@redhat.com>
12662 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
12663 TARGET_ABI_WINDOWS_NT.
12664 (alpha_output_function_end_prologue): Likewise.
12665 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
12666 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
12667 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
12668 (trap, *movsi_nt_vms): Likewise.
12669 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
12670 (*tablejump_osf_nt_internal): Remove.
12671 * config/alpha/predicates.md (input_operand): Only test Pmode.
12673 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12675 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
12676 via opts pointer. Use error_at. Don't assert that global
12677 structures are in use.
12679 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12681 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
12682 (ix86_handle_option): Access ix86_isa_flags and
12683 ix86_isa_flags_explicit via opts pointer. Don't assert that
12684 global structures are in use.
12685 (ix86_function_specific_save, ix86_function_specific_restore):
12686 Update ix86_isa_flags_explicit field name.
12687 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
12688 (ix86_isa_flags_explicit): Rename TargetSave entry to
12689 x_ix86_isa_flags_explicit.
12691 2011-03-22 Richard Henderson <rth@redhat.com>
12693 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
12694 (alpha_option_override, direct_return): Likewise.
12695 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
12696 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
12697 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
12698 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
12699 (alpha_expand_epilogue, alpha_end_function): Likewise.
12700 (alpha_init_libfuncs): Likewise.
12701 (struct machine_function): Remove unicosmk members.
12702 (print_operand) ['t']: Remove.
12703 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
12704 unicosmk_output_module_name, unicosmk_output_common,
12705 current_section_align, unicosmk_output_text_section_asm_op,
12706 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
12707 unicosmk_section_type_flags, unicosmk_unique_section,
12708 unicosmk_asm_named_section, unicosmk_insert_attributes,
12709 unicosmk_output_align, unicosmk_defer_case_vector,
12710 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
12711 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
12712 unicosmk_output_ssib, unicosmk_add_call_info_word,
12713 unicosmk_extern_head, unicosmk_output_default_externs,
12714 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
12715 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
12716 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
12717 * config/alpha/alpha-protos.h: Update.
12718 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
12719 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
12720 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
12721 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
12722 (*mulsi_se, mulvsi3): Likewise.
12723 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
12724 (*divmodsi_internal, call, call_value, realign): Likewise.
12725 (moddi3, umoddi3): Likewise; remove duplicate expander.
12726 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
12727 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
12728 (*movdi_nofix): Remove r/U alternative.
12729 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
12730 * config/alpha/constraints.md ("U"): Remove.
12731 * config/alpha/predicates.md (call_operand"): Don't test
12732 TARGET_ABI_UNICOSMK.
12734 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12736 * target.def (handle_option): Take gcc_options and
12737 cl_decoded_option pointers and location_t.
12738 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
12739 * doc/tm.texi: Regenerate.
12740 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
12741 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
12742 * lto-opts.c (lto_reissue_options): Generate option structure for
12743 targetm.handle_option call.
12744 * opts.c (target_handle_option): Update call to
12745 targetm.handle_option. Remove assertions about values now passed
12747 * targhooks.c (default_target_handle_option): New.
12748 * targhooks.h (default_target_handle_option): Declare.
12749 * config/alpha/alpha.c: Include opts.h.
12750 (alpha_handle_option): Update to new hook interface.
12751 * config/arm/arm.c: Include opts.h.
12752 (arm_handle_option): Update to new hook interface.
12753 * config/arm/t-arm (arm.o): Update dependencies.
12754 * config/bfin/bfin.c: Include opts.h.
12755 (bfin_handle_option): Update to new hook interface.
12756 * config/cris/cris.c: Include opts.h.
12757 (cris_handle_option): Update to new hook interface.
12758 * config/frv/frv.c: Include opts.h.
12759 (frv_handle_option): Update to new hook interface.
12760 * config/i386/i386.c: Include opts.h.
12761 (ix86_handle_option): Update to new hook interface.
12762 (ix86_valid_target_attribute_inner_p): Generate option structure
12763 for call to ix86_handle_option.
12764 * config/i386/t-i386 (i386.o): Update dependencies.
12765 * config/ia64/ia64.c: Include opts.h.
12766 (ia64_handle_option): Update to new hook interface.
12767 * config/ia64/t-ia64 (ia64.o): Update dependencies.
12768 * config/iq2000/iq2000.c: Include opts.h.
12769 (iq2000_handle_option): Update to new hook interface.
12770 * config/m32c/m32c.c: Include opts.h.
12771 (m32c_handle_option): Update to new hook interface.
12772 * config/m32r/m32r.c: Include opts.h.
12773 (m32r_handle_option): Update to new hook interface.
12774 * config/m68k/m68k.c: Include opts.h.
12775 (m68k_handle_option): Update to new hook interface.
12776 * config/mep/mep.c: Include opts.h.
12777 (mep_handle_option): Update to new hook interface.
12778 * config/microblaze/microblaze.c: Include opts.h.
12779 (microblaze_handle_option): Update to new hook interface.
12780 * config/mips/mips.c: Include opts.h.
12781 (mips_handle_option): Update to new hook interface.
12782 * config/mn10300/mn10300.c: Include opts.h.
12783 (mn10300_handle_option): Update to new hook interface.
12784 * config/pa/pa.c: Include opts.h.
12785 (pa_handle_option): Update to new hook interface.
12786 * config/pdp11/pdp11.c: Include opts.h.
12787 (pdp11_handle_option): Update to new hook interface.
12788 * config/rs6000/rs6000.c: Include opts.h.
12789 (rs6000_handle_option): Update to new hook interface.
12790 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
12791 * config/rx/rx.c: Include opts.h.
12792 (rx_handle_option): Update to new hook interface.
12793 * config/s390/s390.c: Include opts.h.
12794 (s390_handle_option): Update to new hook interface.
12795 * config/score/score.c: Include opts.h.
12796 (score_handle_option): Update to new hook interface.
12797 * config/sh/sh.c: Include opts.h.
12798 (sh_handle_option): Update to new hook interface.
12799 * config/sparc/sparc.c: Include opts.h.
12800 (sparc_handle_option): Update to new hook interface.
12801 * config/v850/v850.c: Include opts.h.
12802 (v850_handle_option): Update to new hook interface.
12804 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12806 * gcc.c (driver_unknown_option_callback): Only permit and save
12807 unknown -Wno- options.
12808 (driver_wrong_lang_callback): Save options directly instead of via
12809 driver_unknown_option_callback.
12811 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
12813 * combine.c (simplify_set): Try harder to find the best CC mode when
12814 simplifying a nested COMPARE on the RHS.
12816 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12818 * config/alpha/gnu.h: Remove.
12819 * config/arc: Remove directory.
12820 * config/arm/netbsd.h: Remove.
12821 * config/arm/t-pe: Remove.
12822 * config/crx: Remove directory.
12823 * config/i386/netbsd.h: Remove.
12824 * config/m68hc11: Remove directory.
12825 * config/m68k/uclinux-oldabi.h: Remove.
12826 * config/mcore/mcore-pe.h: Remove.
12827 * config/mcore/t-mcore-pe: Remove.
12828 * config/netbsd-aout.h: Remove.
12829 * config/rs6000/gnu.h: Remove.
12830 * config/sh/sh-symbian.h: Remove.
12831 * config/sh/symbian-base.c: Remove.
12832 * config/sh/symbian-c.c: Remove.
12833 * config/sh/symbian-cxx.c: Remove.
12834 * config/sh/symbian-post.h: Remove.
12835 * config/sh/symbian-pre.h: Remove.
12836 * config/sh/t-symbian: Remove.
12837 * config/svr3.h: Remove.
12838 * config/vax/netbsd.h: Remove.
12839 * config.build: Don't handle i[34567]86-*-pe.
12840 * config.gcc: Remove handling of deprecations for most deprecated
12842 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
12843 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
12844 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
12845 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
12846 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
12847 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
12849 * config.host: Don't handle i[34567]86-*-pe.
12850 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
12851 (ASM_SPEC32): Don't handle -mcall-gnu.
12852 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
12854 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
12855 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
12856 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
12857 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
12858 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
12859 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
12860 conditional on SYMBIAN.
12861 * configure.ac: Don't handle powerpc*-*-gnu*.
12862 * configure: Regenerate.
12863 * doc/extend.texi (interrupt attribute): Don't mention CRX.
12864 * doc/install-old.texi (m6811, m6812): Don't mention.
12865 * doc/install.texi (arc-*-elf*): Don't document multilib option.
12866 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
12867 (m68k-uclinuxoldabi): Don't mention.
12868 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
12870 (-mcall-gnu): Remove.
12871 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
12872 families): Remove constraint documentation.
12874 2011-03-22 Marius Strobl <marius@FreeBSD.org>
12876 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
12877 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
12878 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
12880 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
12883 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
12884 vector when peeking at the next token for vector, don't expand the
12887 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
12889 * config/avr/avr-protos.h (expand_epilogue): Change prototype
12890 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
12891 * config/avr/avr.c (init_cumulative_args)
12892 (avr_function_arg_advance): Use it.
12893 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
12895 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
12896 (avr_function_ok_for_sibcall): ...this new function.
12897 (avr_lookup_function_attribute1): New static Function.
12898 (avr_naked_function_p, interrupt_function_p)
12899 (signal_function_p, avr_OS_task_function_p)
12900 (avr_OS_main_function_p): Use it.
12901 * config/avr/avr.md ("sibcall", "sibcall_value")
12902 ("sibcall_epilogue"): New expander.
12903 ("*call_insn", "*call_value_insn"): New insn.
12904 ("call_insn", "call_value_insn"): Remove
12905 ("call", "call_value", "epilogue"): Change expander to handle
12908 2011-03-21 Nick Clifton <nickc@redhat.com>
12910 * doc/invoke.texi (Overall Options): Move closing brace to end of
12912 (Optimization Options): Add missing @gol.
12913 (Directory Options): Likewise.
12914 (i386 and x86-64 Options): Likewise.
12915 (RS6000 and PowerPC Options): Likewise.
12916 (i386 and x86-64 Windows Options): Likewise.
12917 (V850 Options): Add text missing from descriptions.
12919 2011-03-22 Richard Henderson <rth@redhat.com>
12921 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
12922 (avr_incoming_return_addr_rtx): New.
12923 (emit_push_byte): New.
12924 (expand_prologue): Use it. Remove incorrect dwarf annotation for
12925 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
12926 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
12927 (emit_pop_byte): New.
12928 (expand_epilogue): Use it. Pop frame pointer by bytes.
12929 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
12930 (INCOMING_RETURN_ADDR_RTX): New.
12931 (INCOMING_FRAME_SP_OFFSET): New.
12932 (ARG_POINTER_CFA_OFFSET): New.
12933 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
12934 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
12937 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
12939 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
12941 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
12942 (FUNCTION_ARG_ADVANCE): Likewise.
12943 * tm.texi.in: Change references to them to hook references.
12944 * tm.texi: Regenerate.
12945 * targhooks.c (default_function_arg): Eliminate check for target
12947 (default_function_incoming_arg): Likewise.
12948 (default_function_arg_advance): Likewise.
12949 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
12950 (function_arg_advance): Likewise.
12951 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
12953 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
12955 * tree.c (build_call_1): New function.
12956 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
12958 2011-03-22 Richard Guenther <rguenther@suse.de>
12960 PR tree-optimization/48228
12961 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
12962 for single-arg PHIs.
12964 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
12966 PR rtl-optimization/48143
12967 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
12968 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
12969 sse2_cvtps2pd): Likewise.
12971 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12973 * recog.c (canonicalize_change_group): Use validate_unshare_change.
12975 2011-03-22 Richard Guenther <rguenther@suse.de>
12977 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
12978 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
12979 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
12980 and REALIGN_LOAD_EXPR.
12981 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
12982 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
12983 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
12984 DOT_PROD_EXPR case ...
12985 (expand_expr_real_2): ... here.
12986 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
12987 and REALIGN_LOAD_EXPR.
12988 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
12989 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
12990 (vect_create_epilog_for_reduction): Likewise.
12991 (vectorizable_reduction): Likewise.
12992 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
12993 * tree-vect-stmts.c (vectorizable_load): Likewise.
12995 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
12997 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
12999 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13001 * config/s390/s390.c (s390_delegitimize_address): Fix offset
13002 handling for PLTOFF/GOTOFF.
13004 2011-03-22 Nick Clifton <nickc@redhat.com>
13006 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
13007 trailing backslash from the end of the macro definition.
13009 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13011 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
13014 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
13016 * expr.h (prepare_operand): Move to...
13017 * optabs.h (prepare_operand): ...here and change the insn code
13018 parameter from "int" to "enum insn_code".
13019 (insn_operand_matches): Declare.
13020 * expr.c (init_expr_target): Use insn_operand_matches.
13021 (compress_float_constant): Likewise.
13022 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
13023 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
13024 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
13025 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
13027 (gen_cond_trap): Likewise.
13028 (prepare_operand): Likewise. Change icode to an insn_code.
13029 (insn_operand_matches): New function.
13030 * reload.c (find_reloads_address_1): Use insn_operand_matches.
13031 * reload1.c (gen_reload): Likewise.
13032 * targhooks.c (default_secondary_reload): Likewise.
13034 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
13036 * config/alpha/alpha.md (unspec): New define_c_enum.
13039 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
13042 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
13043 between a call and its CALL_ARG_LOCATION note.
13045 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
13047 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
13049 2011-03-21 Jakub Jelinek <jakub@redhat.com>
13053 * c-common.c (shorten_compare): If primopN is first sign-extended
13054 to opN and then zero-extended to result type, set primopN to opN.
13056 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
13058 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
13059 for barrier handlers.
13061 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
13063 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
13064 UNSPEC constants to be in the unspec enumeration, and redefine
13065 all UNSPECV constants to be in the unspecv enumeration, so that
13066 dumps print which unspec/unspec_volatile this is.
13067 * config/rs6000/vector.md (UNSPEC_*): Ditto.
13068 * config/rs6000/paired.md (UNSPEC_*): Ditto.
13069 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
13070 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
13071 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
13073 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
13074 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
13075 UNSPECV_LWSYNC, since these are used as unspec_volatile.
13076 * config/rs6000/sync.md (isync, lwsync): Ditto.
13078 2011-03-21 Richard Guenther <rguenther@suse.de>
13080 * params.def (lto-min-partition): Fix typo.
13082 2011-03-21 Richard Guenther <rguenther@suse.de>
13085 * c-decl.c (grokdeclarator): Drop to the main variant only
13086 for array types. Drop flag_gen_aux_info check.
13088 2011-03-21 Richard Guenther <rguenther@suse.de>
13090 PR translation/47911
13091 * params.def (lto-partitions): Fix typo.
13092 (lto-min-partition): Fix wording.
13094 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
13096 * config/rs6000/t-freebsd: Remove duplication from file.
13098 2011-03-21 Richard Guenther <rguenther@suse.de>
13100 PR middle-end/47661
13101 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
13103 2011-03-21 Richard Guenther <rguenther@suse.de>
13106 * params.def (lto-partitions): Require at least 1 partition.
13108 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13110 * gthr-solaris.h: Remove.
13111 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
13112 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
13113 (LIB_SPEC): Likewise.
13114 * config/sol2.opt (threads): Remove.
13115 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
13116 (sparc*-*-solaris2*): Likewise.
13117 * configure.ac (enable_threads): Enable solaris support.
13118 * configure: Regenerate.
13119 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
13120 * doc/install.texi (Configuration, --enable-threads=lib): Remove
13123 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13125 * config.gcc: Obsolete *-*-solaris2.8*.
13126 * doc/install.texi (Specific, *-*-solaris2*): Document it.
13128 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13131 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
13132 reference. Solaris 8 perl works.
13134 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13137 * doc/install.texi (Prerequisites): Move jar etc. up.
13138 Explain support library version requirements.
13140 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13143 * doc/install.texi (Prerequisites): Move Perl to build
13144 requirements. Always necessary on Solaris 2 with Sun ld.
13146 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13148 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
13150 (Specific, i?86-*-solaris2.[89]): Likewise.
13151 (Specific, i?86-*-solaris2.10): Likewise.
13152 (Specific, mips-sgi-irix6): Likewise.
13153 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
13154 Update for binutils 2.21.
13156 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13158 * configure.ac (gcc_cv_lto_plugin): Fix typo.
13159 Allow -fuse-linker-plugin for non-default plugin linker.
13160 * configure: Regenerate.
13162 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
13165 * gengtype.c (files_rules): Added rule for cp/parser.h.
13167 2011-03-21 Jakub Jelinek <jakub@redhat.com>
13170 * config/s390/s390.c (s390_delegitimize_address): Don't call
13171 lowpart_subreg if orig_x has BLKmode.
13173 2011-03-21 Kai Tietz <ktietz@redhat.com>
13176 * doc/plugins.texi: Adjust documentation for plugin register_callback.
13177 * tree.h (attribute_spec): Add new member affects_type_identity.
13178 * attribs.c (empty_attribute_table): Adjust attribute_spec
13180 * config/alpha/alpha.c: Likewise.
13181 * config/arc/arc.c: Likewise.
13182 * config/arm/arm.c: Likewise.
13183 * config/avr/avr.c: Likewise.
13184 * config/bfin/bfin.c: Likewise.
13185 * config/crx/crx.c: Likewise.
13186 * config/darwin.h: Likewise.
13187 * config/h8300/h8300.c: Likewise.
13188 * config/i386/cygming.h: Likewise.
13189 * config/i386/i386.c: Likewise.
13190 * config/ia64/ia64.c: Likewise.
13191 * config/m32c/m32c.c: Likewise.
13192 * config/m32r/m32r.c: Likewise.
13193 * config/m68hc11/m68hc11.c: Likewise.
13194 * config/m68k/m68k.c: Likewise.
13195 * config/mcore/mcore.c: Likewise.
13196 * config/mep/mep.c: Likewise.
13197 * config/microblaze/microblaze.c: Likewise.
13198 * config/mips/mips.c: Likewise.
13199 * config/rs6000/rs6000.c: Likewise.
13200 * config/rx/rx.c: Likewise.
13201 * config/sh/sh.c: Likewise.
13202 * config/sol2.h: Likewise.
13203 * config/sparc/sparc.c: Likewise.
13204 * config/spu/spu.c: Likewise.
13205 * config/stormy16/stormy16.c: Likewise.
13206 * config/v850/v850.c: Likewise.
13208 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
13210 * simplify-rtx.c (simplify_binary_operation_1): Handle
13211 (xor (and A B) C) case when B and C are both constants.
13213 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
13215 * tree-dfa.c (add_referenced_var): Fix typo in comment.
13217 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
13220 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
13222 2011-03-20 Jakub Jelinek <jakub@redhat.com>
13224 PR rtl-optimization/48156
13225 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
13226 assume df and df_lr are not NULL.
13228 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13231 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
13232 between a call and its CALL_ARG_LOCATION note.
13234 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
13237 * config/sh/sh.c (find_barrier): Don't emit a constant pool
13238 between a call and its corresponding CALL_ARG_LOCATION note.
13240 2011-03-19 Anatoly Sokolov <aesok@post.ru>
13242 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
13243 instead of loop. Use HARD_REGISTER_NUM_P predicate.
13244 * haifa-sched.c (setup_ref_regs): Ditto.
13245 * caller-save.c (add_used_regs_1): Ditto.
13246 * dse.c (look_for_hardregs): Ditto.
13247 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
13248 * sched-rgn.c (check_live_1): Ditto.
13250 2011-03-18 Joseph Myers <joseph@codesourcery.com>
13252 * c-decl.c (diagnose_mismatched_decls): Give an error for
13253 redefining a typedef with variably modified type.
13255 2011-03-18 Joseph Myers <joseph@codesourcery.com>
13257 * c-decl.c (grokfield): Don't allow typedefs for structures or
13258 unions with no tag by default.
13259 * doc/extend.texi (Unnamed Fields): Update.
13261 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
13263 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
13264 Rewrite using indirect functions.
13265 (lwp_slwpcb): Ditto.
13266 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
13267 (avx_vinsertf128<mode>): Ditto.
13269 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13271 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
13274 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13276 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
13277 splitting between a call and its corresponding CALL_ARG_LOCATION note.
13279 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
13281 PR rtl-optimization/48170
13282 * gcse.c (hoist_code): Remove bogus asserts.
13284 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
13286 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
13287 computation for prologue/epilogue.
13289 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13291 * Makefile.in (check-consistency): Remove.
13293 2011-03-18 Jakub Jelinek <jakub@redhat.com>
13296 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
13297 arange_table_in_use is 0, but either text_section_used or
13298 cold_text_section_used is true. Don't call it if
13299 !info_section_emitted.
13301 2011-03-18 Anatoly Sokolov <aesok@post.ru>
13303 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
13304 FUNCTION_VALUE_REGNO_P): Remove.
13305 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
13307 * config/avr/avr.c (avr_ret_register): Make static inline.
13308 (avr_function_value_regno_p): New function.
13309 (avr_libcall_value): Make static. Add 'func' argument.
13310 (avr_function_value): Make static. Rename 'func' argument to
13311 'fn_decl_or_type', forward it to avr_libcall_value. Call
13312 avr_ret_register function instead of RET_REGISTER macro.
13313 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
13315 2011-03-18 Jason Merrill <jason@redhat.com>
13318 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
13320 2011-03-18 Richard Guenther <rguenther@suse.de>
13322 * doc/install.texi (--enable-gold): Remove.
13323 (--with-plugin-ld): Document.
13324 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
13326 2011-03-18 Andrew Pinski <pinskia@gmail.com>
13328 PR middle-end/47790
13329 * expr.c (optimize_bitfield_assignment_op): Revamp to work
13330 again after expansion changes.
13332 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
13334 * combine.c (try_combine): Do simplification only call of
13335 subst() on i2 even when i1 is present. Update comments.
13337 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
13339 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
13340 and UNSPEC_PCREL_SYMOFF.
13342 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13344 * config/s390/s390.md: Use define_c_enum for the unspec constant
13347 2011-03-18 Richard Henderson <rth@redhat.com>
13348 Jakub Jelinek <jakub@redhat.com>
13351 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
13352 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
13354 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
13356 PR middle-end/47725
13357 * combine.c (cant_combine_insn_p): Don't check zero/sign
13358 extended hard registers.
13360 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
13362 PR middle-end/47725
13363 * combine.c (cant_combine_insn_p): Check zero/sign extended
13366 2011-03-17 Anatoly Sokolov <aesok@post.ru>
13368 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13369 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
13370 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
13371 Change return type to bool.
13372 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13374 2011-03-17 Jakub Jelinek <jakub@redhat.com>
13377 * var-tracking.c (prepare_call_arguments): If CALL target
13378 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
13379 pc instead of looking it up using cselib_lookup and use
13380 Pmode for it if x has VOIDmode.
13381 * dwarf2out.c (gen_subprogram_die): If also both first and
13382 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
13385 * function.c (assign_parms): For data.passed_pointer parms
13386 use MEM of data.entry_parm instead of data.entry_parm itself
13387 as DECL_INCOMING_RTL.
13388 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
13389 also when passed and declared mode is the same, DECL_RTL
13390 is a MEM with pseudo as address and DECL_INCOMING_RTL is
13393 2011-03-16 Jeff Law <law@redhat.com>
13395 PR rtl-optimization/37273
13396 * ira-costs.c (scan_one_insn): Detect constants living in memory and
13397 handle them like argument loads from stack slots. Do not double
13398 count memory for memory constants and argument loads from stack slots.
13400 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
13403 * var-tracking.c (prepare_call_arguments): Check SUBREG.
13405 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
13408 * config/i386/i386.opt: Add Save to -mavx and -mfma.
13410 2011-03-17 Jakub Jelinek <jakub@redhat.com>
13413 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
13415 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
13416 Clear call_arg_locations and call_arg_loc_last always.
13418 PR middle-end/48152
13419 * var-tracking.c (prepare_call_arguments): If argument needs to be
13420 passed by reference, adjust argtype and mode.
13422 2011-03-17 Richard Guenther <rguenther@suse.de>
13424 PR middle-end/48134
13425 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
13426 a value make sure to fold the statement.
13428 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
13431 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
13432 return condition with !cfun->calls_alloca.
13434 2011-03-17 Richard Guenther <rguenther@suse.de>
13437 * lto-cgraph.c (input_overwrite_node): Clear the abstract
13438 origin for decls in other ltrans units.
13439 (input_varpool_node): Likewise.
13441 2011-03-17 Richard Guenther <rguenther@suse.de>
13443 PR middle-end/48165
13444 * tree-object-size.c (compute_object_offset): Properly return
13445 the offset operand of MEM_REFs as sizetype.
13447 2011-03-17 Jakub Jelinek <jakub@redhat.com>
13449 PR rtl-optimization/48141
13450 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
13451 * dse.c: Include params.h.
13452 (active_local_stores_len): New variable.
13453 (add_wild_read, dse_step1): Clear it when setting active_local_stores
13455 (record_store, check_mem_read_rtx): Decrease it when removing
13457 (scan_insn): Likewise. Increase it when adding to chain, if it
13458 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
13459 set active_local_stores to NULL before the addition.
13460 * Makefile.in (dse.o): Depend on $(PARAMS_H).
13462 PR rtl-optimization/48141
13463 * dse.c (record_store): If no positions are needed in an insn
13464 that cannot be deleted, at least unchain it from active_local_stores.
13466 2011-03-16 Dodji Seketeli <dodji@redhat.com>
13469 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
13470 (lookup_type_die_strip_naming_typedef): ... here.
13471 (get_context_die): Use it.
13472 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
13473 the anonymous struct named by the naming typedef.
13475 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
13478 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
13479 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
13481 2011-03-16 Jeff Law <law@redhat.com>
13483 * tree-vrp.c (identify_jump_threads): Slightly simplify type
13484 check for operands of conditional. Allow type to be a pointer.
13486 2011-03-16 Richard Guenther <rguenther@suse.de>
13488 PR tree-optimization/48149
13489 * fold-const.c (fold_binary_loc): Fold
13490 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
13492 2011-03-16 Richard Guenther <rguenther@suse.de>
13494 PR tree-optimization/26134
13495 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
13496 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
13497 (non_rewritable_mem_ref_base): Handle complex type component
13498 accesses, constrain offsets for vector and complex extracts
13501 2011-03-16 Richard Guenther <rguenther@suse.de>
13503 PR tree-optimization/48146
13504 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
13505 operands avoiding the need for renaming.
13507 2011-03-16 Richard Guenther <rguenther@suse.de>
13509 * gimple-fold.c (maybe_fold_reference): Open-code relevant
13510 constant folding. Move MEM_REF canonicalization first.
13511 Rely on fold_const_aggregate_ref for initializer folding.
13512 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
13514 2011-03-16 Jakub Jelinek <jakub@redhat.com>
13516 PR middle-end/48136
13517 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
13518 arg0/arg1 or their arguments are always fold converted to matching
13521 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
13524 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13527 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
13528 Handle in-tree gold.
13529 (ld_vers): Extract binutils version for gold.
13530 (gcc_cv_ld_hidden): Handle gold here.
13531 (gcc_cv_lto_plugin): Determine level of linker plugin support.
13532 * configure: Regenerate.
13533 * config.in: Regenerate.
13534 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
13535 -fuse-linker-plugin otherwise.
13536 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
13537 (LINK_COMMAND_SPEC): Use it.
13538 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
13540 2011-03-16 Jakub Jelinek <jakub@redhat.com>
13542 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
13543 * calls.c: Remove debug.h include.
13544 (emit_call_1): Don't call virtual_call_token debug hook.
13545 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
13546 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
13547 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
13548 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
13549 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
13550 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
13551 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
13552 dwarf2out_virtual_call): Remove.
13553 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
13554 copy_call_info and virtual_call hooks.
13555 (dwarf2out_init): Don't initialize vcall_insn_table,
13556 debug_dcall_section and debug_vcall_section.
13557 (prune_unused_types): Don't mark nodes from dcall_table.
13558 (dwarf2out_finish): Don't output dcall or vcall tables.
13559 * final.c (final_scan_insn): Don't call direct_call or
13560 virtual_call debug hooks.
13561 * debug.h (struct gcc_debug_hooks): Remove direct_call,
13562 virtual_call_token, copy_call_info and virtual_call hooks.
13563 (debug_nothing_uid): Remove prototype.
13564 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
13565 copy_call_info and virtual_call hooks.
13566 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
13567 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
13568 * debug.c (do_nothing_debug_hooks): Likewise.
13569 (debug_nothing_uid): Remove.
13570 * doc/invoke.texi (-fenable-icf-debug): Remove.
13571 * common.opt (-fenable-icf-debug): Likewise.
13573 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
13574 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
13575 call's MEM. Handle functions returning aggregate through a hidden
13576 first pointer. For virtual calls add clobbered pc to call arguments
13578 * dwarf2out.c (gen_subprogram_die): Emit
13579 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
13583 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
13584 * rtl.h (ENTRY_VALUE_EXP): Define.
13585 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
13586 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
13587 * print-rtl.c (print_rtx): Likewise.
13588 * gengtype.c (adjust_field_rtx_def): Likewise.
13589 * var-tracking.c (vt_add_function_parameter): Adjust
13590 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
13591 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
13592 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
13593 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
13594 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
13596 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
13597 Call var_location debug hook even on CALL_INSNs.
13598 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
13599 * rtl.def (ENTRY_VALUE): New.
13600 * dwarf2out.c: Include cfglayout.h.
13601 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
13602 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
13603 (struct call_arg_loc_node): New type.
13604 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
13605 tail_call_site_count): New variables.
13606 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
13607 DW_TAG_GNU_call_site_parameter.
13608 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
13609 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
13610 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
13611 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
13612 and DW_AT_GNU_all_source_call_sites.
13613 (mem_loc_descriptor): Handle ENTRY_VALUE.
13614 (add_src_coords_attributes): Don't add enything if
13615 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
13616 (dwarf2out_abstract_function): Save and clear call_arg_location,
13617 call_site_count and tail_call_site_count around dwarf2out_decl call.
13618 (gen_call_site_die): New function.
13619 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
13620 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
13621 (dwarf2out_function_decl): Clear call_arg_locations,
13622 call_arg_loc_last, set call_site_count and tail_call_site_count
13623 to -1 and free block_map.
13624 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
13625 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
13626 followed by any real instructions.
13627 (dwarf2out_begin_function): Set call_site_count and
13628 tail_call_site_count to 0.
13629 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
13630 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
13631 attempt to force a DIE for it and worst case remove the attribute.
13632 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
13633 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
13635 * var-tracking.c: Include tm_p.h.
13636 (vt_stack_adjustments): For calls call note_register_arguments.
13637 (argument_reg_set): New variable.
13638 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
13639 ensure the VALUE is resolved.
13640 (call_arguments): New variable.
13641 (prepare_call_arguments): New function.
13642 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
13643 (struct expand_loc_callback_data): Add ignore_cur_loc field.
13644 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
13645 always use the best expression.
13646 (vt_expand_loc): Add ignore_cur_loc argument.
13647 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
13648 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
13649 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
13650 note for all calls.
13651 (vt_add_function_parameter): Use cselib_lookup_from_insn.
13652 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
13653 argument. Don't call cselib_preserve_only_values and
13654 cselib_reset_table.
13655 (note_register_arguments): New function.
13656 (vt_initialize): Compute argument_reg_set. Call
13657 vt_add_function_parameters before processing basic blocks instead of
13658 afterwards. For calls call prepare_call_arguments before calling
13659 cselib_process_insn.
13660 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
13661 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
13662 (var-tracking.o): Depend on $(TM_P_H).
13663 * cfglayout.h (insn_scope): New prototype.
13664 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
13665 * cfglayout.c (insn_scope): No longer static.
13666 * insn-notes.def (CALL_ARG_LOCATION): New.
13667 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
13668 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
13669 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
13670 nothing for DECL_EXTERNAL BLOCK_VARS.
13672 2011-03-16 Alan Modra <amodra@gmail.com>
13675 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
13676 create invalid offset address for vsx splat insn.
13677 * config/rs6000/predicates.md (splat_input_operand): New.
13678 * config/rs6000/vsx.md (vsx_splat_*): Use it.
13680 2011-03-15 Xinliang David Li <davidxl@google.com>
13683 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
13684 (normalize_preds): New function.
13685 (is_use_properly_guarded): Normalize def predicates.
13687 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13690 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
13691 in the output template.
13693 2011-03-15 Richard Guenther <rguenther@suse.de>
13695 PR middle-end/47650
13696 * tree-pretty-print.c (dump_function_declaration): Properly
13697 dump unprototyped and varargs function types.
13699 2011-03-15 Richard Guenther <rguenther@suse.de>
13701 PR tree-optimization/13954
13702 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
13705 2011-03-15 Richard Guenther <rguenther@suse.de>
13707 PR tree-optimization/48037
13708 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
13709 selects into BIT_FIELD_REFs.
13710 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
13713 2011-03-15 Jakub Jelinek <jakub@redhat.com>
13715 PR tree-optimization/48129
13716 * builtins.c (fold_builtin_snprintf): Convert to type of
13717 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
13718 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
13720 2011-03-15 Richard Guenther <rguenther@suse.de>
13722 PR tree-optimization/41490
13723 * tree-ssa-dce.c (propagate_necessity): Handle returns without
13724 value but with VUSE.
13725 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
13727 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
13728 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
13729 * tree-tailcall.c (find_tail_calls): Ignore returns.
13731 2011-03-15 Richard Guenther <rguenther@suse.de>
13733 PR middle-end/48031
13734 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
13735 or variable-indexed array accesses when in gimple form.
13737 2011-03-15 Richard Guenther <rguenther@suse.de>
13739 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
13741 2011-03-15 Alan Modra <amodra@gmail.com>
13744 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
13745 presume symbol_refs without a symbol_ref_decl are suitably
13746 aligned, nor other trees we may see here. Handle anchor symbols.
13747 (legitimate_constant_pool_address_p): Comment. Add mode param.
13748 Check cmodel=medium addresses. Adjust all calls.
13749 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
13750 creating cmodel=medium optimized access to locals.
13751 * config/rs6000/constraints.md (R): Pass QImode to
13752 legitimate_constant_pool_address_p.
13753 * config/rs6000/predicates.md (input_operand): Pass mode to
13754 legitimate_constant_pool_address_p.
13755 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
13758 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
13761 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
13762 64-bit constants being loaded into registers other than GPRs such
13763 as loading 0 into a VSX register.
13765 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13767 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
13769 2011-03-14 Jakub Jelinek <jakub@redhat.com>
13771 PR middle-end/47917
13772 * builtins.c (fold_builtin_snprintf): New function.
13773 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
13774 (fold_builtin_4): Likewise.
13776 PR middle-end/38878
13777 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
13778 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
13779 and C - X == X also strip nops from +/-/p+ operand.
13780 When optimizing -X == C, fold C to arg0's type.
13783 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
13784 emit it as add_AT_int instead of add_AT_unsigned.
13786 2011-03-14 Tom Tromey <tromey@redhat.com>
13788 * unwind-dw2.c: Include sys/sdt.h if it exists.
13789 (_Unwind_DebugHook): Use STAP_PROBE2.
13790 * config.in, configure: Rebuild.
13791 * configure.ac: Check for sys/sdt.h.
13793 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
13795 * config/i386/i386.md (ROUND_FLOOR): New constant.
13796 (ROUND_CEIL): Ditto.
13797 (ROUND_TRUNC): Ditto.
13798 (ROUND_MXCSR): Ditto.
13799 (ROUND_NO_EXC): Ditto.
13800 (rint<mode>2): Use new defines instead of numerical constants.
13801 (floor<mode>2): Ditto.
13802 (ceil<mode>2): Ditto.
13803 (btrunc<mode>2): Ditto.
13804 * config/i386/i386-builtin-types.def: Define ROUND function type
13806 * config/i386/i386.c (enum ix86_builtins): Add
13807 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
13808 (struct builtin_description): Add
13809 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
13810 (ix86_expand_sse_round): New static function.
13811 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
13813 (ix86_builtin_vectorized_function): Handle
13814 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
13816 2011-03-14 Tom Tromey <tromey@redhat.com>
13818 * c-parser.c (c_parser_asm_string_literal): Clear
13819 warn_overlength_strings.
13821 2011-03-14 Tom Tromey <tromey@redhat.com>
13823 * c-parser.c (disable_extension_diagnostics): Save
13824 warn_overlength_strings.
13825 (restore_extension_diagnostics): Restore warn_overlength_strings.
13827 2011-03-14 Jakub Jelinek <jakub@redhat.com>
13829 * BASE-VER: Change to 4.7.0.
13831 2011-03-14 Richard Guenther <rguenther@suse.de>
13833 PR middle-end/48098
13834 * tree.c (build_vector_from_val): Adjust assert to requirements
13837 2011-03-14 Jakub Jelinek <jakub@redhat.com>
13840 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
13842 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
13844 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
13845 terms of target_flags_explicit. Adjust copyright year.
13847 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
13848 * config/rs6000/t-freebsd: New file. Add override for
13851 2011-03-13 Chris Demetriou <cgd@google.com>
13853 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
13854 (-fno-diagnostics-show-option): this, to reflect current default.
13855 (-Werror=): Update text about -fno-diagnostics-show-option.
13857 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
13860 * config/rs6000/predicates.md (easy_vector_constant_add_self,
13861 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
13862 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
13863 mode is not V2DImode or V2DFmode.
13864 (vspltis_constant): Do not handle V2DImode and V2DFmode.
13865 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
13866 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
13868 (movdi_internal64): Likewise.
13870 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
13872 PR tree-optimization/47127
13873 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
13875 (set_cloog_options): Same.
13876 (scop_to_clast): Same.
13877 (print_clast_stmt): Do not call cloog_state_malloc and
13879 (print_generated_program): Same.
13881 * graphite-clast-to-gimple.h (cloog_state): Declared.
13882 (scop_to_clast): Adjust declaration.
13883 * graphite.c (cloog_state): Defined here.
13884 (graphite_initialize): Call cloog_state_malloc.
13885 (graphite_finalize): Call cloog_state_free.
13887 2011-03-11 Jason Merrill <jason@redhat.com>
13889 * attribs.c (lookup_attribute_spec): Take const_tree.
13892 2011-03-11 Joseph Myers <joseph@codesourcery.com>
13894 * config/sparc/sparc.c (sparc_option_override): Use
13895 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
13897 2011-03-11 Richard Guenther <rguenther@suse.de>
13899 PR tree-optimization/48067
13900 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
13901 multiplication result will be only used once on the target
13904 2011-03-11 Richard Guenther <rguenther@suse.de>
13906 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
13908 2011-03-11 Richard Guenther <rguenther@suse.de>
13911 * tree.c (find_decls_types_r): Do not walk types only reachable
13912 from IDENTIFIER_NODEs.
13914 2011-03-11 Jakub Jelinek <jakub@redhat.com>
13916 PR middle-end/48044
13917 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
13918 all vnode->force_output nodes as needed.
13920 2011-03-11 Jason Merrill <jason@redhat.com>
13923 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
13924 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
13926 2011-03-11 Martin Jambor <mjambor@suse.cz>
13928 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
13931 2011-03-11 Jakub Jelinek <jakub@redhat.com>
13933 PR tree-optimization/48063
13934 * ipa-inline.c (cgraph_decide_inlining): Don't try to
13935 inline functions called once if !tree_can_inline_p (node->callers).
13937 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
13939 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
13941 * config/score/score3.c: Delete.
13942 * config/score/score3.h: Delete.
13943 * config/score/mul-div.S: Delete.
13944 * config/score/sfp-machine.h: Add new file.
13945 * config/score/constraints.md: Add new file.
13946 * config/score/t-score-softfp: Add new file.
13947 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
13948 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
13949 (score7_extra_constraint): Delete.
13950 (score7_option_override): Remove unused code.
13951 * config/score/score.c: Remove score3 and score5 define and code.
13952 * config/score/score.h: Remove score3 and score5 define and code.
13953 * config/score/score.md: Remove score3 template and unusual insn.
13954 * config/score/score.opt: Remove score3 and score5 options.
13956 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13958 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
13959 when _HPUX_SOURCE is defined.
13960 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
13962 2011-03-10 Jason Merrill <jason@redhat.com>
13965 * stor-layout.c (layout_type): Don't set structural equality
13966 on arrays of incomplete type.
13967 * tree.c (type_hash_eq): Handle comparing them properly.
13969 2011-03-10 Jakub Jelinek <jakub@redhat.com>
13972 * config/s390/s390.c (s390_delegitimize_address): Make sure the
13973 result mode matches original rtl mode.
13975 2011-03-10 Nick Clifton <nickc@redhat.com>
13977 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
13978 (andsi3, andsi3_flags): Fix timings for three operand alternative.
13980 2011-03-09 Jakub Jelinek <jakub@redhat.com>
13982 PR rtl-optimization/47866
13983 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
13984 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
13985 if target wasn't scalar.
13986 * function.c (assign_stack_temp_for_type): Assert that neither
13987 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
13988 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
13990 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
13992 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13994 * config/s390/s390-protos.h (s390_label_align): New prototype.
13995 * config/s390/s390.c (s390_label_align): New function.
13996 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
13998 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
14001 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
14002 V2DI/V2DF constants. Only all 0's or all 1's are easy.
14003 (output_vec_const_move): Ditto.
14005 2011-03-08 Anatoly Sokolov <aesok@post.ru>
14007 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
14008 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
14009 * config/mips/mips.c (mips_preferred_reload_class): Make static.
14010 Change 'rclass' argument and result type to reg_class_t.
14011 (TARGET_PREFERRED_RELOAD_CLASS): Define.
14013 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
14015 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
14016 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
14017 (TARGET_MEMORY_MOVE_COST): Define.
14018 (avr_register_move_cost, avr_memory_move_cost): New Functions.
14020 2011-03-08 Jakub Jelinek <jakub@redhat.com>
14023 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
14026 PR tree-optimization/48022
14027 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
14030 2011-03-07 Jakub Jelinek <jakub@redhat.com>
14033 * var-tracking.c (find_use_val): Return NULL for
14034 cui->sets && cui->store_p BLKmode MEMs.
14036 2011-03-07 Anatoly Sokolov <aesok@post.ru>
14038 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
14040 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
14041 xstormy16_print_operand_address): Remove.
14042 * config/stormy16/stormy16.c (xstormy16_print_operand,
14043 xstormy16_print_operand_address): Make static.
14044 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
14046 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
14049 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
14050 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
14053 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
14056 * cfgloopmanip.c (fix_bb_placements): Return immediately
14057 if FROM is BASE_LOOP's header.
14059 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
14061 * gimplify.c (gimplify_function_tree): Fix building calls
14062 to __builtin_return_address.
14064 2011-03-07 Alan Modra <amodra@gmail.com>
14066 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
14067 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
14068 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
14069 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
14071 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
14072 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
14073 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
14074 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
14075 * config/rs6000/rs6000.c
14076 (rs6000_elf_end_indicate_exec_stack): Rename to..
14077 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
14078 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
14079 (rs6000_file_start): ..here.
14080 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
14081 file scope variables.
14082 (call_ABI_of_interest): New function.
14083 (init_cumulative_args): Set above vars when function return value
14084 is a float, vector, or small struct.
14085 (rs6000_function_arg_advance_1): Likewise for function args.
14086 (rs6000_va_start): Set rs6000_passes_float if variable arg function
14087 references float args.
14089 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
14091 * doc/cfg.texi: Remove "See" before @ref.
14092 * doc/invoke.texi: Likewise.
14094 2011-03-05 Jason Merrill <jason@redhat.com>
14096 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
14098 2011-03-05 Anthony Green <green@moxielogic.com>
14100 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
14102 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
14104 PR rtl-optimization/47899
14105 * cfgloopmanip.c (fix_bb_placements): Fix first argument
14106 to flow_loop_nested_p when moving the loop upward.
14108 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
14111 * arm.md (movhi_insn_arch4): Accept any immediate constant.
14113 2011-03-05 Jakub Jelinek <jakub@redhat.com>
14115 PR tree-optimization/47967
14116 * ipa-cp.c (build_const_val): Return NULL instead of creating
14117 VIEW_CONVERT_EXPR for mismatching sizes.
14118 (ipcp_create_replace_map): Return NULL if build_const_val failed.
14119 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
14120 give up on versioning.
14122 2011-03-05 Alan Modra <amodra@gmail.com>
14125 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
14126 full cmodel medium/large lo_sum + high addresses.
14128 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14130 * config/s390/s390.c (s390_decompose_address): Reject non-literal
14131 pool references in UNSPEC_LTREL_OFFSET.
14133 2011-03-04 Jan Hubicka <jh@suse.cz>
14136 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
14137 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
14138 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
14140 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
14141 cgraph_add_thunk): Add node pointers.
14142 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
14143 associated to right node.
14144 (input_node): Update use of cgraph_same_body_alias
14145 and cgraph_add_thunk.
14147 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
14149 * config/i386/i386.opt (mprefer-avx128): New flag.
14150 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
14151 modes when the flag -mprefer-avx128 is on.
14153 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
14155 * dwarf2out.c (compare_loc_operands): Fix address handling.
14157 2011-03-04 Alan Modra <amodra@gmail.com>
14159 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
14161 2011-03-04 Richard Guenther <rguenther@suse.de>
14163 PR middle-end/47968
14164 * expmed.c (extract_bit_field_1): Prefer vector modes that
14165 vec_extract patterns can handle.
14167 2011-03-04 Richard Guenther <rguenther@suse.de>
14169 PR middle-end/47975
14170 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
14172 2011-03-04 Richard Henderson <rth@redhat.com>
14174 * explow.c (emit_stack_save): Remove 'after' parameter.
14175 (emit_stack_restore): Likewise.
14176 * expr.h: Update to match.
14177 * builtins.c, calls.c, stmt.c: Likewise.
14178 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
14179 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
14180 * function.c (expand_function_end): Insert the emit_stack_save
14181 sequence before parm_birth_insn instead of after.
14183 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
14185 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
14186 (ssse3_pmaddubsw128): Ditto.
14187 (ssse3_pmaddubsw): Ditto.
14189 2011-03-03 Steve Ellcey <sje@cup.hp.com>
14191 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
14193 2011-03-03 Jakub Jelinek <jakub@redhat.com>
14196 * gimplify.c (omp_add_variable): Only call omp_notice_variable
14197 on TYPE_SIZE_UNIT if it is a DECL.
14200 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
14201 first operand is not is_gimple_mem_ref_addr, try to fold it.
14202 If the operand still isn't is_gimple_mem_ref_addr, clear
14205 2011-03-03 Richard Guenther <rguenther@suse.de>
14207 PR middle-end/47283
14208 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
14210 (refs_may_alias_p_1): For release branches return true if
14211 we are confused by our input.
14213 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14215 * config/s390/s390.c (s390_function_value): Rename to ...
14216 (s390_function_and_libcall_value): ... this.
14217 (s390_function_value): New function.
14218 (s390_libcall_value): New function.
14219 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
14220 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
14221 target macro definitions.
14222 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
14224 2011-03-02 Joseph Myers <joseph@codesourcery.com>
14226 * config/i386/freebsd64.h (CC1_SPEC): Define.
14227 * config/i386/linux64.h (CC1_SPEC): Define.
14228 * config/i386/x86-64.h (CC1_SPEC): Don't define.
14230 2011-03-02 Anatoly Sokolov <aesok@post.ru>
14232 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
14234 * config/stormy16/stormy16.c: Include reload.h.
14235 (xstormy16_memory_move_cost): New function.
14236 (TARGET_MEMORY_MOVE_COST): Define.
14238 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
14240 PR rtl-optimization/47925
14241 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
14242 with side effects. Remove the more-specific check for volatile asms.
14244 2011-03-02 Alan Modra <amodra@gmail.com>
14247 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
14248 toc relative addresses for valid offsets.
14250 2011-03-01 Richard Guenther <rguenther@suse.de>
14252 PR tree-optimization/47890
14253 * tree-vect-loop.c (get_initial_def_for_induction): Set
14254 related stmt properly.
14256 2011-03-01 Richard Guenther <rguenther@suse.de>
14259 * lto-streamer.c (lto_record_common_node): Also register
14260 the canonical type.
14262 2011-03-01 Richard Guenther <rguenther@suse.de>
14265 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
14266 Do not stream DECL_ABSTRACT_ORIGIN.
14267 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
14268 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
14269 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
14270 Do not stream DECL_ABSTRACT_ORIGIN.
14271 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
14272 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
14274 2011-02-28 Anatoly Sokolov <aesok@post.ru>
14276 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
14277 FUNCTION_VALUE_REGNO_P): Remove.
14278 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
14279 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
14280 Add 'outgoing' argument.
14281 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
14283 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
14284 TARGET_FUNCTION_VALUE_REGNO_P): Define.
14286 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
14289 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
14290 (lookup_filename): Likewise.
14291 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
14293 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
14294 Jakub Jelinek <jakub@redhat.com>
14296 PR middle-end/47893
14297 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
14298 (assign_stack_local_1): Change last argument type to int.
14299 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
14300 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
14301 don't record padding space into frame_space_list nor use those areas.
14302 (assign_stack_local): Adjust caller.
14303 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
14304 of assign_stack_local, pass 0 as last argument.
14305 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
14308 2011-02-28 Jakub Jelinek <jakub@redhat.com>
14311 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
14312 Use target address_mode and pointer_mode hooks instead of hardcoded
14313 Pmode and ptr_mode. Handle some simple cases of extending if
14314 POINTERS_EXTEND_UNSIGNED < 0.
14315 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
14316 Call convert_debug_memory_address.
14317 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
14318 convert_debug_memory_address.
14320 PR middle-end/46790
14321 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
14322 * configure: Regenerated.
14323 * config.in: Regenerated.
14324 * varasm.c (default_function_section): Return NULL
14325 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
14327 2011-02-28 Martin Jambor <mjambor@suse.cz>
14329 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
14330 the description to match the printed values.
14332 2011-02-28 Richard Guenther <rguenther@suse.de>
14334 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
14335 of the copied scope tree.
14337 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14339 * doc/extend.texi (Function Attributes): Avoid deeply (and
14340 wrongly) nested tables.
14342 2011-02-27 Jakub Jelinek <jakub@redhat.com>
14344 PR middle-end/47903
14345 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
14346 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
14347 r isn't op0 nor op1.
14349 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
14351 * config/avr/avr.md: Remove magic comment for emacs.
14353 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
14356 * config/avr/avr.c (avr_option_override): Use error on bad options.
14357 (avr_help): New function.
14358 (TARGET_HELP): Define.
14360 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
14363 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
14364 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
14366 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
14368 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
14369 (ARM Options): Ditto.
14370 (i386 and x86-64 Options): Ditto.
14371 (RX Options): Ditto.
14372 (SPARC Options): Ditto.
14374 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
14376 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
14377 FreeBSD 6 and later. Generally use cpu generic.
14379 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
14381 * doc/cpp.texi: Update copyright years.
14383 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
14386 * config/lm32/lm32.md (ashrsi3): Added needed variable.
14388 2011-02-25 Jon Beniston <jon@beniston.com>
14391 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
14392 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
14393 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
14394 (lm32_block_move_inline): Add type cast to remove warning.
14395 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
14396 (gen_int_relational): Move declarations to start of function.
14398 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
14400 PR tree-optimization/45470
14401 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
14402 can throw internally only.
14403 * tree-vect-stmts.c (vectorizable_call): Likewise.
14405 2011-02-24 Anatoly Sokolov <aesok@post.ru>
14407 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
14408 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
14409 * config/stormy16/stormy16-protos.h
14410 (xstormy16_preferred_reload_class): Remove.
14411 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
14412 static. Change 'rclass' argument and return type to reg_class_t.
14413 (TARGET_PREFERRED_RELOAD_CLASS,
14414 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
14416 2011-02-24 Richard Guenther <rguenther@suse.de>
14418 * lto-streamer-in.c (input_bb): Do not find referenced vars
14419 in debug statements.
14421 2011-02-23 Jason Merrill <jason@redhat.com>
14423 * common.opt (fabi-version): Document v5 and v6.
14425 2011-02-23 Richard Guenther <rguenther@suse.de>
14427 PR tree-optimization/47849
14428 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
14430 2011-02-23 Jie Zhang <jie@codesourcery.com>
14432 * opts-common.c (decode_cmdline_option): Print empty string
14433 argument as "" in decoded->orig_option_with_args_text.
14434 * gcc.c (execute): Print empty string argument as ""
14435 in the verbose output.
14436 (do_spec_1): Keep empty string argument.
14438 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
14440 * config.gcc: Declare score-* and crx-* obsolete.
14442 2011-02-23 Jie Zhang <jie@codesourcery.com>
14444 PR rtl-optimization/47763
14445 * web.c (web_main): Ignore naked clobber when replacing register.
14447 2011-02-22 Anatoly Sokolov <aesok@post.ru>
14449 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
14452 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
14455 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
14457 2011-02-22 Mike Stump <mikestump@comcast.net>
14459 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
14461 * configure: Regenerate.
14463 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
14465 PR rtl-optimization/46002
14466 * ira-color.c (update_copy_costs): Change class intersection
14467 test to reg_class_contents[] test of 'hard_regno'.
14469 2011-02-21 Joseph Myers <joseph@codesourcery.com>
14471 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
14472 than Driver option.
14473 * config/hpux11.opt (mt): Likewise.
14474 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
14475 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
14476 * config/vax/elf.opt (mno-asm-pic): Likewise.
14477 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
14479 2011-02-21 Mike Stump <mikestump@comcast.net>
14482 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
14483 tree so we can get save the type.
14484 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
14485 for CFString instead of trying to use past the end of the builtins.
14486 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
14487 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
14488 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
14489 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
14490 Rename to darwin_builtin_cfstring.
14491 (darwin_init_cfstring_builtins): Return the built type.
14493 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
14496 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
14497 (_mm256_insert_epi64): Use _mm_insert_epi64.
14499 2011-02-21 Anatoly Sokolov <aesok@post.ru>
14501 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
14502 * config/stormy16/stormy16-protos.h
14503 (xstormy16_mode_dependent_address_p): Remove.
14504 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
14505 Make static. Change return type to bool. Change argument type to
14506 const_rtx. Remove dead code.
14507 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14509 2011-02-21 Richard Guenther <rguenther@suse.de>
14512 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
14513 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
14514 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
14516 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
14517 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
14519 2011-02-20 Richard Guenther <rguenther@suse.de>
14522 * tree.c (free_lang_data_in_decl): Clean builtins from
14523 the TU decl BLOCK_VARS.
14525 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
14529 * haifa-sched.c (fix_tick_ready): Skip tick computation
14532 2011-02-19 Richard Guenther <rguenther@suse.de>
14535 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
14536 Remove lazy BLOCK_VARS streaming.
14537 (lto_input_ts_block_tree_pointers): Likewise.
14538 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
14540 2011-02-19 Joseph Myers <joseph@codesourcery.com>
14542 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
14544 2011-02-19 Joseph Myers <joseph@codesourcery.com>
14546 * config/i386/biarch32.h, config/i386/mach.h,
14547 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
14549 2011-02-19 Jakub Jelinek <jakub@redhat.com>
14552 * config/i386/i386.md (peephole2 for shift and plus): Use
14553 operands[1] original mode in the first insn.
14555 2011-02-18 Mike Stump <mikestump@comcast.net>
14557 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
14559 2011-02-18 Jan Hubicka <jh@suse.cz>
14561 PR middle-end/47788
14562 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
14563 to zero when the function is not inlinable at all.
14565 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14567 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
14568 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
14569 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
14570 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
14571 * config/pa/t-pa64: Likewise.
14572 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
14574 2011-02-18 Jakub Jelinek <jakub@redhat.com>
14577 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
14579 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14582 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
14584 2011-02-18 Anatoly Sokolov <aesok@post.ru>
14586 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
14587 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
14588 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
14589 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
14590 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
14591 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
14592 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
14593 m32r_load_postinc_p, m32r_store_preinc_predec_p,
14594 m32r_legitimate_address_p): New functions.
14595 * config/m32r/constraints.md (constraint "S"): Don't use
14596 STORE_PREINC_PREDEC_P.
14597 (constraint "U"): Don't use LOAD_POSTINC_P.
14599 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
14601 PR rtl-optimization/46178
14602 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
14603 compute ira_hard_regno_cover_class[].
14605 2011-02-18 Richard Guenther <rguenther@suse.de>
14608 * lto-streamer.h (lto_global_var_decls): Declare.
14609 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
14610 statics for global var processing.
14612 2011-02-18 Richard Guenther <rguenther@suse.de>
14614 PR tree-optimization/47737
14615 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
14616 edge dominance check.
14618 2011-02-18 Jakub Jelinek <jakub@redhat.com>
14621 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
14622 avoid invalid rtx sharing.
14624 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
14626 * doc/cpp.texi (Obsolete Features): Add background on the
14627 origin of assertions.
14629 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
14631 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
14633 * config/darwin.c (output_objc_section_asm_op): Added support for
14635 (is_objc_metadata): New.
14636 (darwin_objc2_section): New.
14637 (darwin_objc1_section): New.
14638 (machopic_select_section): Added support for ABI v1 and v2.
14639 (darwin_emit_objc_zeroed): New.
14640 (darwin_output_aligned_bss): Detect objc metadata and treat it
14642 (darwin_asm_output_aligned_decl_common): Same.
14643 (darwin_asm_output_aligned_decl_local): Same.
14644 * config/darwin-sections.def: Updated for ABI v1 and v2.
14645 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
14646 compiling Objective-C code for the NeXT runtime, default to using
14647 ABI version 0 for 32-bit, and version 2 for 64-bit.
14649 2011-02-17 Joseph Myers <joseph@codesourcery.com>
14651 * common.opt (optimize_fast): New Variable.
14652 * opts.c (default_options_optimization): Use opts->x_optimize_fast
14653 instead of local variable ofast.
14655 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
14657 * doc/invoke.texi (fobjc-abi-version): Documented.
14658 (fobjc-nilcheck): Documented.
14659 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
14662 2011-02-17 Joseph Myers <joseph@codesourcery.com>
14665 * common.opt (export-dynamic): New Driver option.
14666 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
14668 2011-02-17 Joseph Myers <joseph@codesourcery.com>
14670 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
14672 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
14673 Jan Hubicka <jh@suse.cz>
14677 * cfgexpand.c (account_used_vars_for_block): Remove.
14678 (estimated_stack_frame_size): Use referenced vars.
14679 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
14680 that were referenced in the original function. Test src_fn
14681 rather than cfun. Drop redundant get_var_ann.
14682 (setup_one_parameter): Drop redundant get_var_ann.
14683 (declare_return_variable): Likewise.
14684 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
14685 (copy_arguments_for_versioning): Drop redundant get_var_ann.
14686 * ipa-inline.c (compute_inline_parameters): Do not compute
14687 disregard_inline_limits here.
14688 (compute_inlinable_for_current, pass_inlinable): New.
14689 (pass_inline_parameters): Require PROP_referenced_vars.
14690 * cgraphunit.c (cgraph_process_new_functions): Don't run
14691 compute_inline_parameters explicitly unless function is in SSA form.
14692 (cgraph_analyze_function): Set .disregard_inline_limits.
14693 * tree-sra.c (convert_callers): Compute inliner parameters
14694 only for functions already in SSA form.
14696 2011-02-17 Joseph Myers <joseph@codesourcery.com>
14698 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
14699 -mlittle-endian-data.
14701 2011-02-17 Joseph Myers <joseph@codesourcery.com>
14703 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
14704 -mno-fpu, not -fpu and -no-fpu.
14705 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
14706 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
14708 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
14711 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
14712 input reload with PLUS RTX.
14714 2011-02-16 Joseph Myers <joseph@codesourcery.com>
14716 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
14717 of InverseVar(MDMX).
14719 2011-02-16 Joseph Myers <joseph@codesourcery.com>
14721 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
14724 2011-02-16 Joseph Myers <joseph@codesourcery.com>
14726 * config/mn10300/mn10300.opt (mno-crt0): New.
14728 2011-02-16 Joseph Myers <joseph@codesourcery.com>
14730 * config/m68k/uclinux.opt (static-libc): New Driver option.
14732 2011-02-16 Joseph Myers <joseph@codesourcery.com>
14734 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
14736 2011-02-16 Joseph Myers <joseph@codesourcery.com>
14738 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
14739 %{muser-extend-enabled}.
14741 2011-02-16 Richard Guenther <rguenther@suse.de>
14743 PR tree-optimization/47738
14744 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
14745 the TODO from tree_predictive_commoning.
14747 2011-02-15 Jeff Law <law@redhat.com>
14750 2011-01-25 Jeff Law <law@redhat.com>
14752 PR rtl-optimization/37273
14753 * ira-costs.c (scan_one_insn): Detect constants living in memory and
14754 handle them like argument loads from stack slots. Do not double
14755 count memory for memory constants and argument loads from stack slots.
14757 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
14759 PR middle-end/47725
14760 * combine.c (cant_combine_insn_p): Revert the last change.
14762 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
14765 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
14766 mode for vector constants. Remove code that checks for TImode.
14768 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
14772 * cgraph.h (compute_inline_parameters): Return void.
14773 * ipa-inline.c (compute_inline_parameters): Adjust.
14775 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
14779 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
14781 * cfgexpand.c (estimated_stack_frame_size): Likewise.
14782 * ipa-inline.c (compute_inline_parameters): Adjust.
14784 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
14788 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
14789 Adjust all users. Pass FN to...
14790 * tree-flow-inline.h (first_referenced_var): ... this. Add
14792 * ipa-struct-reorg.c: Adjust.
14793 * tree-dfa.c: Adjust.
14794 * tree-into-ssa.c: Adjust.
14795 * tree-sra.c: Adjust.
14796 * tree-ssa-alias.c: Adjust.
14797 * tree-ssa-live.c: Adjust.
14798 * tree-ssa.c: Adjust.
14799 * tree-ssanames.c: Adjust.
14800 * tree-tailcall.c: Adjust.
14802 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
14806 * tree-flow.h (referenced_var_lookup): Add fn parameter.
14807 Adjust all callers.
14808 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
14809 * tree-flow-inline.h: Adjust.
14810 * gimple-pretty-print.c: Adjust.
14811 * tree-into-ssa.c: Adjust.
14812 * tree-ssa.c: Adjust.
14813 * cfgexpand.c: Adjust.
14815 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
14817 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
14818 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14819 (EXTRA_CONSTRAINT): Delete.
14820 * config/iq2000/constraints.md: New file.
14821 * config/iq2000/iq2000.md: Include it.
14822 (define_insn ""): Delete.
14823 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
14824 unsupported constraint letters from patterns.
14825 (call_value, call_value_internal1): Likewise.
14826 (call_value_multiple_internal1): Likewise.
14828 2011-02-15 Nick Clifton <nickc@redhat.com>
14830 * config/mn10300/mn10300.c: Include tm-constrs.h.
14831 (struct liw_data): New data structure describing an LIW candidate
14833 (extract_bundle): Use struct liw_data. Allow small integer
14834 operands for some instructions.
14835 (check_liw_constraints): Use struct liw_data. Remove swapped
14836 parameter. Add comments describing the checks. Fix bug when
14837 assigning the source of liw1 to the source of liw2.
14838 (liw_candidate): Delete. Code moved into extract_bundle.
14839 (mn10300_bundle_liw): Use struct liw_data. Check constraints
14841 * config/mn10300/predicates.md (liw_operand): New predicate.
14842 Allows registers and small integer constants.
14843 * config/mn10300/constraints.md (O): New constraint. Accetps
14844 integers in the range -8 to +7 inclusive.
14845 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
14846 for moving a small integer into a register. Give this alternative
14848 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
14849 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
14850 using the J,K,L and M constraints,
14851 (liw): Remove SI mode on second operands to allow for HI and QI
14853 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
14856 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
14858 PR middle-end/47725
14859 * combine.c (cant_combine_insn_p): Check zero/sign extended
14862 2011-02-15 Richard Guenther <rguenther@suse.de>
14864 PR tree-optimization/47743
14865 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
14866 for a non-type-compatible VN lookup bail out.
14868 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
14870 * config/fr30/constraints.md: New file.
14871 * config/fr30/fr30.md: Include it.
14872 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
14873 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14874 (EXTRA_CONSTRAINT): Delete.
14876 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
14878 * config/frv/constraints.md: New file.
14879 * config/frv/predicates.md: Include it.
14880 * config/frv/frv.c (reg_class_from_letter): Delete.
14881 (frv_option_override): Don't initialize it.
14882 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
14883 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
14884 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
14885 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
14886 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
14887 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14888 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
14889 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
14890 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
14891 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
14892 (REG_CLASS_FROM_CONSTRAINT): Delete.
14894 2011-02-15 Jakub Jelinek <jakub@redhat.com>
14896 PR middle-end/47581
14897 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
14898 if frame size is 0 in a leaf function.
14900 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14903 * config/alpha/host-osf.c: New file.
14904 * config/alpha/x-osf: New file.
14905 * config.host (alpha*-dec-osf*): Use it.
14907 2011-02-14 Anatoly Sokolov <aesok@post.ru>
14909 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
14910 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
14911 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
14912 (rx_mode_dependent_address_p): ...this. Make static. Change argument
14914 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14916 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
14918 * config/stormy16/constraints.md: New file.
14919 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
14920 Use satisfies_constraint_Q and satisfies_constraint_R.
14921 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
14923 (xstormy16_legitiamte_address_p): Declare.
14924 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
14925 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14926 (EXTRA_CONSTRAINT): Delete.
14927 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
14929 (xstormy16_extra_constraint_p): Delete.
14931 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
14933 PR tree-optimization/46494
14934 * loop-unroll.c (split_edge_and_insert): Adjust comment.
14935 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
14936 (pass_rtl_loop_done): Add TODO_verify_flow.
14937 * fwprop.c (pass_rtl_fwprop): Likewise.
14938 * modulo-sched.c (pass_sms): Likewise.
14939 * tree-ssa-dom.c (pass_dominator): Likewise.
14940 * tree-ssa-loop-ch.c (pass_ch): Likewise.
14941 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
14942 (pass_tree_loop_done): Likewise.
14943 * tree-ssa-pre.c (execute_pre): Likewise.
14944 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
14945 * tree-ssa-sink.c (pass_sink_code): Likewise.
14946 * tree-vrp.c (pass_vrp): Likewise.
14948 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
14950 * config/v850/constraints.md: New file.
14951 * config/v850/v850.md: Include it.
14952 * config/v850/predicates.md (reg_or_0_operand): Use
14953 satisfies_constraint_G.
14954 (special_symbolref_operand): Use satisfies_constraint_K.
14955 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
14956 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
14957 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
14958 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
14959 (EXTRA_CONSTRAINT): Delete.
14960 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
14961 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
14962 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
14964 2011-02-14 Anatoly Sokolov <aesok@post.ru>
14967 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
14970 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
14972 * config/mcore/constraints.md: New file.
14973 * config/mcore/mcore.md: Include it.
14974 * config/mcore/mcore.c (reg_class_from_letter): Delete.
14975 * config/mcore/mcore.h (reg_class_from_letter): Delete.
14976 (REG_CLASS_FROM_LETTER): Delete.
14977 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
14978 insn_const_int_ok_for_constraint.
14979 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
14980 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
14981 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14982 (EXTRA_CONSTRAINT): Delete.
14984 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14987 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
14988 (IS_SIGHANDLER): Define.
14989 (sparc64_is_sighandler): New function, split off from
14990 sparc64_fallback_frame_state.
14991 (sparc_is_sighandler): New function, split off from
14992 sparc_fallback_frame_state.
14993 (sparc64_fallback_frame_state): Merge with ...
14994 (sparc_fallback_frame_state): ... this into ...
14995 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
14996 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
14997 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
14998 stack instead of hardcoded offsets.
15000 2011-02-14 Andriy Gapon <avg@freebsd.org>
15003 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
15005 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15007 * configure: Regenerate.
15009 2011-02-12 Joseph Myers <joseph@codesourcery.com>
15012 * gcc.c (asm_options): Correct spec matching --target-help.
15014 2011-02-12 Martin Jambor <mjambor@suse.cz>
15016 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
15017 to gimple call error.
15019 2011-02-12 Mike Stump <mikestump@comcast.net>
15021 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
15022 comments in backslash regions.
15024 2011-02-12 Mike Stump <mikestump@comcast.net>
15025 Jakub Jelinek <jakub@redhat.com>
15026 Iain Sandoe <iains@gcc.gnu.org>
15029 * dwarf2out.c (output_cfa_loc): When required, apply the
15030 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
15031 (output_loc_sequence): Likewise.
15032 (output_loc_operands_raw): Likewise.
15033 (output_loc_sequence_raw): Likewise.
15034 (output_cfa_loc): Likewise.
15035 (output_loc_list): Suppress register number adjustment when
15036 calling output_loc_sequence()
15037 (output_die): Likewise.
15039 2011-02-12 Anatoly Sokolov <aesok@post.ru>
15041 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
15043 * config/xtensa/xtensa.c (xtensa_register_move_cost,
15044 xtensa_memory_move_cost): New functions.
15045 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
15047 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
15050 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
15051 in the current directory.
15052 * configure: Rebuilt.
15054 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
15056 * config/darwin.c (darwin_override_options): Add a hunk missed
15057 from the commit of r168571. Trim comment line lengths and
15058 correct indents of the preceding block.
15060 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
15062 * gcc.c (driver_handle_option): Concatenate the argument to -F with
15065 2011-02-11 Joseph Myers <joseph@codesourcery.com>
15067 * common.opt (nostartfiles): New Driver option.
15069 2011-02-11 Xinliang David Li <davidxl@google.com>
15071 PR tree-optimization/47707
15072 * tree-chrec.c (convert_affine_scev): Keep type precision.
15074 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
15076 PR tree-optimization/47420
15077 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
15079 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
15081 PR rtl-optimization/47614
15082 * rtl.h (check_for_inc_dec): Declare.
15083 * dse.c (check_for_inc_dec): Externalize...
15084 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
15085 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
15087 2011-02-11 Joseph Myers <joseph@codesourcery.com>
15090 * gcc.c (main): Do not compile inputs if there were errors in
15092 * opts-common.c (read_cmdline_option): Check for wrong language
15093 after other error checks.
15095 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
15097 * cgraph.c: Fix comment typos.
15098 * cgraph.h: Likewise.
15099 * cgraphunit.c: Likewise.
15100 * ipa-cp.c: Likewise.
15101 * ipa-inline.c: Likewise.
15102 * ipa-prop.c: Likewise.
15103 * ipa-pure-const.c: Likewise.
15104 * ipa-ref.c: Likewise.
15105 * ipa-reference.c: Likewise.
15107 2011-02-11 Jakub Jelinek <jakub@redhat.com>
15110 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
15112 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15115 * doc/sourcebuild.texi (Require Support): Document
15116 dg-require-ascii-locale.
15118 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
15120 * doc/lto.texi (Write summary): Fix missing parentheses.
15122 2011-02-10 DJ Delorie <dj@redhat.com>
15124 * config/m32c/m32c.c (m32c_option_override): Disable
15125 -fcombine-stack-adjustments until flag value tracking and compare
15126 optimization can be rewritten.
15128 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
15130 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
15132 (PROCESSOR_DEFAULT64): Likewise.
15134 2011-02-10 Richard Henderson <rth@redhat.com>
15136 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
15137 change from 2011-02-03.
15138 * config/rx/rx.c (flags_from_code): Likewise.
15139 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
15140 is valid, n/pz otherwise.
15141 (rx_select_cc_mode): Return CCmode if Y is not zero.
15143 2011-02-10 Richard Guenther <rguenther@suse.de>
15145 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
15147 2011-02-10 Richard Guenther <rguenther@suse.de>
15149 PR tree-optimization/47677
15150 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
15152 2011-02-10 Jakub Jelinek <jakub@redhat.com>
15155 * combine.c (make_compound_operation): Only change shifts into
15156 multiplication for SCALAR_INT_MODE_P.
15158 2011-02-10 Jie Zhang <jie@codesourcery.com>
15162 2011-02-05 Jie Zhang <jie@codesourcery.com>
15164 * web.c (entry_register): Don't clobber the number of the
15165 first uninitialized reference in used[].
15167 2011-02-09 Richard Guenther <rguenther@suse.de>
15169 PR tree-optimization/47664
15170 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
15173 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
15177 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
15179 (PROCESSOR_DEFAULT64): Same.
15180 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
15182 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15184 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
15186 2011-02-09 Martin Jambor <mjambor@suse.cz>
15188 PR middle-end/45505
15189 * tree-sra.c (struct access): New flags grp_scalar_read and
15190 grp_scalar_write. Changed description of assignment read and write
15192 (dump_access): Dump new flags, reorder all of them.
15193 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
15194 to detect multiple scalar reads.
15195 (analyze_access_subtree): Use the new scalar read write flags instead
15196 of the old flags. Adjusted comments.
15198 2011-02-08 DJ Delorie <dj@redhat.com>
15201 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
15204 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15206 * config/m68k/uclinux.opt: New.
15207 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
15209 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15211 * config/cris/elf.opt (sim): New Driver option.
15213 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15215 * config/xtensa/elf.opt: New.
15216 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
15218 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15220 * config/vax/elf.opt: New.
15221 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
15223 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15225 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
15227 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15229 * config/gnu-user.opt: New.
15230 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
15231 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
15232 *-*-uclinux*): Use gnu-user.opt.
15234 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
15236 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
15237 * config/i386/gnu.h (CPP_SPEC): Likewise.
15239 2011-02-08 Ian Lance Taylor <iant@google.com>
15241 * common.opt (fcx-limited-range): Add SetByCombined flag.
15242 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
15243 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
15244 (fassociative-math, freciprocal-math): Likewise.
15245 (funsafe-math-optimizations): Likewise.
15246 * opth-gen.awk: Handle SetByCombined.
15247 * optc-gen.awk: Likewise.
15248 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
15249 (set_unsafe_math_optimizations_flags): Likewise.
15250 * doc/options.texi (Option properties): Document SetByCombined.
15252 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15254 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
15255 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
15256 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
15257 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
15258 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
15260 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
15262 PR tree-optimization/46834
15263 PR tree-optimization/46994
15264 PR tree-optimization/46995
15265 * graphite-sese-to-poly.c (used_outside_reduction): New.
15266 (detect_commutative_reduction): Call used_outside_reduction.
15267 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
15268 translate_scalar_reduction_to_array only when at least one
15269 loop-phi/close-phi tuple has been detected.
15271 2011-02-08 Richard Guenther <rguenther@suse.de>
15273 PR middle-end/47639
15274 * tree-vect-generic.c (expand_vector_operations_1): Update
15276 (expand_vector_operations): ... not here. Cleanup EH info
15277 and the CFG if required.
15279 2011-02-08 Richard Guenther <rguenther@suse.de>
15281 PR tree-optimization/47641
15282 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
15283 require type compatibility.
15285 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15287 * gimple-low.c (lower_function_body): Don't remove the location of
15288 the return statement here.
15289 (lower_gimple_return): Do it here instead but only if the return
15290 statement is actually used twice.
15292 2011-02-08 Richard Guenther <rguenther@suse.de>
15294 PR tree-optimization/47632
15295 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
15296 unused up_to_stmt parameter, return whether cfg-cleanup is
15297 necessary, remove EH info properly.
15298 (forward_propagate_into_gimple_cond): Adjust caller.
15299 (forward_propagate_into_cond): Likewise.
15300 (forward_propagate_comparison): Likewise.
15301 (tree_ssa_forward_propagate_single_use_vars): Make
15302 forward_propagate_comparison case similar to the two others.
15304 2011-02-08 Nick Clifton <nickc@redhat.com>
15306 * config/mn10300/mn10300.opt (mliw): New command line option.
15307 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
15308 (liw_bundling): New automaton.
15309 (liw): New attribute.
15310 (liw_op): New attribute.
15311 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
15312 (movsi_internal): Add LIW attributes.
15313 (andsi3): Likewise.
15314 (iorsi3): Likewise.
15315 (xorsi3): Likewise.
15316 (addsi3): Separate register and immediate alternatives.
15317 Add LIW attributes.
15318 (subsi3): Likewise.
15320 (aslsi3): Likewise.
15321 (lshrsi3): Likewise.
15322 (ashrsi3): Likewise.
15323 (liw): New pattern.
15324 * config/mn10300/mn10300.c (liw_op_names): New
15325 (mn10300_print_operand): Handle 'W' operand descriptor.
15326 (extract_bundle): New function.
15327 (check_liw_constraints): New function.
15328 (liw_candidate): New function.
15329 (mn10300_bundle_liw): New function.
15330 (mn10300_reorg): New function.
15331 (TARGET_MACHINE_DEPENDENT_REORG): Define.
15332 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
15333 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
15334 __LIW__ or __NO_LIW__.
15335 * doc/invoke.texi: Describe the -mliw command line option.
15337 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15339 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
15340 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
15341 pthread_mutex_unlock): Remove.
15342 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
15343 * config/pa/t-pa64: Likewise.
15344 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
15345 shared libc if not linking against libpthread.
15346 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
15348 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
15351 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
15352 on 10.6 and later to ensure that we always use the unwinder from
15353 the system. Only add -no_compact_unwind when tarteting darwin
15356 2011-02-07 Steve Ellcey <sje@cup.hp.com>
15359 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
15360 (vec_interleave_lowv2sf): Ditto.
15361 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
15362 (vec_extract_oddv2sf): Ditto.
15364 2011-02-07 Mike Stump <mikestump@comcast.net>
15367 Add __ieee_divdc3 entry point.
15368 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
15370 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
15371 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
15372 * config/darwin.c (darwin_rename_builtins): Add.
15373 * config/darwin-protos.h (darwin_rename_builtins): Add.
15375 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
15378 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
15381 2011-02-07 Mike Stump <mikestump@comcast.net>
15383 * config/darwin.opt (mmacosx-version-min): Update default OS version.
15385 2011-02-07 Denis Chertykov <chertykov@gmail.com>
15388 * config/avr/libgcc.S (exit): Move .endfunc
15390 2011-02-07 Richard Guenther <rguenther@suse.de>
15392 PR tree-optimization/47615
15393 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
15394 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
15395 (run_scc_vn): Initialize it.
15396 (visit_reference_op_load): Use it.
15397 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
15399 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15401 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
15402 DImode trapping arithmetic libfuncs.
15404 2011-02-07 Richard Guenther <rguenther@suse.de>
15406 PR tree-optimization/47621
15407 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
15409 (execute_update_addresses_taken): ... here. Make it more
15410 conservative in what we accept.
15412 2011-02-06 Joseph Myers <joseph@codesourcery.com>
15414 * config/sparc/freebsd.h (ASM_SPEC): Define.
15415 * config/sparc/vxworks.h (ASM_SPEC): Define.
15417 2011-02-06 Joseph Myers <joseph@codesourcery.com>
15419 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
15421 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
15423 * doc/invoke.texi: Remove reference to compiler internals from
15424 user documentation.
15426 * reg-notes.def: Remove REG_VALUE_PROFILE.
15427 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
15429 2011-02-05 Jakub Jelinek <jakub@redhat.com>
15431 PR middle-end/47610
15432 * varasm.c (default_section_type_flags): If decl is NULL,
15433 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
15435 2011-02-05 Jie Zhang <jie@codesourcery.com>
15438 * web.c (entry_register): Don't clobber the number of the
15439 first uninitialized reference in used[].
15441 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
15443 PR tree-optimization/46194
15444 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
15445 (build_classic_dist_vector_1): Do not represent classic distance
15446 vectors when the access functions are variating in different loops.
15448 2011-02-04 Joseph Myers <joseph@codesourcery.com>
15450 * config/mips/iris6.opt: New.
15451 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
15453 2011-02-04 Richard Henderson <rth@redhat.com>
15454 Steve Ellcey <sje@cup.hp.com>
15457 * config/ia64/predicates.md (mux1_brcst_element): New.
15458 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
15459 * config/ia64/ia64.c (ia64_unpack_assemble): New.
15460 (ia64_unpack_sign): New.
15461 (ia64_expand_unpack): Rewrite using new routines.
15462 (ia64_expand_widen_sum): Ditto.
15463 (ia64_expand_dot_prod_v8qi): Ditto.
15464 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
15465 routines, add endian check.
15466 (pmpy2_even): Rename from pmpy2_r, add endian check.
15467 (pmpy2_odd): Rename from pmpy2_l, add endian check.
15468 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
15469 (vec_widen_smult_hi_v4hi): Ditto.
15470 (vec_widen_umult_lo_v4hi): Ditto.
15471 (vec_widen_umult_hi_v4hi): Ditto.
15472 (mulv2si3): Change endian checks.
15473 (sdot_prodv4hi): Rewrite with new calls.
15474 (udot_prodv4hi): New.
15475 (vec_pack_ssat_v4hi): Add endian check.
15476 (vec_pack_usat_v4hi): Ditto.
15477 (vec_pack_ssat_v2si): Ditto.
15478 (max1_even): Rename from max1_r, add endian check.
15479 (max1_odd): Rename from max1_l, add endian check.
15480 (*mux1_rev): Format change.
15481 (*mux1_mix): Ditto.
15482 (*mux1_shuf): Ditto.
15483 (*mux1_alt): Ditto.
15484 (*mux1_brcst_v8qi): Use new predicate.
15485 (vec_extract_evenv8qi): Remove endian check.
15486 (vec_extract_oddv8qi): Ditto.
15487 (vec_interleave_lowv4hi): Format change.
15488 (vec_interleave_highv4hi): Ditto.
15489 (mix2_even): Rename from mix2_r, add endian check.
15490 (mix2_odd): Rename from mux2_l, add endian check.
15491 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
15492 (vec_extract_evenodd_helper): Format change.
15493 (vec_extract_evenv4hi): Remove endian check.
15494 (vec_extract_oddv4hi): Remove endian check.
15495 (vec_interleave_lowv2si): Format change.
15496 (vec_interleave_highv2si): Format change.
15497 (vec_initv2si): Remove endian check.
15498 (vecinit_v2si): Add endian check.
15499 (reduc_splus_v2sf): Add endian check.
15500 (reduc_smax_v2sf): Ditto.
15501 (reduc_smin_v2sf): Ditto.
15502 (vec_initv2sf): Remove endian check.
15503 (fpack): Add endian check.
15504 (fswap): Add endian check.
15505 (vec_interleave_highv2sf): Add endian check.
15506 (vec_interleave_lowv2sf): Add endian check.
15507 (fmix_lr): Add endian check.
15508 (vec_setv2sf): Format change.
15509 (*vec_extractv2sf_0_be): Use shift to extract operand.
15510 (*vec_extractv2sf_1_be): New.
15511 (vec_pack_trunc_v4hi): Add endian check.
15512 (vec_pack_trunc_v2si): Format change.
15514 2011-02-04 Jakub Jelinek <jakub@redhat.com>
15516 PR inline-asm/23200
15517 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
15518 do bb, locus and block comparison and disallow loads if it is not set.
15519 (stmt_is_replaceable_p): New function.
15520 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
15522 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
15523 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
15525 * tree-flow.h (stmt_is_replaceable_p): New prototype.
15527 2011-02-04 Joseph Myers <joseph@codesourcery.com>
15529 * config/rs6000/xilinx.opt: New.
15530 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
15532 2011-02-04 Joseph Myers <joseph@codesourcery.com>
15534 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
15536 2011-02-03 Anatoly Sokolov <aesok@post.ru>
15538 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
15539 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
15540 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
15541 secondary_reload_info, xtensa_secondary_reload): Remove.
15542 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
15543 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
15544 (xtensa_preferred_reload_class): Make static. Change return and
15545 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
15546 Use CONST_DOUBLE_P predicate.
15547 (xtensa_preferred_output_reload_class): New function.
15548 (xtensa_secondary_reload): Make static.
15550 2011-02-03 Joseph Myers <joseph@codesourcery.com>
15552 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
15553 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
15554 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
15556 2011-02-03 Jakub Jelinek <jakub@redhat.com>
15558 PR middle-end/31490
15559 * output.h (SECTION_RELRO): Define.
15560 (SECTION_MACH_DEP): Adjust.
15561 (get_variable_section): New prototype.
15562 * varpool.c (varpool_finalize_named_section_flags): New function.
15563 (varpool_assemble_pending_decls): Call it.
15564 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
15565 * cgraphunit.c (cgraph_output_in_order): Call
15566 varpool_finalize_named_section_flags.
15567 * varasm.c (get_section): Allow section flags conflicts between
15568 relro and read-only sections if the section hasn't been declared yet.
15569 Set SECTION_OVERRIDE after diagnosing section type conflict.
15570 (get_variable_section): No longer static.
15571 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
15572 readonly sections that need relocations.
15573 (decl_readonly_section_1): New function.
15574 (decl_readonly_section): Use it.
15577 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
15578 Steve Ellcey <sje@cup.hp.com>
15580 PR middle-end/31490
15581 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
15582 if section attribute used.
15584 2011-02-03 Jakub Jelinek <jakub@redhat.com>
15586 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
15587 * config/darwin.c (SECTION_NO_ANCHOR): Define.
15588 (darwin_init_sections): Remove assertion.
15590 2011-02-03 Nick Clifton <nickc@redhat.com>
15592 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
15594 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
15595 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
15596 instead of "n" and "pz".
15597 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
15600 2011-02-03 Jakub Jelinek <jakub@redhat.com>
15603 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
15604 fma, expand FMA_EXPR as fma{,f,l} call.
15607 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
15608 copy them into a unsigned char variable and pass address of it to
15609 lto_output_data_stream.
15612 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
15613 around backend_init_target and lang_dependent_init_target calls.
15614 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
15615 (verify_cgraph_node): Don't call set_cfun here. Use
15616 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
15617 Set error_found for incorrectly represented calls to thunks.
15619 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
15622 PR rtl-optimization/43494
15623 * rtl.h (for_each_inc_dec_fn): New type.
15624 (for_each_inc_dec): Declare.
15625 * rtlanal.c (struct for_each_inc_dec_ops): New type.
15626 (for_each_inc_dec_find_inc_dec): New fn.
15627 (for_each_inc_dec_find_mem): New fn.
15628 (for_each_inc_dec): New fn.
15629 * dse.c (struct insn_size): Remove.
15630 (replace_inc_dec, replace_inc_dec_mem): Remove.
15631 (emit_inc_dec_insn_before): New fn.
15632 (check_for_inc_dec): Use it, along with for_each_inc_dec.
15633 (canon_address): Pass mem modes to cselib_lookup.
15634 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
15635 (cselib_lookup_from_insn): Likewise.
15636 (cselib_subst_to_values): Likewise.
15637 * cselib.c (find_slot_memmode): New var.
15638 (cselib_find_slot): New fn. Use it instead of
15639 htab_find_slot_with_hash everywhere.
15640 (entry_and_rtx_equal_p): Use find_slot_memmode.
15641 (autoinc_split): New fn.
15642 (rtx_equal_for_cselib_p): Rename and implement in terms of...
15643 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
15644 Deal with autoinc. Special-case recursion into MEMs.
15645 (cselib_hash_rtx): Likewise.
15646 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
15647 address and MEM modes.
15648 (cselib_subst_to_values): Add memmode, pass it on.
15650 (cselib_lookup): Add memmode argument, pass it on.
15651 (cselib_lookup_from_insn): Add memmode.
15652 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
15653 (struct cselib_record_autoinc_data): New.
15654 (cselib_record_autoinc_cb): New fn.
15655 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
15656 mode to cselib_lookup. Reset autoinced REGs here instead of...
15657 (cselib_process_insn): ... here.
15658 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
15660 (add_uses): Likewise, also to cselib_subst_to_values.
15661 (add_stores): Likewise.
15662 * sched-deps.c (add_insn_mem_dependence): Pass mode to
15663 cselib_subst_to_values.
15664 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
15665 * gcse.c (do_local_cprop): Adjusted.
15666 * postreload.c (reload_cse_simplify_set): Adjusted.
15667 (reload_cse_simplify_operands): Adjusted.
15668 * sel-sched-dump (debug_mem_addr_value): Pass mode.
15670 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
15672 PR tree-optimization/45122
15673 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
15674 unsafe assumptions when there's more than one loop exit.
15676 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
15679 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
15680 Document using vector double with the load/store builtins, and
15681 that the load/store builtins always use Altivec instructions.
15683 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
15684 to use altivec memory instructions, even on VSX.
15685 (vector_altivec_store_<mode>): Ditto.
15687 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
15690 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
15691 V2DF, V2DI support to load/store overloaded builtins.
15693 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
15694 altivec load/store builtins for V2DF/V2DI types.
15696 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
15697 set avoid indexed addresses on power6 if -maltivec.
15698 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
15699 vector_altivec_load/vector_altivec_store builtins.
15700 (altivec_expand_st_builtin): Ditto.
15701 (altivec_expand_builtin): Add VSX memory builtins.
15702 (rs6000_init_builtins): Add V2DI types to internal types.
15703 (altivec_init_builtins): Add support for V2DF/V2DI altivec
15704 load/store builtins.
15705 (rs6000_address_for_altivec): Insure memory address is appropriate
15708 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
15709 vec_vsx_ld and vec_vsx_st.
15710 (vsx_store_<mode>): Ditto.
15712 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
15713 variables to hold long long types for VSX vector memory builtins.
15714 (RS6000_BTI_unsigned_long_long): Ditto.
15715 (long_long_integer_type_internal_node): Ditti.
15716 (long_long_unsigned_type_internal_node): Ditti.
15718 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
15719 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
15720 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
15722 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
15724 (vec_vsx_st): Ditto.
15726 2011-02-02 Joseph Myers <joseph@codesourcery.com>
15728 * config/pa/pa-hpux10.opt: New.
15729 * config/hpux11.opt (pthread): New Driver option.
15730 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
15731 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
15733 2011-02-02 Joseph Myers <joseph@codesourcery.com>
15735 * config/ia64/vms.opt: New.
15736 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
15738 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
15741 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
15742 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
15743 generator functions.
15744 (vsx_floatuns<VSi><mode>2): Ditto.
15745 (vsx_fix_trunc<mode><VSi>2): Ditto.
15746 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
15748 2011-02-02 Joseph Myers <joseph@codesourcery.com>
15750 * config/i386/djgpp.opt (posix): New Driver option.
15752 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
15754 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
15755 Move to the unsupported targets list.
15757 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
15759 PR rtl-optimization/47525
15760 * df-scan.c: Update copyright years.
15761 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
15762 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
15764 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15766 * config/i386/sysv4.h (TARGET_VERSION): Remove.
15767 (SUBTARGET_RETURN_IN_MEMORY): Remove.
15768 (ASM_OUTPUT_ASCII): Remove.
15769 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
15771 2011-02-02 Jeff Law <law@redhat.com>
15773 PR middle-end/47543
15774 * reload.c (find_reloads_address): Handle reg+d address where both
15775 components are invalid by reloading the entire address.
15777 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
15778 Richard Guenther <rguenther@suse.de>
15780 PR tree-optimization/40979
15782 * passes.c (init_optimization_passes): After LIM call copy_prop
15783 and DCE to clean up.
15784 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
15786 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
15788 PR tree-optimization/47576
15789 PR tree-optimization/47555
15790 * doc/invoke.texi (scev-max-expr-complexity): Documented.
15791 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
15792 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
15793 * tree-scalar-evolution.c (follow_ssa_edge): Use
15794 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
15796 2011-02-02 Richard Guenther <rguenther@suse.de>
15798 PR tree-optimization/47566
15799 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
15801 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
15805 * tree-inline.c (declare_return_variable): Remove unused caller
15810 * tree-flow-inline.h (clear_is_used, is_used_p): New.
15811 * cfgexpand.c (account_used_vars_for_block): Use them.
15812 * tree-nrv.c (tree_nrv): Likewise.
15813 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
15814 (dump_scope_block): Likewise.
15815 (remove_unused_locals): Likewise.
15819 * tree-inline.c (declare_return_variable): Add result decl to
15820 local decls only once.
15821 * gimple-low.c (record_vars_into): Mark newly-created variables
15824 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
15830 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
15832 (no_real_insns_p, schedule_block, set_priorities): Drop special
15833 treatment of boundary debug insns.
15834 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
15835 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
15836 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
15837 (BOUNDARY_DEBUG_INSN_P): Likewise.
15838 (SCHEDULE_DEBUG_INSN_P): Likewise.
15839 * sched-rgn.c (init_ready_list): Drop special treatment of
15840 boundary debug insns.
15841 * final.c (rest_of_clean_state): Clear notes' BB.
15843 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15845 * config/openbsd.opt (assert=): New Driver option.
15847 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15849 * config/i386/nto.opt: New.
15850 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
15852 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15854 * config/i386/netware.opt: New.
15855 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
15857 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15859 * config/interix.opt (posix): New Driver option.
15861 2011-02-01 DJ Delorie <dj@redhat.com>
15863 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
15865 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
15868 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
15870 PR tree-optimization/47561
15871 * toplev.c (process_options): Print the Graphite flags. Add
15872 flag_loop_flatten to the list of options requiring Graphite.
15874 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15876 * config/i386/cygming.opt (posix): New Driver option.
15878 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15880 * config/arm/vxworks.opt: New.
15881 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
15883 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15885 * config/alpha/elf.opt: New.
15886 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
15887 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
15889 2011-02-01 Richard Guenther <rguenther@suse.de>
15891 PR tree-optimization/47559
15892 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
15893 store-motion on references that can throw.
15895 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
15897 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
15898 * tree-pass.h (TDF_CSELIB): New macro.
15899 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
15900 cselib_lookup): Check for it rather than for TDF_DETAILS.
15902 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
15905 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
15906 is HOST_BIT_BUCKET.
15908 * opts.c (finish_options): Don't add x_aux_base_name if it is
15911 2011-02-01 Richard Guenther <rguenther@suse.de>
15913 PR tree-optimization/47555
15915 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
15917 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
15919 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
15922 * config/lm32/t-lm32: Add multilib for all CPU options.
15924 2011-02-01 Richard Guenther <rguenther@suse.de>
15926 PR tree-optimization/47541
15927 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
15928 sure to have a field at offset zero.
15930 2011-01-31 Joseph Myers <joseph@codesourcery.com>
15932 * config/arc/arc.opt (EB, EL): New Driver options.
15934 2011-01-31 Joseph Myers <joseph@codesourcery.com>
15936 * config/alpha/osf5.opt: New.
15937 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
15939 2011-01-31 Joseph Myers <joseph@codesourcery.com>
15941 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
15943 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
15945 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
15946 -floop-interchange.
15947 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
15948 is an alias of -floop-interchange and that it requires the
15949 Graphite infrastructure.
15950 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
15951 flag_loop_interchange based on the value of flag_tree_loop_linear.
15953 2011-01-31 Jakub Jelinek <jakub@redhat.com>
15954 Richard Guenther <rguenther@suse.de>
15956 PR tree-optimization/47538
15957 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
15958 type instead of r1type, except for comparisons. For right
15959 shifts and comparisons punt if there are mismatches in
15960 sizetype vs. non-sizetype types.
15962 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15964 * doc/sourcebuild.texi (Effective-Target Keywords): Document
15967 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15969 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
15971 * configure: Regenerate.
15973 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15975 * configure.ac (gcc_cv_ld_static_option): Define.
15976 (gcc_cv_ld_dynamic_option): Define.
15977 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
15979 (HAVE_LD_STATIC_DYNAMIC): Update message.
15980 (LD_STATIC_OPTION): Define.
15981 (LD_DYNAMIC_OPTION): Define.
15982 * configure: Regenerate.
15983 * config.in: Regenerate.
15984 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
15985 HAVE_LD_STATIC_DYNAMIC]: Use them.
15987 2011-01-31 Nick Clifton <nickc@redhat.com>
15989 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
15990 registers inside interrupt handlers if the handler is not a leaf
15993 2011-01-31 Nick Clifton <nickc@redhat.com>
15995 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
15996 reg_renumber returning an INVALID_REGNUM.
15998 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
16001 * doc/install.texi: Document host options discarded when cross
16002 configuring target libraries.
16004 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
16007 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
16010 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
16012 (no_real_insns_p, schedule_block, set_priorities): Drop special
16013 treatment of boundary debug insns.
16014 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
16015 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
16016 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
16017 (BOUNDARY_DEBUG_INSN_P): Likewise.
16018 (SCHEDULE_DEBUG_INSN_P): Likewise.
16019 * sched-rgn.c (init_ready_list): Drop special treatment of
16020 boundary debug insns.
16021 * final.c (rest_of_clean-state): Clear notes' BB.
16023 2011-01-31 Alan Modra <amodra@gmail.com>
16025 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
16026 toc relative expressions as we do in print_operand_address.
16028 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
16030 * doc/extend.texi: Follow spelling conventions.
16031 * doc/invoke.texi: Fix a typo.
16033 2011-01-30 Joseph Myers <joseph@codesourcery.com>
16035 * config/hpux11.opt: New.
16036 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
16037 ia64*-*-hpux*): Use hpux11.opt.
16039 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
16041 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
16044 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
16046 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
16049 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
16051 * doc/install.texi (Binaries): Remove outdated reference for
16052 Motorola 68HC11/68HC12 downloads.
16054 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
16056 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
16059 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
16062 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
16065 2011-01-28 Ahmad Sharif <asharif@google.com>
16067 * value-prof.c (check_counter): Corrected error message.
16069 2011-01-29 Jie Zhang <jie@codesourcery.com>
16071 * config/arm/arm.c (arm_legitimize_reload_address): New.
16072 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
16073 arm_legitimize_reload_address.
16074 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
16076 2011-01-28 Ian Lance Taylor <iant@google.com>
16078 * godump.c (go_define): Ignore macros whose definitions include
16079 two adjacent operands.
16081 2011-01-28 Jakub Jelinek <jakub@redhat.com>
16084 * varasm.c (force_const_mem): Store copy of x in desc->constant
16085 instead of x itself.
16086 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
16087 itself into REG_EQUAL note.
16089 2011-01-28 Joseph Myers <joseph@codesourcery.com>
16091 * config/freebsd.opt (posix, rdynamic): New Driver options.
16093 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16095 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
16096 -Bstatic/-Bdynamic.
16097 * configure: Regenerate.
16099 2011-01-27 Joseph Myers <joseph@codesourcery.com>
16101 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
16102 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
16104 2011-01-27 Anatoly Sokolov <aesok@post.ru>
16106 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
16107 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
16108 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
16109 (s390_preferred_reload_class): Make static. Change return and
16110 'rclass' argument type to reg_class_t.
16112 2011-01-27 Jan Hubicka <jh@suse.cz>
16114 PR middle-end/46949
16115 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
16116 (process_function_and_variable_attributes): Check defined weakrefs.
16118 2011-01-27 Martin Jambor <mjambor@suse.cz>
16120 PR tree-optimization/47228
16121 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
16122 build_ref_for_offset.
16124 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16126 * config/spu/spu-elf.h (ASM_SPEC): Remove.
16128 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
16130 PR rtl-optimization/46856
16131 * postreload.c (reload_combine_recognize_const_pattern): Do not
16132 separate cc0 setter and user on cc0 targets.
16134 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
16137 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
16138 passed a VOID_TYPE expression, immediately emit an error and
16139 return error_mark_node.
16141 2011-01-26 Jeff Law <law@redhat.com>
16143 PR rtl-optimization/47464
16144 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
16145 rather than may_trap_p as needed.
16147 2011-01-26 DJ Delorie <dj@redhat.com>
16149 PR rtl-optimization/46878
16150 * combine.c (insn_a_feeds_b): Check for the implicit cc0
16151 setter/user dependency as well.
16153 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
16155 PR rtl-optimization/44469
16156 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
16157 after removing trivially dead basic blocks.
16159 2011-01-26 Joseph Myers <joseph@codesourcery.com>
16161 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
16162 * config/frv/frv.h (LINK_SPEC): Likewise.
16163 * config/i386/netware.h (LINK_SPEC): Likewise.
16164 * config/m68k/linux.h (ASM_SPEC): Likewise.
16165 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
16166 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
16167 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
16168 * config/sparc/linux.h (ASM_SPEC): Likewise.
16169 * config/sparc/linux64.h (ASM_SPEC): Likewise.
16170 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
16172 2011-01-26 Joseph Myers <joseph@codesourcery.com>
16174 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
16175 * config/frv/frv.h (ASM_SPEC): Likewise.
16176 * config/m68k/linux.h (ASM_SPEC): Likewise.
16177 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
16178 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
16179 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
16180 * config/sparc/linux.h (ASM_SPEC): Likewise.
16181 * config/sparc/linux64.h (ASM_SPEC): Likewise.
16182 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
16184 2011-01-26 Joseph Myers <joseph@codesourcery.com>
16186 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
16187 * config/frv/frv.h (LINK_SPEC): Likewise.
16188 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
16190 2011-01-26 Joseph Myers <joseph@codesourcery.com>
16192 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
16193 * config/frv/frv.h (ASM_SPEC): Likewise.
16194 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
16195 * config/m68k/linux.h (ASM_SPEC): Likewise.
16196 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
16197 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
16198 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
16199 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
16200 * config/sparc/linux.h (ASM_SPEC): Likewise.
16201 * config/sparc/linux64.h (ASM_SPEC): Likewise.
16202 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
16203 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
16205 2011-01-26 Steve Ellcey <sje@cup.hp.com>
16208 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
16210 (vec_extract_evenodd_help): Ditto.
16211 (vec_extract_evenv4hi): Ditto.
16212 (vec_extract_oddv4hi): Ditto.
16213 (vec_interleave_lowv2si): Ditto.
16214 (vec_interleave_highv2si): Ditto.
16215 (vec_extract_evenv2si): Ditto.
16216 (vec_extract_oddv2si: Ditto.
16217 (vec_pack_trunc_v2si): Ditto.
16219 2011-01-22 Jan Hubicka <jh@suse.cz>
16222 * cgraph.h (cgraph_local_info): New field can_change_signature.
16223 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
16224 signature can change.
16225 (ipcp_estimate_growth): Call sequence simplify only if calle signature
16227 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
16228 (cgraph_function_versioning): We can not change signature of functions
16229 that don't allow that.
16230 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
16231 (lto_input_node): Likewise.
16232 * ipa-inline.c (compute_inline_parameters): Compute
16233 local.can_change_signature.
16234 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
16235 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
16236 functions that can not change signature.
16237 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
16238 init_cumulative_args): Do not use local calling conventions
16239 for functions that can not change signature.
16241 2011-01-22 Jan Hubicka <jh@suse.cz>
16243 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
16245 2011-01-26 Richard Guenther <rguenther@suse.de>
16247 PR tree-optimization/47190
16248 * cgraphunit.c (process_common_attributes): New function.
16249 (process_function_and_variable_attributes): Use it.
16251 2011-01-26 Richard Guenther <rguenther@suse.de>
16254 * cgraphbuild.c (record_eh_tables): Record reference to personality
16257 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
16260 * sel-sched.c (moveup_expr): Don't let debug insns prevent
16261 non-debug insns from moving up.
16263 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
16266 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
16267 t-dlldir{,-x} fragment for build and add it to tmake_file.
16268 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
16269 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
16270 * config/i386/t-dlldir: New file.
16271 (SHLIB_DLLDIR): Define.
16272 * config/i386/t-dlldir-x: New file.
16273 (SHLIB_DLLDIR): Define.
16274 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
16275 (SHLIB_INSTALL): Use it.
16277 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
16280 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
16281 lower bound of the allowed Thumb-2 coprocessor load/store
16282 index range to -256. Add explaining comment.
16284 2011-01-25 Ian Lance Taylor <iant@google.com>
16286 * godump.c (go_define): Improve lexing of macro expansion to only
16287 accept expressions which match Go spec.
16289 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
16292 * tree.c (handle_dll_attribute): Handle it.
16293 * doc/extend.texi (@item dllexport): Mention it.
16294 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
16296 2011-01-25 Ian Lance Taylor <iant@google.com>
16298 PR tree-optimization/26854
16299 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
16300 (decl_jump_unsafe): Move higher in file, with no other change.
16301 (bind): Set has_jump_unsafe_decl if appropriate.
16302 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
16303 (check_earlier_gotos): Likewise.
16304 (c_check_switch_jump_warnings): Likewise.
16306 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
16308 * doc/invoke.texi (Warning Options): Add missing hyphen.
16309 (-fprofile-dir): Minor grammatical fixes.
16310 (-fbranch-probabilities): Likewise.
16312 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
16316 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
16318 (no_real_insns_p, schedule_block, set_priorities): Drop special
16319 treatment of boundary debug insns.
16320 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
16321 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
16322 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
16323 (BOUNDARY_DEBUG_INSN_P): Likewise.
16324 (SCHEDULE_DEBUG_INSN_P): Likewise.
16325 * sched-rgn.c (init_ready_list): Drop special treatment of
16326 boundary debug insns.
16327 * final.c (rest_of_clean-state): Clear notes' BB.
16329 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16331 * Makefile.in (LAMBDA_H): Removed.
16332 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
16333 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
16334 lambda-trans.o, and tree-loop-linear.o.
16335 (lto-symtab.o): Remove dependence on LAMBDA_H.
16336 (tree-loop-linear.o): Remove rule.
16337 (lambda-mat.o): Same.
16338 (lambda-trans.o): Same.
16339 (lambda-code.o): Same.
16340 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
16341 (tree-vect-slp.o): Same.
16342 * hwint.h (gcd): Moved here.
16343 (least_common_multiple): Same.
16344 * lambda-code.c: Removed.
16345 * lambda-mat.c: Removed.
16346 * lambda-trans.c: Removed.
16347 * lambda.h: Removed.
16348 * tree-loop-linear.c: Removed.
16349 * lto-symtab.c: Do not include lambda.h.
16350 * omega.c (gcd): Removed.
16351 * passes.c (init_optimization_passes): Remove pass_linear_transform.
16352 * tree-data-ref.c (print_lambda_vector): Moved here.
16353 (lambda_vector_copy): Same.
16354 (lambda_matrix_copy): Same.
16355 (lambda_matrix_id): Same.
16356 (lambda_vector_first_nz): Same.
16357 (lambda_matrix_row_add): Same.
16358 (lambda_matrix_row_exchange): Same.
16359 (lambda_vector_mult_const): Same.
16360 (lambda_vector_negate): Same.
16361 (lambda_matrix_row_negate): Same.
16362 (lambda_vector_equal): Same.
16363 (lambda_matrix_right_hermite): Same.
16364 * tree-data-ref.h: Do not include lambda.h.
16365 (lambda_vector): Moved here.
16366 (lambda_matrix): Same.
16367 (dependence_level): Same.
16368 (lambda_transform_legal_p): Removed declaration.
16369 (lambda_collect_parameters): Same.
16370 (lambda_compute_access_matrices): Same.
16371 (lambda_vector_gcd): Same.
16372 (lambda_vector_new): Same.
16373 (lambda_vector_clear): Same.
16374 (lambda_vector_lexico_pos): Same.
16375 (lambda_vector_zerop): Same.
16376 (lambda_matrix_new): Same.
16377 * tree-flow.h (least_common_multiple): Removed declaration.
16378 * tree-parloops.c (lambda_trans_matrix): Moved here.
16379 (LTM_MATRIX): Same.
16380 (LTM_ROWSIZE): Same.
16381 (LTM_COLSIZE): Same.
16382 (LTM_DENOMINATOR): Same.
16383 (lambda_trans_matrix_new): Same.
16384 (lambda_matrix_vector_mult): Same.
16385 (lambda_transform_legal_p): Same.
16386 * tree-pass.h (pass_linear_transform): Removed declaration.
16387 * tree-ssa-loop.c (tree_linear_transform): Removed.
16388 (gate_tree_linear_transform): Removed.
16389 (pass_linear_transform): Removed.
16390 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
16391 flag_loop_interchange.
16393 2011-01-25 Jakub Jelinek <jakub@redhat.com>
16395 PR tree-optimization/47265
16396 PR tree-optimization/47443
16397 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
16398 if name still has some uses.
16400 2011-01-25 Martin Jambor <mjambor@suse.cz>
16402 PR tree-optimization/47382
16403 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
16404 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
16406 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
16408 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
16409 sjlj_except_unwind_info.
16411 2011-01-25 Richard Guenther <rguenther@suse.de>
16413 PR tree-optimization/47426
16414 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
16415 visible functions results escape.
16417 2011-01-25 Jakub Jelinek <jakub@redhat.com>
16420 * config/arm/arm.c (any_sibcall_uses_r3): New function.
16421 (arm_get_frame_offsets): Use it.
16423 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16424 Jakub Jelinek <jakub@redhat.com>
16426 PR tree-optimization/47271
16427 * tree-if-conv.c (bb_postdominates_preds): New.
16428 (if_convertible_bb_p): Call bb_postdominates_preds.
16429 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
16430 (predicate_scalar_phi): Call bb_postdominates_preds.
16432 2011-01-25 Nick Clifton <nickc@redhat.com>
16434 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
16435 * config/rx/rx.c (rx_function_value): Likewise.
16436 (rx_promote_function_mode): Likewise.
16437 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
16438 in order to make it legitimate.
16439 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
16440 make sure that the first operand is the same as the result register.
16441 (addsi3_unspec): Delete.
16442 (subdi3): Do not accept immediate operands.
16443 (subdi3_internal): Likewise.
16445 2011-01-25 Jeff Law <law@redhat.com>
16447 PR rtl-optimization/37273
16448 * ira-costs.c (scan_one_insn): Detect constants living in memory and
16449 handle them like argument loads from stack slots. Do not double
16450 count memory for memory constants and argument loads from stack slots.
16452 2011-01-25 Jakub Jelinek <jakub@redhat.com>
16454 PR tree-optimization/47427
16455 PR tree-optimization/47428
16456 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
16457 coalesce if the new root var would be TREE_READONLY.
16459 2011-01-25 Richard Guenther <rguenther@suse.de>
16461 PR middle-end/47414
16462 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
16463 correct type for TBAA.
16465 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16467 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
16468 (close_phi_written_to_memory): Call for_each_index with
16469 dr_indices_valid_in_loop.
16471 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16473 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
16474 when it is initialized.
16476 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16478 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
16479 call to graphite_find_data_references_in_stmt.
16480 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
16481 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
16482 call to graphite_find_data_references_in_stmt.
16483 (analyze_drs_in_stmts): Same.
16484 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
16485 in which the scalar analysis of indices is performed.
16486 (create_data_ref): Same. Update call to dr_analyze_indices.
16487 (find_data_references_in_stmt): Update call to create_data_ref.
16488 (graphite_find_data_references_in_stmt): Same.
16489 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
16491 (create_data_ref): Same.
16492 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
16493 call to create_data_ref.
16495 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16497 * graphite-sese-to-poly.c (build_poly_scop): Move
16498 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
16500 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16502 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
16503 VAR_DECL, PARM_DECL, and RESULT_DECL.
16505 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16507 * graphite-dependences.c (reduction_dr_1): Allow several reductions
16508 in a reduction PBB.
16509 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
16510 that have already been marked as PBB_IS_REDUCTION.
16512 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16514 * graphite-scop-detection.c (same_close_phi_node): New.
16515 (remove_duplicate_close_phi): New.
16516 (make_close_phi_nodes_unique): New.
16517 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
16519 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16521 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
16522 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
16523 of both data references to be the same.
16525 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16527 * graphite-dependences.c (build_lexicographical_constraint): Remove
16528 the gdim parameter.
16529 (build_lexicographical_constraint): Adjust call to
16530 ppl_powerset_is_empty.
16531 (dependence_polyhedron): Same.
16532 (graphite_legal_transform_dr): Same.
16533 (graphite_carried_dependence_level_k): Same.
16534 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
16536 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
16538 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16540 * graphite-sese-to-poly.c
16541 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
16542 (close_phi_written_to_memory): New.
16543 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
16546 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16548 * doc/install.texi: Update the expected version number of PPL to 0.11.
16549 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
16550 #if PPL_VERSION_MINOR < 11.
16552 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16554 * graphite-dependences.c: Include graphite-cloog-util.h.
16555 (new_poly_ddr): Inlined into dependence_polyhedron.
16556 (free_poly_ddr): Moved close by new_poly_ddr.
16557 (dependence_polyhedron_1): Renamed dependence_polyhedron.
16558 Early return NULL when ppl_powerset_is_empty returns true.
16559 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
16560 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
16561 (graphite_legal_transform_dr): Call new_poly_ddr.
16562 (graphite_carried_dependence_level_k): Same.
16563 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
16564 (dot_transformed_deps_stmt_1): Removed.
16565 (dot_deps_stmt_1): Call dot_deps_stmt_2.
16566 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
16567 (dot_deps_1): Call dot_deps_2.
16568 * Makefile.in (graphite-dependences.o): Add missing dependence on
16569 graphite-cloog-util.h.
16571 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16573 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
16574 (build_lexicographical_constraint): Same.
16575 (dependence_polyhedron_1): Same.
16576 (graphite_legal_transform_dr): Same.
16577 (graphite_carried_dependence_level_k): Same.
16578 * graphite-ppl.c (ppl_powerset_is_empty): New.
16579 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
16580 * tree-data-ref.c (dump_data_reference): Print the basic block index.
16582 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16584 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
16585 the "a followed by b" relation and document it.
16587 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16589 * graphite-dependences.c (build_lexicographical_constraint): Stop the
16590 iteration when the bag of constraints is empty.
16592 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16594 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
16596 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16598 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
16599 nest and two loop depths as parameters.
16600 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
16601 lst_perfect_nestify.
16603 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16605 * graphite-dependences.c (print_pddr): Call
16606 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
16608 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16610 * graphite-ppl.c (debug_gmp_value): New.
16611 * graphite-ppl.h (debug_gmp_value): Declared.
16613 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
16615 * doc/install.texi: Document availability of cloog-0.16.
16617 2011-01-25 Vladimir Kargov <kargov@gmail.com>
16619 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
16620 invalid postdominance info.
16622 2011-01-24 Jan Hubicka <jh@suse.cz>
16625 * doc/extend.texi (weak pragma): Drop claim that it must
16626 appear before definition.
16627 * varasm.c (merge_weak, declare_weak): Only sanity check
16628 that DECL is not output at a time it is declared weak.
16630 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
16632 * machmode.def: Fixed comments.
16634 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
16636 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
16638 2011-01-24 Paul Koning <ni1d@arrl.net>
16640 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
16643 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
16646 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
16647 (block_info): Add scanned and prev.
16648 (move_or_delete_vzeroupper_2): Return if the basic block
16649 has been scanned and the upper 128bit state is unchanged
16650 from the last scan.
16651 (move_or_delete_vzeroupper_1): Return true if the exit
16653 (move_or_delete_vzeroupper): Visit basic blocks using the
16654 work-list based algorithm based on vt_find_locations in
16657 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
16659 2011-01-24 Nick Clifton <nickc@redhat.com>
16661 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
16662 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
16663 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
16664 then define __v850e1__.
16665 * doc/invoke.texi: Document -mv850es.
16667 2011-01-24 Richard Henderson <rth@redhat.com>
16669 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
16670 compound unordered comparisons.
16671 * config/rx/rx.c (rx_split_fp_compare): Remove.
16672 * config/rx/rx-protos.h: Update.
16673 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
16674 (cbranchsf4): Don't call rx_split_fp_compare.
16675 (*cbranchsf4): Use rx_split_cbranch.
16676 (*cmpsf): Don't accept "i" constraint.
16677 (*conditional_branch): Only valid after reload.
16678 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
16680 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
16683 * config/rs6000/altivec.md (vector constant splitters): Add
16684 support for creating vector single precision constants if -mvsx is
16685 used and we would create the constant using Altivec primitives.
16687 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
16688 Richard Sandiford <rdsandiford@googlemail.com>
16690 PR rtl-optimization/47166
16691 * reload1.c (emit_reload_insns): Disable the spill_reg_store
16692 mechanism for PRE_MODIFY and POST_MODIFY.
16693 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
16696 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
16698 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
16700 2011-01-22 Jan Hubicka <jh@suse.cz>
16703 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
16705 2011-01-22 Jan Hubicka <jh@suse.cz>
16707 PR tree-optimization/43884
16709 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
16710 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
16712 2011-01-22 Anatoly Sokolov <aesok@post.ru>
16714 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
16715 * config/s390/s390.c (s390_register_move_cost,
16716 s390_memory_move_cost): New.
16717 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
16719 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16721 PR middle-end/47401
16722 * except.c (sjlj_assign_call_site_values): Move setting the
16723 crtl->uses_eh_lsda flag to ...
16724 (sjlj_mark_call_sites): ... here.
16725 (sjlj_emit_function_enter): Support NULL dispatch label.
16726 (sjlj_build_landing_pads): In a function with no landing pads
16727 that still has must-not-throw regions, generate code to register
16728 a personality function with empty LSDA.
16730 2011-01-21 Richard Henderson <rth@redhat.com>
16732 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
16734 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
16736 * compare-elim.c: New file.
16737 * Makefile.in (OBJS-common): Add it.
16738 (compare-elim.o): New.
16739 * common.opt (fcompare-elim): New.
16740 * opts.c (default_options_table): Add OPT_fcompare_elim.
16741 * tree-pass.h (pass_compare_elim_after_reload): New.
16742 * passes.c (init_optimization_passes): Add it.
16743 * recog.h: Protect against re-inclusion.
16744 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
16745 * doc/invoke.texi (-fcompare-elim): Document it.
16746 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
16747 * doc/tm.texi: Rebuild.
16749 2011-01-22 Nick Clifton <nickc@redhat.com>
16751 * config/rx/rx.md (cstoresf4): Pass comparison operator to
16752 rx_split_fp_compare.
16754 2011-01-22 Nick Clifton <nickc@redhat.com>
16756 * config/rx/rx.md (UNSPEC_CONST): New.
16757 (deallocate_and_return): Wrap the amount popped off the stack in
16758 an UNSPEC_CONST in order to stop it being rejected by
16759 -mmax-constant-size.
16760 (pop_and_return): Add a "(return)" rtx.
16761 (call): Drop the immediate operand.
16762 (call_internal): Likewise.
16763 (call_value): Likewise.
16764 (call_value_internal): Likewise.
16765 (sibcall_internal): Likewise.
16766 (sibcall_value_internal): Likewise.
16767 (sibcall): Likewise. Generate an explicit call using
16769 (sibcall_value): Likewise.
16770 (mov<>): FAIL if a constant operand is not legitimate.
16771 (addsi3_unpsec): New pattern.
16773 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
16774 (ok_for_max_constant): New function.
16775 (gen_safe_add): New function.
16776 (rx_expand_prologue): Use gen_safe_add.
16777 (rx_expand_epilogue): Likewise.
16778 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
16781 2011-01-21 Jeff Law <law@redhat.com>
16783 PR tree-optimization/47053
16784 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
16785 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
16786 statements are deleted.
16787 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
16788 is nonempty, then purge dead edges and cleanup the CFG.
16790 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
16793 Temporarily revert:
16794 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
16796 * tree-dfa.c (create_var_ann): Mark variable as used.
16798 2011-01-21 Jakub Jelinek <jakub@redhat.com>
16800 PR middle-end/45566
16801 * except.c (convert_to_eh_region_ranges): Emit queued no-region
16802 notes from other section in hot/cold partitioning even if
16803 last_action is -3. Increment call_site_base.
16805 PR rtl-optimization/47366
16806 * fwprop.c (forward_propagate_into): Return bool. If
16807 any changes are made, -fnon-call-exceptions is used and
16808 REG_EH_REGION note is present, call purge_dead_edges
16809 and return true if it purged anything.
16810 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
16811 any EH edges were purged.
16813 2011-01-21 Jeff Law <law@redhat.com>
16815 PR rtl-optimization/41619
16816 * caller-save.c (setup_save_areas): Break out code to determine
16817 which hard regs are live across calls by examining the reload chains
16818 so that it is always used.
16819 Eliminate code which checked REG_N_CALLS_CROSSED.
16821 2011-01-21 Jakub Jelinek <jakub@redhat.com>
16823 PR tree-optimization/47355
16824 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
16825 NOP has non-debug uses beyond PHIs in new_bb.
16827 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
16830 * cfgexpand.c (account_used_vars_for_block): Only account vars
16831 that are annotated as used.
16832 (estimated_stack_frame_size): Don't set TREE_USED.
16833 * tree-dfa.c (create_var_ann): Mark variable as used.
16835 2011-01-21 Richard Guenther <rguenther@suse.de>
16837 PR middle-end/47395
16838 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
16840 2011-01-21 Richard Guenther <rguenther@suse.de>
16842 PR tree-optimization/47365
16843 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
16844 (vn_reference_lookup_pieces): Adjust.
16845 (vn_reference_lookup): Likewise.
16846 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
16847 (vn_reference_lookup_3): Only look through kills if in
16848 VN_WALKREWRITE mode.
16849 (vn_reference_lookup_pieces): Adjust.
16850 (vn_reference_lookup): Likewise.
16851 (visit_reference_op_load): Likewise.
16852 (visit_reference_op_store): Likewise.
16853 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
16854 (compute_avail): Likewise.
16855 (eliminate): Likewise.
16857 2011-01-21 Jakub Jelinek <jakub@redhat.com>
16859 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
16860 DECL_IGNORED_P non-reg vars if they are used.
16862 PR tree-optimization/47391
16863 * varpool.c (const_value_known_p): Return false if
16866 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
16869 * config/i386/i386.c (ix86_local_alignment): Handle
16870 case for va_list_type_node is nil.
16871 (ix86_canonical_va_list_type): Likewise.
16873 2011-01-21 Alan Modra <amodra@gmail.com>
16875 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
16876 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
16878 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16880 * config/arm/arm.md (define_attr type): Rename f_load
16881 and f_store to f_fpa_load and f_fpa_store. Update.
16882 (write_conflict): Deal with rename fallout.
16883 (*push_fp_multi): Likewise.
16884 * config/arm/fpa.md (f_load): Use f_fpa_load.
16885 (f_store): Use f_fpa_store.
16886 (*movsf_fpa): Likewise.
16887 (*movdf_fpa): Likewise.
16888 (*movxf_fpa): Likewise.
16889 (*thumb2_movsf_fpa): Likewise.
16890 (*thumb2_movdf_fpa): Likewise.
16891 (*thumb2_movxf_fpa): Likewise.
16892 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
16893 f_loadd and f_stored.
16894 (*thumb2_movdi_vfp): Likewise.
16895 (*thumb2_movsf_vfp): Fix attribute to f_loads.
16896 (*thumb2_movsi_vfp): Likewise.
16897 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
16898 Use f_loads instead of f_load.
16899 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
16901 2011-01-20 Anatoly Sokolov <aesok@post.ru>
16903 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
16904 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
16905 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
16906 (xtensa_mode_dependent_address_p): New function.
16907 (constantpool_address_p): Make static. Change return type to bool.
16908 Change argument type to const_rtx. Use CONST_INT_P predicate.
16910 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
16913 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
16915 2011-01-20 Jakub Jelinek <jakub@redhat.com>
16918 * cfgexpand.c (expand_debug_expr): Instead of generating
16919 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
16922 2011-01-20 Richard Guenther <rguenther@suse.de>
16924 PR middle-end/47370
16925 * tree-inline.c (remap_gimple_op_r): Recurse manually for
16926 the pointer operand of MEM_REFs.
16928 2011-01-20 Jakub Jelinek <jakub@redhat.com>
16930 PR tree-optimization/46130
16931 * ipa-split.c (consider_split): If return_bb contains non-virtual
16932 PHIs other than for retval or if split_function would not adjust it,
16935 2011-01-20 Richard Guenther <rguenther@suse.de>
16937 PR tree-optimization/47167
16938 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
16939 Revert previous change, only avoid enumeral type changes.
16941 2011-01-19 Mike Stump <mikestump@comcast.net>
16943 * doc/tm.texi.in (BRANCH_COST): Englishify.
16944 * doc/tm.texi (BRANCH_COST): Likewise.
16946 2011-01-19 Dodji Seketeli <dodji@redhat.com>
16949 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
16950 (gen_scheduled_generic_parms_dies): New functions.
16951 (gen_struct_or_union_type_die): Schedule template parameters DIEs
16952 generation for the end of CU compilation.
16953 (dwarf2out_finish): Generate template parameters DIEs here.
16955 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
16958 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
16959 debug bind stmt on merge edges.
16961 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
16965 * function.c (instantiate_expr): Instantiate incoming rtl of
16966 implicit arguments, and recurse on VALUE_EXPRs.
16967 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
16968 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
16970 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
16972 * c-parser.c (c_parser_for_statement): Initialize
16973 collection_expression.
16975 2011-01-19 Joseph Myers <joseph@codesourcery.com>
16977 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
16979 2011-01-19 Joseph Myers <joseph@codesourcery.com>
16981 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
16982 (LINK_SHLIB_SPEC): Don't use %(link_path).
16983 (SUBTARGET_EXTRA_SPECS): Remove link_path.
16985 2011-01-19 Joseph Myers <joseph@codesourcery.com>
16987 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
16988 (NO_SHARED_LIB_SUPPORT): Remove.
16989 (LINK_SHLIB_SPEC): Remove one conditional definition.
16991 2011-01-19 Joseph Myers <joseph@codesourcery.com>
16993 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
16995 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
16996 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
16997 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
16998 %{call_shared} and conditionals on these options not being passed.
16999 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
17002 2011-01-19 Jakub Jelinek <jakub@redhat.com>
17004 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
17007 * ipa-split.c: Spelling fixes.
17009 2011-01-19 Richard Henderson <rth@redhat.com>
17011 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
17012 (*mulsi3): Likewise.
17014 * longlong.h [__mn10300__] (count_leading_zeros): New.
17015 [__mn10300__] (umul_ppmm, smul_ppmm): New.
17016 [__mn10300__] (add_ssaaaa, subddmmss): New.
17017 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
17018 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
17020 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17022 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
17024 2011-01-19 Richard Henderson <rth@redhat.com>
17026 * config/mn10300/mn10300.md (addsi3_flags): New.
17027 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
17028 (subsi3_flags, subc_internal, subdi3): New.
17029 (subdi3_internal, *subdi3_degenerate): New.
17030 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
17032 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
17033 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
17034 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
17035 * config/mn10300/mn10300-protos.h: Update.
17036 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
17037 (return_ret): Likewise. Rename from return_internal_regs.
17038 (return_internal): Remove.
17040 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
17041 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
17042 (mn10300_legitimate_constant_p): Likewise.
17043 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
17044 (mn10300_frame_size): New.
17045 (mn10300_expand_prologue): Use it.
17046 (mn10300_expand_epilogue): Likewise.
17047 (mn10300_initial_offset): Likewise.
17048 * config/mn10300/mn10300-protos.h: Update.
17049 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
17050 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
17051 (prologue, epilogue, return_internal): Tidy output code.
17052 (mn10300_store_multiple_operation, return): Likewise.
17053 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
17054 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
17055 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
17056 (load_pic, am33_load_pic): New.
17057 (mn10300_load_pic0, mn10300_load_pic1): New.
17059 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
17060 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
17061 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
17062 (cc_flags_for_mode, cc_flags_for_code): New.
17063 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
17064 overflow flag is not valid. Validate that the flags we need
17065 for the comparison are valid.
17066 (mn10300_output_cmp): Remove.
17067 (mn10300_output_add): New.
17068 (mn10300_select_cc_mode): Use cc_flags_for_code.
17069 (mn10300_split_cbranch): New.
17070 (mn10300_match_ccmode): New.
17071 (mn10300_split_and_operand_count): New.
17072 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
17074 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
17075 (addsi3): ... here. Use mn10300_output_add.
17076 (*addsi3_flags): New.
17077 (*am33_subsi3, *mn10300_subsi3): Merge...
17078 (subsi3): ... here. Use attribute isa.
17079 (*subsi3_flags): New.
17080 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
17082 (*am33_andsi3, *mn10300_andsi3): Merge...
17083 (andsi3): ... here.
17084 (*andsi3_flags): New.
17085 (andsi3 splitters): New.
17086 (*am33_iorsi3, *mn10300_iorsi3): Merge...
17087 (iorsi3): ... here.
17088 (*iorsi3_flags): New.
17089 (*am33_xorsi3, *mn10300_xorsi3): Merge...
17090 (xorsi3): ... here.
17091 (*xorsi3_flags): New.
17092 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
17093 (one_cmplsi2): ... here.
17094 (*one_cmplsi2_flags): New.
17095 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
17096 instead of "dax" in constraints. Use mn10300_split_cbranch.
17097 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
17098 use matching constraints to eliminate a self-comparison.
17099 (*integer_conditional_branch): Rename from integer_conditional_branch.
17100 Use int_mode_flags to match CC_REG.
17101 (*cbranchsi4_btst, *btstsi): New.
17102 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
17103 mn10300_split_cbranch.
17104 (*am33_cmpsf): Rename from am33_cmpsf.
17105 (*float_conditional_branch): Rename from float_conditional_branch.
17106 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
17107 (zero_extendqisi2): ... here.
17108 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
17109 (zero_extendhisi2): ... here.
17110 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
17111 (extendqisi2): ... here.
17112 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
17113 (extendhisi2): ... here.
17114 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
17115 (ashlsi3): ... here.
17116 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
17117 (lshrsi3): ... here.
17118 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
17119 (ashrsi3): ... here.
17120 (consecutive add peephole): Remove.
17121 * config/mn10300/predicates.md (label_ref_operand): New.
17122 (int_mode_flags): New.
17123 (CCZN_comparison_operator): New.
17125 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
17126 (throughput_42_latency_43): New reservation.
17127 (mulsidi3, umulsidi3): New expanders.
17128 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
17129 the MDR register to allocation; separately allocate the low and
17130 high parts of the DImode result.
17131 (umulsidi3_internal): Similarly.
17132 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
17133 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
17134 (udivsi3, umodsi3): Remove.
17135 (udivmodsi4, divmodsi4): New expanders.
17136 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
17137 (*divmodsi4): Simiarly.
17138 (ext_internal): New.
17140 * config/mn10300/constraints.md ("z"): New constraint.
17141 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
17142 (FIXED_REGISTERS): Don't fix MDR.
17143 (CALL_USED_REGSITERS): Reformat nicely.
17144 (REG_ALLOC_ORDER): Add MDR.
17145 (enum regclass): Add MDR_REGS.
17146 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
17147 (IRA_COVER_CLASSES): Add MDR_REGS.
17148 (REGNO_REG_CLASS): Handle MDR_REG.
17149 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
17150 (mn10300_register_move_cost): Likewise.
17151 * config/mn10300/mn10300.md (MDR_REG): New.
17152 (*movsi_internal): Handle moves to/from MDR_REGS.
17154 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
17156 (mn10300_secondary_reload): Tidy combination reload classes.
17157 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
17158 addresses for AM33. Allow symbolic offsets for reg+imm.
17159 (mn10300_regno_in_class_p): New.
17160 (mn10300_legitimize_reload_address): New.
17161 * config/mn10300/mn10300.h (enum reg_class): Remove
17162 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
17163 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
17164 SP_OR_GENERAL_REGS.
17165 (REG_CLASS_NAMES): Update to match.
17166 (REG_CLASS_CONTENTS): Likewise.
17167 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
17168 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
17169 (REGNO_IN_RANGE_P): Remove.
17170 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
17171 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
17172 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
17173 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
17174 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
17175 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
17176 (REGNO_GENERAL_P): New.
17177 (HAVE_POST_MODIFY_DISP): New.
17178 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
17179 (LEGITIMIZE_RELOAD_ADDRESS): New.
17180 * config/mn10300/mn10300-protos.h: Update.
17182 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
17183 DATA_REGS for AM33 stack-pointer destination.
17184 (mn10300_preferred_output_reload_class): Likewise.
17185 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
17186 into a form appropriate for ...
17187 (TARGET_SECONDARY_RELOAD): New.
17188 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
17189 * config/mn10300/mn10300-protos.h: Update.
17190 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
17191 reload_insi; use the "A" constraint for the scratch; handle AM33
17192 moves of sp to non-address registers.
17194 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
17195 (*movqi_internal): ... here.
17196 (*am33_movhi, *mn10300_movhi): Merge into...
17197 (*movhi_internal): ... here.
17198 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
17199 as the source/destination of moves from/to SP.
17200 (movsf): Only allow for AM33-2.
17201 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
17202 any integer constant constraint. Only allow for AM33-2. Tidy
17203 all of the alternative outputs.
17204 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
17205 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
17207 (udivsi3, umodsi3): New patterns for MN103 only.
17209 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
17211 * doc/tm.texi.in: Spell out that a lack of register class unions
17213 * doc/tm.texi: Regenerate.
17215 2011-01-19 Jakub Jelinek <jakub@redhat.com>
17217 PR rtl-optimization/47337
17218 * dce.c (check_argument_store): New function.
17219 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
17221 PR tree-optimization/47290
17222 * tree-eh.c (infinite_empty_loop_p): New function.
17223 (cleanup_empty_eh): Use it.
17225 2011-01-18 Steve Ellcey <sje@cup.hp.com>
17228 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
17229 (a64_expand_widen_sum): Ditto.
17230 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
17231 (vec_extract_evenodd_help): Ditto.
17232 (vec_extract_evenv4hi): Ditto.
17233 (vec_extract_oddv4hi): Ditto.
17234 (vec_extract_evenv2si): Ditto.
17235 (vec_extract_oddv2si): Ditto.
17236 (vec_extract_evenv2sf): Ditto.
17237 (vec_extract_oddv2sf): Ditto.
17238 (vec_pack_trunc_v4hi: Ditto.
17239 (vec_pack_trunc_v2si): Ditto.
17240 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
17241 (vec_interleave_highv8qi): Ditto.
17243 (vec_extract_oddv8qi): Ditto.
17244 (vec_interleave_lowv4hi): Ditto.
17245 (vec_interleave_highv4hi): Ditto.
17246 (vec_interleave_lowv2si): Ditto.
17247 (vec_interleave_highv2si): Ditto.
17249 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17251 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
17252 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
17253 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
17254 (pa_c_mode_for_suffix): New.
17255 (TARGET_EXPAND_BUILTIN): Define.
17256 (TARGET_C_MODE_FOR_SUFFIX): Define.
17257 (pa_builtins): Define.
17258 (pa_init_builtins): Register __float128 type and init new support
17260 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
17261 * config/pa/quadlib.c (_U_Qfcopysign): New.
17263 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
17265 PR middle-end/46894
17266 * explow.c (allocate_dynamic_stack_space): Do not assume more than
17267 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
17270 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17272 PR tree-optimization/47179
17273 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
17274 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
17276 2011-01-18 Richard Guenther <rguenther@suse.de>
17278 PR rtl-optimization/47216
17279 * emit-rtl.c: Include tree-flow.h.
17280 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
17281 of replicating it with different semantics.
17282 * Makefile.in (emit-rtl.o): Adjust.
17284 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17286 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
17287 (cortex_a9_dp): Handle neon types correctly.
17289 2011-01-18 Jakub Jelinek <jakub@redhat.com>
17291 PR rtl-optimization/47299
17292 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
17293 subtarget. Use normal multiplication if both operands are constants.
17294 * expmed.c (expand_widening_mult): Don't try to optimize constant
17295 multiplication if op0 has VOIDmode. Convert op1 constant to mode
17298 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17300 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
17301 spacing after 'e.g.', typos, comma, hyphenation.
17303 2011-01-17 Richard Henderson <rth@redhat.com>
17305 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
17306 (rx_restricted_mem_operand): New.
17307 (rx_shift_operand): Use register_operand.
17308 (rx_source_operand, rx_compare_operand): Likewise.
17309 * config/rx/rx.md (addsi3_flags): New expander.
17310 (adddi3): Rewrite as expander.
17311 (adc_internal, *adc_flags, adddi3_internal): New patterns.
17312 (subsi3_flags): New expander.
17313 (subdi3): Rewrite as expander.
17314 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
17316 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
17317 (rx_init_builtins): Remove sat builtin.
17318 (rx_expand_builtin): Likewise.
17319 * config/rx/rx.md (ssaddsi3): New.
17320 (*sat): Rename from sat. Represent the CC_REG input.
17322 * config/rx/predicates.md (rshift_operator): New.
17323 * config/rx/rx.c (rx_expand_insv): Remove.
17324 * config/rx/rx-protos.h: Update.
17325 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
17326 operand to the canonical position.
17327 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
17328 (*bitclr, *bitclr_in_memory): Similarly.
17329 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
17330 (insv): Retain the zero_extract in the expansion.
17332 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
17333 (bswaphi2, bitinvert, revw): Likewise.
17335 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
17336 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
17337 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
17338 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
17339 (bitset, bitset_in_memory): Likewise.
17340 (bitinvert, bitinvert_in_memory): Likewise.
17341 (bitclr, bitclr_in_memory): Likewise.
17342 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
17343 (rx_strend, rx_cmpstrn): Likewise.
17344 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
17345 (bitop peep2 patterns): Remove.
17347 * config/rx/rx.c (rx_match_ccmode): New.
17348 * config/rx/rx-protos.h: Update.
17349 * config/rx/rx.md (abssi2): Clobber, don't set flags.
17350 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
17351 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
17352 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
17353 (fix_truncsfsi2, floatsisf2): Likewise.
17354 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
17355 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
17356 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
17357 (*subsi3_flags, *xorsi3_flags): New.
17359 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
17361 * config/rx/rx.c (rx_print_operand): Remove workaround for
17362 unsplit comparison operations.
17364 * config/rx/rx.md (movsicc): Split after reload.
17365 (*movsicc): Merge *movsieq and *movsine via match_operator.
17366 (*stcc): New pattern.
17368 * config/rx/rx.c (rx_float_compare_mode): Remove.
17369 * config/rx/rx.h (rx_float_compare_mode): Remove.
17370 * config/rx/rx.md (cstoresi4): Split after reload.
17371 (*sccc): New pattern.
17373 * config/rx/predicates.md (label_ref_operand): New.
17374 (rx_z_comparison_operator): New.
17375 (rx_zs_comparison_operator): New.
17376 (rx_fp_comparison_operator): New.
17377 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
17378 Validate that the flags are set properly for the comparison.
17379 (rx_gen_cond_branch_template): Remove.
17380 (rx_cc_modes_compatible): Remove.
17381 (mode_from_flags): New.
17382 (flags_from_code): Rename from flags_needed_for_conditional.
17383 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
17384 (rx_select_cc_mode): Likewise.
17385 (rx_split_fp_compare): New.
17386 (rx_split_cbranch): New.
17387 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
17388 (*cbranchsi4): Use match_operator and rx_split_cbranch.
17389 (*cbranchsf4): Similarly.
17390 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
17391 match_operator and rx_split_cbranch.
17392 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
17393 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
17394 (*cmpsi): Rename from cmpsi.
17395 (*tstsi): Rename from tstsi.
17396 (*cmpsf): Rename from cmpsf; use CC_Fmode.
17397 (*conditional_branch): Rename from conditional_branch.
17398 (*reveresed_conditional_branch): Remove.
17399 (b<code>): Remove expander.
17400 * config/rx/rx-protos.h: Update.
17402 * config/rx/rx.c (rx_compare_redundant): Remove.
17403 * config/rx/rx.md (cmpsi): Don't use it.
17404 * config/rx/rx-protos.h: Update.
17406 * config/rx/rx-modes.def (CC_F): New mode.
17407 * config/rx/rx.c (rx_select_cc_mode): New.
17408 * config/rx/rx.h (SELECT_CC_MODE): Use it.
17409 * config/rx/rx-protos.h: Update.
17411 2011-01-17 Richard Henderson <rth@redhat.com>
17413 * except.c (dump_eh_tree): Fix stray ; after for statement.
17415 2011-01-17 Richard Guenther <rguenther@suse.de>
17417 PR tree-optimization/47313
17418 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
17419 handling before copying the body. Properly deal with
17420 by-reference result in SSA form.
17422 2011-01-17 Ian Lance Taylor <iant@google.com>
17425 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
17426 (struct_value_alias_set): Don't define.
17427 (sparc_option_override): Don't set sparc_sr_alias_set and
17428 struct_value_alias_set.
17429 (save_or_restore_regs): Use gen_frame_mem rather than calling
17431 (sparc_struct_value_rtx): Likewise.
17433 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
17436 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
17437 (_mm_maskstore_pd): Likewise.
17438 (_mm_maskload_ps): Likewise.
17439 (_mm_maskstore_ps): Likewise.
17440 (_mm256_maskload_pd): Change mask to __m256i.
17441 (_mm256_maskstore_pd): Likewise.
17442 (_mm256_maskload_ps): Likewise.
17443 (_mm256_maskstore_ps): Likewise.
17445 * config/i386/i386-builtin-types.def: Updated.
17446 (ix86_expand_special_args_builtin): Likewise.
17448 * config/i386/i386.c (bdesc_special_args): Update
17449 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
17450 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
17451 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
17452 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
17454 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
17455 Use <avxpermvecmode> on mask register.
17456 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
17458 2011-01-17 Olivier Hainque <hainque@adacore.com>
17459 Michael Haubenwallner <michael.haubenwallner@salomon.at>
17460 Eric Botcazou <ebotcazou@adacore.com>
17463 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
17464 if <= USHRT_MAX in 32-bit mode.
17466 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17468 * doc/install.texi (Configuration, Specific): Wrap long
17469 lines in examples. Allow line wrapping in long options
17470 and URLs where beneficial for PDF output.
17472 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
17474 * config/mips/mips.c (mips_classify_symbol): Don't return
17475 SYMBOL_PC_RELATIVE for nonlocal labels.
17477 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
17479 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
17481 2011-01-15 Jan Hubicka <jh@suse.cz>
17483 PR tree-optimization/47276
17484 * ipa.c (function_and_variable_visibility): Do not try to mark alias
17485 declarations as needed.
17487 2011-01-15 Martin Jambor <mjambor@suse.cz>
17489 * common.opt (fdevirtualize): New flag.
17490 * doc/invoke.texi (Option Summary): Document it.
17491 * opts.c (default_options_table): Add devirtualize flag.
17492 * ipa-prop.c (detect_type_change): Return immediately if
17493 devirtualize flag is not set.
17494 (detect_type_change_ssa): Likewise.
17495 (compute_known_type_jump_func): Likewise.
17496 (ipa_analyze_virtual_call_uses): Likewise.
17498 2011-01-14 Martin Jambor <mjambor@suse.cz>
17500 PR tree-optimization/45934
17501 PR tree-optimization/46302
17502 * ipa-prop.c (type_change_info): New type.
17503 (stmt_may_be_vtbl_ptr_store): New function.
17504 (check_stmt_for_type_change): Likewise.
17505 (detect_type_change): Likewise.
17506 (detect_type_change_ssa): Likewise.
17507 (compute_complex_assign_jump_func): Check for dynamic type change.
17508 (compute_complex_ancestor_jump_func): Likewise.
17509 (compute_known_type_jump_func): Likewise.
17510 (compute_scalar_jump_functions): Likewise.
17511 (ipa_analyze_virtual_call_uses): Likewise.
17512 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
17514 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17516 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
17517 * config/i386/i386.opt (msse5): New Alias.
17519 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17521 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
17522 * config/sparc/linux64.h (CC1_SPEC): Likewise.
17523 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
17524 * config/sparc/sparc.h (CC1_SPEC): Likewise.
17526 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17528 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
17530 * config/sparc/linux64.h (CC1_SPEC): Likewise.
17531 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
17532 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
17533 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
17535 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
17537 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17539 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
17541 2011-01-14 Mike Stump <mikestump@comcast.net>
17543 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
17544 * config/fr30/fr30.md: Likweise
17545 (movsi_push): Likewise.
17546 (movsi_pop): Likewise.
17547 (enter_func): Likewise.
17548 * config/moxie/moxie.md (movsi_push): Likewise.
17549 (movsi_pop): Likewise.
17551 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17553 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
17554 %{no_archive} %{exact_version}.
17555 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
17556 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
17557 %{no_archive} %{exact_version}.
17558 * config/mips/openbsd.h (LINK_SPEC): Likewise.
17559 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
17560 * config/mips/vxworks.h: Likewise.
17562 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17564 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
17566 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17568 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
17569 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
17571 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17573 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
17576 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17578 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
17580 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
17581 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
17583 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
17584 Don't handle -shlib.
17586 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17588 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
17589 (CC1_SPEC): Don't handle -profile.
17591 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17593 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
17594 * config/mips/mips.h (CC1_SPEC): Likewise.
17596 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17598 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
17599 * config/mips/mips.h (CC1_SPEC): Likewise.
17601 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17603 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
17604 * config/m32r/linux.h (LINK_SPEC): Likewise.
17605 * config/mips/linux.h (LINK_SPEC): Likewise.
17606 * config/mips/linux64.h (LINK_SPEC): Likewise.
17607 * config/sparc/linux.h (LINK_SPEC): Likewise.
17608 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
17609 LINK_SPEC): Likewise.
17610 * config/xtensa/linux.h (LINK_SPEC): Likewise.
17612 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17614 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
17616 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
17618 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17620 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
17621 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
17623 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17625 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
17627 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17629 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
17630 supports -Bstatic/-Bdynamic.
17631 * configure: Regenerate.
17633 2011-01-14 Jan Hubicka <jh@suse.cz>
17634 Jack Howarth <howarth@bromo.med.uc.edu>
17637 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
17638 when checking debug_info_level. Test write_symbols instead of
17639 debug_hooks->var_location when setting flag_var_tracking_uninit.
17641 2011-01-14 Richard Guenther <rguenther@suse.de>
17643 PR tree-optimization/47179
17644 * target.def (ref_may_alias_errno): New target hook.
17645 * targhooks.h (default_ref_may_alias_errno): Declare.
17646 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
17647 (default_ref_may_alias_errno): New function.
17648 * target.h (struct ao_ref_s): Declare.
17649 * tree-ssa-alias.c: Include target.h.
17650 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
17651 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
17652 (targhooks.o): Likewise.
17653 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
17654 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
17656 2011-01-14 Richard Guenther <rguenther@suse.de>
17658 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
17660 2011-01-14 Richard Guenther <rguenther@suse.de>
17662 PR tree-optimization/47280
17663 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
17664 return CFG changes.
17665 (tree_ssa_forward_propagate_single_use_vars): Deal with
17666 CFG changes from associate_plusminus.
17668 2011-01-14 Richard Guenther <rguenther@suse.de>
17670 PR middle-end/47281
17672 2011-01-11 Richard Guenther <rguenther@suse.de>
17674 PR tree-optimization/46076
17675 * tree-ssa.c (useless_type_conversion_p): Conversions from
17676 unprototyped to empty argument list function types are useless.
17678 2011-01-14 Richard Guenther <rguenther@suse.de>
17680 PR tree-optimization/47286
17681 * tree-ssa-structalias.c (new_var_info): Register variables are global.
17683 2011-01-14 Martin Jambor <mjambor@suse.cz>
17685 PR middle-end/46823
17686 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
17688 2011-01-13 Anatoly Sokolov <aesok@post.ru>
17690 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
17691 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
17692 * config/xtensa/xtensa.c (xtensa_libcall_value,
17693 xtensa_function_value_regno_p): New functions.
17694 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
17696 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
17699 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
17701 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
17702 New function prototype.
17703 * config/i386/winnt.c (i386_pe_assemble_visibility):
17704 Warn only if attribute was specified by user.
17706 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
17709 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
17711 (floatunsdidf2_fcfidu): Ditto.
17713 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17715 * config/s390/s390.c (print_operand_address): Replace 'error' with
17716 'output_operand_lossage'.
17717 (print_operand): Likewise.
17719 2011-01-13 Jeff Law <law@redhat.com>
17721 PR rtl-optimization/39077
17722 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
17723 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
17724 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
17725 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
17726 * gcse.c (prune_insertions_deletions): New function.
17727 (compute_pre_data): Use it.
17729 2011-01-13 Dodji Seketeli <dodji@redhat.com>
17732 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
17734 (prune_unused_types_mark): Use it.
17736 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
17738 PR rtl-optimization/45352
17739 * sel-sched.c: Update copyright years.
17740 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
17741 in the advancing loop when we have issued issue_rate insns.
17743 2011-01-12 Richard Henderson <rth@redhat.com>
17745 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
17746 (TARGET_MD_ASM_CLOBBERS): New.
17748 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
17749 (TARGET_DELEGITIMIZE_ADDRESS): New.
17751 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
17752 (clzsi2, *bsch): New patterns.
17754 * config/mn10300/mn10300.md (INT): New mode iterator.
17755 (*mov<INT>_clr): New pattern, and peep2 to generate it.
17757 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
17758 flag_split_wide_types.
17760 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
17761 (mn10300_trampoline_init): Rewrite without a template, an immediate
17762 load and a direct branch.
17763 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
17765 2011-01-12 Anatoly Sokolov <aesok@post.ru>
17767 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
17768 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
17769 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
17770 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
17772 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
17775 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
17778 2011-01-12 Jan Hubicka <jh@suse.cz>
17781 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
17782 (PLUGIN_COND_CLOSE): New macro.
17783 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
17785 2011-01-12 Richard Guenther <rguenther@suse.de>
17788 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
17789 register variables in a MEM_REF.
17791 2011-01-12 Joseph Myers <joseph@codesourcery.com>
17793 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
17794 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
17795 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
17796 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
17797 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
17798 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
17799 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
17800 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
17801 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
17802 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
17803 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
17804 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
17805 * config/gnu-user.h: New. Copied from linux.h.
17806 (LINUX_TARGET_STARTFILE_SPEC): Rename to
17807 GNU_USER_TARGET_STARTFILE_SPEC.
17808 (LINUX_TARGET_ENDFILE_SPEC): Rename to
17809 GNU_USER_TARGET_ENDFILE_SPEC.
17810 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
17811 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
17812 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
17813 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
17814 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
17815 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
17816 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
17817 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
17818 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
17819 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
17820 * config/arm/linux-eabi.h (CC1_SPEC): Use
17821 GNU_USER_TARGET_CC1_SPEC.
17822 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
17823 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
17824 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
17825 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
17826 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
17827 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
17828 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
17829 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
17831 2011-01-12 Richard Guenther <rguenther@suse.de>
17834 * doc/invoke.texi (ffast-math): Document it is turned on
17837 2011-01-12 Jan Hubicka <jh@suse.cz>
17839 PR tree-optimization/47233
17840 * opts.c (common_handle_option): Disable ipa-reference with profile
17843 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
17845 * c-parser.c (c_parser_objc_at_property_declaration): Improved
17848 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
17850 * c-parser.c (c_lex_one_token): Updated and reindented some
17851 comments. No changes in code.
17853 2011-01-11 Ian Lance Taylor <iant@google.com>
17855 * godump.c (go_output_var): Don't output the variable if there is
17856 already a type with the same name.
17858 2011-01-11 Ian Lance Taylor <iant@google.com>
17860 * godump.c (go_format_type): Don't generate float80.
17862 2011-01-11 Richard Henderson <rth@redhat.com>
17864 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
17865 declaration. Rewrite for both speed and size.
17866 (mn10300_address_cost_1): Remove.
17867 (mn10300_register_move_cost): New.
17868 (mn10300_memory_move_cost): New.
17869 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
17870 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
17871 extensions, shifts, BSWAP, CLZ.
17872 (mn10300_wide_const_load_uses_clr): Remove.
17873 (TARGET_REGISTER_MOVE_COST): New.
17874 (TARGET_MEMORY_MOVE_COST): New.
17875 * config/mn10300/mn10300-protos.h: Update.
17876 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
17878 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
17879 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
17880 * config/mn10300/mn10300-protos.h: Update.
17881 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
17882 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
17883 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
17884 (*test_int_bitfield, *test_byte_bitfield): Remove.
17885 (*bit_test, *subreg_bit_test): Remove.
17886 * config/mn10300/predicates.md (const_8bit_operand): Remove.
17888 * config/mn10300/constraints.md ("c"): Rename from "A".
17889 ("A", "D"): New constraint letters.
17890 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
17891 (fmssf4, fnmasf4, fnmssf4): Likewise.
17893 * config/mn10300/mn10300.md (isa): New attribute.
17894 (enabled): New attribute.
17896 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
17897 (abssf2, negsf2): Define only for hardware fp.
17898 (sqrtsf2): Reformat.
17899 (addsf3, subsf3, mulsf3): Merge expander and insn.
17901 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
17902 (DEBUGGER_AUTO_OFFSET): Remove.
17903 (DEBUGGER_ARG_OFFSET): Remove.
17905 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
17906 Emit register stores with the same offsets as the hardware.
17907 (mn10300_store_multiple_operation): Don't check that the register
17908 save offsets are monotonic.
17909 * config/mn10300/mn10300-protos.h: Update.
17911 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
17913 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
17914 in terms of the value on the stack, not the MDR register.
17916 2011-01-11 Jan Hubicka <jh@suse.cz>
17920 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
17921 (symbol_alias_set_destroy, symbol_alias_set_contains,
17922 propagate_aliases_backward): Declare.
17923 * lto-streamer-out.c (struct sets): New sturcture.
17924 (trivally_defined_alias): New function.
17925 (output_alias_pair_p): Rewrite.
17926 (output_unreferenced_globals): Fix output of alias pairs.
17927 (produce_symtab): Likewise.
17928 * ipa.c (function_and_variable_visibility): Set weak alias destination
17930 * varasm.c (symbol_alias_set_t): Remove.
17931 (symbol_alias_set_destroy): Export.
17932 (propagate_aliases_forward, propagate_aliases_backward): New functions
17934 (compute_visible_aliases): ... this one; remove.
17935 (trivially_visible_alias): New
17936 (trivially_defined_alias): New.
17937 (remove_unreachable_alias_pairs): Rewrite.
17938 (finish_aliases_1): Reorganize code checking if alias is defined.
17939 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
17942 2011-01-11 Richard Guenther <rguenther@suse.de>
17944 PR tree-optimization/46076
17945 * tree-ssa.c (useless_type_conversion_p): Conversions from
17946 unprototyped to empty argument list function types are useless.
17948 2011-01-11 Richard Guenther <rguenther@suse.de>
17950 PR middle-end/45235
17951 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
17952 volatile MEMs as MEM_READONLY_P.
17954 2011-01-11 Richard Guenther <rguenther@suse.de>
17956 PR tree-optimization/47239
17957 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
17959 2011-01-11 Jeff Law <law@redhat.com>
17961 PR tree-optimization/47086
17962 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
17963 IVs from statements that might throw.
17965 2011-01-10 Jan Hubicka <jh@suse.cz>
17968 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
17970 2011-01-10 Jan Hubicka <jh@suse.cz>
17973 * profile.c (read_profile_edge_counts): Ignore profile inconistency
17974 when correcting profile.
17976 2011-01-10 Jan Hubicka <jh@suse.cz>
17979 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
17980 DECL_FINI_PRIORITY.
17981 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
17982 Restore DECL_FINI_PRIORITY.
17984 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17986 * doc/gimple.texi: Fix quoting of multi-word return values in
17987 @deftypefn statements. Ensure presence of return value. Wrap
17988 overlong @deftypefn lines.
17989 (is_gimple_operand, is_gimple_min_invariant_address): Remove
17990 descriptions of removed functions.
17991 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
17992 of multi-word return value in @deftypefn statement.
17994 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17996 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
17997 (Conditional Expressions, Logical Operators)
17998 (Statement and operand traversals): Do not indent smallexample
17999 code. Fix duplicate function argument in example.
18001 2011-01-10 Jeff Law <law@redhat.com>
18003 PR tree-optimization/47141
18004 * ipa-split.c (split_function): Handle case where we are
18005 returning a value and the return block has a virtual operand phi.
18007 2011-01-10 Jan Hubicka <jh@suse.cz>
18009 PR tree-optimization/47234
18010 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
18011 (pass_feedback_split_functions): Declare.
18012 * passes.c (init_optimization_passes): Add ipa-split as subpass of
18014 * ipa-split.c (gate_split_functions): Update comments; disable
18015 split-functions for profile_arc_flag and branch_probabilities.
18016 (gate_feedback_split_functions): New function.
18017 (execute_feedback_split_functions): New function.
18018 (pass_feedback_split_functions): New global var.
18020 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
18023 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
18024 calling gimple_call_set_cannot_inline.
18026 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
18028 * config/darwin-sections.def: Remove unused section.
18030 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
18033 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
18035 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
18038 * c-parser.c (c_parser_declaration_or_fndef): Improved
18041 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
18043 * config/i386/winnt.c (i386_pe_start_function): Make sure
18044 to switch back to function's section.
18046 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
18050 * plugin.c: Move include of dlfcn.h from here...
18051 * system.h: ... to here.
18053 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18055 * doc/cpp.texi (C++ Named Operators): Fix markup for header
18057 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
18058 two extra empty pages in PDF output.
18060 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
18063 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
18064 for error recovery purposes behave as if it was not specified so
18065 that the default type is usd.
18067 2011-01-07 Jan Hubicka <jh@suse.cz>
18069 PR tree-optmization/46469
18070 * ipa.c (function_and_variable_visibility): Clear needed flags on
18071 nodes with external decls; handle weakrefs merging correctly.
18073 2011-01-07 Joseph Myers <joseph@codesourcery.com>
18075 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
18078 2011-01-07 Jan Hubicka <jh@suse.cz>
18080 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
18081 and no longer claim that gold is required for linker plugin.
18082 * configure: Regenerate.
18083 * gcc.c (PLUGIN_COND): New macro.
18084 (LINK_COMMAND_SPEC): Use it.
18085 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
18086 * config.in (HAVE_LTO_PLUGIN): New.
18087 * configure.ac (--with-lto-plugin): New parameter; autodetect
18090 2011-01-07 Jan Hubicka <jh@suse.cz>
18092 PR tree-optimization/46367
18093 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
18094 when we can update original.
18095 (cgraph_mark_inline_edge): Sanity check.
18096 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
18098 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18100 * config/spu/spu.h (ASM_COMMENT_START): Define.
18102 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
18105 * gcc.c (%>S): New.
18106 (SWITCH_KEEP_FOR_GCC): Likewise.
18107 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
18108 (do_spec_1): Handle "%>".
18110 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
18112 2011-01-07 Jakub Jelinek <jakub@redhat.com>
18115 * config/i386/i386.c (ix86_delegitimize_address): If
18116 simplify_gen_subreg fails, return orig_x.
18119 * value-prof.c (gimple_stringop_fixed_value): Handle
18120 lhs of the call properly.
18122 2011-01-07 Jan Hubicka <jh@suse.cz>
18125 * lto-opt.c (lto_reissue_options): Set flag_shlib.
18127 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
18129 * target.def (function_switched_text_sections): New hook.
18130 * doc/tm.texi: Regenerated.
18131 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
18132 * final.c (default_function_switched_text_sections): New.
18133 (final_scan_insn): Call function_switched_text_sections when a
18134 mid-function section change occurs.
18135 * output.h (default_function_switched_text_sections): Declare.
18136 * config/darwin-protos.h (darwin_function_switched_text_sections):
18138 * config/darwin.c (darwin_function_switched_text_sections): New.
18139 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
18141 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
18143 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
18144 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
18145 the secondary code fragment when outputting for DWARF == 2.
18147 2011-01-07 Anatoly Sokolov <aesok@post.ru>
18149 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
18150 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
18152 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
18153 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
18155 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
18158 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
18159 when it is not empty.
18161 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
18164 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
18165 (case ${target}): Add btver1.
18166 * config/i386/driver-i386.c (host_detect_local_cpu): Let
18167 -march=native recognize btver1 processors.
18168 * config/i386/i386-c.c (ix86_target_macros_internal): Add
18169 btver1 def_and_undef
18170 * config/i386/i386.c (struct processor_costs btver1_cost): New
18172 (m_BTVER1): New definition.
18173 (m_AMD_MULTIPLE): Includes m_BTVER1.
18174 (initial_ix86_tune_features): Add btver1 tune.
18175 (processor_target_table): Add btver1 entry.
18176 (static const char *const cpu_names): Add btver1 entry.
18177 (software_prefetching_beneficial_p): Add btver1.
18178 (ix86_option_override_internal): Add btver1 instruction sets.
18179 (ix86_issue_rate): Add btver1.
18180 (ix86_adjust_cost): Add btver1.
18181 * config/i386/i386.h (TARGET_BTVER1): New definition.
18182 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
18183 (enum processor_type): Add PROCESSOR_BTVER1.
18184 * config/i386/i386.md (define_attr "cpu"): Add btver1.
18186 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18189 * config/i386/i386.c (legitimize_tls_address)
18190 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
18191 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
18192 (tls_initial_exec_64_sun): New pattern.
18194 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
18196 * doc/invoke.texi (Overall Options): Improve wording and markup
18197 of the description of -wrapper.
18199 2011-01-06 Joseph Myers <joseph@codesourcery.com>
18201 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
18202 rdynamic, threads): New Driver options.
18204 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18207 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
18208 if coming from .tdata.
18209 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
18211 2011-01-06 Jan Hubicka <jh@suse.cz>
18214 * collect2.c (main): Do not enable LTOmode when plugin is active.
18216 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18219 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
18220 --version output if supported.
18221 * configure: Regenerate.
18223 2011-01-06 Joseph Myers <joseph@codesourcery.com>
18225 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
18228 2011-01-06 Jakub Jelinek <jakub@redhat.com>
18231 * c-convert.c (convert): When converting a complex expression
18232 other than COMPLEX_EXPR to a different complex type, ensure
18233 c_save_expr is called instead of save_expr, unless in_late_binary_op.
18234 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
18235 when converting COMPLEX_TYPE.
18237 2011-01-06 Ira Rosen <irar@il.ibm.com>
18239 PR tree-optimization/47139
18240 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
18241 only the last reduction value is used outside the loop. Update
18244 2011-01-05 Joseph Myers <joseph@codesourcery.com>
18246 * config/rtems.opt: New.
18247 * config.gcc (*-*-rtems*): Use rtems.opt.
18249 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
18251 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
18252 processors do not support 3DNow instructions.
18254 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18256 * config/spu/spu.c (spu_option_override): Set parameter
18257 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
18259 2011-01-05 Jan Hubicka <jh@suse.cz>
18261 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
18262 at the command line.
18264 2011-01-05 Martin Jambor <mjambor@suse.cz>
18267 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
18268 deltas on streamed outgoing edges.
18269 (output_node_opt_summary): Output info for outgoing edges only when
18270 the node is in new parameter set.
18271 (output_cgraph_opt_summary): New parameter set, passed to the two
18272 aforementioned functions. Update its forward declaration and its
18275 2011-01-05 Tom Tromey <tromey@redhat.com>
18277 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
18278 operator to c_finish_omp_atomic.
18279 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
18280 (build_unary_op): Update.
18281 (build_modify_expr): Update.
18282 (build_asm_expr): Update.
18284 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18286 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
18287 newly inserted insns.
18288 (pad_bb): Likewise.
18289 (spu_emit_branch_hint): Likewise.
18290 (insert_hbrp_for_ilb_runout): Likewise.
18291 (spu_machine_dependent_reorg): Call df_finish_pass after
18292 schedule_insns returns.
18294 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18296 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
18298 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
18300 PR tree-optimization/47005
18301 * tree-sra.c (struct access): Add 'non_addressable' bit.
18302 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
18303 (decide_one_param_reduction): Return 0 if the parameter is passed by
18304 reference and one of the accesses in the group is non_addressable.
18306 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
18308 PR tree-optimization/47056
18309 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
18310 (mark_load): Likewise. Handle FUNCTION_DECL specially.
18311 (mark_store): Likewise. Pass STMT to ipa_record_reference.
18313 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
18315 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
18316 initializer. Skip view conversions from aggregate types.
18318 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
18321 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
18323 2011-01-04 Philipp Thomas <pth@suse.de>
18325 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
18328 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18330 * function.c (thread_prologue_and_epilogue_insns): Do not crash
18331 on empty epilogue sequences.
18333 2011-01-04 Joseph Myers <joseph@codesourcery.com>
18335 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
18336 non-static): New Driver options.
18338 2011-01-04 Jie Zhang <jie@codesourcery.com>
18341 * gcc.c (default_compilers[]): Set combinable field to 0
18342 for all assembly languages.
18344 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
18346 * config/mips/loongson3a.md: New file.
18347 * config/mips/mips.md: Include loongson3a.md.
18348 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
18351 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
18353 PR middle-end/47017
18354 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
18355 instead of convert_memory_address_addr_space on the base expression.
18357 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18359 * config/spu/spu.c (spu_option_override): Update error text
18360 for bad -march= / -mtune= values.
18362 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18364 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
18365 if branch-hint optimization will be performed.
18367 2011-01-03 Jakub Jelinek <jakub@redhat.com>
18369 PR tree-optimization/47148
18370 * ipa-split.c (split_function): Convert arguments to
18371 DECL_ARG_TYPE if possible.
18373 PR tree-optimization/47155
18374 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
18375 when computing uns.
18377 PR rtl-optimization/47157
18378 * combine.c (try_combine): If undobuf.other_insn becomes
18379 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
18380 and set *new_direct_jump_p too.
18382 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
18384 PR tree-optimization/47021
18385 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
18387 2011-01-03 Jakub Jelinek <jakub@redhat.com>
18389 * gcc.c (process_command): Update copyright notice dates.
18390 * gcov.c (print_version): Likewise.
18391 * gcov-dump.c (print_version): Likewise.
18392 * mips-tfile.c (main): Likewise.
18393 * mips-tdump.c (main): Likewise.
18395 2011-01-03 Martin Jambor <mjambor@suse.cz>
18397 PR tree-optimization/46801
18398 * tree-sra.c (type_internals_preclude_sra_p): Check whether
18399 aggregate fields start at byte boundary instead of the bit-field flag.
18401 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
18404 * gcc.c (main): Revert revision 168407.
18406 2011-01-03 Martin Jambor <mjambor@suse.cz>
18408 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
18410 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18412 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
18413 vector optab to expand vector/scalar shift, update gimple to vector.
18415 2011-01-03 Martin Jambor <mjambor@suse.cz>
18417 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
18420 2011-01-03 Martin Jambor <mjambor@suse.cz>
18422 PR tree-optimization/46984
18423 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
18425 (cgraph_create_indirect_edge): Fixed line length.
18426 (cgraph_indirect_call_info): Declare.
18427 (cgraph_make_edge_direct) Update declaration.
18428 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
18429 (cgraph_create_indirect_edge): Use it.
18430 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
18432 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
18433 the new thunk_delta representation.
18434 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
18436 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
18437 (ipa_read_indirect_edge_info): Likewise.
18438 * lto-cgraph.c (output_edge_opt_summary): New function.
18439 (output_node_opt_summary): Call it on all outgoing edges.
18440 (input_edge_opt_summary): New function.
18441 (input_node_opt_summary): Call it on all outgoing edges.
18443 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
18446 * gcc.c (main): Don't check have_o when settting combine_inputs.
18448 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
18450 * regrename.c: Add general comment describing the pass.
18451 (struct du_head): Remove 'length' field.
18452 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
18453 (regrename_optimize): Do not sort chains. Rework comments, add others.
18454 Force renaming to the preferred class (if any) in the first pass and do
18455 not consider registers that belong to it in the second pass.
18456 (create_new_chain): Do not set 'length' field.
18457 (scan_rtx_reg): Likewise.
18459 2011-01-02 Jakub Jelinek <jakub@redhat.com>
18461 PR tree-optimization/47140
18462 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
18463 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
18464 to bit_value_binop.
18466 PR rtl-optimization/47028
18467 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
18468 parm_birth_insn instead of at the beginning of first bb.
18470 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
18472 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
18473 Remove the word "see" before "@pxref".
18474 * doc/rtl.texi: Remove the word "see" before "@pxref".
18476 2011-01-01 Jan Hubicka <jh@suse.cz>
18478 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
18481 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
18484 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
18487 Copyright (C) 2011 Free Software Foundation, Inc.
18489 Copying and distribution of this file, with or without modification,
18490 are permitted in any medium without royalty provided the copyright
18491 notice and this notice are preserved.