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 (__parityqi2): New function.
33 (__popcounthi2): New function.
34 (__popcountsi2): New function.
35 (__popcountdi2): New function.
36 (__popcountqi2): New function.
37 (__bswapsi2): New function.
38 (__bswapdi2): New function.
39 (__ashldi3): New function.
40 (__ashrdi3): New function.
41 (__lshrdi3): New function.
44 2011-06-16 Richard Guenther <rguenther@suse.de>
46 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
48 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0 to
50 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
51 equality compares against zero for the lower bit.
53 2011-06-16 Jakub Jelinek <jakub@redhat.com>
55 PR tree-optimization/49419
56 * tree-vrp.c (execute_vrp): Call init_range_assertions
57 before estimate_numbers_of_iterations, call
58 free_number_of_iterations_estimates before calling
59 remove_range_assertions.
61 2011-06-16 Revital Eres <revital.eres@linaro.org>
63 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
64 (struct partial_schedule): Add rows_length field.
65 (verify_partial_schedule): Check rows_length.
66 (ps_insert_empty_row): Handle rows_length.
67 (create_partial_schedule): Likewise.
68 (free_partial_schedule): Likewise.
69 (reset_partial_schedule): Likewise.
70 (create_ps_insn): Remove rest_count argument.
71 (remove_node_from_ps): Update rows_length.
72 (add_node_to_ps): Update rows_length and call create_ps_insn
73 without passing row_rest_count.
74 (rotate_partial_schedule): Update rows_length.
76 2011-06-16 Revital Eres <revital.eres@linaro.org>
78 * ddg.c (add_intra_loop_mem_dep): New function.
79 (build_intra_loop_deps): Call it.
81 2011-05-06 Jeff Law <law@redhat.com>
83 * df-problems.c (df_lr_local_compute): Manually CSE
84 PIC_OFFSET_TABLE_REGNUM.
85 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
86 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
88 2011-06-13 Jan Hubicka <jh@suse.cz>
90 * cgraphunit.c (handle_alias_pairs): New function.
91 (cgraph_finalize_compilation_unit): Use it.
92 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
93 as externally visible.
95 2011-06-15 Richard Guenther <rguenther@suse.de>
97 * expr.c (expand_expr_real_2): Reduce all integral types to
99 (expand_expr_real_1): Likewise.
101 2011-06-15 Martin Jambor <mjambor@suse.cz>
103 PR tree-optimization/48613
104 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
105 ipa_node_params_vector is NULL.
107 2011-06-15 Jakub Jelinek <jakub@redhat.com>
110 * dwarf2out.c (dw_loc_list_node): Add force field.
111 (add_var_loc_to_decl): For PARM_DECL, attempt to keep
112 the incoming location in the list, even if it is modified
113 before first real insn.
114 (output_loc_list): Emit empty ranges with force flag set.
115 (dw_loc_list): If first range of a PARM_DECL is empty,
118 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
121 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
122 (fence_to_rewind). Use it to notice when bookkeeping will be placed
123 above a fence. Update comments.
124 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
125 placed just above it. Do not allow NULL place_to_insert.
127 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
129 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
130 (slpeel_tree_peel_loop_to_edge): Don't call
131 remove_dead_stmts_from_loop.
132 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
133 remove irrelevant pattern statements. For irrelevant statements
134 check if it is the last statement of a detected pattern, use
135 corresponding pattern statement instead.
136 (destroy_loop_vec_info): No need to remove pattern statements,
137 only free stmt_vec_info.
138 (vect_transform_loop): For irrelevant statements check if it is
139 the last statement of a detected pattern, use corresponding
140 pattern statement instead.
141 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
142 pattern statements. Set basic block for the new statement.
143 (vect_pattern_recog): Update documentation.
144 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
145 operands of pattern statements.
146 (vectorizable_call): Fix printing. In case of a pattern statement
147 use the lhs of the original statement when creating a dummy
148 statement to replace the original call.
149 (vect_analyze_stmt): For irrelevant statements check if it is
150 the last statement of a detected pattern, use corresponding
151 pattern statement instead.
152 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
153 statements use gsi of the original statement.
155 2011-06-14 Joseph Myers <joseph@codesourcery.com>
157 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
158 common/common-target-def.h.
159 * target.def (default_target_flags, handle_option,
160 supports_split_stack, optimization_table, init_struct,
161 except_unwind_info, unwind_tables_default, have_named_sections):
162 Move to common/common-target.def.
163 * target.h (enum opt_levels, struct default_options): Move to
164 common/common-target.h.
165 * targhooks.c (default_except_unwind_info,
166 dwarf2_except_unwind_info, sjlj_except_unwind_info,
167 default_target_handle_option, empty_optimization_table): Move to
168 common/common-targhooks.c.
169 * targhooks.h (default_except_unwind_info,
170 dwarf2_except_unwind_info, sjlj_except_unwind_info,
171 default_target_handle_option, empty_optimization_table): Move to
172 common/common-targhooks.h.
173 * common/common-target-def.h: Include common/common-targhooks.h.
174 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
176 * common/common-target.def (handle_option, option_init_struct,
177 option_optimization_table, default_target_flags,
178 except_unwind_info, supports_split_stack, unwind_tables_default,
179 have_named_sections): Move from target.def.
180 (HOOK_PREFIX): Undefine at end of file.
181 * common/common-target.h: Include input.h.
182 (enum opt_levels, struct default_options): Move from target.h.
183 * common/common-targhooks.c, common/common-targhooks.h: New.
184 * config.gcc (target_has_targetm_common): Default to yes.
185 (moxie*): Set target_has_targetm_common=no.
186 (hppa*-*-*): Don't set target_has_targetm_common=yes.
187 * doc/tm.texi: Regenerate.
188 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
189 (C_TARGET_DEF_H): Add common/common-targhooks.h.
190 (GCC_OBJS): Remove vec.o.
191 (OBJS): Remove hooks.o and vec.o.
192 (OBJS-libcommon-target): Add vec.o, hooks.o and
193 common/common-targhooks.o.
194 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
195 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
196 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
197 cfglayout.o, $(out_object_file), $(common_out_object_file)):
199 (common/common-targhooks.o): New.
200 * common/config/default-common.c: Include tm.h. Add FIXME
202 * common/config/pa/pa-common.c: Include more headers. Take
203 copyright dates from pa.c.
204 (pa_option_optimization_table, pa_handle_option,
205 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
206 TARGET_HANDLE_OPTION): Move from pa.c.
207 * common/config/alpha/alpha-common.c,
208 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
209 common/config/bfin/bfin-common.c,
210 common/config/cris/cris-common.c,
211 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
212 common/config/h8300/h8300-common.c,
213 common/config/i386/i386-common.c,
214 common/config/ia64/ia64-common.c,
215 common/config/iq2000/iq2000-common.c,
216 common/config/lm32/lm32-common.c,
217 common/config/m32c/m32c-common.c,
218 common/config/m32r/m32r-common.c,
219 common/config/m68k/m68k-common.c,
220 common/config/mcore/mcore-common.c,
221 common/config/mep/mep-common.c,
222 common/config/microblaze/microblaze-common.c,
223 common/config/mips/mips-common.c,
224 common/config/mmix/mmix-common.c,
225 common/config/mn10300/mn10300-common.c,
226 common/config/pdp11/pdp11-common.c,
227 common/config/picochip/picochip-common.c,
228 common/config/rs6000/rs6000-common.c,
229 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
230 common/config/score/score-common.c, common/config/sh/sh-common.c,
231 common/config/sparc/sparc-common.c,
232 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
233 common/config/vax/vax-common.c,
234 common/config/xstormy16/xstormy16-common.c,
235 common/config/xtensa/xtensa-common.c: New.
236 * config/alpha/alpha.c: Include common/common-target.h.
237 (alpha_option_optimization_table, alpha_handle_option,
238 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
239 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
240 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
241 * config/arm/arm.c (arm_option_optimization_table,
242 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
243 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
245 * config/avr/avr.c (avr_option_optimization_table,
246 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
248 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
249 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
250 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
251 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
252 * config/cris/cris.c (cris_option_optimization_table,
253 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
254 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
256 * config/fr30/fr30.c (fr30_option_optimization_table,
257 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
259 * config/frv/frv.c (frv_option_optimization_table,
260 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
261 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
262 * config/h8300/h8300.c (h8300_option_optimization_table,
263 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
264 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
265 * config/i386/i386-protos.h (ix86_handle_option): Declare.
266 * config/i386/i386.c: Include common/common-target.h.
267 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
268 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
269 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
270 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
271 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
272 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
273 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
274 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
275 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
276 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
277 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
278 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
279 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
280 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
281 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
282 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
283 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
284 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
285 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
286 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
287 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
288 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
289 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
290 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
291 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
292 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
293 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
294 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
295 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
296 ix86_option_optimization_table, ix86_option_init_struct,
297 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
298 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
299 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
301 * config/i386/t-i386 (i386.o): Update dependencies.
302 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
303 * config/ia64/ia64.c (ia64_option_optimization_table,
304 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
305 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
306 ia64_handle_option): Move to ia64-common.c.
307 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
308 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
309 * config/lm32/lm32.c (lm32_option_optimization_table,
310 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
312 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
314 * config/m32r/m32r.c (m32r_option_optimization_table,
315 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
316 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
317 m32r_handle_option): Move to m32r-common.c.
318 (m32r_memory_move_cost): Remove comment referring to
319 TARGET_HANDLE_OPTION.
320 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
321 Move to m68k-common.c.
322 * config/mcore/mcore.c (mcore_option_optimization_table,
323 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
324 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
325 * config/mep/mep.c (mep_option_optimization_table,
326 mep_handle_option, TARGET_HANDLE_OPTION,
327 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
328 Move to mep-common.c.
329 * config/microblaze/microblaze.c
330 (microblaze_option_optimization_table,
331 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
332 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
333 * config/mips/mips.c (mips_handle_option,
334 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
335 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
337 * config/mmix/mmix.c (mmix_option_optimization_table,
338 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
339 Move to mmix-common.c.
340 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
341 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
342 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
343 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
344 * config/pa/pa.c: Include common/common-target.h.
345 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
346 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
347 pa_handle_option): Move to pa-common.c.
348 (pa_option_override): Use targetm_common.except_unwind_info.
349 (pa_asm_output_mi_thunk, pa_function_section): Use
350 targetm_common.have_named_sections.
351 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
352 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
353 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
354 pdp11_handle_option, pdp11_option_init_struct): Move to
356 * config/picochip/picochip.c (picochip_option_optimization_table,
357 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
358 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
359 * config/rs6000/rs6000.c: Include common/common-target.h.
360 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
361 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
362 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
363 rs6000_handle_option): Move to rs6000-common.c.
364 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
365 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
366 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
367 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
368 * config/s390/s390.c (processor_flags_table,
369 s390_option_optimization_table, s390_option_init_struct,
370 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
371 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
372 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
373 * config/s390/s390.h (processor_flags_table): Declare.
374 * config/score/score.c (score_option_optimization_table,
375 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
376 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
377 score_handle_option): Move to score-common.c.
378 * config/sh/sh.c (sh_option_optimization_table,
379 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
380 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
381 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
382 * config/sparc/sparc.c: Include common/common-target.h.
383 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
384 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
385 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
386 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
387 spu_option_init_struct): Move to spu-common.c.
388 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
389 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
390 * config/v850/v850.c (small_memory_physical_max,
391 v850_handle_memory_optionn v850_handle_option,
392 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
393 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
395 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to
397 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
398 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
399 Move to xtensa-common.c.
400 * cfglayout.c: Include common/common-target.h.
401 (fixup_reorder_chain): Use targetm_common.have_named_sections.
402 * cfgrtl.c: Include common/common-target.h.
403 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
404 targetm_common.have_named_sections.
405 * dbxout.c: Include common/common-target.h.
406 (dbxout_function_end): Use targetm_common.have_named_sections.
407 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
408 targetm_common.except_unwind_info.
409 * dwarf2out.c: Include common/common-target.h.
410 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
411 dwarf2out_begin_prologue, dwarf2out_frame_init,
412 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
413 targetm_common.except_unwind_info.
414 * except.c: Include common/common-target.h.
415 (init_eh, finish_eh_generation,
416 output_one_function_exception_table): Use
417 targetm_common.except_unwind_info.
418 (switch_to_exception_section): Use
419 targetm_common.have_named_sections.
420 * explow.c: Include common/common-target.h.
421 * expr.c: Include common/common-target.h.
422 (build_personality_function): Use
423 targetm_common.except_unwind_info.
424 * function.c: Include common/common-target.h.
425 (expand_function_end): Use targetm_common.except_unwind_info.
426 * haifa-sched.c: Include common/common-target.h.
427 (sched_create_recovery_edges): Use
428 targetm_common.have_named_sections.
429 * lto-opts.c: Include common/common-target.h instead of target.h.
430 (lto_reissue_options): Use targetm_common.handle_option.
431 * opts.c: Include common/common-target.h.
432 (target_handle_option): Use targetm_common.handle_option.
433 (init_options_struct): Update comment referring to
434 targetm.target_option.optimization. Use
435 targetm_common.default_target_flags,
436 targetm_common.unwind_tables_default and
437 targetm_common.option_init_struct.
438 (default_options_optimization): Use
439 targetm_common.option_optimization_table.
440 (finish_options): Use targetm_common.except_unwind_info,
441 targetm_common.unwind_tables_default,
442 targetm_common.have_named_sections and
443 targetm_common.supports_split_stack.
444 * toplev.c: Include common/common-target.h.
445 (process_options): Use targetm_common.have_named_sections.
446 * tree-tailcall.c: Include common/common-target.h.
447 (suitable_for_tail_call_opt_p): Use
448 targetm_common.except_unwind_info.
449 * tree.c: Include common/common-target.h.
450 (build_common_builtin_nodes): Use
451 targetm_common.except_unwind_info.
452 * varasm.c: Include common/common-target.h.
453 (resolve_unique_section, hot_function_section,
454 default_function_section): Use targetm_common.have_named_sections.
456 2011-06-14 Easwaran Raman <eraman@google.com>
458 PR rtl-optimization/44194
459 * dse.c: Include tree-flow.h
460 (insn_info): Add new field non_frame_wild_read.
461 (group_info): Add new fields escaped_n and escaped_p.
462 (kill_on_calls): New variable.
463 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
464 (dse_step0): Initialize kill_on_calls.
465 (can_escape): New function.
466 (set_usage_bits): Add additional parameter; record information
467 about escaped locations.
468 (record_store): Pass EXPR corresponding to MEM to
470 (dse_step2_nospill): Set kill_on_calls based on
471 group->escaped_n and group->escaped_n.
472 (add_wild_read): Refactor into...
473 (reset_active_stores): ... New function, and
474 (free_read_records): ... New function.
475 (add_non_frame_wild_read): New function.
476 (scan_insn): Call add_non_frame_wild_read on non-const calls.
477 (scan_reads_nospill): Handle instructions with
479 (dse_step5_nospill): Call scan_reads_nospill for instructions
480 marked as non_frame_wild_read.
481 (dse_step7): Free escaped_n, escaped_p and kill_on_calls
484 2011-06-14 Joseph Myers <joseph@codesourcery.com>
486 * common/common-target-def.h, common/common-target.def,
487 common/common-target.h, common/config/default-common.c,
488 common/config/pa/pa-common.c: New files.
489 * Makefile.in (common_out_file, common_out_object_file,
490 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
491 (OBJS-libcommon-target): Include $(common_out_object_file).
492 (prefix.o): Update dependencies.
493 ($(common_out_object_file), common/common-target-hooks-def.h,
494 s-common-target-hooks-def-h): New.
495 (s-tm-texi): Also check timestamp on common-target.def.
496 (build/genhooks.o): Update dependencies.
497 * config.gcc (common_out_file, target_has_targetm_common): Define.
498 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
499 TARGET_ALWAYS_STRIP_DOTDOT.
500 * configure.ac (common_out_object_file): Define.
501 (common_out_file, common_out_object_file): Substitute.
502 (common): Create directory.
503 * configure: Regenerate.
504 * doc/tm.texi.in (targetm_common): Document.
505 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
506 * doc/tm.texi: Regenerate.
507 * genhooks.c (hook_array): Also include common/common-target.def.
508 * prefix.c (tm.h): Don't include.
509 (common/common-target.h): Include.
510 (ALWAYS_STRIP_DOTDOT): Don't define.
511 (update_path): Use targetm_common.always_strip_dotdot instead of
513 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
515 2011-06-14 David Li <davidxl@google.com>
517 * passes.c (execute_function_todo): Remove TODO_dump_func.
518 (execute_one_pass): Remove TODO_dump_func.
519 (execute_function_dump): New function.
520 * tree-vrp.c: Remove TODO_dump_func.
521 * regrename.c: Remove TODO_dump_func.
522 * fwprop.c: Remove TODO_dump_func.
523 * tree-into-ssa.c: Remove TODO_dump_func.
524 * tree-complex.c: Remove TODO_dump_func.
525 * tracer.c: Remove TODO_dump_func.
526 * tree-loop-distribution.c: Remove TODO_dump_func.
527 * postreload-gcse.c: Remove TODO_dump_func.
528 * postreload.c: Remove TODO_dump_func.
529 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
530 * tree-tailcall.c: Remove TODO_dump_func.
531 * ipa-cp.c: Remove TODO_dump_func.
532 * final.c: Remove TODO_dump_func.
533 * tree-emutls.c: Remove TODO_dump_func.
534 * omp-low.c: Remove TODO_dump_func.
535 * tree-ssa-dse.c: Remove TODO_dump_func.
536 * tree-ssa-uncprop.c: Remove TODO_dump_func.
537 * auto-inc-dec.c: Remove TODO_dump_func.
538 * reorg.c: Remove TODO_dump_func.
539 * tree-ssa-copyrename.c: Remove TODO_dump_func.
540 * tree-ssa-ccp.c: Remove TODO_dump_func.
541 * compare-elim.c: Remove TODO_dump_func.
542 * mode-switching.c: Remove TODO_dump_func.
543 * modulo-sched.c: Remove TODO_dump_func.
544 * tree-call-cdce.c: Remove TODO_dump_func.
545 * cse.c: Remove TODO_dump_func.
546 * web.c: Remove TODO_dump_func.
547 * tree-stdarg.c: Remove TODO_dump_func.
548 * lto-streamer-out.c: Remove TODO_dump_func.
549 * tree-ssa-math-opts.c: Remove TODO_dump_func.
550 * tree-ssa-dom.c: Remove TODO_dump_func.
551 * tree-nrv.c: Remove TODO_dump_func.
552 * loop-init.c: Remove TODO_dump_func.
553 * gimple-low.c: Remove TODO_dump_func.
554 * ipa-inline.c: Remove TODO_dump_func.
555 * tree-ssa-sink.c: Remove TODO_dump_func.
556 * jump.c: Remove TODO_dump_func.
557 * ifcvt.c: Remove TODO_dump_func.
558 * tree-ssa-loop.c: Remove TODO_dump_func.
559 * recog.c: Remove TODO_dump_func.
560 * dse.c: Remove TODO_dump_func.
561 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
562 * matrix-reorg.c: Remove TODO_dump_func.
563 * tree-eh.c: Remove TODO_dump_func.
564 * regmove.c: Remove TODO_dump_func.
565 * function.c: Remove TODO_dump_func.
566 * tree-vectorizer.c: Remove TODO_dump_func.
567 * ipa-split.c: Remove TODO_dump_func.
568 * gcse.c: Remove TODO_dump_func.
569 * tree-if-conv.c: Remove TODO_dump_func.
570 * init-regs.c: Remove TODO_dump_func.
571 * tree-ssa-phiopt.c: Remove TODO_dump_func.
572 * implicit-zee.c: Remove TODO_dump_func.
573 * lower-subreg.c: Remove TODO_dump_func.
574 * bt-load.c: Remove TODO_dump_func.
575 * tree-dfa.c: Remove TODO_dump_func.
576 * except.c: Remove TODO_dump_func.
577 * emit-rtl.c: Remove TODO_dump_func.
578 * store-motion.c: Remove TODO_dump_func.
579 * cfgexpand.c: Remove TODO_dump_func.
580 * tree-cfgcleanup.c: Remove TODO_dump_func.
581 * cfgcleanup.c: Remove TODO_dump_func.
582 * tree-ssa-pre.c: Remove TODO_dump_func.
583 * tree-sra.c: Remove TODO_dump_func.
584 * tree-mudflap.c: Remove TODO_dump_func.
585 * tree-ssa-copy.c: Remove TODO_dump_func.
586 * cfglayout.c: Remove TODO_dump_func.
587 * tree-ssa-forwprop.c: Remove TODO_dump_func.
588 * tree-ssa-dce.c: Remove TODO_dump_func.
589 * ira.c: Remove TODO_dump_func.
590 * tree-ssa.c: Remove TODO_dump_func.
591 * integrate.c: Remove TODO_dump_func.
592 * tree-optimize.c: Remove TODO_dump_func.
593 * tree-ssa-phiprop.c: Remove TODO_dump_func.
594 * tree-object-size.c: Remove TODO_dump_func.
595 * combine.c: Remove TODO_dump_func.
596 * bb-reorder.c: Remove TODO_dump_func.
597 * cprop.c: Remove TODO_dump_func.
598 * var-tracking.c: Remove TODO_dump_func.
599 * tree-profile.c: Remove TODO_dump_func.
600 * tree-vect-generic.c: Remove TODO_dump_func.
601 * reg-stack.c: Remove TODO_dump_func.
602 * sched-rgn.c: Remove TODO_dump_func.
603 * tree-ssa-structalias.c: Remove TODO_dump_func.
604 * tree-switch-conversion.c: Remove TODO_dump_func.
605 * tree-cfg.c: Remove TODO_dump_func.
606 * tree-ssa-reassoc.c: Remove TODO_dump_func.
607 * combine-stack-adj.c: Remove TODO_dump_func.
608 * dce.c: Remove TODO_dump_func.
609 * tree-ssanames.c: Remove TODO_dump_func.
610 * regcprop.c: Remove TODO_dump_func.
612 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
615 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
616 and properly handle result not in Pmode.
618 2011-06-14 Robert Millan <rmh@gnu.org>
620 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
621 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
624 * config/i386/kfreebsd-gnu64.h: New file.
625 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
626 with `i386/kfreebsd-gnu64.h'.
628 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
629 (GNU_USER_LINK_EMULATION64): New macros.
630 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
631 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
632 of hardcoding `elf_i386' and `elf_x86_64'.
634 2011-06-14 Nick Clifton <nickc@redhat.com>
637 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
640 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
642 2011-06-14 Jakub Jelinek <jakub@redhat.com>
645 * tree.h (DECL_NONSHAREABLE): Define.
646 (struct tree_decl_common): Change decl_common_unused to
647 decl_nonshareable_flag.
648 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
649 Ignore vars with DECL_NONSHAREABLE bit set.
650 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
651 on stores to automatic aggregate vars.
653 PR rtl-optimization/49390
655 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
657 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
660 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
661 Tom de Vries <tom@codesourcery.com>
664 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
665 Document changed semantics.
666 (max_stmt_executions, max_stmt_executions_int): Declare.
667 * tree-data-ref.c (estimated_loop_iterations)
668 (estimated_loop_iterations_int): Move functions...
669 * tree-ssa-loop-niter.c (estimated_loop_iterations)
670 (estimated_loop_iterations_int): here.
671 (record_estimate): Change nb_iterations_upper_bound and
672 nb_iterations_estimate semantics.
673 (max_stmt_executions, max_stmt_executions_int): New function.
674 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
675 (max_stmt_executions_tree): this.
676 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
677 estimated_loop_iterations_tree.
678 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
679 max_stmt_executions_int instead of estimated_loop_iterations_int.
680 * predict.c (predict_loops): Idem.
681 * tree-parloops.c (parallelize_loops): Idem.
682 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
683 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
684 (init_omega_for_ddr_1): Idem.
685 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
686 (loop_prefetch_arrays): Idem
687 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
688 max_stmt_executions instead of estimated_loop_iterations.
689 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
690 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
691 instead of nb_iterations_upper_bound.
693 2011-06-13 Jan Hubicka <jh@suse.cz>
695 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
697 2011-06-14 Richard Henderson <rth@redhat.com>
700 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
701 (based_loc_descr): Assert it's true.
702 (compute_frame_pointer_to_fb_displacement): Set it, rather than
703 aborting immediately.
705 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
706 Mingfeng Wu <mingfeng@faraday-tech.com>
708 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
710 2011-06-13 Jan Hubicka <jh@suse.cz>
712 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
714 2011-06-13 Jan Hubicka <jh@suse.cz>
716 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
717 similarly to DECL_COMDAT.
718 * cgraphunit.c (cgraph_analyze_function): Likewise.
719 * ipa.c (function_and_variable_visibility): Likewise.
721 2011-06-13 Jan Hubicka <jh@suse.cz>
723 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
724 BINFO_VIRTUALS when streaming for ltrans unit.
726 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
728 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
729 (movdi_internal64): Same.
731 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
734 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
735 a set of similar patterns, where the MATCH_OPERAND for the function
736 argument is replaced with individual references to hardware registers.
737 (save_fpregs_<mode>): Ditto
738 (restore_gpregs_<mode>): Ditto
739 (return_and_restore_gpregs_<mode>): Ditto
740 (return_and_restore_fpregs_<mode>): Ditto
741 (return_and_restore_fpregs_aix_<mode>): Ditto
743 2011-06-13 Jan Hubicka <jh@suse.cz>
745 * ipa-utils.c (postorder_stack): New structure.
746 (ipa_reverse_postorder): Handle aliases.
748 2011-06-13 Jan Hubicka <jh@suse.cz>
750 * ipa-inline.c (reset_edge_caches): Walk aliases.
751 (update_caller_keys): Do not test inlinability of aliases.
752 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
753 (do_estimate_growth): Fix typo.
755 2011-06-13 Jan Hubicka <jh@suse.cz>
757 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
758 (can_remove_node_now_p): ... here; handle same comdat groups.
759 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
760 (inline_call): Update use of can_remove_node_now_p.
762 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
764 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
765 condition to disallow non-identical memory locations.
766 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
767 preference to bit manipulation instructions.
769 2011-06-13 Jan Hubicka <jh@suse.cz>
771 * cgraph.c (cgraph_for_node_thunks_and_aliases,
772 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
773 (nonremovable_p): New function.
774 (cgraph_can_remove_if_no_direct_calls_p): New function.
775 (used_from_object_file_p): New functoin.
776 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
777 references from aliases.
778 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
779 * ipa-inline.c (check_caller_edge): New function.
780 (want_inline_function_called_once_p): Use it; accept aliases called
782 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
784 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
787 * config/arm/neon.md (vec_pack_trunc): Set the lengths
788 correctly for the case with Quad vectors.
790 2011-06-13 Jakub Jelinek <jakub@redhat.com>
791 Ira Rosen <ira.rosen@linaro.org>
793 PR tree-optimization/49352
794 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
795 all, make sure loop_use_stmt after the loop is a def stmt of a used
796 SSA_NAME that is the only one defined inside of the loop. Don't
797 check for COND_EXPR and GIMPLE_BINARY_RHS.
798 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
799 check_reduction is true.
801 2011-06-11 Jan Hubicka <jh@suse.cz>
804 * ipa.c (cgraph_externally_visible_p): Check resolution info.
806 2011-06-11 Jan Hubicka <jh@suse.cz>
809 * ipa-inline-transform.c: Include tree-pass.h
810 (inline_transform): Set TODO_update_ssa_only_virtuals.
811 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
813 2011-06-11 Jan Hubicka <jh@suse.cz>
816 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
819 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
821 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
822 Take number of iterations to peel into account for equally frequent
825 2011-06-11 Jan Hubicka <jh@suse.cz>
827 * lto-streamer-out.c (produce_symtab): Stream out the newly represented
830 2011-06-11 Jan Hubicka <jh@suse.cz>
832 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting varying
834 (ipa_update_after_lto_read): Likewise.
835 (ipa_write_node_info): Do not sream call_with_var_arguments.
836 (ipa_read_node_info): Likewise.
838 2011-06-11 Jan Hubicka <jh@suse.cz>
840 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
842 2011-06-11 Jan Hubicka <jh@suse.cz>
844 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
845 (lto_symtab_resolve_can_prevail_p): Likewise.
846 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
847 * cgraph.c (same_body_aliases_done): New global var.
848 (cgraph_same_body_alias_1): Rename to ...
849 (cgraph_create_function_alias): ... this one; reorg to new
851 (cgraph_same_body_alias): Use cgraph_create_function_alias;
852 record references when asked to.
853 (cgraph_add_thunk): Fix formating.
854 (cgraph_get_node): Kill same body alias code.
855 (cgraph_node_for_asm): Likewise.
856 (cgraph_remove_same_body_alias): Remove.
857 (cgraph_remove_node): Kill same body alias code.
858 (cgraph_mark_address_taken_node): Mark also the aliased function
859 as having address taken.
860 (dump_cgraph_node): Dump same body aliases.
861 (cgraph_for_node_thunks_and_aliases): Update for new alias
863 (cgraph_for_node_and_aliases): Likewise.
864 * cgraph.h (same_body): Kll pointer.
865 (same_body_alias): Update comment.
866 (same_body_aliases_done): Declare.
867 (cgraph_remove_same_body_alias): Remove declaration.
868 (cgraph_create_function_alias): Declare.
869 (cgraph_process_same_body_aliases): Declare.
870 (cgraph_function_with_gimple_body_p): Check for alias.
871 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
872 (cgraph_alias_aliased_node): New function.
873 (cgraph_function_node): Update for new aliases.
874 (cgraph_function_or_thunk_node): Likewise.
875 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
876 (inline_call): Remove dead aliases.
877 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
878 name hack for same body aliases.
879 (clone_of_p): Look through aliases.
880 (verify_cgraph_node): Verify aliases.
881 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
882 (cgraph_process_same_body_aliases): New function.
883 (process_function_and_variable_attributes): Disable weakref warning on
885 (cgraph_analyze_functions): Handle aliases.
886 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
887 (assemble_thunks): Rename to ...
888 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
889 (cgraph_expand_function): Remove alias output code.
890 (cgraph_output_in_order): Skip aliases.
891 (cgraph_preserve_function_body_p): Aliases don't need preserving.
892 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
893 (ipa_record_reference): Do not assert on alias references.
894 (ipa_ref_has_aliases_p): New function.
895 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
896 (ipa_ref_has_aliases_p): Declare.
897 * lto-cgraph.c (lto_output_node): Handle aliases.
898 (input_node): Likewise.
899 * lto-streamer-out.c (lto_output): Skip aliases.
900 (produce_symtab): Kill same_body_alias code.
901 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
902 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
903 * ipa-inline.c (update_caller_keys): Walk aliases.
904 (inline_small_functions): Fix thinko in previous patch.
905 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
906 (function_and_variable_visibility): Do not walk same body aliases.
907 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
908 (ipa_pta_execute): Use it.
910 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
912 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
913 (*vec_dupv2df): Rename from vec_dupv2df.
914 (vec_dupv2df): New expander.
916 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
918 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
920 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
922 * config/i386/i386.md: Use default value in "isa" attribute.
923 * config/i386/sse.md: Ditto.
924 * config/i386/mmx.md: Ditto.
926 2011-06-10 Wei Guozhi <carrot@google.com>
929 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
930 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
931 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
933 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
935 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
936 (arm_legitimate_ldrd_p): New prototype.
937 (arm_output_ldrd): New prototype.
938 * config/arm/arm.c (arm_check_ldrd_operands): New function.
939 (arm_legitimate_ldrd_p): New function.
940 (arm_output_ldrd): New function.
942 2011-06-10 David Li <davidxl@google.com>
944 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
945 * passes.c (passr_eq): New function.
946 (create_pass_tab): New function.
947 (pass_traverse): New function.
948 (dump_one_pass): New function.
949 (dump_pass_list): New function.
950 (dump_passes): New function.
952 2011-06-10 Jan Hubicka <jh@suse.cz>
954 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
955 setting the nothrow flag.
956 * ipa-reference.c (propagate): Skip aliases.
957 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
958 (propagate_nothrow): Skip aliases; do not update cgraph.
959 (local_pure_const): Do not update cgraph.
960 * tree-profile.c (tree_profiling): Do fixup_cfg.
962 2011-06-10 Jan Hubicka <jh@suse.cz>
964 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
965 (cgraph_local_node_p): ... here; handle aliases.
966 (has_addr_references_p): Break out from ...;
967 (cgraph_remove_unreachable_nodes) ... here.
969 2011-06-10 Jan Hubicka <jh@suse.cz>
971 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
972 * common.opt (flag_inline_functions_called_once): Do not
975 2011-06-10 Jan Hubicka <jh@suse.cz>
977 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
978 (ipcp_initialize_node_lattices): Do not deal with aliases;
979 Do not try to propagate through thunks.
980 (ipcp_change_tops_to_bottom): Do not deal with aliases.
982 2011-06-10 Jan Hubicka <jh@suse.cz>
984 * ipa-prop.c (ipa_write_node_info): Stream jump functions
986 (ipa_read_node_info): Likewise.
988 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
991 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
992 (build_and_insert_call): Likewise.
993 (build_and_insert_ref): New.
994 (gimple_expand_builtin_pow): Minor cleanup.
995 (gimple_expand_builtin_cabs): New.
996 (execute_cse_sincos): Add case for BUILT_IN_CABS.
998 2011-06-10 Jan Hubicka <jh@suse.cz>
1000 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
1001 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
1002 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
1003 (ipcp_propagate_stage): Skip aliases when propagating.
1004 (ipcp_need_redirect_p): Skip aliases.
1005 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
1006 collect_callers_of_node.
1007 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
1009 (ipa_compute_jump_functions): Look through aliases.
1011 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1013 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
1015 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
1017 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
1019 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
1021 2011-06-10 Jan Hubicka <jh@suse.cz>
1023 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
1024 Update call of gimple_get_virt_method_for_binfo.
1025 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
1026 refuse_thunks parameter.
1027 (gimple_fold_call): Update.
1028 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
1030 2011-06-10 Jan Hubicka <jh@suse.cz>
1032 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
1033 (not_all_callers_have_enough_arguments_p): ... this one; turn into
1034 worker for cgraph_for_node_and_aliases.
1035 (convert_callers_for_node): Break out from ...
1036 (convert_callers): ... here.
1037 (modify_function): Use collect_callers_of_node.
1038 (ipa_early_sra): Use cgraph_for_node_and_aliases.
1040 2011-06-10 Richard Guenther <rguenther@suse.de>
1042 PR tree-optimization/49361
1043 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
1044 when not already in gimple form.
1046 2011-06-10 Richard Guenther <rguenther@suse.de>
1049 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
1050 FOR_EACH_PHI_OR_STMT_USE.
1052 2011-06-10 Jan Hubicka <jh@suse.cz>
1054 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
1055 (clone_inlined_nodes): ... here.
1056 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
1057 to real destination prior inlining.
1058 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
1059 can_early_inline_edge_p, want_early_inline_function_p,
1060 want_early_inline_function_p, want_inline_small_function_p,
1061 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
1062 edge_badness, update_all_callee_keys, lookup_recursive_calls,
1063 add_new_edges_to_heap, inline_small_functions, flatten_function,
1064 inline_always_inline_functions, early_inline_small_functions): Use
1065 cgraph_function_or_thunk_node.
1066 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
1067 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
1068 (do_estimate_edge_growth_1): Break out from ...
1069 (do_estimate_growth) ... here; walk aliases.
1070 (inline_generate_summary): Skip aliases.
1072 2011-06-10 Richard Guenther <rguenther@suse.de>
1074 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
1075 forward when combining, visit inserted stmts when a stmt was changed.
1077 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
1079 * tree.h (error_operand_p): Add.
1080 * dbxout.c (dbxout_type_fields): Use the latter.
1081 * c-decl.c (add_stmt): Likewise.
1082 * gimplify.c (omp_add_variable, omp_notice_variable,
1083 gimplify_scan_omp_clauses): Likewise.
1085 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
1087 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
1088 when a value is actually passed in regs.
1090 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
1091 Laurent Rougé <laurent.rouge@menta.fr>
1093 * doc/invoke.texi (SPARC options): Add -mflat.
1094 * config/sparc/sparc.opt: Likewise.
1095 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
1096 (sparc_flat_expand_prologue): Declare.
1097 (sparc_flat_expand_epilogue): Likewise.
1098 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
1099 (CPP_ENDIAN_SPEC): Replace with...
1100 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
1101 (CPP_SPEC): Adjust to above change.
1102 (EXTRA_SPECS): Likewise.
1103 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
1104 (INCOMING_REGNO): Likewise.
1105 (OUTGOING_REGNO): Likewise.
1106 (LOCAL_REGNO): Likewise.
1107 (SETUP_FRAME_ADDRESSES): Likewise.
1108 (FIXED_REGISTERS): Set 0 for %fp.
1109 (CALL_USED_REGISTERS): Likewise.
1110 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
1111 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
1112 (RETURN_ADDR_REGNUM): Define.
1113 (RETURN_ADDR_RTX): Use it.
1114 (INCOMING_RETURN_ADDR_REGNUM): Define.
1115 (INCOMING_RETURN_ADDR_RTX): Use it.
1116 (DWARF_FRAME_RETURN_COLUMN): Likewise.
1117 (EH_RETURN_REGNUM): Define.
1118 (EH_RETURN_STACKADJ_RTX): Use it.
1119 (EH_RETURN_HANDLER_RTX): Delete.
1120 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
1121 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
1123 (struct machine_function): Add frame_size, apparent_frame_size,
1124 frame_base_reg, frame_base_offset, n_global_fp_regs and
1125 save_local_in_regs_p fields.
1126 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
1127 sparc_frame_base_offset, sparc_n_global_fp_regs,
1128 sparc_save_local_in_regs_p): New macros.
1129 (sparc_option_override): Error out if -fcall-saved-REG is specified
1131 (eligible_for_restore_insn): Fix formatting.
1132 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
1133 (eligible_for_sibcall_delay): Likewise.
1134 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
1135 (sparc_legitimate_address_p): Adjust to above change.
1136 (save_global_or_fp_reg_p): New predicate.
1137 (return_addr_reg_needed_p): Likewise.
1138 (save_local_or_in_reg_p): Likewise.
1139 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
1140 (SORR_SAVE, SORR_RESTORE): Delete.
1141 (sorr_pred_t): New typedef.
1142 (sorr_act_t): New enum.
1143 (save_or_restore_regs): Rename to...
1144 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
1145 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
1146 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
1147 mechanism. Add CFI information for double-word saves in 32-bit mode.
1148 (emit_adjust_base_to_offset): New function extracted from...
1149 (emit_save_or_restore_regs): ...this. Rename the rest to...
1150 (emit_save_or_restore_regs_global_fp_regs): ...this.
1151 (emit_save_or_restore_regs_local_in_regs): New function.
1152 (gen_create_flat_frame_[123]): New functions.
1153 (sparc_expand_prologue): Use SIZE local variable. Adjust.
1154 (sparc_flat_expand_prologue): New function.
1155 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
1156 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
1157 (sparc_flat_expand_epilogue): New function.
1158 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
1159 (output_return): Likewise.
1160 (output_sibcall): Likewise.
1161 (sparc_output_mi_thunk): Likewise.
1162 (sparc_frame_pointer_required): Likewise.
1163 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
1164 function optimization.
1165 * config/sparc/sparc.md (flat): New attribute.
1166 (prologue): Add TARGET_FLAT handling.
1167 (save_register_window): Disable if TARGET_FLAT.
1168 (create_flat_frame_[123]): New patterns.
1169 (epilogue): Add TARGET_FLAT handling.
1170 (sibcall_epilogue): Likewise.
1171 (eh_return): New expander.
1172 (eh_return_internal): New insn and splitter.
1173 (return_internal): Add TARGET_FLAT handling.
1174 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
1175 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
1176 (nonlocal_goto): Add TARGET_FLAT handling.
1177 * config/sparc/t-elf: Add -mflat multilib.
1178 * config/sparc/t-leon: Likewise.
1180 2011-06-10 Jan Hubicka <jh@suse.cz>
1182 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
1183 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
1184 (self_recursive_p): Use cgraph_function_node.
1185 (propagate_pure_const): Likewise.
1186 (propagate_nothrow): Likewise.
1187 * ipa-reference.c (ipa_reference_get_not_read_global): Use
1188 cgraph_function_node.
1189 (propagate_bits): Likewise.
1190 (propagate): Likewise.
1192 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1193 Richard Earnshaw <rearnsha@arm.com>
1195 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
1196 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
1197 (*thumb2_movdi_vfp): Delete.
1198 (*arm_movdi_vfp_cortexa8): Delete.
1199 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
1200 (*movdi_vfp_cortexa8): Likewise.
1202 2011-06-10 Richard Guenther <rguenther@suse.de>
1204 * stor-layout.c (initialize_sizetypes): Give names to all
1207 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
1209 PR tree-optimization/49318
1210 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
1211 irrelevant pattern statements.
1213 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
1215 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
1218 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
1221 2011-06-09 Jan Hubicka <jh@suse.cz>
1223 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
1224 do not recompute reachable flag.
1225 (cgraph_finalize_function, cgraph_analyze_functions): Set
1226 redefined_extern_inline here.
1228 2011-06-09 Jan Hubicka <jh@suse.cz>
1230 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
1231 (cgraph_only_called_directly_p): ... this one; bring offline.
1232 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
1233 varpool_used_from_object_file_p): Drop names from the declaratoin.
1234 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
1235 collect_callers_of_node): New.
1236 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
1237 (cgraph_edge_recursive_p): Use cgraph_function_node.
1238 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
1239 (cgraph_node_cannot_be_local_p_1): Break out from ...
1240 (cgraph_node_can_be_local_p): ... here; walk aliases.
1241 (cgraph_for_node_thunks_and_aliases): New function.
1242 (cgraph_for_node_and_aliases): New function.
1243 (cgraph_make_node_local_1): Break out from ...
1244 (cgraph_make_node_local) ... here; use
1245 cgraph_for_node_thunks_and_aliases.
1246 (cgraph_set_nothrow_flag_1): Break out from ...
1247 (cgraph_set_nothrow_flag) ... here;
1248 use cgraph_for_node_thunks_and_aliases.
1249 (cgraph_set_const_flag_1): Break out from ...
1250 (cgraph_set_const_flag) ... here;
1251 use cgraph_for_node_thunks_and_aliases.
1252 (cgraph_set_pure_flag_1): Break out from ...
1253 (cgraph_set_pure_flag) ... here;
1254 use cgraph_for_node_thunks_and_aliases.
1255 (cgraph_propagate_frequency_1): Break out from ...
1256 (cgraph_propagate_frequency) ... here; use
1257 cgraph_for_node_thunks_and_aliases.
1258 (cgraph_used_from_object_file_p): Do not care about aliases.
1259 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
1261 (collect_callers_of_node_1, collect_callers_of_node): New functions.
1263 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
1265 PR rtl-optimization/49154
1266 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
1267 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
1268 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
1269 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
1270 * config/cris/cris.h (cris_register_move_cost): Remove
1271 !TARGET_V32 code. Tweak comments.
1273 2011-06-09 Jan Hubicka <jh@suse.cz>
1275 * cgraphbuild.c (record_eh_tables): Mark personality function as having
1278 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
1280 PR rtl-optimization/49154
1281 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
1282 is a matching slot in the hashtable, assign it to classes_ptr.
1284 PR rtl-optimization/49154
1285 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
1287 * doc/tm.texi: Regenerate.
1289 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
1292 * config/sh/sh.md (UNSPEC_CHKADD): New.
1293 (chk_guard_add): New define_insn_and_split.
1294 (symGOT_load): Use chk_guard_add instead of blockage.
1296 2011-06-09 Kai Tietz <ktietz@redhat.com>
1298 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
1300 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
1302 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
1304 2011-06-09 Wei Guozhi <carrot@google.com>
1307 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
1308 (peephole2 for conditional move): Generate 16 bit instructions.
1310 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
1312 * config/i386/i386.md (*movdi_internal_rex64): Merge
1313 alternatives 6 and 8.
1315 2011-06-09 David Li <davidxl@google.com>
1317 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
1318 * passes.c (passr_eq): New function.
1319 (create_pass_tab): New function.
1320 (pass_traverse): New function.
1321 (dump_one_pass): New function.
1322 (dump_pass_list): New function.
1323 (dump_passes): New function.
1325 2011-06-09 David Li <davidxl@google.com>
1327 * tree-complex.c (tree_lower_complex): Gate cleanup.
1328 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
1329 (execute_optimize_stdarg): Ditto.
1330 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
1331 (execute_cleanup_eh_1): Ditto.
1332 (execute_cleanup_eh): Ditto.
1333 * gcse.c (gate_rtl_pre): Ditto.
1334 (execute_rtl_pre): Ditto.
1335 * except.c (finish_eh_generation): Ditto.
1336 (convert_to_eh_region_ranges): Ditto.
1337 * cprop.c (one_cprop_pass): Ditto.
1339 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
1342 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
1343 in all basic blocks.
1345 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1347 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
1348 (HAVE_ENABLE_EXECUTE_STACK): Define.
1349 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
1350 (HAVE_ENABLE_EXECUTE_STACK): Define.
1351 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
1352 (HAVE_ENABLE_EXECUTE_STACK): Define.
1353 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
1354 (ENABLE_EXECUTE_STACK): Remove.
1355 (HAVE_ENABLE_EXECUTE_STACK): Define.
1356 [IN_LIBGCC2]: Don't include <windows.h>.
1357 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
1358 (HAVE_ENABLE_EXECUTE_STACK): Define.
1359 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
1360 (HAVE_ENABLE_EXECUTE_STACK): Define.
1361 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
1362 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
1363 (HAVE_ENABLE_EXECUTE_STACK): Define.
1364 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
1365 (HAVE_ENABLE_EXECUTE_STACK): Define.
1366 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
1367 (HAVE_ENABLE_EXECUTE_STACK): Define.
1368 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
1369 (HAVE_ENABLE_EXECUTE_STACK): Define.
1370 * config/alpha/alpha.c (alpha_trampoline_init): Test
1371 HAVE_ENABLE_EXECUTE_STACK.
1372 * config/i386/i386.c (ix86_trampoline_init): Likewise.
1373 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
1374 (sparc64_initialize_trampoline): Likewise.
1375 * libgcc2.c [L_enable_execute_stack]: Remove.
1376 * system.h (ENABLE_EXECUTE_STACK): Poison.
1377 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
1378 * doc/tm.texi: Regenerate.
1379 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
1381 2011-06-09 Jakub Jelinek <jakub@redhat.com>
1384 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
1385 variable. After resetting and rescanning insn continue with previous
1388 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1390 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
1391 (gcc_cv_ld_hidden): Likewise.
1392 * configure: Regenerate.
1393 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
1394 (ix86_stack_protect_fail): Mark unused.
1395 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
1396 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
1397 [TARGET_MACHO]: Don't define.
1398 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
1399 (TARGET_STACK_PROTECT_FAIL): Likewise.
1400 (rs6000_stack_protect_fail): Mark unused.
1401 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
1402 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
1404 2011-06-08 Andi Kleen <ak@linux.intel.com>
1406 * varasm.c (get_section): Print location of other conflict
1407 for section conflicts.
1409 2011-06-08 Andi Kleen <ak@linux.intel.com>
1411 * config/i386/driver-i386.c (host_detect_local_cpu):
1412 Add model 0x2d Intel CPU.
1414 2011-06-08 Andi Kleen <ak@linux.intel.com>
1416 * reginfo.c (global_regs_decl): Add.
1417 (globalize_reg): Add decl parameter. Compute location. Pass location
1418 to warnings and add inform. Store decl in global_regs_decl.
1419 * rtl.h (globalize_reg): Update prototype.
1420 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
1422 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
1424 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
1426 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
1429 * config/sh/predicates.md (general_movsrc_operand): Check
1430 mode for memory with indexed address for QI and HImode.
1431 (general_movdst_operand): Likewise.
1433 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
1435 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
1437 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
1439 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
1440 (num_ssa_operands): Likewise.
1441 (op_iter_init_phiuse): Forward-declare.
1442 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
1444 2011-06-08 Nick Clifton <nickc@redhat.com>
1446 * doc/invoke.texi (ARM Options): Update description of
1449 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
1451 * config/i386/driver-i386.c (host_detect_local_cpu): Support
1452 unknown Intel family 0x6 CPUs.
1454 2011-06-08 Martin Jambor <mjambor@suse.cz>
1456 * tree-sra.c (mark_rw_status): Removed.
1457 (analyze_access_subtree): New parameter parent instead of
1458 mark_read and mark_write, propagate from that.
1460 2011-06-08 Julian Brown <julian@codesourcery.com>
1462 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
1463 for double-precision helper functions in hard-float mode if only
1464 single-precision arithmetic is supported in hardware.
1466 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
1468 PR rtl-optimization/49303
1469 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
1470 code_motion_path_driver returned 0 or 1.
1471 (sel_region_finish): Clear h_d_i_d.
1473 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
1475 * config/sh/sh.c (prepare_move_operands): Set pic register
1476 appropriately for global and local dynamic tls models even
1477 if flag_pic is unset.
1479 2011-06-07 Jason Merrill <jason@redhat.com>
1481 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
1483 2011-06-07 Xinliang David Li <davidxl@google.com>
1484 * passes.c (enable_disable_pass): Handle assembler name.
1485 (is_pass_explicitly_enabled_or_disabled): Ditto.
1487 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1489 PR tree-optimization/48497
1490 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
1492 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1494 PR tree-optimization/46728
1495 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
1496 to use gimple_val_nonnegative_real_p.
1497 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
1498 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
1500 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
1502 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
1504 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
1506 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
1509 2011-06-07 Richard Guenther <rguenther@suse.de>
1511 * stor-layout.c (initialize_sizetypes): Initialize all
1512 sizetypes based on target definitions.
1513 (set_sizetype): Remove.
1514 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
1515 * tree.h (set_sizetype): Remove.
1517 2011-06-07 Nick Clifton <nickc@redhat.com>
1519 * config.gcc: Unify V850 architecture options and add support for
1520 newer V850 architectures.
1521 * config/v850/t-v850e: Delete.
1523 2011-06-07 Richard Guenther <rguenther@suse.de>
1525 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
1526 Call set_sizetype from here.
1528 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
1530 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
1531 (*maddhisi4tb, *maddhisi4tt): New define_insns.
1533 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
1534 Andrew Stubbs <ams@codesourcery.com>
1536 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
1538 * doc/md.texi (Canonicalization of Instructions): Document widening
1539 multiply canonicalization.
1541 2011-06-07 Jakub Jelinek <jakub@redhat.com>
1543 PR gcov-profile/49299
1544 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
1546 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
1548 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
1550 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
1551 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
1552 vect_recog_pow_pattern): Likewise.
1553 (vect_pattern_recog_1): Remove declaration.
1554 (widened_name_p): Remove declaration. Add new argument to specify
1555 whether to check that both types are either signed or unsigned.
1556 (vect_recog_widen_mult_pattern): Update documentation. Handle
1557 unsigned patterns and multiplication by constants.
1558 (vect_pattern_recog_1): Update vect_recog_func references. Use
1559 statement information from the statement returned from pattern
1560 detection functions.
1561 (vect_pattern_recog): Update vect_recog_func reference.
1562 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
1563 multiplication by a constant use the type of the other operand.
1565 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
1567 PR rtl-optimization/49145
1568 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
1570 2011-06-06 Jakub Jelinek <jakub@redhat.com>
1573 * dwarf2out.c (native_encode_initializer): Decrement count in each
1577 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
1581 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
1582 if stmt folded into nothing.
1583 * tree-inline.c (fold_marked_statements): If a builtin at the end of
1584 a bb folded into nothing, just update cgraph edges and move to next bb.
1585 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
1586 to be NULL. Don't compute count and frequency if new_call is NULL.
1588 2011-06-04 Diego Novillo <dnovillo@google.com>
1590 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
1591 (cgraph.o): Likewise.
1592 (cgraphunit.o): Likewise.
1593 * cgraphunit.c: Include lto-streamer.h
1594 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
1596 * lto-streamer-in.c (unpack_value_fields): Call
1597 streamer_hooks.unpack_value_fields if set.
1598 (lto_materialize_tree): For unhandled nodes, first try to
1599 call lto_streamer_hooks.alloc_tree, if it exists.
1600 (lto_input_ts_decl_common_tree_pointers): Move reading of
1601 DECL_INITIAL to lto_streamer_read_tree.
1602 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
1603 (lto_streamer_read_tree): New.
1604 (lto_reader_init): Rename from lto_init_reader.
1605 Move initialization code to lto/lto.c.
1606 * lto-streamer-out.c (pack_value_fields): Call
1607 streamer_hooks.pack_value_fields if set.
1608 (lto_output_tree_ref): For tree nodes that are not normally indexable,
1609 call streamer_hooks.indexable_with_decls_p before giving up.
1610 (lto_output_ts_decl_common_tree_pointers): Move handling
1611 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
1612 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
1613 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
1614 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
1615 (lto_streamer_write_tree): New.
1616 (lto_output): Call lto_streamer_init directly.
1617 (lto_writer_init): Remove.
1618 * lto-streamer.c (streamer_hooks): New.
1619 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
1620 instead of lto_preload_common_nodes.
1621 (lto_is_streamable): Move from lto-streamer.h
1622 (lto_streamer_hooks_init): New.
1623 (streamer_hooks): New.
1624 (streamer_hooks_init): New.
1625 * lto-streamer.h (struct output_block): Forward declare.
1626 (struct lto_input_block): Likewise.
1627 (struct data_in): Likewise.
1628 (struct bitpack_d): Likewise.
1629 (struct streamer_hooks): Declare.
1630 (streamer_hooks): Declare.
1631 (lto_streamer_hooks_init): Declare.
1632 (lto_streamer_write_tree): Declare.
1633 (lto_streamer_read_tree): Declare.
1634 (streamer_hooks_init): Declare.
1635 (lto_is_streamable): Move to lto-streamer.c
1637 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1639 * longlong.h (smul_ppmm): The resulting register pair contains the
1640 higher order word first.
1642 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1644 PR tree-optimization/46728
1645 * builtins.c (powi_table): Remove.
1646 (powi_lookup_cost): Remove.
1647 (powi_cost): Remove.
1648 (expand_powi_1): Remove.
1649 (expand_powi): Remove.
1650 (expand_builtin_pow_root): Remove.
1651 (expand_builtin_pow): Remove.
1652 (expand_builtin_powi): Eliminate handling of constant exponent.
1653 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
1655 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
1657 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
1659 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
1661 * dce.c (reset_unmarked_insns_debug_uses): New.
1662 (delete_unmarked_insns): Skip debug insns.
1663 (prescan_insns_for_dce): Likewise.
1664 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
1665 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
1666 active reg can be found.
1667 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
1668 (convert_regs_1): Use it.
1670 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
1672 * tree-pretty-print.c (dump_function_header): Add flags.
1673 Don't dump decl_uid with nouid.
1674 * tree-pretty-print.h (dump_function_header): Adjust.
1675 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
1676 * passes.c (pass_init_dump_file): Pass dump_flags on.
1677 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
1679 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
1682 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
1684 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
1686 PR tree-optimization/49243
1687 * calls.c (setjmp_call_p): Also check if fndecl has the
1688 returns_twice attribute.
1690 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1692 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
1695 2011-06-06 Richard Henderson <rth@redhat.com>
1696 Georg-Johann Lay <avr@gjlay.de>
1699 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
1701 * config/avr/avr.md ("insv"): New insn expander.
1702 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
1703 "*insv.not.io", "*insv.reg"): New insns.
1705 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
1708 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
1709 to nonimmediate_operand from memory_operand for the operand that is to
1710 be forced to memory by the expander. Lose the constraints.
1712 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
1714 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
1715 EH return when delayed branches are disabled.
1717 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
1719 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
1720 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
1722 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
1723 Simplify MODE_V1DF and MODE_V2SF handling.
1724 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
1725 Simplify MODE_SF handling.
1727 2011-06-04 Jan Hubicka <jh@suse.cz>
1729 PR tree-optimization/48893
1730 PR tree-optimization/49091
1731 PR tree-optimization/49179
1732 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
1735 2011-06-04 Jan Hubicka <jh@suse.cz>
1738 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
1741 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
1743 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
1745 2011-06-04 Jakub Jelinek <jakub@redhat.com>
1748 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
1749 to be strictly smaller than 1 << shiftcount.
1751 2011-06-04 Jan Hubicka <jh@suse.cz>
1753 PR tree-optimize/48929
1754 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
1757 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
1760 * calls.c (emit_call_1): Prefer the __builtin declaration of
1763 2011-06-03 Diego Novillo <dnovillo@google.com>
1765 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
1766 (lto_input_tree_pointers): Likewise.
1767 * lto-streamer-out.c (pack_value_fields): Likewise.
1768 (lto_output_tree_pointers): Likewise.
1769 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
1770 and OPTIMIZATION_NODE.
1772 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1774 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
1775 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
1776 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
1777 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
1778 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
1779 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
1780 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
1781 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
1782 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
1783 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
1784 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
1785 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
1786 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
1787 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
1788 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
1789 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
1790 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
1791 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
1792 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
1793 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
1794 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
1795 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
1796 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
1797 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
1798 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
1799 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
1800 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
1801 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
1802 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
1803 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
1804 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
1805 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
1806 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
1807 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
1808 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
1809 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
1810 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
1811 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
1812 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
1813 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
1814 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
1815 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
1816 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
1817 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
1818 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
1819 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
1820 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
1821 * system.h (MD_UNWIND_SUPPORT): Poison.
1822 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
1823 * doc/tm.texi: Regenerate.
1824 * unwind-dw2.c: Include md-unwind-support.h instead of
1826 * config/ia64/unwind-ia64.c: Likewise.
1827 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
1829 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
1831 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
1833 2011-06-03 Richard Henderson <rth@redhat.com>
1834 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1836 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
1837 (sigill_hdlr): Correct insn, insn size.
1838 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
1840 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1842 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
1844 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
1845 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
1846 * config/mips/t-iris: Remove.
1847 * config/mips/t-irix6: New file.
1848 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
1850 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1852 * Makefile.in (LIB2ADDEHDEP): Remove.
1853 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
1854 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
1855 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
1856 * config/t-darwin (LIB2ADDEHDEP): Remove.
1857 * config/t-freebsd (LIB2ADDEHDEP): Remove.
1858 * config/t-linux (LIB2ADDEHDEP): Remove.
1860 2011-06-03 Diego Novillo <dnovillo@google.com>
1862 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
1863 (lto_register_var_decl_in_symtab): Likewise.
1864 (lto_register_function_decl_in_symtab): Likewise.
1865 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
1866 logic to uniquify_nodes.
1868 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1870 * config/alpha/t-osf5: Remove.
1871 * config/alpha/t-osf-pthread: Remove.
1872 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
1873 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
1875 2011-06-03 Julian Brown <julian@codesourcery.com>
1877 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
1878 (strongarm1110): Use strongarm tuning.
1879 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
1880 * config/arm/arm.c (arm_strongarm_tune): New.
1881 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
1882 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
1883 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
1884 setting, using previous defaults or 1 for Cortex-A5.
1885 (arm_option_override): Set max_insns_skipped from current tuning.
1887 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
1889 * doc/install.texi (Options specification): Document --with-specs.
1891 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1893 * config/arm/neon.md (orndi3_neon): Actually split it.
1895 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
1897 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
1898 * var-tracking.c (reverse_op): Limite recurse depth to 5.
1900 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
1903 * target.def (delay_sched2, delay_vartrack): New.
1904 * doc/tm.texi.in: Update.
1905 * doc/tm.texi: Rebuild.
1906 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
1907 * var-tracking.c (gate_handle_var_tracking): Likewise.
1908 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
1909 (bfin_flag_var_tracking): Drop.
1910 (output_file_start): Don't save and override flag_var_tracking.
1911 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
1912 (bfin_reorg): Test original variables.
1913 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
1914 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
1915 (ia64_flag_var_tracking): Drop.
1916 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
1917 (ia64_file_start): Don't save and override flag_var_tracking.
1918 (ia64_override_options_after_change): Ditto
1919 flag_schedule_insns_after_reload.
1920 (ia64_reorg): Test original variables.
1921 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
1922 (picochip_flag_var_tracking): Drop.
1923 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
1924 (picochip_option_override): Don't save and override
1925 flag_schedule_insns_after_reload.
1926 (picochip_asm_file_start): Ditto flag_var_tracking.
1927 (picochip_reorg): Test original variables.
1928 * config/spu/spu.c (spu_flag_var_tracking): Drop.
1929 (TARGET_DELAY_VARTRACK): Define.
1930 (spu_var_tracking): New.
1931 (spu_machine_dependent_reorg): Call it.
1932 (asm_file_start): Don't save and override flag_var_tracking.
1934 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
1937 * config/sh/predicates.md (general_movsrc_operand): Return 0
1938 for memory and memory subreg of which address is an invalid
1939 indexed address for QI and HImode.
1940 (general_movdst_operand): Likewise.
1942 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
1944 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
1945 edges only, when there is a non-local label in the function.
1946 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
1948 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
1950 * config/i386/constraints.md (Y3): New register constraint.
1951 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
1952 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
1953 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
1954 *sse2_interleave_lowv2df.
1956 2011-06-02 Julian Brown <julian@codesourcery.com>
1958 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
1959 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
1960 (arm_cortex_a5_tune): New.
1962 2011-06-02 Julian Brown <julian@codesourcery.com>
1964 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
1965 * config/arm/arm.c (arm_default_branch_cost): New.
1966 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
1967 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
1968 (arm_fa726_tune): Set branch_cost field using
1969 arm_default_branch_cost.
1970 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
1971 current_tune structure.
1972 * dojump.c (tm_p.h): Include file.
1974 2011-06-02 Julian Brown <julian@codesourcery.com>
1976 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
1978 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
1979 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
1980 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
1982 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
1983 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
1984 (arm_fa726te_tune): Add prefer_constant_pool setting.
1985 (arm_v6t2_tune, arm_cortex_tune): New.
1986 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
1987 prefer_constant_pool setting.
1989 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
1991 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
1993 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
1994 (*movdf_internal) <case 6,7,8>: Ditto.
1996 * config/i386/constraints.md (Y4): New register constraint.
1997 * config/i386/sse.md (vec_set<mode>_0): Merge with
1998 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
1999 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
2000 *vec_extractv2di_1_sse.
2001 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
2002 and *vec_concatv2di_rex64_sse.
2004 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
2007 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
2008 of cgraph_local_info for null before attempting to use it.
2010 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
2012 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
2013 (current_function_dynamic_alloc_count): Delete.
2014 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
2015 (expand_builtin_nonlocal_goto): Remove obsolete comment.
2016 (expand_builtin_update_setjmp_buf): Remove dead code.
2017 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
2018 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
2020 * function.c (instantiate_virtual_regs): Likewise.
2021 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
2022 for a block with a single abnormal incoming edge.
2023 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
2024 (SETJMP_VIA_SAVE_AREA): Delete.
2025 * config/sparc/sparc-protos.h (load_got_register): Declare.
2026 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
2027 (load_got_register): Make global.
2028 (sparc_frame_pointer_required): Add 'static'.
2029 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
2030 (sparc_builtin_setjmp_frame_value): New function.
2031 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
2032 (save_stack_nonlocal): New expander.
2033 (restore_stack_nonlocal): Likewise.
2034 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
2035 (nonlocal_goto_internal): New insn.
2036 (goto_handler_and_restore): Delete.
2037 (builtin_setjmp_setup): Likewise.
2038 (do_builtin_setjmp_setup): Likewise.
2040 (builtin_setjmp_receiver): New expander.
2042 2011-06-01 David Li <davidxl@google.com>
2045 * tree-pretty-print.c (dump_function_header): Format cleanup.
2047 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
2050 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
2051 needed when original operands are used for msw_skip comparison.
2053 2011-06-01 Jakub Jelinek <jakub@redhat.com>
2056 * var-tracking.c (add_uses, add_stores): Don't call
2057 cselib_subst_to_values on ENTRY_VALUE.
2059 2011-06-01 Diego Novillo <dnovillo@google.com>
2061 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
2062 output_record_start with LTO_null instead of output_zero.
2063 (lto_output_ts_binfo_tree_pointers): Likewise.
2064 (lto_output_tree): Likewise.
2065 (output_eh_try_list): Likewise.
2066 (output_eh_region): Likewise.
2067 (output_eh_lp): Likewise.
2068 (output_eh_regions): Likewise.
2069 (output_bb): Likewise.
2070 (output_function): Likewise.
2071 (output_unreferenced_globals): Likewise.
2072 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
2073 instead of NUM_TREE_CODES.
2074 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
2075 (lto_output_int_in_range): Change << to >> when shifting VAL.
2077 2011-06-01 Diego Novillo <dnovillo@google.com>
2079 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
2080 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
2082 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
2085 * optabs.h (valid_multiword_target_p): Declare.
2086 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
2087 doing multi-word operations.
2088 * optabs.c (expand_binop): Likewise.
2089 (expand_doubleword_bswap): Likewise.
2090 (expand_absneg_bit): Likewise.
2091 (expand_unop): Likewise.
2092 (expand_copysign_bit): Likewise.
2093 (multiword_target_p): New function.
2095 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
2097 PR rtl-optimization/48830
2098 PR rtl-optimization/48808
2099 PR rtl-optimization/48792
2100 * reload.c (push_reload): Check contains_reg_of_mode.
2101 * reload1.c (strip_paradoxical_subreg): New function.
2102 (gen_reload_chain_without_interm_reg_p): Use it to handle
2103 paradoxical subregs.
2104 (emit_output_reload_insns, gen_reload): Likewise.
2106 2011-06-01 David Li <davidxl@google.com>
2108 * predict.c : Change pass name
2111 * tree-profile.c: Ditto.
2114 2011-06-01 David Li <davidxl@google.com>
2116 * tree-pretty-print.c (dump_function_header): New function.
2117 * final.c (rest_of_clean_state): Use header dumper.
2118 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
2119 * passes.c (pass_init_dump_file): Use header dumper.
2121 2011-06-01 Jakub Jelinek <jakub@redhat.com>
2123 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
2124 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
2125 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
2127 (mem_loc_descriptor): Use them.
2129 * var-tracking.c (create_entry_value): New function.
2130 (vt_add_function_parameter): Use it.
2132 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2134 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
2135 Include <signal.h>, <ucontext.h>.
2136 (sigill_caught): Define.
2137 (sigill_hdlr): New function.
2138 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
2139 insns can be executed.
2140 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
2141 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
2143 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2145 * config/t-slibgcc-darwin: Move to ...
2146 * config/t-slibgcc-dummy: ... this. Clarify comments.
2147 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
2148 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
2149 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
2150 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
2151 Remove i386/t-crtstuff from tmake_file.
2152 (i[34567]86-*-solaris2*): Remove t-svr4,
2153 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
2155 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
2156 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
2157 sparc/t-crtfm from tmake_file.
2158 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
2159 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
2161 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
2162 * config/i386/t-nwld (SHLIB_LINK): Remove.
2163 * config/i386/t-rtems-i386: Rename to ...
2164 * config/i386/t-rtems: ... this.
2165 ($(T)crti.o, $(T)crtn.o): Remove.
2166 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
2167 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
2168 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
2169 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
2170 EXTRA_MULTILIB_PARTS): Remove.
2171 * config/sparc/t-sol2-64: Likewise.
2172 * config/sparc/t-sol2: Remove.
2173 * config/sparc/t-crtin: Remove.
2174 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
2175 * config/i386/gmon-sol2.c: Remove.
2176 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
2177 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
2178 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
2179 * config/i386/sol2-gc1.asm: Remove.
2180 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
2181 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
2182 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
2183 * config/t-slibgcc-sld: Remove.
2185 2011-06-01 Jakub Jelinek <jakub@redhat.com>
2187 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
2188 base_type_for_mode with op_mode instead of mode.
2190 2011-06-01 Paul Brook <paul@cpodesourcery.com>
2192 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
2194 * config/arm/arm-tune.md: Regenerate.
2195 * config/arm/arm-tables.opt: Regenerate.
2196 * config/arm/arm.c (FL_DIV): Rename...
2197 (FL_THUMB_DIV): ... to this.
2198 (FL_ARM_DIV): Define.
2199 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
2200 (arm_arch_hwdiv): Remove.
2201 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
2202 (arm_issue_rate): Add cortexr5.
2203 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
2204 __ARM_ARCH_EXT_IDIV__.
2205 (TARGET_IDIV): Define.
2206 (arm_arch_hwdiv): Remove.
2207 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
2208 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
2209 (divsi3, udivsi3): New patterns.
2210 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
2211 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
2213 2011-06-01 Martin Jambor <mjambor@suse.cz>
2215 * ipa-utils.c (ipa_dfs_info): New field scc_no.
2216 * ipa-utils.c (searchc): Set scc_no.
2218 2011-06-01 Martin Jambor <mjambor@suse.cz>
2220 * ipa-utils.c (searchc_env): New field allow_overwritable.
2221 (searchc): do not ignore edges to overwritable nodes if indicated
2222 by env->allow_overwritable.
2223 (ipa_reduced_postorder): Set env.allow_overwritable.
2225 2011-06-01 Richard Guenther <rguenther@suse.de>
2227 * tree.c (free_lang_data): Do not reset boolean_type_node nor
2229 * lto-streamer.c (lto_record_common_node): Take node pointer,
2230 do not register types.
2231 (lto_preload_common_nodes): Explicitly skip preloading nodes
2232 that differ between frontends.
2234 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
2236 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
2239 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
2241 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
2242 parameter value for dump. Dump cost on outermost call only.
2243 (rs6000_memory_move_cost): Dump cost on outermost call only.
2245 2011-05-31 Jakub Jelinek <jakub@redhat.com>
2247 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
2248 DW_OP_GNU_convert ops.
2250 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
2251 cselib_preserve_constants.
2252 (cselib_lookup_1): If cselib_preserve_constants,
2253 a new VALUE is being created for REG and there is a VALUE for the
2254 same register in wider mode, add another loc with lowpart SUBREG of
2256 (cselib_subst_to_values): Handle ENTRY_VALUE.
2257 * var-tracking.c (replace_expr_with_values): Return NULL for
2259 * dwarf2out.c (convert_descriptor_to_signed): New function.
2260 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
2261 instead of two shifts.
2262 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
2263 the right mode if needed.
2264 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
2265 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
2266 convert_descriptor_to_signed.
2267 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
2268 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
2271 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
2273 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
2275 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
2276 of X87MODEI12 and SWI48x instead of SSEMODEI24.
2277 (SWI248x): New mode iterator, rename from X87MODEI.
2278 (X87MODEI): Remove mode iterator.
2279 (X87MODEI12): Ditto.
2280 (SSEMODEI24): Ditto.
2282 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
2284 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
2285 * doc/invoke.texi: Document max-vartrack-expr-depth.
2286 * var-tracking.c (EXPR_DEPTH): New.
2287 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
2289 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
2291 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
2292 * config/i386/sse.md: Add n to negated FMA pattern names.
2294 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
2296 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
2298 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
2300 * gengtype-state.c (read_state_params_structs): Initialize previous.
2302 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
2304 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
2305 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
2307 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
2309 * config/i386/i386.md (*movtf_internal): Avoid allocating general
2310 registers. Penalize F*r->o alternative to prevent partial memory
2311 stalls. Slightly penalize *roF->*r alternative. Generate SSE
2312 CONST_DOUBLE immediates when optimizing function for size. Do not move
2313 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
2314 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
2315 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
2316 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
2318 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
2320 (fp_register_operand splitters): Use fp_register_operand
2321 constraint. Do not use FP_REG_P in insn condition.
2322 (any_fp_register_operand splitters): Use any_fp_register_operand
2323 constraint. Do not use ANY_FP_REG_P in insn condition.
2325 2011-05-31 Jan Hubicka <jh@suse.cz>
2327 * cgraph.h (cgraph_inline_failed_t): Give enum a name
2328 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
2329 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
2330 (lto_output_edge): Use output_enum and var_len_unsigned.
2331 (lto_output_varpool_node): Likewise.
2332 (input_overwrite_node): Do not take resolution parameter;
2333 extract it from a bitpack.
2334 (input_node): Do not read resolution; use input_enum and
2336 (input_varpool_node): Likewise.
2337 (input_edge): Likewise.
2338 (input_cgraph_1): Likewise.
2340 2011-05-31 Richard Guenther <rguenther@suse.de>
2342 * gimple.c (gimple_register_canonical_type): Do not register
2343 any types via gimple_register_type.
2345 2011-05-31 Jan Hubicka <jh@suse.cz>
2347 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
2350 2011-05-31 Jakub Jelinek <jakub@redhat.com>
2352 PR rtl-optimization/49235
2353 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
2354 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
2356 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
2358 PR tree-optimization/49093
2359 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
2362 2011-05-31 Dodji Seketeli <dodji@redhat.com>
2365 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
2366 for concrete functions containing the code of cloned functions.
2368 2011-05-31 Richard Guenther <rguenther@suse.de>
2370 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
2372 (forward_propagate_into_comparison_1): ... this.
2373 (forward_propagate_comparison): Rename to ...
2374 (forward_propagate_into_comparison): ... this. Split out
2375 real forward propagation code to ...
2376 (forward_propagate_comparison): ... this.
2377 (forward_propagate_into_gimple_cond): Remove looping.
2378 (forward_propagate_into_cond): Likewise.
2379 (simplify_not_neg_expr): Return whether we have done something.
2380 (simplify_gimple_switch): Likewise.
2381 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
2382 (ssa_forward_propagate_and_combine): ... this. Re-structure
2383 to do a forward forward-propagation walk on BBs and a backward
2384 stmt combining walk on BBs. Consistently re-scan changed statements.
2385 (pass_forwprop): Adjust.
2387 2011-05-30 Ian Lance Taylor <iant@google.com>
2389 * godump.c (go_format_type): Correct length of name added to
2390 obstack for anonymous field.
2392 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
2395 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
2396 part of the second operand is 0.
2398 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
2400 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
2401 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
2402 to memory for !TARGET_MEMORY_MISMATCH_STALL.
2403 (*movdf_internal_rex64): Do not penalize F->r alternative.
2404 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
2405 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
2406 when optimizing function for size. Do not move CONST_DOUBLEs
2407 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
2408 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
2409 SUBREGs. Do not check for MEM_P operands in the insn condition,
2410 check for ANY_FP_REGNO_P instead.
2411 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
2412 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
2414 * config/i386/i386.c (ix86_option_override_internal): Do not
2415 set TARGET_INTEGER_DFMODE_MOVES here.
2417 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
2420 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
2422 2011-05-30 Jakub Jelinek <jakub@redhat.com>
2424 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
2425 DW_TAG_rvalue_reference_type even for
2426 -gdwarf-4 -fno-debug-types-section.
2428 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2430 PR tree-optimization/46728
2431 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
2432 (build_and_insert_binop): New.
2433 (gimple_expand_builtin_pow): Reorder args for
2434 build_and_insert_call; use build_and_insert_binop; add more
2435 optimizations for fractional exponents.
2437 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
2442 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2444 * tree.h (struct tree_identifier): Inherit from tree_typed, not
2446 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
2447 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
2448 TS_BASE instead of TS_COMMON.
2449 * varasm.c (assemble_name): Remove assert.
2451 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
2453 * config.gcc: Keep obselete list sorted.
2455 2011-05-30 Jakub Jelinek <jakub@redhat.com>
2456 Eric Botcazou <ebotcazou@adacore.com>
2458 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
2459 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
2460 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
2461 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
2462 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
2464 2011-05-30 Richard Guenther <rguenther@suse.de>
2466 * gimple.c (gimple_types_compatible_p_1): Compare record
2467 and union type members properly.
2469 2011-05-30 Richard Guenther <rguenther@suse.de>
2471 PR tree-optimization/49210
2472 * ipa-split.c (split_function): Care for the case where the call
2473 result is not trivially convertible to the result holding variable.
2475 2011-05-30 Richard Guenther <rguenther@suse.de>
2477 PR tree-optimization/49218
2478 * tree-vrp.c (adjust_range_with_scev): Properly check whether
2481 2011-05-30 Richard Guenther <rguenther@suse.de>
2483 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
2484 New function split out from ...
2485 (forward_propagate_into_gimple_cond): ... here. Adjust.
2486 (forward_propagate_into_cond): Likewise.
2487 (forward_propagate_comparison): Also propagate into
2488 comparisons on assignment RHS. Change return value to
2489 behave similar to forward_propagate_into_cond.
2490 (tree_ssa_forward_propagate_single_use_vars): Handle
2491 strict-overflow warnings properly for forward_propagate_comparison.
2493 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2495 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
2497 * configure: Regenerate.
2499 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
2501 PR tree-optimization/49199
2502 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
2503 non-reduction operands are either defined in the loop or by induction.
2505 2011-05-29 Xinliang David Li <davidxl@google.com>
2507 * opts-global.c (handle_common_deferred_options): Handle new options.
2508 * passes.c (register_one_dump_file): Call register_pass_name.
2509 (execute_one_pass): Check explicit enable/disable flag.
2510 (passr_hash): New function.
2512 (register_pass_name): Ditto.
2513 (get_pass_by_name): Ditto.
2516 (enable_pass): Ditto.
2517 (disable_pass): Ditto.
2518 (is_pass_explicitly_enabled_or_disabled): Ditto.
2520 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
2522 * config/i386/i386.md (*movoi_internal_avx): Use
2523 standard_sse_constant_opcode for alternative 0.
2524 (*movti_internal_sse): Ditto.
2525 (*movti_internal_rex64): Use standard_sse_constant_opcode for
2527 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
2529 (*movsi_internal): Ditto.
2530 (*movdi_internal): Ditto. Add ssecvt type moves.
2532 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
2535 * rtlanal.c (simplify_subreg_regno): Adjust comment.
2537 2011-05-29 Jakub Jelinek <jakub@redhat.com>
2539 PR rtl-optimization/49095
2540 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
2541 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
2543 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
2546 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
2547 recurse_p argument. Only follow register copies if it is set,
2548 and prevent mips_find_pic_call_symbol from recursing.
2549 (mips_find_pic_call_symbol): Add a recurse_p argument.
2550 Pass it to mips_pic_call_symbol_from_set.
2551 (mips_annotate_pic_calls): Update accordingly.
2553 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
2555 * emit-rtl.c (try_split): Use a loop to search for
2556 NOTE_INSN_CALL_ARG_LOCATIONs.
2558 2011-05-29 Richard Guenther <rguenther@suse.de>
2560 PR tree-optimization/49217
2561 * ipa-pure-const.c (propagate_pure_const): Fix typos.
2563 2011-05-28 Jan Hubicka <jh@suse.cz>
2565 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
2567 (string_slot_free): Remove
2568 (create_output_block): Initialize obstack.
2569 (destroy_output_block): Free obstack.
2570 (lto_string_index): Add PERSISTENT parameter; do not duplicate
2571 the string unless it needs to be added into the hash.
2572 (lto_output_string_with_length): Add persistent attribute;
2573 handle NULL strings.
2574 (lto_output_string): Add PERSISTENT parameter.
2575 (output_string_cst, output_identifier): Simplify.
2576 (lto_output_location_bitpack): Update.
2577 (lto_output_builtin_tree): Update.
2578 * lto-streamer.h (struct output_block): Add obstack.
2579 (lto_output_string, lto_output_string_with_length): Remove
2580 declarations; functions are static now.
2582 2011-05-28 Jan Hubicka <jh@suse.cz>
2584 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
2585 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
2586 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
2587 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
2588 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
2589 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
2590 unpack_ts_decl_with_vis_value_fields,
2591 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
2592 lto_get_builtin_tree): Use enum and variable length i/o.
2593 * basic-block.h (profile_status_d): Add PROFILE_LAST.
2594 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
2596 (bp_pack_enum, bp_unpack_enum): New macros.
2598 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
2600 * genrecog.c: Remove redundant forward declarations.
2602 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
2604 * config.gcc: Deprecate mips*-*-openbsd*.
2606 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
2609 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
2612 2011-05-27 Andrew Pinski <pinskia@gmail.com>
2615 * gengtype.c (vec_prefix_type): New function.
2616 (note_def_vec): Use vec_prefix_type and change the length
2617 attribute to be based on the prefix.
2618 * vec.c: Include coretypes.h before vec.h.
2619 (struct vec_prefix): Remove.
2620 (vec_gc_p_reserve): Change the offsetof to sizeof.
2621 (vec_gc_p_reserve_exact): Likewise.
2622 (vec_heap_p_reserve): Likewise.
2623 (vec_heap_p_reserve_exact): Likewise.
2624 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
2625 (vec_stack_p_reserve): Change the offsetof to sizeof.
2626 (vec_stack_p_reserve_exact): Likewise.
2627 * vec.h (struct vec_prefix): New struct definition.
2628 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
2629 (VEC_T_GTY(T,B)): Likewise.
2630 (DEF_VEC_FUNC_P(T)): Use prefix field.
2631 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
2632 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
2634 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2636 PR tree-optimization/46728
2637 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
2638 (powi_as_mults): Add gimple_set_location.
2639 (build_and_insert_call): New.
2640 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
2641 0.5, 0.25, 0.75, 1./3., or 1./6.
2643 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
2645 * doc/contrib.texi: Update copyright years.
2646 (Contributors): Add Zdenek Sojka.
2648 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
2650 * c-decl.c (c_push_function_context): Copy the current statement
2652 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
2653 (finish_struct): Call building_stmt_list_p instead of checking
2655 * c-parser.c (c_parser_postfix_expression): Likewise.
2656 * c-typeck.c (c_end_compound_stmt): Likewise.
2657 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
2658 * tree-iterator.c (stmt_list_cache): Change to a VEC.
2659 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
2660 (free_stmt_list): Likewise.
2661 * tree.h (struct tree_statement_list): Include typed_tree instead
2663 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
2664 as TS_TYPED instead of TS_COMMON.
2666 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2667 Uros Bizjak <ubizjak@gmail.com>
2669 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
2670 (HAVE_AS_IX86_TLSGDPTL): Define.
2671 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
2672 (HAVE_AS_IX86_TLSLDMPLT): Define.
2673 * configure: Regenerate.
2674 * config.in: Regenerate.
2675 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
2676 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
2677 TARGET_SUN_TLS, use @tlsgdplt or @plt.
2678 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
2679 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
2681 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
2683 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
2685 * sched-int.h (struct _haifa_deps_insn_data): New members cond
2687 (INSN_COND, INSN_REVERSE_COND): New macros.
2688 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
2690 (sched_get_condition_with_rev): Cache the results, and look them up
2692 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
2693 are clobbered by the current insn.
2694 * target.def (exposed_pipline): New sched data hook.
2695 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
2696 * doc/tm.texi: Regenerate.
2698 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2700 PR tree-optimization/49170
2701 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
2704 2011-05-27 Richard Guenther <rguenther@suse.de>
2707 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
2710 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
2712 * haifa-sched.c (sched_scan_info): Remove.
2713 (schedule_block): Call sched_extend_luids rather than sched_init_luids
2715 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
2717 (sched_scan): Remove.
2718 (sched_extend_luids): Renamed from luids_extend_insn and no longer
2719 static. All callers changed.
2720 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
2721 static. All callers changed.
2722 (sched_init_luids): Remove all arguments except the first. All
2723 callers changed. Don't use sched_scan.
2724 (haifa_init_h_i_d): Likewise.
2725 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
2726 manually rather than using sched_init_luids. Likewise with
2727 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
2728 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
2729 rather than sched_init_luids with NULL args.
2730 * sel-sched-ir.c (new_insns): Remove variable.
2731 (sched_scan): New static function, previously in haifa-sched.c. Remove
2732 all arguments but the first two; all callers changed.
2733 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
2734 rather than sched_init_luids.
2735 (sel_init_bbs): Remove second argument. All callers changed.
2736 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
2737 with NULL arguments.
2738 (create_insn_rtx_from_pattern): Likewise.
2739 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
2740 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
2741 (sched_init_insn_luid, sched_extend_luids): Declare.
2742 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
2745 2011-05-27 Richard Guenther <rguenther@suse.de>
2748 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
2749 A CMP B ? (T) true : (T) false for non-integral types T again.
2751 2011-05-27 Jan Hubicka <jh@suse.cz>
2753 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
2754 so 0 means NULL string.
2755 (lto_output_string_with_length): ... here.
2756 (lto_output_string, output_string_cst, output_identifier): Update
2757 handling of NULL strings.
2758 (lto_output_location_bitpack): New function.
2759 (lto_output_location): Use it.
2760 (lto_output_tree_ref): Use output_record_start.
2761 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
2763 * lto-streamer-in.c (string_for_index): Break out from ...; offset
2765 (input_string_internal): ... here;
2766 (input_string_cst, input_identifier, lto_input_string): Update handling
2768 (lto_input_location_bitpack): New function
2769 (lto_input_location): Use it.
2770 (unpack_ts_type_common_value_fields): Pack align & alias in var len
2772 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
2773 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
2774 (bp_pack_value): Sanity check the value range.
2775 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
2777 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
2780 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
2782 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
2783 call_arg_location instructions down the floor.
2785 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
2787 PR rtl-optimization/49154
2788 * ira.c (setup_pressure_classes): Process class without sublcasses
2789 as a candidate for pressure classes.
2791 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
2793 PR rtl-optimization/48575
2794 * genrecog.c (position_type): New enum.
2795 (position): New structure.
2796 (decision): Use position structure instead of a string.
2797 (root_pos, peep2_insn_pos_list): New variables.
2798 (next_position, compare_positions): New functions.
2799 (new_decision): Use position structures instead of strings.
2800 (maybe_both_true): Likewise.
2801 (change_state): Likewise.
2802 (write_tree): Likewise.
2803 (make_insn_sequence): Likewise.
2805 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2807 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
2808 TS_BASE instead of TS_COMMON.
2809 (find_decls_types_r): Check for TS_TYPED structure before looking at
2811 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
2813 (BLOCK_CHAIN): Use new chain field.
2815 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
2817 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
2818 moves expensive on Power7 also.
2820 2011-05-26 Richard Guenther <rguenther@suse.de>
2822 * fold-const.c (fold_unary_loc): Remove bogus code.
2824 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2826 * tree.h (struct tree_identifier): Inherit from tree_typed, not
2828 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
2829 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
2830 TS_BASE instead of TS_COMMON.
2831 * varasm.c (assemble_name): Remove assert.
2833 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
2835 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
2837 * libgcc-std.ver: Delete file.
2839 2011-05-26 Richard Guenther <rguenther@suse.de>
2841 PR tree-optimization/48702
2842 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
2843 only when we know the base address is within bounds.
2844 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
2845 assume the base address of TARGET_MEM_REFs is in bounds.
2847 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2850 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
2851 declaration in TARGET_SOLARIS.
2853 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
2855 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
2856 The instruction is then expanded explicitly.
2857 (supported_compare): Callable instruction.
2858 (compare): Likewise.
2860 2011-05-26 Jakub Jelinek <jakub@redhat.com>
2863 * gimplify.c (shortcut_cond_r): Don't special case
2864 COND_EXPRs if they have void type on one of their arms.
2866 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
2868 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
2869 to reduce duplication, and to achieve a slightly more logical order
2872 2011-05-26 Jakub Jelinek <jakub@redhat.com>
2874 PR tree-optimization/49161
2875 * tree-vrp.c (struct case_info): New type.
2876 (compare_case_labels): Sort case_info structs instead of
2877 trees, and not primarily by CASE_LABEL uids but by
2878 label_for_block indexes.
2879 (find_switch_asserts): Put case labels into struct case_info
2880 array instead of TREE_VEC, adjust sorting, compare label_for_block
2881 values instead of CASE_LABELs.
2883 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2885 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
2886 ("orndi3_neon"): Likewise.
2887 ("bic<mode>3_neon"): Likewise.
2889 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
2891 PR tree-optimization/49038
2892 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
2893 Ensure at least one epilogue iteration if required by data
2895 * tree-vectorizer.h (struct _loop_vec_info): Add new field
2896 to mark loops that require peeling for gaps.
2897 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
2898 (vect_get_known_peeling_cost): Take peeling for gaps into
2900 (vect_transform_loop): Generate epilogue if required by data
2902 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
2903 loop as requiring an epilogue if there are gaps in the end of
2906 2011-05-25 Ian Lance Taylor <iant@google.com>
2908 * godump.c (go_format_type): Output the first field with a usable
2911 2011-05-25 Ian Lance Taylor <iant@google.com>
2913 * godump.c (go_format_type): Check for invalid type names, pointer
2914 target types, and struct field types.
2916 2011-05-25 Jason Merrill <jason@redhat.com>
2918 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
2920 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
2922 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
2924 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
2926 * config/i386/i386.md (*movqi_extv_1)): Put back
2927 "register_operand" check in "type" calculation.
2928 (*movqi_extzv_2): Likewise.
2930 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
2932 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
2934 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
2937 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
2938 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
2939 __divxc3, __divtc3): Wrap definitions in #ifndef.
2941 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
2944 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
2945 "register_operand" check and replace q_regs_operand with
2946 QIreg_operand in "type" calculation.
2947 (*movqi_extv_1): Likewise.
2948 (*movqi_extzv_2_rex64): Likewise.
2949 (*movqi_extzv_2): Likewise.
2951 * config/i386/predicates.md (QIreg_operand): New.
2953 2011-05-25 Richard Guenther <rguenther@suse.de>
2955 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
2956 type-based offset disambiguation, streamline MEM_REF and
2957 TARGET_MEM_REF handling.
2959 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
2961 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
2962 (bdesc_special_args): Add pause intrinsic.
2964 * config/i386/i386.md (UNSPEC_PAUSE): New.
2967 * config/i386/ia32intrin.h (__pause): Likewise.
2969 * doc/extend.texi (X86 Built-in Functions): Add documentation for
2972 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2974 PR tree-optimization/46728
2975 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
2976 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
2978 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
2980 * tree.h (struct tree_exp): Inherit from struct tree_typed.
2981 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
2982 instead of TS_COMMON.
2984 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
2986 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
2987 LIBGCC2_GNU_PREFIX is defined.
2989 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
2990 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
2991 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
2992 __clz_tab): Define using __N.
2993 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
2994 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
2995 * target.def (libfunc_gnu_prefix): New hook.
2996 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
2997 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
2998 * doc/tm.texi: Regenerate.
2999 * system.h (LIBGCC2_GNU_PREFIX): Poison.
3000 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
3002 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
3003 (init_optabs): Likewise for the bswap libfuncs.
3004 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
3006 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
3007 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
3008 * libgcc-std.ver: Remove.
3009 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
3010 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
3012 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
3013 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
3014 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
3015 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
3016 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
3017 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
3018 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
3019 * config/fixed-bit.h (FIXED_OP): Define differently depending on
3020 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
3021 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
3023 2011-05-25 Jan Hubicka <jh@suse.cz>
3025 * lto-streamer-out.c (output_record_start): Use lto_output_enum
3026 (lto_output_tree): Use output_record_start.
3027 * lto-streamer-in.c (input_record_start): Use lto_input_enum
3028 (lto_get_pickled_tree): Use input_record_start.
3029 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
3030 (lto_value_range_error): New function.
3031 * lto-streamer.h (lto_value_range_error): Declare.
3032 (lto_output_int_in_range, lto_input_int_in_range): New functions.
3033 (lto_output_enum, lto_input_enum): New macros.
3035 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
3037 * common.opt (flag_stack_usage_info): New variable.
3038 (-Wstack-usage): New option.
3039 * doc/invoke.texi (Warning options): Document -Wstack-usage.
3040 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
3041 <OPT_fstack_usage>: Likewise.
3042 * toplev.c (output_stack_usage): Handle -Wstack-usage.
3043 * calls.c (expand_call): Test flag_stack_usage_info variable instead
3044 of flag_stack_usage.
3045 (emit_library_call_value_1): Likewise.
3046 * explow.c (allocate_dynamic_stack_space): Likewise.
3047 * function.c (instantiate_virtual_regs ): Likewise.
3048 (prepare_function_start): Likewise.
3049 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
3050 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
3051 * config/arm/arm.c (arm_expand_prologue): Likewise.
3052 (thumb1_expand_prologue): Likewise.
3053 * config/avr/avr.c (expand_prologue): Likewise.
3054 * config/i386/i386.c (ix86_expand_prologue): Likewise.
3055 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
3056 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
3057 * config/mips/mips.c (mips_expand_prologue): Likewise.
3058 * config/pa/pa.c (hppa_expand_prologue): Likewise.
3059 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
3060 * config/s390/s390.c (s390_emit_prologue): Likewise.
3061 * config/sh/sh.c (sh_expand_prologue): Likewise.
3062 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
3063 * config/spu/spu.c (spu_expand_prologue): Likewise.
3065 2011-05-25 Richard Guenther <rguenther@suse.de>
3067 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
3068 (gimple_canonical_types_compatible_p): Likewise.
3070 2011-05-25 Jan Hubicka <jh@suse.cz>
3073 * ipa.c (function_and_variable_visibility): Only add to same
3074 comdat group list if DECL_ONE_ONLY.
3076 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
3078 PR rtl-optimization/49014
3079 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
3081 2011-05-25 Jakub Jelinek <jakub@redhat.com>
3084 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
3086 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
3088 PR rtl-optimization/48757
3089 * ira-build.c (loop_with_eh_edge_p): Rename to
3090 loop_with_complex_edge_p, check edges on complexity, make function
3092 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
3095 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
3097 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
3098 force flag_ira_share_save_slots to 0.
3100 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
3102 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
3103 (vt_initialize): Set PROLOGUE_BB unconditionally.
3104 Add block comment about CFA_BASE_RTX machinery.
3105 Reset FP_CFA_OFFSET to -1 on all invalid paths.
3106 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
3108 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
3111 * c-parser.c (c_parser_objc_class_instance_variables): More robust
3112 parsing of syntax error in ObjC instance variable lists. In
3113 particular, avoid an infinite loop if there is a stray ']'.
3114 Updated error message.
3116 2011-05-24 Ian Lance Taylor <iant@google.com>
3118 * godump.c (go_define): Don't accept a string immediately after
3121 2011-05-24 Ian Lance Taylor <iant@google.com>
3123 * godump.c (struct godump_container): Add invalid_hash field.
3124 (go_format_type): Return false if type is found in invalid_hash.
3125 (go_output_typedef): Add invalid type to invalid_hash.
3126 (go_finish): Create and delete invalid_hash.
3128 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3130 PR tree-optimization/46728
3131 * tree-ssa-math-opts.c (powi_table): New.
3132 (powi_lookup_cost): New.
3134 (powi_as_mults_1): New.
3135 (powi_as_mults): New.
3136 (gimple_expand_builtin_powi): New.
3137 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
3138 (gate_cse_sincos): Remove sincos/cexp restriction.
3140 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3143 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
3145 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
3146 * mips-tdump.c: Likewise.
3148 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
3151 * config/i386/driver-i386.c (host_detect_local_cpu): Always
3152 add -mno-XXX. Handle FMA.
3154 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
3156 PR rtl-optimization/48633
3157 * ira-build.c (loop_with_eh_edge_p): New function.
3158 (mark_loops_for_removal): Use it.
3160 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
3162 PR rtl-optimization/48971
3163 * ira.c (setup_pressure_classes): Don't check register move cost
3164 for classes with one registers. Don't add pressure class if there
3165 is a pressure class with the same available hard registers.
3166 Check contains_reg_of_mode. Fix a typo in collecting
3167 temp_hard_regset. Ignore hard registers not belonging to a class.
3169 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
3172 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
3174 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
3175 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3177 PR gcov-profile/48845
3178 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
3180 2011-05-24 Richard Guenther <rguenther@suse.de>
3182 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
3183 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
3184 (gimple_types_compatible_p_1): Adjust.
3185 (iterative_hash_canonical_type): Do not bother about complete vs.
3187 (gimple_canonical_types_compatible_p): Likewise.
3189 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3191 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
3193 2011-05-24 Richard Guenther <rguenther@suse.de>
3196 * gimple.c (gimple_register_canonical_type): Revert
3198 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
3199 does not for a tree for the case where it matters. Cache
3200 pointer-type alias-sets.
3202 2011-05-24 Joseph Myers <joseph@codesourcery.com>
3204 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
3205 (OBJS): Remove options.o, opts-common.o and prefix.o.
3206 (OBJS-libcommon-target): New.
3207 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
3208 (BACKEND): Include libcommon-target.a.
3209 (MOSTLYCLEANFILES): Include libcommon-target.a.
3210 (libcommon-target.a): New.
3211 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
3214 2011-05-23 Joseph Myers <joseph@codesourcery.com>
3216 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
3217 parts of output shared with the driver.
3218 * optc-gen.awk: Don't generate parts of output not shared with the
3220 * opth-gen.awk: Remove GCC_DRIVER conditionals.
3221 * doc/options.texi (SourcerInclude): Mention options-save.c.
3222 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
3223 (OBJS): Add options-save.o.
3224 (options-save.c, options-save.o): New.
3225 (options.o): Update dependencies.
3226 (gcc-options.o): Remove.
3227 (mostlyclean): Remove options-save.c.
3229 2011-05-23 Jakub Jelinek <jakub@redhat.com>
3232 * dbxout.c: Include cgraph.h.
3233 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
3234 and without value expr, return NULL if no varpool node exists for
3235 it or if it is not needed.
3236 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
3239 * c-decl.c (start_decl): Convert expr to void_type_node.
3241 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
3243 PR rtl-optimization/48826
3244 * emit-rtl.c (try_split): When splitting a call that is followed
3245 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
3247 2011-05-23 Jakub Jelinek <jakub@redhat.com>
3249 * cfgexpand.c (expand_debug_expr): For unused non-addressable
3250 parameters passed in memory prefer using DECL_INCOMING_RTL over
3251 the pseudos it will be copied into.
3253 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
3256 * config/i386/i386.c (ix86_option_override_internal): Save the
3257 initial options after checking vzeroupper.
3259 2011-05-23 David Li <davidxl@google.com>
3261 PR tree-optimization/48988
3262 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
3263 Initialize has_valid_pred for each pred chain.
3265 2011-05-23 Richard Guenther <rguenther@suse.de>
3267 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
3268 (iterative_hash_gimple_type): Always hash type names.
3270 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
3272 * c-typeck.c (build_function_call_vec): Tweak call to
3273 check_function_arguments.
3275 2011-05-23 Richard Guenther <rguenther@suse.de>
3277 PR tree-optimization/49115
3278 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
3279 is not necessarily carried out, do not claim it kills the ref.
3280 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
3282 2011-05-23 Richard Guenther <rguenther@suse.de>
3285 * builtins.c (fold_builtin_memory_op): Be less restrictive about
3286 what pointer types we accept for folding.
3288 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3290 * gthr-gnat.c: Remove.
3291 * gthr-gnat.h: Remove.
3292 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
3293 * config/t-freebsd (LIB2ADDEH): Likewise.
3294 * config/t-linux (LIB2ADDEH): Likewise.
3295 * config/t-sol2 (LIB2ADDEH): Likewise.
3296 * config/ia64/t-vms (LIB2ADDEH): Likewise.
3297 * configure.ac (target_thread_file): Remove gnat handling.
3298 * configure: Regenerate.
3299 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
3301 2011-05-23 Tristan Gingold <gingold@adacore.com>
3302 Eric Botcazou <ebotcazou@adacore.com>
3304 * gcov.c (create_file_names): If no object directory is specified,
3305 keep the directory of the file.
3307 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3309 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
3310 * configure: Regenerate.
3312 2011-05-23 Jakub Jelinek <jakub@redhat.com>
3315 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
3316 failed and the comparison has a single bit signed type, use
3317 constm1_rtx instead of const1_rtx for true value.
3318 (do_store_flag): If ops->type is single bit signed type, disable
3319 signel bit test optimization and pass -1 instead of 1 as last
3320 parameter to emit_store_flag_force.
3322 2011-05-23 Tom de Vries <tom@codesourcery.com>
3325 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
3327 (infer_loop_bounds_from_undefined): Use new function.
3329 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
3331 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
3332 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
3333 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
3335 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
3337 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
3339 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
3340 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
3343 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
3345 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
3347 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
3349 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
3350 UNSPEC_MOVE_PIC pattern.
3352 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
3354 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
3355 (sparc-*-rtems*): Likewise.
3356 (sparc64-*-elf*): Likewise.
3357 (sparc64-*-rtems*): Likewise.
3358 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
3359 * config/sparc/t-crtin: New file.
3360 * config/sparc/t-sol2 (crti.o): Delete rule.
3362 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
3363 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
3364 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
3365 (ENDFILE_SPEC): Add crtn.o.
3367 2011-05-22 Tom de Vries <tom@codesourcery.com>
3370 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
3371 CODE_CONTAINS_STRUCT (TS_COMMON).
3373 2011-05-22 Jakub Jelinek <jakub@redhat.com>
3376 * expmed.c (extract_fixed_bit_field): Test whether target can be used
3377 only after deciding which mode to use.
3379 2011-05-22 Tom de Vries <tom@codesourcery.com>
3382 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
3383 for call to get_shiftadd_cost.
3385 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
3388 * config/i386/cpuid.h (bit_MMXEXT): New define.
3390 2011-05-22 Nick Clifton <nickc@redhat.com>
3392 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
3393 initialisation of non-existant args[2] element. Use args[] array
3394 not arg[] array to pass arguments to build_function_type_list.
3396 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
3398 PR tree-optimization/49087
3399 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
3401 2011-05-21 Jason Merrill <jason@redhat.com>
3404 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
3405 static storage duration.
3407 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
3409 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
3412 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
3414 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
3415 false if there are call-saved registers here...
3416 (sparc_can_use_return_insn_p): ...but here instead.
3417 (save_or_restore_regs): Fix thinko.
3418 (sparc_expand_prologue): Use current_function_is_leaf.
3419 (sparc_frame_pointer_required): Likewise.
3421 2011-05-21 Nick Clifton <nickc@redhat.com>
3424 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
3426 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
3428 * gengtype.c (walk_type): Implemented "atomic" GTY option.
3429 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
3431 2011-05-21 Joseph Myers <joseph@codesourcery.com>
3433 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
3434 * optc-gen.awk: Move common code to opt-read.awk.
3435 * opth-gen.awk: Likewise.
3436 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
3438 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
3440 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
3442 2011-05-20 Tom de Vries <tom@codesourcery.com>
3445 * tree-ssa-loop-ivopts.c: Include expmed.h.
3446 (get_shiftadd_cost): New function.
3447 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
3449 2011-05-20 Jakub Jelinek <jakub@redhat.com>
3452 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
3453 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
3455 2011-05-20 Joseph Myers <joseph@codesourcery.com>
3457 * Makefile.in: Update comment referring to $(OBJS-common).
3459 2011-05-20 Ian Lance Taylor <iant@google.com>
3461 * godump.c (go_output_typedef): Put enum constants in the macro
3462 hash table to avoid duplicate Go const definitions.
3464 2011-05-20 Joseph Myers <joseph@codesourcery.com>
3466 * Makefile.in (LIBDEPS): Add libcommon.a.
3468 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
3469 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
3470 pretty-print.o and version.o.
3471 (OBJS-libcommon): New.
3472 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
3473 (BACKEND): Add libcommon.a.
3474 (MOSTLYCLEANFILES): Likewise.
3476 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
3477 (cpp$(exeext)): Likewise.
3478 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
3479 pretty-print.o and input.o.
3480 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
3481 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
3483 (mips-tfile): Don't explicitly use version.o.
3484 (mips-tdump): Likewise.
3485 (gcov.o): Depend on $(DIAGNOSTIC_H).
3486 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
3487 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
3488 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
3489 * gcov-dump.c: Include intl.h and diagnostic.h.
3490 (main): Initialize diagnostics.
3491 * gcov.c: Include diagnostic.h.
3493 (main): Initialize diagnostics.
3494 * lto-wrapper.c: Include diagnostic.h.
3495 (main): Initialize diagnostics.
3497 2011-05-20 Michael Matz <matz@suse.de>
3499 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
3501 2011-05-20 Michael Matz <matz@suse.de>
3502 Richard Guenther <rguenther@suse.de>
3504 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
3505 use lto_streamer_cache_append directly instead of returning a VEC.
3506 (preload_common_node): Remove.
3507 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
3509 (lto_streamer_cache_create): Call lto_preload_common_nodes.
3511 2011-05-20 Richard Guenther <rguenther@suse.de>
3513 PR tree-optimization/49079
3514 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
3515 MEM_REFs correctly for the trailing array access detection.
3516 Special case constants the same way as decls for overall size
3519 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
3521 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
3524 2011-05-20 Jakub Jelinek <jakub@redhat.com>
3526 PR tree-optimization/49073
3527 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
3528 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
3529 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
3531 2011-05-20 Richard Guenther <rguenther@suse.de>
3534 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
3535 of pointer types the same way the middle-end does.
3537 2011-05-20 Richard Guenther <rguenther@suse.de>
3539 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
3540 or pointer-to chains. Delay all fixup to uniquify_nodes.
3542 2011-05-19 Quentin Neill <quentin.neill@amd.com>
3544 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
3545 (fma4_fmaddsub): Likewise
3547 2011-05-19 Jan Hubicka <jh@suse.cz>
3549 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
3550 (GIMPLE_TYPE_PAIR_SIZE): New macro.
3551 (type_pair_cache): New static var.
3552 (lookup_type_pair): Use fixed sized custom hash; make inline.
3553 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
3554 calls of lookup_type_pair.
3555 (print_gimple_types_stats): Remove cache stats.
3556 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
3559 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
3561 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
3562 when TARGET_RDRND is active.
3563 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
3564 Generate dummy SImode target register when target is NULL.
3566 2011-05-19 Joseph Myers <joseph@codesourcery.com>
3568 * config/arm/arm-fpus.def: New.
3569 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
3571 * config/arm/arm-tables.opt: Regenerate.
3572 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
3573 (arm_option_override): Don't decode FPU name to string here.
3574 * config/arm/arm.opt (mfpu=): Use Enum.
3575 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
3576 Update dependencies.
3578 2011-05-19 Joseph Myers <joseph@codesourcery.com>
3580 * collect2.c: Include diagnostic.h.
3581 (fatal_perror, fatal, error, fancy_abort): Remove.
3582 (main): Set progname. Call xmalloc_set_program_name and
3583 diagnostic_initialize.
3584 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
3585 scan_libraries, resolve_lib_name): Call fatal_error instead of
3586 fatal and fatal_perror.
3587 * collect2.h (error, fatal, fatal_perror): Don't declare.
3588 * tlink.c: Include diagnostic-core.h.
3589 (recompile_files): Call fatal_error instead of fatal_perror.
3590 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
3591 pretty-print.o and input.o.
3592 (collect2.o, tlink.o): Update dependencies.
3594 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3596 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
3598 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3601 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
3602 COMDAT group syntax, both SPARC and x86 variants.
3603 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
3604 * configure: Regenerate.
3605 * config/sol2.h (TARGET_SOLARIS): Define.
3606 (PUSHSECTION_FORMAT): Remove.
3607 (SECTION_NAME_FORMAT): Define.
3608 * config/sol2.c: Include hashtab.h.
3609 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
3610 expansion, using SECTION_NAME_FORMAT.
3611 (solaris_comdat_htab): New variable.
3612 (struct comdat_entry): Define.
3613 (comdat_hash): New function.
3614 (comdat_eq): New function.
3615 (solaris_elf_asm_comdat_section): New function.
3616 (solaris_define_comdat_signature): New function.
3617 (solaris_code_end): New function.
3618 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
3619 (solaris_code_end): Declare.
3620 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
3621 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
3623 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
3624 Remove ATTRIBUTE_UNUSED.
3625 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
3626 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
3627 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
3628 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
3629 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
3630 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
3631 (PUSHSECTION_FORMAT): Remove.
3632 (SECTION_NAME_FORMAT): Redefine.
3634 2011-05-19 Kai Tietz <ktietz@redhat.com>
3636 * tree-cfg.c (verify_gimple_assign_binary): Barf on
3637 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
3638 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
3640 2011-05-19 Anatoly Sokolov <aesok@post.ru>
3641 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3643 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
3645 2011-05-19 Richard Guenther <rguenther@suse.de>
3648 * tree-object-size.c (addr_object_size): If the pointed-to
3649 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
3651 2011-05-19 Richard Guenther <rguenther@suse.de>
3653 * gimple.c (gimple_types_compatible_p_1): Compare names of
3654 the types themselves.
3655 (iterative_hash_gimple_type): And hash them that way.
3656 (gimple_register_type_1): If we register a main variant properly
3657 initialize the leader to ourselves.
3659 2011-05-19 Tom de Vries <tom@codesourcery.com>
3662 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
3663 get_loop_invariant_expr_id.
3664 (get_loop_invariant_expr_id): Use get_expr_id.
3665 (parm_decl_cost): New function.
3666 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
3667 Improve bound cost estimation. Use different inv_expr_id for elim and
3670 2011-05-19 Tom de Vries <tom@codesourcery.com>
3673 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
3674 cost_base.cost == 0.
3676 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
3679 * config/i386/sse.md
3680 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
3683 2011-05-18 Jakub Jelinek <jakub@redhat.com>
3685 PR tree-optimization/49039
3686 * tree-vrp.c (extract_range_from_binary_expr): For
3687 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
3688 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
3690 2011-05-18 Tom de Vries <tom@codesourcery.com>
3693 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
3695 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
3697 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
3698 (*tls_global_dynamic_64): Ditto.
3699 (*tls_local_dynamic_base_32_gnu): Ditto.
3700 (*tls_local_dynamic_base_64): Ditto.
3701 (tls_initial_exec_64_sun): Ditto.
3703 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
3705 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
3706 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
3708 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
3709 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
3710 * config/bfin/bfin.c (bfin_cpus): Add bf592.
3711 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
3712 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
3713 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
3714 * config/bfin/elf.h (LIB_SPEC): Add bf592.
3716 2011-05-18 Joseph Myers <joseph@codesourcery.com>
3718 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
3719 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
3720 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
3721 target_thread_pointer, arm_structure_size_boundary, struct
3722 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
3723 struct abi_name, arm_all_abis): Remove.
3724 (arm_option_override) Don't process most enumerated option values here.
3725 Don't process target_fpe_name here. Work with integer not string for
3726 structure size boundary; use separate diagnostics for each case.
3727 * config/arm/arm.h (enum float_abi_type, enum
3728 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
3730 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
3731 arm_structure_size_boundary): Remove.
3732 * config/arm/arm.opt (mabi=): Use Enum and Init.
3733 (arm_abi_type): New Enum and EnumValue entries.
3734 (mfloat-abi=): Use Enum and Init.
3735 (float_abi_type): New Enum and EnumValue entries.
3736 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
3737 (mfp16-format=): Use Enum and Init.
3738 (arm_fp16_format_type): New Enum and EnumValue entries.
3739 (mstructure-size-boundary=): Use UInteger and Init.
3740 (mtp=): Use Enum and Init.
3741 (arm_tp_type): New Enum and EnumValue entries.
3743 2011-05-18 Richard Guenther <rguenther@suse.de>
3745 PR tree-optimization/49018
3746 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
3747 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
3748 gimple_has_side_effects.
3750 2011-05-18 Richard Guenther <rguenther@suse.de>
3752 * gimple.c (gimple_register_type_1): New function, split out from ...
3753 (gimple_register_type): ... here. Avoid infinite recursion.
3755 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
3757 PR tree-optimization/41881
3758 * tree-vectorizer.h (struct _loop_vec_info): Add new field
3759 reduction_chains along with a macro for its access.
3760 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
3761 (destroy_loop_vec_info): Free reduction chains.
3762 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
3763 (vect_is_slp_reduction): New function.
3764 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
3765 (vect_create_epilog_for_reduction): Support SLP reduction chains.
3766 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
3767 definition types for reduction chains.
3768 (vect_supported_load_permutation_p): Don't allow permutations for
3770 (vect_analyze_slp_instance): Support reduction chains.
3771 (vect_analyze_slp): Try to build SLP instance from reduction chains.
3772 (vect_get_constant_vectors): Handle reduction chains.
3773 (vect_schedule_slp_instance): Mark the first statement of the
3774 reduction chain as reduction.
3776 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
3778 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
3779 names for group elements access.
3780 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
3781 reduction chains as well. Remove data reference and interleaving
3782 related words from the fields names.
3783 * tree-vect-loop.c (vect_transform_loop): Use new names for group
3785 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
3786 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
3787 vect_update_interleaving_chain, vect_same_range_drs,
3788 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
3789 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
3790 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
3791 vect_analyze_group_access, vect_analyze_data_ref_access,
3792 vect_create_data_ref_ptr, vect_transform_strided_load,
3793 vect_record_strided_load_vectors): Likewise.
3794 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
3795 vect_model_load_cost, vectorizable_store, vectorizable_load,
3796 vect_remove_stores, new_stmt_vec_info): Likewise.
3797 * tree-vect-slp.c (vect_build_slp_tree,
3798 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
3800 2011-05-18 Richard Guenther <rguenther@suse.de>
3803 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
3804 operand verification.
3805 (verify_gimple_assign_binary): Likewise.
3806 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
3807 to non-1-precision BOOLEAN_TYPEs.
3809 2011-05-18 Tom de Vries <tom@codesourcery.com>
3812 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
3814 2011-05-18 Jakub Jelinek <jakub@redhat.com>
3816 PR tree-optimization/49000
3817 * tree-ssa.c (execute_update_addresses_taken): Call
3818 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
3819 be rewritten and decl has been marked for renaming, reset
3822 2011-05-17 Joseph Myers <joseph@codesourcery.com>
3824 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
3825 enum_opts_set when testing if attributes have set -mfpmath=.
3827 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
3829 * config/mips/mips.c (mips_handle_option): Remove unused variable.
3831 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
3833 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
3835 * tree-inline.c (maybe_inline_call_in_expr): Initialize
3836 id.transform_lang_insert_block with NULL.
3838 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
3840 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
3841 (output_fp_compare): Change args 3 and 4 to bool.
3842 (ix86_expand_call): Change arg 6 to bool.
3843 (ix86_attr_length_immediate_default): Change arg 2 to bool.
3844 (ix86_attr_length_vex_default): Change arg 3 to bool.
3845 * config/i386/i386.md: Update all uses.
3846 * config/i386/i386.c: Ditto.
3847 (ix86_flags_dependent): Change return type to bool.
3849 2011-05-17 Richard Guenther <rguenther@suse.de>
3851 * gimple.c (type_hash_pair_compare): Fix comparison.
3853 2011-05-17 Richard Guenther <rguenther@suse.de>
3855 * gimple.c (iterative_hash_gimple_type): Simplify singleton
3856 case some more, fix final hash value of the non-singleton case.
3858 2011-05-17 Richard Guenther <rguenther@suse.de>
3862 2011-05-16 Richard Guenther <rguenther@suse.de>
3864 * gimple.c (gimple_types_compatible_p_1): Use names of the
3865 type itself, not its main variant.
3866 (iterative_hash_gimple_type): Likewise.
3868 2011-05-17 Richard Guenther <rguenther@suse.de>
3870 * gimple.c (gimple_register_canonical_type): Use the main-variant
3871 leader for computing the canonical type.
3873 2011-05-17 Nick Clifton <nickc@redhat.com>
3875 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
3878 * config/rx/rx.md: Add peephole to remove redundant extensions
3880 (bitset_in_memory): Use rx_restricted_mem_operand.
3881 (bitinvert_in_memory): Likewise.
3882 (bitclr_in_memory): Likewise.
3884 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
3885 Nick Clifton <nickc@redhat.com>
3887 * config/rx/rx.md: Add peepholes to match a register move followed
3888 by a comparison of the moved register. Replace these with an
3889 addition of zero that does both actions in one instruction.
3891 2011-05-17 Jakub Jelinek <jakub@redhat.com>
3894 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
3895 predicate to allow CONST_INT.
3896 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
3898 2011-05-16 Joseph Myers <joseph@codesourcery.com>
3900 * opts-common.c (opt_enum_arg_to_value): New.
3901 * opts.h (opt_enum_arg_to_value): Declare.
3902 * config/i386/i386.opt (fpmath): Remove.
3903 (mfpmath=): Use Enum, Init and Save.
3904 (fpmath_unit): New Enum and EnumValue entries.
3905 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
3906 name for function fpmath state.
3907 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
3908 * config/i386/i386.c: Include diagnostic.h.
3909 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
3910 (ix86_target_string): Take enum fpmath_unit value instead of string.
3911 (ix86_debug_options): Update call to ix86_target_string.
3912 (ix86_option_override_internal): Don't process fpmath strings here.
3913 (x86_function_specific_save, ix86_function_specific_restore):
3914 Don't handle fpmath state specially.
3915 (ix86_function_specific_print): Pass fpmath state to
3916 ix86_target_string instead of printing in this function.
3917 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
3918 Handle enum attributes.
3919 (IX86_ATTR_ENUM, ix86_opt_enum): New.
3920 (ix86_valid_target_attribute_tree): Update option_strings
3921 handling. Handle fpmath as enum option.
3922 (ix86_can_inline_p): Update field names for function fpmath state.
3923 (ix86_expand_builtin): Update call to ix86_target_string.
3924 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
3925 (ix86_fpmath): Remove.
3926 * config/i386/t-i386 (i386.o): Update dependencies.
3928 2011-05-16 Joseph Myers <joseph@codesourcery.com>
3930 PR preprocessor/48677
3931 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
3932 from decoded_options[0], not from itself.
3934 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
3936 * config/i386/constraints.md (z): New constraint.
3937 * config/i386/i386.c (c): New mode attribute.
3938 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
3939 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
3940 constraint for operand 0.
3941 (*call_vzeroupper): Ditto.
3942 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
3943 (*call_rex64_ms_sysv_vzeroupper): Ditto.
3944 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
3945 Use "lzm" constraint for operand 0.
3946 (*call_pop_vzeroupper): Ditto.
3947 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
3948 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
3949 constraint for operand 0.
3950 (*sibcall_vzeroupper): Ditto.
3951 (*sibcall_rex64_ms_sysv): Ditto.
3952 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
3953 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
3954 *sibcall_pop_1. Use "Uz" constraint for operand 0.
3955 (*sibcall_pop_vzeroupper): Ditto.
3956 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
3957 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
3958 mode iterator. Use "<c>zm" constraint for operand 1.
3959 (*call_value_vzeroupper): Ditto.
3960 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
3962 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
3963 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
3964 *call_value_pop_1. Use "lzm" constraint for operand 1.
3965 (*call_value_pop_vzeroupper): Ditto.
3966 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
3967 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
3968 mode iterator. Use "Uz" constraint for operand 1.
3969 (*sibcall_value_vzeroupper): Ditto.
3970 (*sibcall_value_rex64_ms_sysv): Ditto.
3971 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
3972 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
3973 constraint for operand 1.
3974 (*sibcall_value_pop_vzeroupper): Ditto.
3975 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
3976 and "z" constraint for operand 2.
3977 (*tls_global_dynamic_32_gnu): Ditto.
3978 (*tls_local_dynamic_base_32_gnu): Ditto.
3979 (*tls_local_dynamic_base_64): Ditto.
3980 (*tls_local_dynamic_32_once): Ditto.
3981 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
3983 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
3985 2011-05-16 Richard Guenther <rguenther@suse.de>
3987 * gimple.c (gimple_types_compatible_p_1): Use names of the
3988 type itself, not its main variant.
3989 (iterative_hash_gimple_type): Likewise.
3991 2011-05-16 Richard Guenther <rguenther@suse.de>
3993 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
3994 always visit pointer target and function result and argument types.
3996 2011-05-16 Jason Merrill <jason@redhat.com>
3999 * tree-inline.c (copy_statement_list): Put back recursion.
4001 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
4005 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
4006 * config/avr/avr.md ("*ior<mode>qi.byte0",
4007 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
4009 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
4012 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
4013 register is needed for a function argument.
4015 2011-05-16 Richard Guenther <rguenther@suse.de>
4017 * gimple.c (struct type_hash_pair): New type.
4018 (type_hash_pair_compare): New function.
4019 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
4021 2011-05-16 Revital Eres <revital.eres@linaro.org>
4023 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
4025 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
4027 * config/i386/i386.md (floating point move splitters): Fix
4028 usage of standard_80387_constant_p.
4029 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
4031 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
4033 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
4035 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
4037 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
4038 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
4039 (tree_ssa_lim_finalize): Likewise.
4041 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
4043 * config/i386/constraint.md (Yd, Yx): New register constraints.
4044 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
4045 Yd conditional register constraint.
4046 (*movtf_internal): Use standard_sse_constant_opcode.
4047 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
4048 Yx conditional register constraint.
4049 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
4050 Yd conditional register constraint. Use standard_sse_constant_p to
4051 check for valid SSE constants and call standard_sse_constant_opcode to
4053 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
4054 constants and call standard_sse_constant_opcode to output SSE insn.
4055 * config/i386/i386.c (ix86_option_ovverride_internal): Set
4056 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
4057 optimize_size is set.
4058 (standard_sse_constant_opcode): Output conditional AVX insn templates.
4060 2011-05-14 Tobias Burnus <burnus@net-b.de>
4062 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
4064 2011-05-13 Martin Jambor <mjambor@suse.cz>
4066 * ipa-prop.c (ipa_cst_from_jfunc): New function.
4067 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
4068 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
4069 (evaluate_conditions_for_ipcp_clone): Removed.
4070 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
4071 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
4072 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
4074 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
4076 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
4077 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
4078 lieu of MAY_HAVE_DEBUG_STMTS.
4079 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
4080 debug statements if !MAY_HAVE_DEBUG_STMTS.
4082 2011-05-13 Martin Thuresson <martint@google.com>
4084 PR gcov-profile/47793
4085 * libgcov.c (gcov_exit): Support relative profile paths.
4086 * doc/invoke.texi (-fprofile-dir): Update for above change.
4088 2011-05-13 Richard Guenther <rguenther@suse.de>
4090 * gimple.c (gimple_canonical_types_compatible_p): Do not use
4091 type-pair caching, do not compare hashes.
4093 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
4096 * tree-cfg.c (edge_to_cases_cleanup): Return true.
4097 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
4099 2011-05-13 Kai Tietz <ktietz@redhat.com>
4101 * gimplify.c (gimplify_expr): Make sure operand is boolified.
4102 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
4103 compatible type for TRUTH_NOT_EXPR.
4105 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
4107 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
4108 (ix86_hard_regno_mode_ok): Change return value to bool. Use
4109 can_create_pseudo_p ().
4111 2011-05-13 Richard Guenther <rguenther@suse.de>
4114 * gimple.c (iterative_hash_gimple_type): Revert change in
4115 pointer target and function result and argument hashing.
4117 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
4119 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
4120 (*movxf_internal_nointeger): Ditto.
4121 (*movdf_internal_rex64): Ditto.
4122 (*movdf_internal): Ditto.
4123 (*movdf_internal_nointeger): Ditto.
4124 (*movsf_internal): Ditto.
4125 (sincos splitters): Use can_create_pseudo ().
4127 2011-05-13 Joseph Myers <joseph@codesourcery.com>
4129 * config/i386/i386-opts.h: New.
4130 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
4131 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
4132 ix86_section_threshold): Remove.
4133 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
4134 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
4136 (ix86_option_override_internal): Don't decode strings for options
4137 other than -march=, -mtune= and -mfpmath=. Don't allow for
4138 __attribute__ uses in remaining diagnostics for options with
4139 string arguments. Don't check for integer arguments being negative.
4140 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
4141 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
4142 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
4143 ix86_branch_cost, ix86_section_threshold): Remove.
4144 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
4146 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
4148 (masm=): Use Enum and Init.
4149 (asm_dialect): New Enum and EnumValue entries.
4150 (mbranch-cost=): Use UInteger.
4151 (mlarge-data-threshold=): Use UInteger and Init.
4152 (mcmodel=): Use Enum and Init.
4153 (cmodel): New Enum and EnumValue entries.
4154 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
4155 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
4156 mregparm=): Use UInteger.
4157 (mstringop-strategy=): Use Enum and Init.
4158 (stringop_alg): New Enum and EnumValue entries.
4159 (mtls-dialect=): Use Enum and Init.
4160 (tls_dialect): New Enum and EnumValue entries.
4161 (mabi=): Use Enum and Init.
4162 (calling_abi): New Enum and EnumValue entries.
4163 (mveclibabi=): Use Enum and Init.
4164 (ix86_veclibabi): New Enum and EnumValue entries.
4166 2011-05-13 Nick Clifton <nickc@redhat.com>
4168 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
4169 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
4171 2011-05-13 Kai Tietz <ktietz@redhat.com>
4174 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
4175 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
4176 (gimple_boolify): Check for cast for boolean_type_node instead for
4179 2011-05-13 Richard Guenther <rguenther@suse.de>
4181 PR tree-optimization/48172
4182 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
4183 multiplying by number of iterations for equal step.
4184 (vect_create_cond_for_alias_checks): Likewise.
4186 2011-05-13 Andreas Schwab <schwab@redhat.com>
4188 * configure.ac: Use AS_HELP_STRING throughout.
4189 * configure: Regenerate.
4191 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
4193 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
4194 (ix86_emit_restore_regs_using_mov): Likewise.
4195 (ix86_emit_restore_sse_regs_using_mov): Likewise.
4197 2011-05-12 Anatoly Sokolov <aesok@post.ru>
4199 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
4200 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
4201 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
4202 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
4203 RTX_OK_FOR_OLO10_P): ...here.
4204 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
4207 2011-05-12 Kai Tietz <ktietz@redhat.com>
4209 * gimplify.c (gimple_boolify): Re-boolify expression
4210 arguments even if expression type is of kind BOOLEAN_TYPE.
4211 (gimplify_boolean_expr): Removed.
4212 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
4213 and XOR. Additional take care that we keep expression's type.
4214 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
4215 of TRUTH_AND|OR|XOR_EXPR.
4217 2011-05-12 Jakub Jelinek <jakub@redhat.com>
4219 PR tree-optimization/48975
4220 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
4221 on all bbs here and free and clear ifc_bbs at the end.
4223 2011-05-12 Richard Guenther <rguenther@suse.de>
4225 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
4226 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
4227 until after simple checks.
4228 (gimple_types_compatible_p): Likewise.
4229 (iterative_hash_gimple_type): Always hash pointer targets
4230 and function return and argument types.
4231 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
4232 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
4233 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
4234 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
4235 completely in the simple compare section.
4236 (gimple_register_canonical_type): Query the cache again after
4239 2011-05-12 Richard Guenther <rguenther@suse.de>
4241 PR tree-optimization/48172
4242 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
4243 the number of iterations from the segment size calculation.
4244 (vect_create_cond_for_alias_checks): Adjust.
4246 2011-05-12 Jakub Jelinek <jakub@redhat.com>
4249 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
4250 if validate_subreg fails.
4252 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
4254 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
4255 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
4258 2011-05-12 DJ Delorie <dj@redhat.com>
4260 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
4261 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
4262 created builtin into rx_builtins array.
4263 (rx_builtin_decl): New function.
4264 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
4266 2011-05-12 DJ Delorie <dj@redhat.com>
4267 Nick Clifton <nickc@redhat.com>
4269 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
4270 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
4271 (rx_is_legitimate_address): Add pre-decrement and post-increment
4272 addressing in HImode and QImode. Fix test for out of range
4274 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
4275 (rx_align_for_label): Test label before extracting its usage count.
4276 (rx_adjust_insn_lengths): Fix selection of insn codes.
4277 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
4279 2011-05-11 Jason Merrill <jason@redhat.com>
4281 * tree.c (type_hash_canon): Use struct tree_type_non_common.
4283 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
4285 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
4286 reindent the subsequent block.
4288 2011-05-11 Satoru Takabayashi <satorux@google.com>
4289 Paul Pluzhnikov <ppluzhnikov@google.com>
4291 * doc/install.texi (Configuration): Document --with-linker-hash-style.
4292 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
4293 * config.in: Add LINKER_HASH_STYLE.
4294 * configure.ac: Add --with-linker-hash-style.
4295 * configure: Regenerate.
4297 2011-05-11 Richard Guenther <rguenther@suse.de>
4300 * gimple.c (iterative_hash_canonical_type): Fix typo.
4302 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
4304 * config/i386/i386.c (legitimize_tls_address)
4305 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
4306 expanders directly for TARGET_GNU2_TLS. Determine pic and
4307 __tls_get_addr symbol reference here. Update call to
4308 gen_tls_global_dynamic_{32,64} for added arguments.
4309 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
4310 expanders directly for TARGET_GNU2_TLS. Determine
4311 __tls_get_addr symbol reference here. Update call to
4312 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
4313 unique UNSPEC REG_EQUIV to libcall block.
4314 (ix86_tls_get_addr): Declare static.
4315 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
4316 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
4317 Do not determine pic and __tls_get_addr symbol reference here. Do not
4318 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
4319 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
4320 (tls_global_dynamic_64): Add operand 2. Do not determine
4321 __tls_get_addr symbol reference here. Do not call
4322 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
4323 (tls_local_dynamic_base64): Ditto for operand 1.
4325 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
4327 * function.c (expand_function_start): Initialize stack_check_probe_note
4328 only if the generic stack checking mechanism is used.
4330 2011-05-11 Richard Guenther <rguenther@suse.de>
4332 PR tree-optimization/15256
4333 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
4334 (A & B) | C, combine (A op CST1) op CST2.
4335 (tree_ssa_forward_propagate_single_use_vars): Only bother to
4336 visit assigns that have uses.
4338 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
4340 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
4341 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
4342 (unpack_ts_type_common_value_fields): ...this. Update comment.
4343 (unpack_value_fields): Adjust for renaming.
4344 (lto_input_ts_type_tree_pointers): Split into...
4345 (lto_input_ts_type_common_tree_pointer): ...this and...
4346 (lto_input_ts_type_non_common_tree_pointers): ...this.
4347 (lto_input_tree_pointers): Adjust for above split.
4348 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
4349 (pack_ts_type_common_value_fields): ...this. Update comment.
4350 (lto_output_ts_type_tree_pointers): Split into...
4351 (lto_output_ts_type_common_tree_pointers): ...this and...
4352 (lto_output_ts_type_non_common_tree_pointers): ...this.
4353 (lto_output_tree_pointers): Adjust for above split.
4354 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
4355 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
4356 * stor-layout.c (vector_type_mode): Adjust location of mode field.
4357 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
4359 (struct tree_type): Split into...
4360 (struct tree_type_common: ...this and...
4361 (struct tree_type_with_lang_specific): ...this and...
4362 (struct tree_type_non_common): ...this. Adjust accessor macros
4364 (TYPE_VALUES_RAW): Define.
4365 (union tree_node): Update for above changes.
4366 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
4368 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
4369 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
4370 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
4371 * treestructu.def (TS_TYPE): Remove.
4372 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
4375 2011-05-11 Jakub Jelinek <jakub@redhat.com>
4378 * tree-ssa.c (reset_debug_uses): New function.
4379 * tree-flow.h (reset_debug_uses): New prototype.
4380 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
4381 * tree-loop-distribution.c (generate_loops_for_partition): Call
4382 reset_debug_uses on the stmts that will be removed. Keep around
4383 all debug stmts, don't count them as bits in partition bitmap.
4384 (generate_builtin): Don't count debug stmts or labels as bits in
4387 2011-05-11 Richard Guenther <rguenther@suse.de>
4389 * gimple.c (gimple_type_hash_1): Merge with ...
4390 (gimple_type_hash): ... this.
4391 (gtc_visit): Remove mode parameter and simplify accordingly.
4392 (gimple_types_compatible_p_1): Likewise.
4393 (gimple_types_compatible_p): Likewise.
4394 (iterative_hash_gimple_type): Likewise.
4396 (gimple_type_eq): Adjust.
4398 2011-05-11 Revital Eres <revital.eres@linaro.org>
4400 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
4401 enters the branch create an anti edge in the opposite direction
4402 to prevent the creation of reg-moves.
4403 * modulo-sched.c: Adjust comment to reflect the fact we are
4404 scheduling closing branch.
4405 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
4406 (stage_count): New field in struct partial_schedule.
4407 (calculate_stage_count): New function.
4408 (normalize_sched_times): Rename to reset_sched_times and handle
4409 incrementing the sched time of the nodes by a constant value
4410 passed as parameter.
4411 (duplicate_insns_of_cycles): Skip closing branch.
4412 (sms_schedule_by_order): Schedule closing branch.
4413 (ps_insn_find_column): Handle closing branch.
4414 (sms_schedule): Call reset_sched_times and adjust the code to
4415 support scheduling of the closing branch.
4416 (ps_insert_empty_row): Update calls to normalize_sched_times
4417 and rotate_partial_schedule functions.
4419 2011-05-11 Richard Guenther <rguenther@suse.de>
4422 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
4424 2011-05-11 Joseph Myers <joseph@codesourcery.com>
4426 * opts.c (finish_options): Move warning settings from process_options.
4427 * toplev.c (process_options): Move warning settings to finish_options.
4429 2011-05-11 Richard Guenther <rguenther@suse.de>
4431 PR tree-optimization/18041
4432 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
4433 (simplify_bitwise_binary): ... this. Handle operand conversions
4434 by applying them to the result instead.
4435 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
4437 2011-05-11 Richard Guenther <rguenther@suse.de>
4439 * gimple.c (gimple_canonical_types_compatible_p): Split out
4440 from gimple_types_compatible_p and friends. Do not recurse
4441 to pointed-to types.
4442 (gimple_canonical_type_eq): Use it.
4443 (iterative_hash_canonical_type): Split out from
4444 iterative_hash_gimple_type and friends. Do not recurse
4445 to pointed-to types.
4446 (gimple_canonical_type_hash): Use it, allocate the hash here.
4448 2011-05-11 Revital Eres <revital.eres@linaro.org>
4450 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
4453 2011-05-11 Revital Eres <revital.eres@linaro.org>
4455 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
4456 instead of PREV_INSN.
4458 2011-05-11 Revital Eres <revital.eres@linaro.org>
4460 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
4461 * loop-doloop.c (doloop_condition_get): Likewise.
4462 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
4464 * config/arm/arm.md (*addsi3_compare0): Remove "*".
4466 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
4468 * tree.def (CASE_LABEL_EXPR): Add an operand.
4469 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
4471 2011-05-10 Joseph Myers <joseph@codesourcery.com>
4473 * c-decl.c (c_override_global_bindings_to_false): Remove.
4474 (global_bindings_p): Don't check
4475 c_override_global_bindings_to_false.
4476 * c-tree.h (c_override_global_bindings_to_false): Remove.
4477 * c-typeck.c (composite_type): Don't set
4478 c_override_global_bindings_to_false.
4480 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
4482 PR target/48857, 48495
4483 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
4485 (VSX_MOVE_MODE): Ditto.
4486 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
4487 VSX vector types. Add V2DImode.
4488 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
4489 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
4490 (MODES_TIEABLE_P): Ditto.
4492 * config/rs6000/rs6000.c (rs6000_emit_move): Use
4493 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
4495 (init_cumulative_args): Ditto.
4496 (rs6000_function_arg_boundary): Ditto.
4497 (rs6000_function_arg_advance_1): Ditto.
4498 (rs6000_function_arg): Ditto.
4499 (rs6000_function_ok_for_sibcall): Ditto.
4500 (emit_frame_save): Ditto.
4501 (rs6000_function_value): Ditto.
4502 (rs6000_libcall_value): Ditto.
4504 2011-05-10 Joseph Myers <joseph@codesourcery.com>
4506 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
4507 i386/darwin-lib.h to $libgcc_tm_file.
4508 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
4510 2011-05-10 Joseph Myers <joseph@codesourcery.com>
4512 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
4514 2011-05-10 Joseph Myers <joseph@codesourcery.com>
4516 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
4517 * config/rs6000/rs6000-tables.opt: New file (generated).
4518 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
4519 rs6000/rs6000-tables.opt to extra_options.
4520 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
4521 * config/rs6000/rs6000.c (rs6000_select): Remove.
4522 (processor_target_table): Move contents to rs6000-cpus.def.
4523 (darwin_rs6000_override_options): Check
4524 global_options_set.x_rs6000_cpu_index instead of
4525 rs6000_select[1].string.
4526 (rs6000_option_override_internal): Likewise.
4527 (rs6000_handle_option): Don't assert that global structures are in
4528 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
4529 (rs6000_default_cpu): New variable.
4530 (rs6000_file_start): Set it instead of local default_cpu. Check
4531 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
4532 global_options_set.x_rs6000_tune_index instead of rs6000_select.
4533 (rs6000_darwin_file_start): Check rs6000_default_cpu and
4534 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
4535 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
4536 rs6000_select): Remove.
4537 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
4539 (mcpu=, mtune=): Use Var, Init, Enum and Save.
4540 * config/rs6000/t-rs6000
4541 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
4542 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
4543 global_options_set.x_rs6000_cpu_index instead of
4544 rs6000_select[1].string.
4545 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
4546 global_options_set.x_rs6000_cpu_index instead of
4547 rs6000_select[1].string.
4549 2011-05-10 Joseph Myers <joseph@codesourcery.com>
4551 * config.gcc (libgcc_tm_file): Define instead of including files
4552 from ../../libgcc/config/ in tm_file.
4553 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
4554 * configure: Regenerate.
4555 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
4556 libgcc_tm.h, cs-libgcc_tm.h): New.
4557 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
4558 (clean): Remove libgcc_tm.h.
4559 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
4560 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
4561 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
4563 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
4566 * config/avr/avr.c (avr_ret_register): Return unsigned int
4568 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
4569 it to avr_libcall_value.
4570 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
4572 (avr_expand_binop_builtin): Ditto.
4573 (avr_expand_unop_builtin): Ditto.
4575 2011-05-10 DJ Delorie <dj@redhat.com>
4577 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
4578 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
4579 * config/rx/rx.c (rx_align_for_label): Add label and
4580 uses_threshold parameters. Do not align when the label is not
4582 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
4584 2011-05-10 Richard Guenther <rguenther@suse.de>
4586 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
4587 a series of conversions and apply foldings similar to what
4589 (tree_ssa_forward_propagate_single_use_vars): Call it.
4591 2011-05-10 Jakub Jelinek <jakub@redhat.com>
4593 PR tree-optimization/48611
4594 PR tree-optimization/48794
4595 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
4596 referenced from RESX or EH_DISPATCH arguments.
4599 * dfp.c (decimal_to_decnumber): Handle conversion from
4600 dconst{1,2,m1,half}.
4602 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
4604 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
4605 for !flag_prefer_avx128.
4606 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
4608 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
4610 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
4611 (fold_ternary_loc): Use expr_location_or.
4613 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
4616 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
4617 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
4618 Pmode and mem_mode is not VOIDmode.
4620 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
4622 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
4623 TYPE_QUAL_RESTRICT): Convert to enum.
4625 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
4627 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
4628 (const_pow2_1_to_8_operand): Ditto.
4629 (const_pow2_1_to_128_operand): Ditto.
4630 (const_pow2_1_to_32768_operand): Ditto.
4631 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
4632 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
4633 in insn constraint to check integer value of operand 3.
4634 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
4636 (PINSR_MODE): New mode iterator.
4637 (sse2p4_1): New mode attribute.
4638 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
4639 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
4640 iterator. Use const_int_operand instead of
4641 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
4642 exact_log2 in insn constraint to check integer value of operand 3.
4644 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
4646 * config/i386/sse.md (blendbits): Remove mode attribute.
4647 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
4648 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
4649 Check integer value of operand 3 in insn constraint.
4651 2011-05-09 Richard Guenther <rguenther@suse.de>
4653 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
4655 (lto_symtab_merge): Likewise. Do not register types here.
4656 (lto_symtab_merge_decls_2): Likewise.
4657 (lto_symtab_merge_decls_1): Likewise.
4658 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
4659 * gimple.c (enum gtc_mode): Declare.
4660 (gimple_types_compatible_p): Make static.
4662 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4664 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
4665 temporary register to match Pmode.
4667 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
4669 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
4670 and *vec_concatv4si_1_avx.
4672 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
4674 PR rtl-optimization/48927
4675 * ira-conflicts.c (commutative_constraint_p): Use
4676 recog_data.alternative_enabled_p to disable alternatives where
4677 "enabled" attribute is false.
4678 (get_dup_num): Ditto.
4679 * ira-lives.c (single_reg_class): Ditto.
4680 (ira_implicitly_set_insn_hard_regs): Ditto.
4682 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
4684 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
4685 (dataflow_set_preserve_mem_locs): Likewise.
4687 2011-05-09 Philipp Thomas <pth@suse.de>
4689 * config/mep/mep.c (mep_validate_vliw): Syntax description
4690 should not be translated.
4692 2011-05-09 Joseph Myers <joseph@codesourcery.com>
4694 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
4695 * config/mips/mips-tables.opt: New file (generated).
4696 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
4697 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
4698 MIPS_ARCH_OPTION_NATIVE): Define.
4699 * config/mips/mips.c (mips_cpu_info_table): Move contents to
4701 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
4702 mips_parse_cpu): Remove.
4703 (mips_cpu_info_from_opt, mips_default_arch): New.
4704 (mips_handle_option): Don't assert that global structures are in
4705 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
4706 (mips_option_override): Use new variables and functions to set
4707 state of these options. Use strcmp to check for individual CPU names.
4708 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
4710 * config/mips/mips.opt (march=): Use ToLower and Enum.
4711 (mips): Use ToLower, Enum and Var.
4712 (mtune=): Use ToLower and Enum.
4713 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
4715 2011-05-08 Jan Hubicka <jh@suse.cz>
4717 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
4718 Arrange type pairs to be UID ordered.
4719 (gimple_lookup_type_leader): Make inline.
4721 2011-05-09 Nick Clifton <nickc@redhat.com>
4724 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
4728 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
4731 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
4733 * combine.c (simplify_comparison): Abstract out parts into...
4734 (simplify_compare_const): ... new function.
4735 (try_combine): Generalize parallel arithmetic/compare combining
4736 to call simplify_compare_const() and CANONICALIZE_COMPARE().
4738 2011-05-08 Jan Hubicka <jh@suse.cz>
4740 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
4741 (cgraph_create_virtual_clone): Call hooks once virtual clone
4743 * cgraph.h (cgraph_clone_node): Update prototype.
4744 * ipa-cp.c (ipcp_estimate_growth): Use
4745 estimate_ipcp_clone_size_and_time.
4746 * ipa-inline-transform.c (clone_inlined_nodes): Update.
4747 * lto-cgraph.c (input_node): Update.
4748 * ipa-inline.c (recursive_inlining): Update.
4749 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
4750 (evaluate_conditions_for_known_args): Break out from ...
4751 (evaluate_conditions_for_edge): ... here.
4752 (evaluate_conditions_for_ipcp_clone): New function.
4753 (inline_node_duplication_hook): Update clone summary based
4755 (estimate_callee_size_and_time): Rename to ...
4756 (estimate_node_size_and_time): take NODE instead of EDGE;
4757 take POSSIBLE_TRUTHS as argument.
4758 (estimate_callee_size_and_time): Update.
4759 (estimate_ipcp_clone_size_and_time): New function.
4760 (do_estimate_edge_time): Update.
4762 2011-05-08 Richard Guenther <rguenther@suse.de>
4766 * expmed.c (expand_shift_1): Compute adjusted constant shift
4769 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
4771 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
4773 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
4775 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
4777 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
4779 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
4781 2011-05-07 Jan Hubicka <jh@suse.cz>
4783 * ipa-inline-transform.c (inline_call): Account when program size
4785 * ipa-inline.c (relative_time_benefit): New function.
4786 (edge_badness): Reorganize to be power 2 based; fix thinko when
4787 computing badness for negative growth; update comments to match
4788 reality; better dumps.
4790 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
4792 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
4793 type to bool and adjust comment.
4794 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
4795 (fold_mathfn_compare): Remove calls to global_bindings_p.
4796 (fold_inf_compare): Likewise.
4797 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
4798 * c-tree.h (global_bindings_p): Adjust prototype.
4799 * c-decl.c (global_bindings_p): Return bool and simplify.
4801 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
4803 PR tree-optimization/48837
4804 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
4805 when accumulator transformation is performed.
4807 2011-05-06 Jan Hubicka <jh@suse.cz>
4809 * i386.h (ix86_tune_indices): Add
4810 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
4811 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
4812 * i386.c (initial_ix86_tune_features): Add
4813 X86_SOFTARE_PREFETCHING_BENEFICIAL.
4814 (software_prefetching_beneficial_p): Remove predicate.
4815 (ix86_option_override_internal): Use new macro.
4817 2011-05-06 Jan Hubicka <jh@suse.cz>
4819 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
4821 2011-05-06 Jan Hubicka <jh@suse.cz>
4823 * cgraph.c (cgraph_add_thunk): Create real function node instead
4824 of alias node; finalize it and mark needed/reachale; arrange visibility
4825 to be right and add it into the corresponding same comdat group list.
4826 (dump_cgraph_node): Dump thunks.
4827 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
4828 cgraph_function_with_gimple_body_p,
4829 cgraph_first_function_with_gimple_body,
4830 cgraph_next_function_with_gimple_body): New functions.
4831 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
4833 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
4834 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
4835 * cgraphunit.c (cgraph_finalize_function): Only look into possible
4836 devirtualization when optimizing.
4837 (verify_cgraph_node): Verify thunks.
4838 (cgraph_analyze_function): Analyze thunks.
4839 (cgraph_mark_functions_to_output): Output thunks only in combination
4840 with function they are assigned to.
4841 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
4842 alias into normal node.
4843 (assemble_thunks): New functoin.
4844 (cgraph_expand_function): Use it.
4845 * lto-cgraph.c (lto_output_node): Stream thunks.
4846 (input_overwrite_node): Stream in thunks.
4847 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
4848 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
4849 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
4850 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
4851 (inline_analyze_function): Do not care about thunk jump functions.
4852 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
4853 * ipa-prop.c (ipa_prop_write_jump_functions): Use
4854 cgraph_function_with_gimple_body_p.
4855 * passes.c (do_per_function_toporder): Use
4856 cgraph_function_with_gimple_body_p.
4857 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
4858 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
4859 (function_called_by_processed_nodes_p): Likewise.
4861 2011-05-06 Joseph Myers <joseph@codesourcery.com>
4863 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
4864 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
4866 (mabi=): Replace with separate entries for mabi=altivec,
4867 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
4868 mabi=ieeelongdouble and mabi=ibmlongdouble.
4869 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
4870 check for -mabi=spe without SPE ABI support here.
4871 (rs6000_handle_option): Replace OPT_mabi_ handling with
4872 OPT_mabi_altivec and OPT_mabi_spe handling.
4874 2011-05-06 Cary Coutant <ccoutant@google.com>
4876 * dwarf2out.c (contains_subprogram_definition): New function.
4877 (should_move_die_to_comdat): Call it.
4879 2011-05-06 Jeff Law <law@redhat.com>
4881 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
4882 remove_ctrl_stmt_and_useless_edges.
4883 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
4884 (fixup_template_block, thread_single_edge): Likewise.
4885 (mark_threaded_blocks): Use THREAD_TARGET.
4887 2011-05-06 Alan Modra <amodra@gmail.com>
4890 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
4891 const0_rtx as the arg to the dummy __tls_get_addr libcall.
4893 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
4895 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
4896 constraint modifier to "r".
4898 2011-05-06 Joseph Myers <joseph@codesourcery.com>
4900 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
4901 fall through for OPT_mcmodel_.
4903 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4905 * config/s390/s390.c (s390_asm_trampoline_template): Comment
4907 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
4909 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4912 * config/arm/arm.opt (marm): Document it.
4913 (mthumb): Reject negative variant.
4915 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
4918 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
4919 Fix typo in "ccvt" variable name.
4921 2011-05-06 Tristan Gingold <gingold@adacore.com>
4924 * config/vms/vms-ar.c (main): Remove cwd variable.
4926 2011-05-06 Jakub Jelinek <jakub@redhat.com>
4929 * var-tracking.c (prepare_call_arguments): Move else before #endif.
4931 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
4933 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
4934 * gimplify.c (gimplify_switch_expr): Likewise.
4935 * omp-low.c (expand_omp_sections): Likewise.
4936 * tree-eh.c (lower_try_finally_switch): Likewise.
4937 (lower_eh_dispatch): Likewise.
4938 * tree.h (build_case_label): Declare.
4939 * tree.c (build_case_label): Define.
4941 2011-05-05 Jason Merrill <jason@redhat.com>
4944 * tree-inline.c (copy_tree_r): Use copy_statement_list.
4945 (copy_statement_list): Don't recurse.
4946 * stor-layout.c (copy_self_referential_tree_r): Don't allow
4949 2011-05-05 Joseph Myers <joseph@codesourcery.com>
4951 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
4952 through from -mfpu= handling.
4953 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
4955 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
4957 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
4960 2011-05-05 Steve Ellcey <sje@cup.hp.com>
4962 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
4964 (hppa[12]*-*-hpux11*): Ditto.
4965 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
4966 * config/ia64/hpux-unix2003.h: New.
4967 * config/pa/pa-hpux1131.opt: New.
4968 * config/pa/pa-hpux1131.h: New.
4969 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
4970 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
4971 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
4973 2011-05-05 Jakub Jelinek <jakub@redhat.com>
4976 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
4977 instead of mode as 3rd argument to recursive call.
4978 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
4979 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
4981 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
4982 don't give up if mode is Pmode and mem_mode is not VOIDmode.
4983 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
4984 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
4986 2011-05-05 Julian Brown <julian@codesourcery.com>
4988 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
4989 parenthesis in D-register case.
4991 2011-05-05 Joseph Myers <joseph@codesourcery.com>
4993 * opt-functions.awk (var_type_struct): Handle Enum options.
4994 * optc-gen.awk: Don't check range of variables of character type.
4995 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
4996 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
4997 rs6000_sdata_name, rs6000_explicit_options): Remove.
4998 (rs6000_option_override_internal): Check for -malign-power here.
4999 Use global_options_set instead of rs6000_explicit_options.
5000 (rs6000_parse_fpu_option): Remove.
5001 (rs6000_handle_option): Access variables via opts and opts_set
5002 pointers. Use error_at and warning_at. Add fall-through
5003 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
5004 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
5005 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
5006 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
5007 here. Don't use rs6000_parse_fpu_option.
5008 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
5009 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
5010 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
5012 (mspe): Use Var and Save.
5013 (mtraceback=): Use Enum and Var.
5014 (rs6000_traceback_type): New Enum and EnumValue entries.
5015 (mfloat-gprs=): Use Enum, Var and Save.
5016 (rs6000_float_gprs): New Enum and EnumValue entries.
5017 (mlong-double-): use Var and Save.
5018 (msched-costly-dep=, minsert-sched-nops=): Use Var.
5019 (malign-): Use Enum and Var.
5020 (rs6000_alignment_flags): New Enum and EnumValue entries.
5022 (fpu_type_t): New Enum and EnumValue entries.
5023 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
5024 global_options_set instead of rs6000_explicit_options.
5025 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
5026 global_options_set instead of rs6000_explicit_options.
5027 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
5028 global_options_set instead of rs6000_explicit_options.
5029 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
5030 global_options_set instead of rs6000_explicit_options.
5031 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
5032 global_options_set instead of rs6000_explicit_options.
5033 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
5034 global_options_set instead of rs6000_explicit_options.
5035 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
5037 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
5038 global_options_set instead of rs6000_explicit_options.
5039 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
5040 (rs6000_cmodel): New Enum and EnumValue entries.
5041 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
5042 global_options_set instead of rs6000_explicit_options.
5043 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
5044 (mtls-size=): Use Enum and Var.
5045 (rs6000_tls_size): New Enum and EnumValue entries.
5047 2011-05-05 Michael Matz <matz@suse.de>
5049 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
5050 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
5051 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
5052 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
5053 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
5054 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
5055 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
5056 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
5057 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
5058 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
5059 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
5060 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
5061 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
5062 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
5063 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
5064 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
5066 2011-05-05 Richard Guenther <rguenther@suse.de>
5068 * expmed.c (expand_variable_shift): Rename to ...
5069 (expand_shift_1): ... this. Take an expanded shift amount.
5070 For rotates recurse directly not building trees for the shift amount.
5071 (expand_variable_shift): Wrap around expand_shift_1.
5072 (expand_shift): Adjust.
5074 2011-05-05 Jakub Jelinek <jakub@redhat.com>
5076 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
5078 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
5080 * tree.h (get_pending_sizes): Remove prototype.
5081 (put_pending_size): Likewise.
5082 (put_pending_sizes): Likewise.
5083 * stor-layout.c (pending_sizes): Delete.
5084 (get_pending_sizes): Likewise.
5085 (put_pending_size): Likewise.
5086 (put_pending_sizes): Likewise.
5087 (variable_size): Do not call put_pending_size and tidy up.
5088 * function.h (struct function): Remove dont_save_pending_sizes_p.
5089 * lto-streamer-in.c (input_function): Do not stream it.
5090 * lto-streamer-out.c (output_function): Likewise.
5091 * tree-inline.c (initialize_cfun): Do not copy it.
5092 * c-decl.c (store_parm_decls): Do not set it.
5093 * omp-low.c (create_task_copyfn): Likewise.
5094 * tree-optimize.c (tree_rest_of_compilation): Likewise.
5096 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
5098 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
5100 (*movdf_internal): Ditto.
5101 (*movdf_internal_nointeger): Ditto.
5102 (*movsf_internal): Ditto.
5104 2011-05-05 Joseph Myers <joseph@codesourcery.com>
5106 * c-decl.c (finish_decl): Don't call get_pending_sizes.
5107 (grokparm): Add parameter expr. Pass it to grokdeclarator.
5108 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
5109 (c_variable_size): Remove.
5110 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
5111 call put_pending_sizes.
5112 (get_parm_info): Add parameter expr. Use it to set
5113 arg_info->pending_sizes.
5114 (store_parm_decls): Use arg_info->pending_sizes instead or calling
5116 * c-parser.c (c_parser_parms_declarator): Update call to
5117 c_parser_parms_list_declarator.
5118 (c_parser_parms_list_declarator): Take parameter expr. Update
5119 call to push_parm_decl. Update recursive call. Don't call
5120 get_pending_sizes. Update calls to get_parm_info.
5121 (c_parser_objc_method_definition): Update calls to
5122 c_parser_objc_method_decl and objc_start_method_definition.
5123 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
5124 (c_parser_objc_method_decl): Add parameter expr. Update call to
5126 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
5127 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
5128 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
5130 2011-05-05 Michael Hope <michael.hope@linaro.org>
5133 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
5136 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5138 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
5139 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
5140 (spu_output_mi_thunk): New function.
5142 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5144 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
5145 targetm.asm_out.print_operand.
5146 * config/sol2.c: Include target.h.
5148 2011-05-04 Jan Hubicka <jh@suse.cz>
5150 * ipa-inline.c (reset_edge_caches): New function.
5151 (update_caller_keys): Add check_inlinablity_for; do not
5152 reset edge caches; remove now unnecesary loop.
5153 (update_callee_keys): Add comments; reset node_growth_cache of callee.
5154 (update_all_callee_keys): Likewise.
5155 (inline_small_functions): Sanity check cache; update code
5158 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
5160 PR rtl-optimization/47612
5161 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
5162 as the last insn of the sequence to be moved.
5164 2011-05-04 Tobias Burnus <burnus@net-b.de>
5167 * doc/invoke.texi (Ofast): Document that it
5168 enables Fortran's -fno-protect-parens.
5170 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
5172 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
5174 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
5176 * stor-layout.c (variable_size): Do not issue errors.
5178 2011-05-04 Richard Guenther <rguenther@suse.de>
5180 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
5181 for array-ref indices.
5182 (tree_coverage_counter_addr): Likewise.
5183 (build_fn_info_type): Use size_int for index types.
5184 (build_gcov_info): Likewise.
5186 2011-05-04 Richard Guenther <rguenther@suse.de>
5188 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
5190 * c-typeck.c (really_start_incremental_init): Use bitsize_int
5191 for constructor indices.
5192 (push_init_level): Likewise.
5194 2011-05-04 Richard Guenther <rguenther@suse.de>
5196 * explow.c (promote_mode): Move variable declarations before code.
5198 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
5200 * tree.h (build_function_type_array): Declare.
5201 (build_varargs_function_type_array): Declare.
5202 (build_function_type_vec, build_varargs_function_type_vec): Define.
5203 * tree.c (build_function_type_array_1): New function.
5204 (build_function_type_array): New function.
5205 (build_varargs_function_type_array): New function.
5207 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
5209 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
5210 before setting STMT_VINFO_TYPE.
5212 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5214 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
5215 instead of spu_pass_by_reference.
5217 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5219 * calls.c (emit_library_call_value_1): Invoke
5220 promote_function_mode hook on libcall arguments.
5221 * explow.c (promote_function_mode, promote_mode): Handle TYPE
5222 argument being NULL.
5223 * targhooks.c (default_promote_function_mode): Lisewise.
5224 * config/s390/s390.c (s390_promote_function_mode): Likewise.
5225 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
5227 * doc/tm.texi: Document that TYPE argument might be NULL.
5229 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
5231 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
5233 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
5236 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
5238 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5240 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
5241 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
5243 * mips-tfile.c: ... here.
5244 Don't include coretypes.h, tm.h, filenames.h.
5245 (saber_stop): Remove definition and all calls.
5246 [__SABER__]: Remove.
5247 (__LINE__): Remove default.
5248 (Size_t, Ptrdiff_t): Remove definitions.
5249 Replace by size_t, ptrdiff_t.
5250 [!MIPS_DEBUGGING_INFO]: Remove.
5251 (SHASH_SIZE, THASH_SIZE): Remove defaults.
5252 (progname): Add const.
5254 Replace all uses by static.
5255 (ALIGN_SYMTABLE_OFFSET): Remove default.
5256 * mips-tdump.c: Don't include coretypes.h, tm.h.
5257 Remove !MIPS_IS_STAB guard.
5258 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
5259 $(TM_H), filenames.h dependencies.
5260 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
5262 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
5265 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
5266 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
5268 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
5271 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
5272 account and save/restore RETS.
5273 (PROFILE_BEFORE_PROLOGUE): Define.
5274 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
5275 the push insn to use predecrement.
5277 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
5280 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
5282 2011-05-04 Nick Clifton <nickc@redhat.com>
5284 * config/mn10300/mn10300.c: Include cfgloop.h.
5286 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
5287 Lcc or a FLcc insn into the instruction stream.
5288 (mn10300_block_contains_call): New function. Returns true if the
5289 given basic block contains a CALL insn.
5290 (mn10300_loop_contains_call_insn): New function. Returns true if
5291 the given loop contains a CALL insn.
5292 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
5293 to use the SETLB and Lcc or FLcc insns.
5294 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
5295 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
5296 * config/mn10300/mn10300.opt (msetlb): New option. Used to
5297 disable the SETLB optimization.
5298 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
5299 __SETLB__ or __NO_SETLB__.
5300 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
5301 (movsf_internal): Handle MDR register.
5302 (cmpsi): Make visible.
5303 (setlb): New pattern.
5305 (FLcc): New pattern.
5307 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
5310 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
5311 for reg<->xmm moves.
5312 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
5313 (vec_concatv2di_rex64_sse): Ditto.
5314 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
5315 (*vec_extractv2di_1_rex64): Ditto.
5318 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
5320 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
5322 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
5324 2011-05-04 Richard Guenther <rguenther@suse.de>
5326 * tree.h (int_const_binop): Remove notrunc argument.
5327 * fold-const.c (int_const_binop): Remove notrunc argument. Always
5328 create integer constants that are properly truncated.
5329 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
5330 (const_binop): Remove zero notrunc argument to int_const_binop.
5331 (size_binop_loc): Likewise.
5332 (fold_div_compare): Likewise.
5333 (maybe_canonicalize_comparison_1): Likewise.
5334 (fold_comparison): Likewise.
5335 (fold_binary_loc): Likewise.
5336 (multiple_of_p): Likewise.
5337 * expr.c (store_constructor): Likewise.
5338 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
5339 (maybe_fold_stmt_addition): Likewise.
5340 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
5341 * stor-layout.c (layout_type): Likewise.
5342 * tree-data-ref.c (tree_fold_divides_p): Likewise.
5343 * tree-sra.c (build_ref_for_offset): Likewise.
5344 (build_user_friendly_ref_for_offset): Likewise.
5345 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
5346 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
5347 * tree-ssa-loop-niter.c (inverse): Likewise.
5348 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
5349 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
5350 * tree-switch-conversion.c (check_range): Likewise.
5351 (build_constructors): Likewise.
5352 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
5353 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
5354 (extract_range_from_assert): Likewise.
5355 (vrp_int_const_binop): Likewise.
5356 (extract_range_from_binary_expr): Likewise.
5357 (extract_range_from_unary_expr): Likewise.
5358 (check_array_ref): Likewise.
5359 (find_case_label_range): Likewise.
5360 (simplify_div_or_mod_using_ranges): Likewise.
5361 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
5362 comparing case labels for merging.
5364 2011-05-03 Mark Wielaard <mjw@redhat.com>
5366 * dwarf2out.c (debug_str_hash_forced): Removed.
5367 (gen_label_for_indirect_string): Removed.
5368 (get_debug_string_label): Removed.
5369 (AT_string_form): Generate label directly.
5370 (output_indirect_string): Test indirect_string_node for
5371 DW_FORM_strp instead of checking label and refcount.
5372 (prune_indirect_string): Removed.
5373 (prune_unused_types): Don't check debug_str_hash_forced or
5374 call prune_indirect_string.
5376 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
5379 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
5381 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
5385 * combine.c (try_combine): Skip debug insns at m_split tests.
5387 2011-04-26 Mark Wielaard <mjw@redhat.com>
5390 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
5391 when info_section_emitted.
5393 2011-05-03 Joseph Myers <joseph@codesourcery.com>
5395 * config/mips/mips-opts.h: New.
5396 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
5398 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
5399 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
5400 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
5402 * config/mips/mips.h (enum mips_code_readable_setting): Move to
5404 (mips_abi, mips_code_readable): Don't declare.
5405 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
5406 (mabi=): Use Enum and Var.
5407 (mips_abi): New Enum and EnumValue entries.
5408 (mcode-readable=): Use Enum and Var.
5409 (mips_code_readable_setting): New Enum and EnumValue entries.
5410 (mr10k-cache-barrier=): Use Enum and Var.
5411 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
5413 2011-05-03 Jan Hubicka <jh@suse.cz>
5415 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
5416 replace hash by pointer map.
5417 (cgraph_node_set_element_def, cgraph_node_set_element,
5418 const_cgraph_node_set_element, varpool_node_set_element_def,
5419 varpool_node_set_element, const_varpool_node_set_element): Remove.
5420 (free_cgraph_node_set, free_varpool_node_set): New function.
5421 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
5422 * tree-emutls.c: Free varpool node set.
5423 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
5424 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
5425 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
5426 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
5427 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
5428 Move here from ipa.c; implement using pointer_map
5429 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
5430 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
5431 debug_cgraph_node_set, varpool_node_set_new,
5432 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
5433 dump_varpool_node_set, debug_varpool_node_set):
5434 Move to ipa-uitls.c.
5435 * passes.c (ipa_write_summaries): Update.
5437 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5439 From Mike Frysinger:
5440 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
5441 bf542/bf544/bf547/bf548/bf549.
5443 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
5445 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
5447 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5450 * config/bfin/bfin.md (MOVCC): New mode_macro.
5451 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
5452 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
5453 comments from generated assembly.
5455 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5458 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
5459 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
5460 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
5461 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
5462 * config/bfin/lib1funcs.asm (___muldi3): New function.
5464 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5466 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
5467 build_function_type_list instead of build_function_type.
5468 Rearrange initialization of `args' to do so.
5470 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5472 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
5473 instead of build_function_type.
5475 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5477 * config/rs6000/rs6000.c (spe_init_builtins): Call
5478 build_function_type_list instead of build_function_type.
5479 (paired_init_builtins, altivec_init_builtins): Likewise.
5480 (builtin_function_type): Likewise.
5482 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5484 * config/sh/sh.c (sh_media_init_builtins): Call
5485 build_function_type_list instead of build_function_type.
5487 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5489 * config/sparc/sparc.c (sparc_file_end): Call
5490 build_function_type_list instead of build_function_type.
5492 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5494 * config/alpha/alpha.c (alpha_init_builtins): Call
5495 build_function_type_list instead of build_function_type.
5497 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5499 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
5500 build_function_type_list instead of build_function_type.
5502 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5504 * config/iq2000/i2000.c (iq2000_init_builtins): Call
5505 build_function_type_list instead of build_function_type.
5506 Delete `endlink' variable.
5508 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5510 * config/avr/avr.c (avr_init_builtins): Call
5511 build_function_type_list instead of build_function_type.
5513 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5515 * config/picochip/picochip.c (picochip_init_builtins): Call
5516 build_function_type_list instead of build_function_type.
5517 Delete `endlink' variable.
5519 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5521 * config/bfin/bfin.c (bfin_init_builtins): Call
5522 build_function_type_list instead of build_function_type.
5524 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5527 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
5528 that's not CONST_INT. Seemingly redundant check is due to PR39768.
5530 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5533 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
5534 libbffastfp overrides libgcc when -mfast-fp.
5536 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5538 Originally from Bernd Schmidt
5539 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
5540 * config/bfin/bfin.c (override_options): Test it and error if
5543 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5545 Originally From Bernd Schmidt
5546 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
5549 2011-05-03 Jeff Law <law@redhat.com>
5551 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
5552 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
5553 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
5554 than accessing AUX field directly. Free the AUX field before
5556 (thread_block, thread_through_loop_header): Likewise.
5557 (thread_single_edge, mark_threaded_blocks): Likewise.
5558 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
5559 (register_jump_thread): Do not attempt to thread to a NULL edge.
5561 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
5563 * function.c (init_function_start): Call decide_function_section.
5564 * varasm.c (decide_function_section): New function.
5565 (assemble_start_function): When not using
5566 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
5567 or first_function_block_is_cold.
5568 * rtl.h (decide_function_section): Declare.
5570 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
5571 Jakub Jelinek <jakub@redhat.com>
5574 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
5575 only succeed if req_mode is the same as set_mode.
5577 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
5579 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
5580 * genemit.c (gen_exp): Handle RETURN.
5581 * emit-rtl.c (verify_rtx_sharing): Likewise.
5582 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
5583 * rtl.c (copy_rtx): RETURN is shared.
5584 * rtl.h (enum global_rtl_index): Add GR_RETURN.
5586 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
5587 * config/s390/s390.c (s390_emit_epilogue): Likewise.
5588 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
5589 * config/cris/cris.c (cris_expand_return): Likewise.
5590 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
5591 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
5592 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
5593 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
5594 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
5596 * config/v850/v850.c (expand_epilogue): Likewise.
5597 * config/bfin/bfin.c (bfin_expand_call): Likewise.
5598 * config/arm/arm.md (epilogue): Likewise.
5599 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
5600 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
5601 variable to ret_reg.
5603 2011-05-03 Richard Guenther <rguenther@suse.de>
5606 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
5607 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
5608 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
5610 2011-05-03 Richard Guenther <rguenther@suse.de>
5612 * c-decl.c (grokdeclarator): Instead of looking at
5613 TREE_OVERFLOW check if the constant fits in the index type.
5615 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
5617 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
5618 (vec_store_lanes<mode><mode>): Likewise.
5620 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
5622 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
5623 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
5624 convert_optab_index values.
5625 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
5626 * genopinit.c (optabs): Initialize the new optabs.
5627 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
5628 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
5629 (expand_STORE_LANES): New functions.
5630 * tree.h (build_array_type_nelts): Declare.
5631 * tree.c (build_array_type_nelts): New function.
5632 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
5633 (vect_model_load_cost): Likewise.
5634 (vect_store_lanes_supported, vect_load_lanes_supported)
5635 (vect_record_strided_load_vectors): Declare.
5636 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
5637 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
5638 (vect_transform_strided_load): Split out statement recording into...
5639 (vect_record_strided_load_vectors): ...this new function.
5640 * tree-vect-stmts.c (create_vector_array, read_vector_array)
5641 (write_vector_array, create_array_ref): New functions.
5642 (vect_model_store_cost): Add store_lanes_p argument.
5643 (vect_model_load_cost): Add load_lanes_p argument.
5644 (vectorizable_store): Try to use store-lanes functions for
5646 (vectorizable_load): Likewise load-lanes and loads.
5647 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
5648 to vect_model_store_cost.
5649 (vect_build_slp_tree): Likewise vect_model_load_cost.
5651 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
5653 * hooks.h (hook_bool_mode_uhwi_false): Declare.
5654 * hooks.c (hook_bool_mode_uhwi_false): New function.
5655 * target.def (array_mode_supported_p): New hook.
5656 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
5657 * doc/tm.texi: Regenerate.
5658 * stor-layout.c (mode_for_array): New function.
5659 (layout_type): Use it.
5660 * config/arm/arm.c (arm_array_mode_supported_p): New function.
5661 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
5663 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
5666 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
5667 for -fstack-check if the size to allocate is negative.
5669 2011-05-02 Lawrence Crowl <crowl@google.com>
5671 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
5672 (timevar_cond_start): New for starting a timer only when it is not
5674 (timevar_cond_stop): New for stopping a timer when it was not already
5677 * timevar.c (timevar_stop): Enable start/stop timers to start again.
5678 (timevar_cond_start): New as above.
5679 (timevar_cond_stop): New as above.
5681 * timevar.def: Add start/stop timers for compiler phases,
5682 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
5683 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
5684 and TV_PHASE_FINALIZE.
5685 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
5686 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
5687 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
5688 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
5689 Make unused TV_OVERLOAD into a start/stop timer.
5691 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
5692 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
5693 to indicate that they are start/stop timers.
5695 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
5696 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
5697 Move initialization to do_compile.
5698 (do_compile): Add initialization from above.
5699 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
5701 * c-decl.c (c_write_global_declarations): Add start/stop of
5702 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
5704 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
5705 or TV_PARSE_INLINE, as appropriate.
5706 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
5707 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
5709 2011-05-02 Jason Merrill <jason@redhat.com>
5712 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
5714 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
5717 * c-decl.c (finish_decl): Only create a composite if the types are
5720 2011-05-02 Joseph Myers <joseph@codesourcery.com>
5722 * config/fr30/fr30-protos.h (Mmode): Don't define.
5723 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
5724 definition where used.
5725 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
5726 define. Expand definitions where used.
5727 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
5728 Expand definitions where used.
5729 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
5730 rx_function_arg, rx_function_arg_advance,
5731 rx_function_arg_boundary): Expand definitions of those macros.
5732 * config/v850/v850-protos.h (Mmode): Don't define. Expand
5733 definition where used.
5735 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
5737 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
5739 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
5740 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
5741 with *movv2sf_internal_rex64_avx.
5742 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
5743 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
5744 Use %v prefix in insn mnemonic to handle TARGET_AVX.
5745 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
5746 "vex" in "prefix" attribute calculation.
5747 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
5749 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
5752 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
5753 inputs match the output.
5755 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
5758 * config/m68k/m68k.c (m68k_expand_prologue): Set
5759 current_function_static_stack_size.
5761 2011-05-02 Jan Hubicka <jh@suse.cz>
5763 * lto-streamer.c (lto_streamer_cache_insert_1,
5764 lto_streamer_cache_lookup, lto_streamer_cache_create,
5765 lto_streamer_cache_delete): Use pointer map instead of hashtable.
5766 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
5768 2011-05-02 Joseph Myers <joseph@codesourcery.com>
5770 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
5771 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
5772 config/m68k/t-opts: New files.
5773 * config/m68k/m68k-tables.opt: New file (generated).
5774 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
5775 extra_options and m68k/t-opts to tmake_file.
5776 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
5777 (all_isas): Initialize using m68k-isas.def.
5778 (all_microarchs): Initialize using m68k-microarchs.def.
5779 (m68k_find_selection): Remove.
5780 (m68k_handle_option): Don't assert that global structures are in
5781 use. Use error_at. Access variables via opts pointer. Don't
5782 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
5783 directly for -m68020-40 and -m68020-60.
5784 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
5785 m68k_tune_entry here.
5786 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
5788 (m68k_library_id_string): Remove declaration.
5789 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
5790 (m68k_library_id_string): New Variable.
5791 (march=, mcpu=, mtune=): Use Enum and Var.
5793 2011-05-02 Richard Guenther <rguenther@suse.de>
5795 * varasm.c (output_constructor_regular_field): Compute zero-based
5796 index with double-ints. Make sure to ICE instead of producing
5798 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
5799 in asserts. Properly use a signed type.
5801 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
5803 * config/i386/sse.md (V): New mode iterator.
5804 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
5806 (V_256): Rename from AVX256MODE.
5807 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
5808 condition to all users.
5810 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
5811 condition to all users.
5812 (VF_128): Make V4SF mode unconditional.
5813 (VF_256): Rename from AVX256MODEF2P.
5814 (VI4F_128): Rename from SSEMODE4S.
5815 (VI8F_128): Rename from SSEMODE2D.
5816 (VI4F_256): Rename from AVX256MODE8P.
5817 (VI8F_256): Rename from AVX256MODE4P.
5818 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
5819 (ssescalarmodesuffix): Remove SF and DF modes.
5820 (SSEMODE124): Remove.
5821 (SSEMODE1248): Ditto.
5822 (SSEMODEF2P): Ditto.
5823 (AVXMODEF2P): Ditto.
5824 (AVXMODEFDP): Ditto.
5825 (AVXMODEFSP): Ditto.
5826 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
5828 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
5830 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
5831 xop_pcmov_<mode>256. Use V mode iterator.
5833 Adjust RTX patterns globally for renamed mode attributes.
5835 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5837 * haifa-sched.c (sched_emit_insn): Emit insn before first
5838 non-scheduled insn. Inform back-end about new insn. Add
5839 new insn to scheduled_insns list.
5841 2011-05-02 Richard Guenther <rguenther@suse.de>
5843 PR tree-optimization/48822
5844 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
5845 (process_scc): Indicate which iteration we start.
5847 2011-05-02 Jan Hubicka <jh@suse.cz>
5849 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
5850 (lto_section_overrun): New.
5851 * lto-section-out.c (append_block): Rename to ...
5852 (lto_append_block): ... this one; export.
5853 (lto_output_1_stream): Move lto lto-streamer.h
5854 (lto_output_data_stream): Update.
5855 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
5856 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
5859 2011-05-02 Richard Guenther <rguenther@suse.de>
5861 * tree.c (tree_code_counts): New global array.
5862 (record_node_allocation_statistics): Count individual tree codes.
5863 (dump_tree_statistics): Dump individual code stats.
5865 2011-05-01 Jan Hubicka <jh@suse.cz>
5867 * ipa-inline.c (caller_growth_limits): Fix thinko when
5868 looking for largest stack frame.
5869 * ipa-inline.h (dump_inline_summary): Declare.
5870 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
5872 (dump_inline_summary): Export.
5873 (debug_inline_summary): Declare as DEBUG_FUNCTION.
5875 2011-05-01 Anatoly Sokolov <aesok@post.ru>
5877 * reginfo.c (memory_move_cost): Change rclass argument type form
5878 'enum reg_class' to reg_class_t.
5879 * reload.h (memory_move_cost): Update prototype.
5880 * postreload.c reload_cse_simplify_set): Change type dclass var to
5882 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
5884 (ira_allocate_and_set_costs): Change aclass argument type form
5885 'enum reg_class' to reg_class_t.
5886 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
5887 Change aclass argument type to reg_class_t.
5888 (update_conflict_hard_reg_costs): Change type aclass and pref vars
5890 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
5891 memory_move_cost call.
5893 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
5894 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
5895 Change type tmp var to reg_class_t.
5897 2011-04-30 Jan Hubicka <jh@suse.cz>
5899 * ipa-inline.c (can_inline_edge_p): Disregard limits when
5900 inlining into function with flatten attribute.
5901 (want_inline_small_function_p): Be more realistic about inlining
5902 cold calls where callee size grows.
5904 2011-04-30 Jan Hubicka <jh@suse.cz>
5906 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
5909 2011-04-30 Anatoly Sokolov <aesok@post.ru>
5911 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
5912 PRINT_OPERAND_PUNCT_VALID_P): Remove.
5913 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
5914 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
5915 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
5916 (print_operand): Rename to...
5917 (sparc_print_operand): ...this. Make static. Adjust
5918 sparc_print_operand function call.
5919 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
5922 2011-04-30 Jan Hubicka <jh@suse.cz>
5925 * ipa-inline.c (early_inliner): Disable when doing late
5926 addition of function.
5928 2011-04-30 Jakub Jelinek <jakub@redhat.com>
5930 * dwarf2out.c (get_address_mode): New inline.
5931 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
5932 if not dwarf_strict emit
5933 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
5934 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
5935 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
5936 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
5937 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
5938 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
5939 mem_loc_descriptor callers.
5940 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
5941 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
5942 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
5943 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
5944 (base_types): New variable.
5945 (get_base_type_offset, calc_base_type_die_sizes,
5946 base_type_for_mode, mark_base_types, base_type_cmp,
5947 move_marked_base_types): New functions.
5948 (calc_die_sizes): Assert that die_offset is 0 or equal to
5950 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
5951 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
5952 callers. If not dwarf_strict, call mem_loc_descriptor even for
5953 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
5954 (gen_subprogram_die): Don't give up on call site parameters
5955 with non-integral or large integral modes. Adjust
5956 mem_loc_descriptor callers.
5957 (prune_unused_types): Call prune_unused_types_mark on base_types
5959 (resolve_addr): Call mark_base_types.
5960 (dwarf2out_finish): Call move_marked_base_types.
5962 PR tree-optimization/48809
5963 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
5965 (gen_inbound_check): Don't compute index_expr - range_min in utype
5966 again, instead reuse SSA_NAME initialized in build_arrays.
5967 Remove two useless gsi_for_stmt calls.
5969 2011-04-29 Jeff Law <law@redhat.com>
5971 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
5973 2011-04-29 Martin Jambor <mjambor@suse.cz>
5975 * cgraph.h (cgraph_postorder): Remove declaration.
5976 * ipa-utils.h (ipa_free_postorder_info): Declare.
5977 (ipa_reverse_postorder): Likewise.
5978 * cgraphunit.c: Include ipa-utils.h.
5979 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
5980 * ipa-inline.c: Include ipa-utils.h.
5981 (ipa_inline): Update call to ipa_reverse_postorder.
5982 * ipa-pure-const.c (propagate_pure_const): Update call to
5983 ipa_reduced_postorder and ipa_print_order. Call
5984 ipa_free_postorder_info to clean up.
5985 (propagate_nothrow): Likewise.
5986 * ipa-reference.c (propagate): Removed a useless call to
5987 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
5988 and ipa_print_order. Call ipa_free_postorder_info to clean up.
5989 * ipa.c: Include ipa-utils.h.
5990 (ipa_profile): Update call to ipa_reverse_postorder.
5991 (cgraph_postorder): Moved to...
5992 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
5993 (ipa_utils_print_order): Renamed to ipa_print_order.
5994 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
5996 (ipa_free_postorder_info): New function.
5997 * passes.c: Include ipa-utils.h.
5998 (do_per_function_toporder): Update call to ipa_reverse_postorder.
5999 (ipa_write_summaries): Likewise.
6000 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
6001 (cgraphunit.o): Likewise.
6003 (ipa-inline.o): Likewise.
6005 2011-04-29 Jan Hubicka <jh@suse.cz>
6007 * gcc.dg/tree-ssa/inline-10.c: New testcase.
6008 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
6009 * ipa-inline.h (clause_t): Turn into unsigned int.
6010 * ipa-inline-analysis.c (add_clause): Do more simplification.
6011 (and_predicates): Shortcut more cases.
6012 (predicates_equal_p): Move forward; check that clauses are properly
6014 (or_predicates): Shortcut more cases.
6015 (edge_execution_predicate): Rewrite as...
6016 (set_cond_stmt_execution_predicate): ... this function; handle
6017 __builtin_constant_p.
6018 (set_switch_stmt_execution_predicate): New .
6019 (compute_bb_predicates): New.
6020 (will_be_nonconstant_predicate): Update TODO.
6021 (estimate_function_body_sizes): Use compute_bb_predicates
6022 and free them later, always try to estimate if stmt is constant.
6023 (estimate_time_after_inlining, estimate_size_after_inlining):
6024 Gracefully handle optimized out edges.
6025 (read_predicate): Fix off by one error.
6027 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
6029 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
6031 2011-04-27 Xinliang David Li <davidxl@google.com>
6033 * tree-profile.c (init_ic_make_global_vars): Set
6034 tls attribute on ic vars.
6035 * coverage.c (coverage_end_function): Initialize
6036 function_list with zero.
6038 2011-04-29 Richard Guenther <rguenther@suse.de>
6040 * builtins.c (fold_builtin_classify_type): Use integer_type_node
6041 for the type of the result.
6042 (fold_builtin_isascii): Likewise.
6043 (fold_builtin_toascii): Use integer_type_node where appropriate.
6044 (fold_builtin_logb): Likewise.
6045 (fold_builtin_frexp): Likewise.
6046 (fold_builtin_strstr): Likewise.
6047 (fold_builtin_strpbrk): Likewise.
6048 (fold_builtin_fputs): Likewise.
6049 (fold_builtin_sprintf): Likewise.
6050 (fold_builtin_snprintf): Likewise.
6051 (fold_builtin_printf): Likewise.
6052 (do_mpfr_remquo): Use a proper type for the assigned constant.
6053 (do_mpfr_lgamma_r): Likewise.
6054 * dwarf2out.c (resolve_one_addr): Use size_int.
6055 * except.c (init_eh): Likewise.
6056 (assign_filter_values): Use integer_type_node for filter values.
6057 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
6059 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
6060 for EH region numbers.
6061 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
6062 for the shift amount.
6064 2011-04-29 Richard Guenther <rguenther@suse.de>
6066 * expr.h (expand_shift): Rename to ...
6067 (expand_variable_shift): ... this.
6068 (expand_shift): Take a constant shift amount.
6069 * expmed.c (expand_shift): Rename to ...
6070 (expand_variable_shift): ... this.
6071 (expand_shift): New wrapper around expand_variable_shift.
6072 * expr.c (convert_move, emit_group_load_1, emit_group_store,
6073 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
6074 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
6075 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
6076 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
6077 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
6078 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
6079 emit_store_flag_1, emit_store_flag): Likewise.
6080 * builtins.c (expand_builtin_signbit): Likewise.
6081 * calls.c (load_register_parameters): Likewise.
6082 * function.c (assign_parm_setup_block): Likewise.
6083 * lower-subreg.c (resolve_shift_zext): Likewise.
6084 * optabs.c (widen_bswap, expand_abs_nojump,
6085 expand_one_cmpl_abs_nojump, expand_float): Likewise.
6086 * spu/spu.c (spu_expand_extv): Likewise.
6087 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
6089 2011-04-29 Richard Guenther <rguenther@suse.de>
6091 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
6092 for the remapped region number.
6093 * predict.c (build_predict_expr): Use integer_type_node for the
6095 * fold-const.c (fold_binary_loc): Use integer_type_node for
6096 the shift amount. Use a proper type for the PLUS_EXPR operand.
6098 2011-04-29 Michael Matz <matz@suse.de>
6100 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
6101 other trees that just builtins.
6102 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
6104 2011-04-29 Richard Guenther <rguenther@suse.de>
6106 * tree-nested.c (get_trampoline_type): Use size_int.
6107 (get_nl_goto_field): Likewise.
6108 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
6110 (lower_eh_constructs_2): Likewise.
6111 (lower_resx): Likewise.
6112 (lower_eh_dispatch): Likewise.
6113 * tree-mudflap.c (mf_build_string): Use size_int.
6114 (mudflap_register_call): Use integer_type_node for the flag.
6115 (mudflap_enqueue_constant): Use size_int.
6116 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
6117 instead of rebuilding it.
6119 2011-04-29 Richard Guenther <rguenther@suse.de>
6121 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
6122 Handle OBJ_TYPE_REF.
6123 (find_func_aliases_for_call): Use it more consistently.
6125 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
6127 * haifa-sched.c (last_nondebug_scheduled_insn): New.
6128 (rank_for_schedule): Use it.
6129 (schedule_block): Set it.
6131 2011-04-28 David Li <davidxl@google.com>
6133 * tree.c (crc32_string): Use crc32_byte.
6134 (crc32_byte): New function.
6135 * tree.h (crc32_byte): New function.
6136 * gcov.c (read_graph_file): Handle new cfg_cksum.
6137 (read_count_file): Ditto.
6138 * profile.c (instrument_values): Ditto.
6139 (get_exec_counts): Ditto.
6140 (read_profile_edge_counts): Ditto.
6141 (compute_branch_probabilities): Ditto.
6142 (compute_value_histograms): Ditto.
6143 (branch_prob): Ditto.
6144 (end_branch_prob): Ditto.
6145 * coverage.c (read_counts_file): Ditto.
6146 (get_coverage_counts): Ditto.
6147 (tree_coverage_counter_addr): Ditto.
6148 (coverage_checksum_string): Ditto.
6149 (coverage_begin_output): Ditto.
6150 (coverage_end_function): Ditto.
6151 (build_fn_info_type): Ditto.
6152 (build_fn_info_value): Ditto.
6153 * libgcov.c (gcov_exit): Ditto.
6154 * gcov-dump.c (tag_function): Ditto.
6155 (compute_checksum): Remove.
6157 2011-04-29 Alan Modra <amodra@gmail.com>
6159 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
6160 unspec plus offset. Tidy macho code.
6162 2011-04-29 Martin Jambor <mjambor@suse.cz>
6164 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
6165 node instead of a decl. Update all callers.
6166 * cgraph.h: Update declaration.
6168 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
6170 PR tree-optimization/48765
6171 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
6172 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
6173 to indicate if loop aware SLP is being used. Scan the statements
6174 and update the vectorization factor according to the type of
6175 vectorization before statement analysis.
6176 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
6177 pass it to vect_analyze_loop_operations.
6178 (vectorizable_reduction): Set number of copies to 1 in case of pure
6180 * tree-vect-stmts.c (vectorizable_conversion,
6181 vectorizable_assignment, vectorizable_shift,
6182 vectorizable_operation, vectorizable_type_demotion,
6183 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
6185 (vectorizable_condition): Move the check that it is not SLP
6186 vectorization before the number of copies check.
6187 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
6188 to vectorize the loop using SLP.
6190 2011-04-28 Jakub Jelinek <jakub@redhat.com>
6193 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
6196 2011-04-28 Joseph Myers <joseph@codesourcery.com>
6198 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
6199 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
6200 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
6201 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
6202 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
6204 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
6205 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6206 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6207 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6208 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6209 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
6211 * config/i386/linux.h (REG_NAME): Don't define.
6212 * config/i386/linux64.h (REG_NAME): Don't define.
6213 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
6214 Undefine before defining.
6216 2011-04-28 Jan Hubicka <jh@suse.cz>
6218 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
6219 nonconstant_names array.
6220 (estimate_function_body_sizes): Build nonconstant_names array; handle
6221 BUILT_IN_CONSTANT_P.
6223 2011-04-28 Richard Guenther <rguenther@suse.de>
6227 2011-04-28 Richard Guenther <rguenther@suse.de>
6229 * tree-ssa-structalias.c (solve_constraints): Build succ graph
6230 as late as possible.
6232 2011-04-28 Richard Guenther <rguenther@suse.de>
6234 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
6235 (debug_constraint): Do it here.
6236 (dump_constraints): And here.
6237 (rewrite_constraints): And here.
6238 (dump_constraint_edge): Remove.
6239 (dump_constraint_graph): Rewrite to produce DOT output.
6240 (solve_constraints): Build succ graph as late as possible.
6241 Dump constraint graphs before and after solving.
6243 2011-04-28 Richard Guenther <rguenther@suse.de>
6245 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
6246 New function split out from ...
6247 (find_func_aliases): ... here. Call it.
6248 (find_func_aliases_for_call): Likewise.
6250 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
6252 * internal-fn.h (internal_fn_name_array): Declare.
6253 (internal_fn_flags_array): Likewise.
6255 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
6257 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
6258 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
6260 (ssemodefsuffix): Remove.
6261 (ssevecmodesuffix): New mode attribute.
6262 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
6263 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
6264 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
6265 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
6266 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
6267 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
6268 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
6269 ssemodesuffix mode attribute.
6270 (float splitters): Use ssevecmodesuffix mode attribute.
6271 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
6272 (sseinsmode): Rename from avxvecmode.
6273 (avxsizesuffix): Rename from avxmodesuffix.
6274 (sseintvecmode): Rename from avxpermvecmode.
6275 (ssedoublevecmode): Rename from ssedoublesizemode.
6276 (ssehalfvecmode): Rename from avxhalfvecmode.
6277 (ssescalarmode): Rename from avxscalarmode.
6278 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
6279 templates for ssemodesuffix mode attribute.
6280 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
6283 Adjust RTX patterns globally for renamed mode attributes.
6285 2011-04-27 Jan Hubcika <jh@suse.cz>
6287 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
6288 * ipa-inline-analysis.c: Include alloc-pool.h.
6289 (edge_predicate_pool): New.
6290 (trye_predicate_p): New function
6291 (false_predicate_p): New function.
6292 (add_clause): Sanity check that false clauses are "optimized";
6293 never add clauses to predicate that is already known to be false.
6294 (and_predicate): Use flase_predicate_p.
6295 (evaulate_predicate): Rename to ...
6296 (evaluate_predicate): ... this one; update all callers; assert
6297 that false is not listed among possible truths.
6298 (dump_predicate): Use true_predicate_p.
6299 (account_size_time): Use false_predicate_p.
6300 (evaulate_conditions_for_edge): Rename to ...
6301 (evaluate_conditions_for_edge) ... this one.
6302 (edge_set_predicate): New function.
6303 (inline_edge_duplication_hook): Duplicate edge predicates.
6304 (inline_edge_removal_hook): Free edge predicates.
6305 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
6306 (dump_inline_summary): Update.
6307 (estimate_function_body_sizes): Set edge predicates.
6308 (estimate_calls_size_and_time): Handle predicates.
6309 (estimate_callee_size_and_time): Update.
6310 (remap_predicate): Add toplev_predicate; update comment.
6311 (remap_edge_predicates): New function.
6312 (inline_merge_summary): Compute toplev predicate; update.
6313 (read_predicate): New function.
6314 (read_inline_edge_summary): Use it.
6315 (inline_read_section): Likewise.
6316 (write_predicate): New function.
6317 (write_inline_edge_summary): Use it.
6318 (inline_write_summary): Likewise.
6319 (inline_free_summary): Free alloc pool and edge summary vec.
6321 2011-04-27 Richard Guenther <rguenther@suse.de>
6323 * tree-ssa-structalias.c (changed_count): Remove.
6324 (changed): Use a bitmap.
6325 (unify_nodes): Adjust.
6326 (do_sd_constraint): Likewise.
6327 (do_ds_constraint): Likewise.
6328 (do_complex_constraint): Likewise.
6329 (solve_graph): Likewise.
6331 2011-04-27 Jan Hubicka <jh@suse.cz>
6333 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
6335 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
6337 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
6338 (avx_vperm2f128_*_operand): Ditto.
6339 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
6340 Use avx_vpermilp_parallel in insn condition.
6341 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
6342 Use avx_vperm2f128_parallel in insn condition.
6344 2011-04-27 Richard Guenther <rguenther@suse.de>
6346 * Makefile.in (tree-ssa-structalias.o): Remove
6347 gt-tree-ssa-structalias.h dependency.
6348 (GTFILES): Remove tree-ssa-structalias.c.
6349 * tree.c (allocate_decl_uid): New function.
6350 (make_node_stat): Use it.
6351 (copy_node_stat): Likewise.
6352 * tree.h (allocate_decl_uid): Declare.
6353 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
6354 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
6355 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
6356 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
6357 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
6358 (struct heapvar_map): Likewise.
6359 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
6360 heapvar_insert): Likewise.
6361 (make_heapvar_for): Rename to ...
6362 (make_heapvar): ... this. Simplify.
6363 (fake_var_decl_obstack): New global var.
6364 (build_fake_var_decl): New function.
6365 (make_constraint_from_heapvar): Adjust.
6366 (handle_lhs_call): Likewise.
6367 (create_function_info_for): Likewise.
6368 (intra_create_variable_infos): Likewise.
6369 (init_alias_vars): Allocate fake_var_decl_obstack.
6370 (init_alias_heapvars, delete_alias_heapvars): Remove.
6371 (compute_points_to_sets): Do not call init_alias_heapvars.
6372 (ipa_pta_execute): Likewise.
6373 (delete_points_to_sets): Free fake_var_decl_obstack.
6375 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6377 * config/spu/divmovti4.c (union qword_UTItype): New data type.
6378 (si_from_UTItype, si_to_UTItype): New functions.
6379 (__udivmodti4): Use them to implement type-punning.
6380 * config/spu/multi3.c (union qword_TItype): New data type.
6381 (si_from_TItype, si_to_TItype): New functions.
6382 (__multi3): Use them to implement type-punning.
6384 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6386 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
6388 2011-04-27 Jan Hubicka <jh@suse.cz>
6390 * ipa-prop.c (function_insertion_hook_holder): New holder.
6391 (ipa_add_new_function): New function.
6392 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
6393 Register/deregister holder.
6395 2011-04-27 Richard Guenther <rguenther@suse.de>
6397 PR tree-optimization/48772
6398 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
6400 2011-04-27 Richard Guenther <rguenther@suse.de>
6402 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
6403 TARGET_MEM_REF handling.
6405 2011-04-27 Nick Clifton <nickc@redhat.com>
6407 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
6408 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
6409 (REG_CLASS_NAMES): Likewise.
6410 (REG_CLASS_CONTENTS): Likewise.
6411 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
6412 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
6413 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
6414 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
6415 (EVEN_REGS): New macro. Alias for QUAD_REGS.
6416 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
6417 duplicate register classes.
6418 (frv_class_likely_spilled_p): Likewise.
6419 (frv_register_move_cost): Likewise.
6421 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
6422 end of the regno_reg_class array.
6424 2011-04-27 Jakub Jelinek <jakub@redhat.com>
6427 * c-typeck.c (build_binary_op): Don't wrap arguments if
6428 int_operands is true.
6430 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
6433 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
6434 targetm.calls.must_pass_in_stack for void type.
6436 2011-04-26 Jan Hubicka <jh@suse.cz>
6438 * cgraphbuild.c (build_cgraph_edges): Update call
6439 of cgraph_create_edge and cgraph_create_indirect_edge.
6440 * cgraph.c (cgraph_create_edge_including_clones,
6441 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
6442 cgraph_update_edges_for_call_stmt_node): Do not take nest
6443 argument; do not initialize call_stmt_size/time.
6444 (dump_cgraph_node): Do not dump nest.
6445 (cgraph_clone_edge): Do not take loop_nest argument;
6446 do not propagate it; do not clone call_stmt_size/time.
6447 (cgraph_clone_node): Likewise.
6448 (cgraph_create_virtual_clone): Update.
6449 * cgraph.h (struct cgraph_edge): Remove
6450 call_stmt_size/call_stmt_time/loop_nest.
6451 (cgraph_create_edge, cgraph_create_indirect_edge,
6452 cgraph_create_edge_including_clones, cgraph_clone_node): Update
6454 * tree-emutls.c (gen_emutls_addr): Update.
6455 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
6456 loop_nest; handle indirect calls, too.
6457 (clone_inlined_nodes): Do not care about updating inline summaries.
6458 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
6459 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
6460 stream call_stmt_size/call_stmt_time/loop_nest.
6461 * ipa-inline.c (edge_badness): Update.
6462 (ipa_inline): dump summaries after inlining.
6463 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
6465 (inline_edge_summary): New function.
6466 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
6467 (inline_edge_removal_hook): Handle edge summaries.
6468 (inline_edge_duplication_hook): New hook.
6469 (inline_summary_alloc): Alloc hooks.
6470 (initialize_growth_caches): Do not register removal hooks.
6471 (free_growth_caches); Do not free removal hook.
6472 (dump_inline_edge_summary): New function.
6473 (dump_inline_summary): Use it.
6474 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
6475 (inline_update_callee_summaries): New function.
6476 (inline_merge_summary): Use it.
6477 (do_estimate_edge_time, do_estimate_edge_growth): Update.
6478 (read_inline_edge_summary): New function.
6479 (inline_read_section): Use it.
6480 (write_inline_edge_summary): New function.
6481 (inline_write_summary): Use it.
6482 (inline_free_summary): Free edge new holders.
6483 * tree-inline.c (copy_bb): Update.
6485 2011-04-26 Jason Merrill <jason@redhat.com>
6487 * tree-eh.c (lower_try_finally_switch): Create the label along with
6488 the CASE_LABEL_EXPR.
6490 2011-04-26 David S. Miller <davem@davemloft.net>
6491 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6493 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
6494 * configure: Regenerate.
6496 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
6499 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
6501 (VEC_reduc): New code iterator and splitters for vector reduction.
6502 (VEC_reduc_name): Ditto.
6503 (VEC_reduc_rtx): Ditto.
6504 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
6505 (reduc_<VEC_reduc_name>_v4sf): Ditto.
6507 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
6508 support for extracting SF on VSX.
6510 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
6511 generating xscvspdp.
6512 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
6513 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
6514 double add, minimum, maximum vector reduction.
6515 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
6516 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
6517 optimize double vector reduction.
6518 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
6520 2011-04-26 Joseph Myers <joseph@codesourcery.com>
6522 * config/fr30/fr30.h (inhibit_libc): Don't define.
6523 * config/m32r/m32r-protos.h: Correct comment.
6524 * config/v850/v850.h (GHS_default_section_names,
6525 GHS_current_section_names): Use tree, not union tree_node *.
6527 2011-04-26 Xinliang David Li <davidxl@google.com>
6529 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
6530 * c-family/c-opts.c (c_common_handle_option): Set
6531 warn_maybe_uninitialized.
6532 * opts.c (common_handle_option): Ditto.
6533 * common.opt: New option.
6534 * tree-ssa.c (warn_uninit): Add one more parameter.
6535 (warn_uninitialized_var): Pass warning code.
6536 * tree-flow.h: Interface change.
6538 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6540 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
6541 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
6542 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
6544 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6546 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
6547 * config/mips/mips.opt (mmips-tfile): Remove.
6549 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
6550 mips-tdump reference to ...
6551 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
6552 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
6553 reference by Tru64 UNIX.
6555 2011-04-26 Jakub Jelinek <jakub@redhat.com>
6558 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
6559 is error_mark_node, set value to NULL.
6561 PR tree-optimization/48734
6562 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
6563 if return value from maybe_fold_*_comparsions isn't something
6564 the code is prepared to handle.
6566 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
6568 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
6570 (ext_QIreg_nomode_operands): Remove.
6571 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
6575 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
6577 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
6579 2011-04-26 Richard Guenther <rguenther@suse.de>
6581 * c-typeck.c (build_unary_op): Do not expand array-refs via
6582 pointer arithmetic. Only adjust qualifiers for function types.
6584 2011-04-26 Richard Guenther <rguenther@suse.de>
6587 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
6588 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
6589 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
6590 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
6592 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
6594 * doc/extend.texi: Document __underlying_type.
6596 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
6598 * config/rs6000/titan.md (automata_option "progress"): Remove.
6600 2011-04-25 Jeff Law <law@redhat.com>
6602 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
6604 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6606 * system.h (ENUM_BITFIELD): Remove.
6608 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
6609 Eric Botcazou <ebotcazou@adacore.com>
6611 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
6612 for STORE_FLAG_VALUE==-1 case.
6614 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
6617 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
6618 LEGITIMATE_PIC_OPERAND_P.
6620 2011-04-24 Jan Hubicka <jh@suse.cz>
6622 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
6624 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
6625 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
6626 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
6627 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
6628 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
6629 Sanity check predicate length.
6630 (remap_predicate): Likewise; sanity check jump functions.
6631 (inline_read_section, inline_write_summary): Sanity check
6634 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
6637 * doc/extend.texi (Type Traits): Document __is_standard_layout,
6638 __is_literal_type, and __is_trivial; update throughout about
6639 possibly cv-qualified void types.
6641 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
6643 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
6644 testsuite and make it version agnostic.
6646 2011-04-22 Jan Hubicka <jh@suse.cz>
6648 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
6650 2011-04-23 Jakub Jelinek <jakub@redhat.com>
6653 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
6654 to VOID_TYPE even around MODIFY_EXPR.
6656 2011-04-22 Mike Stump <mikestump@comcast.net>
6658 * gensupport.c (read_md_rtx): Fix typo in comment.
6659 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
6662 2011-04-22 Jan Hubicka <jh@suse.cz>
6664 * gengtype.c (open_base_files): Add ipa-inline.h include.
6665 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
6666 ipa-prop.c; update all uses.
6667 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
6668 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
6669 merge summary of inlined function into former caller.
6670 * ipa-inline.c (max_benefit): Remove.
6671 (edge_badness): Compensate for removal of benefits.
6672 (update_caller_keys): Use
6673 reset_node_growth_cache/reset_edge_growth_cache.
6674 (update_callee_keys): Likewise.
6675 (update_all_callee_keys): Likewise.
6676 (inline_small_functions): Do not collect max_benefit; do not reset
6677 estimated_growth; call free_growth_caches and initialize_growth_caches.
6678 * ipa-inline.h (struct condition, type clause_t, struct predicate,
6679 struct size_time_entry): New structures.
6680 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
6681 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
6682 and estimated_growth.
6683 (edge_growth_cache_entry): New structure.
6684 (node_growth_cache, edge_growth_cache): New global vars.
6685 (estimate_growth): Turn into inline.
6686 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
6687 initialize_growth_caches, free_growth_caches): Declare.
6688 (estimate_edge_growth): Rewrite.
6689 (estimate_edge_time): Implement as inline cache lookup.
6690 (reset_node_growth_cache, reset_edge_growth_cache): New inline
6692 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
6693 (NUM_CONDITIONS): New constant.
6694 (predicate_conditions): New enum.
6695 (IS_NOT_CONSTANT): New constant.
6696 (edge_removal_hook_holder): New var.
6697 (node_growth_cache, edge_growth_cache): New global vars.
6698 (true_predicate, single_cond_predicate, false_predicate,
6699 not_inlined_predicate, add_condition, add_clause, and_predicates,
6700 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
6701 dump_clause, dump_predicate, account_size_time,
6702 evaulate_conditions_for_edge): New functions.
6703 (inline_summary_alloc): Move to heap.
6704 (inline_node_removal_hook): Clear condition and entry vectors.
6705 (inline_edge_removal_hook): New function.
6706 (initialize_growth_caches, free_growth_caches): New function.
6707 (dump_inline_summary): Update.
6708 (edge_execution_predicate): New function.
6709 (will_be_nonconstant_predicate): New function.
6710 (estimate_function_body_sizes): Compute BB and constantness predicates.
6711 (compute_inline_parameters): Do not clear estimated_growth.
6712 (estimate_edge_size_and_time): New function.
6713 (estimate_calls_size_and_time): New function.
6714 (estimate_callee_size_and_time): New function.
6715 (remap_predicate): New function.
6716 (inline_merge_summary): New function.
6717 (do_estimate_edge_time): New function based on...
6718 (estimate_edge_time): ... this one.
6719 (do_estimate_edge_growth): New function.
6720 (do_estimate_growth): New function based on....
6721 (estimate_growth): ... this one.
6722 (inline_analyze_function): Analyze after deciding on jump functions.
6723 (inline_read_section): New function.
6724 (inline_read_summary): Use it.
6725 (inline_write_summary): Write all the new data.
6726 * ipa-prop.c (ipa_get_param_decl_index): Export.
6727 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
6728 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
6730 (ipa_get_lattice): Move here from ipa-cp.c
6731 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
6732 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
6733 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
6734 cgraph_edge_inlinable_p): Remove.
6735 * cgraphunit.c: Include ipainline.h
6736 (cgraph_process_new_functions): Update call of
6737 compute_inline_parameters.
6739 2011-04-22 Richard Guenther <rguenther@suse.de>
6741 * tree.c (build_int_cst): Properly create canonicalized integer
6743 (build_int_cst_type): Remove scary comments.
6745 2011-04-22 Xinliang David Li <davidxl@google.com>
6747 * toplev.c (process_options): Enable -Werror=coverage-mismatch
6748 by default when -Wno-error is not specified.
6749 * opts-global.c (decode_options): Remove call to
6750 control_warning_options.
6752 2011-04-22 Jakub Jelinek <jakub@redhat.com>
6754 PR tree-optimization/48717
6755 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
6756 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
6758 2011-04-22 Joseph Myers <joseph@codesourcery.com>
6760 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
6761 definition where used.
6763 2011-04-22 Jakub Jelinek <jakub@redhat.com>
6766 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
6767 TREE_STATIC variables declared inside of some OpenMP construct.
6769 2011-04-22 Martin Jambor <mjambor@suse.cz>
6772 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
6774 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
6777 * c-typeck.c (pop_init_level): Do not warn about initializing
6780 2011-04-22 Alan Modra <amodra@gmail.com>
6782 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
6783 when returning call_cookie.
6784 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
6785 pointers, to functions with no more vector args than the current
6786 function, and some non-local calls for ABI_V4.
6787 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
6788 sibcall_nonlocal_aix64): Combine to ..
6789 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
6790 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
6791 (sibcall_value_nonlocal_aix<mode>): ..likewise.
6792 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
6793 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
6795 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
6796 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
6797 sibcall_value_symbolic_64): Delete.
6799 2011-04-21 Xinliang David Li <davidxl@google.com>
6801 * cgraph.h: Remove pid.
6802 * cgraph.c: Remove pid.
6803 * value-prof.c (init_node_map): New function.
6804 (del_node_map): New function.
6805 (find_func_by_funcdef_no): New function.
6806 (gimple_ic_transform): Call new function.
6807 * cgraphunit.c (cgraph_finalize_function): Remove pid.
6808 * function.c (get_last_funcdef_no): New function.
6809 * function.h (get_last_funcdef_no): New function.
6810 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
6811 to libgcov function.
6812 (tree-profiling): Call node map init and delete function.
6814 2011-04-21 Ian Lance Taylor <iant@google.com>
6816 * godump.c (go_format_type): Use exported Go name for anonymous
6819 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
6821 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
6822 Call builtin_function_type_list instead of builtin_function_type.
6823 (UNARY, BINARY, TRINARY, QUAD): Likewise.
6825 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
6827 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
6828 build_function_type_list instead of build_function_type.
6829 Delete variable `endlink'.
6831 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
6833 * config/s390/s390.c (s390_init_builtins): Call
6834 build_function_type_list instead of build_function_type.
6836 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
6838 * config/ia64/ia64.c (ia64_init_builtins): Call
6839 build_function_type_list instead of builtin_function_type.
6841 2011-04-21 Easwaran Raman <eraman@google.com>
6843 * cfgexpand.c (stack_var): Remove OFFSET...
6844 (add_stack_var): ...and its reference here...
6845 (expand_stack_vars): ...and here.
6846 (stack_var_cmp): Sort by descending order of size.
6847 (partition_stack_vars): Change heuristic.
6848 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
6849 (dump_stack_var_partition): Add newline after each partition.
6851 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
6852 Jeff Law <law@redhat.com>
6854 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
6855 * gengtype.c (matching_file_name_substitute): Likewise.
6857 2011-04-21 Richard Guenther <rguenther@suse.de>
6860 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
6862 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
6864 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
6866 2011-04-21 Richard Guenther <rguenther@suse.de>
6868 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
6871 2011-04-21 Richard Guenther <rguenther@suse.de>
6873 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
6874 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
6875 Use DECL_P, not SSA_VAR_P.
6876 (ptr_derefs_may_alias_p): Likewise.
6877 (ptr_deref_may_alias_ref_p_1): Likewise.
6878 (decl_refs_may_alias_p): Likewise.
6879 (refs_may_alias_p_1): Likewise.
6880 (ref_maybe_used_by_call_p_1): Likewise.
6881 (call_may_clobber_ref_p_1): Likewise.
6882 (indirect_ref_may_alias_decl_p): Assume indirect refrences
6883 are either MEM_REF or TARGET_MEM_REF.
6884 (indirect_refs_may_alias_p): Likewise.
6885 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
6886 for MEM_EXPR of indirect calls.
6888 2011-04-21 Tristan Gingold <gingold@adacore.com>
6890 * vmsdbgout.c (write_srccorr): Compute file length from the string.
6891 (dst_file_info_struct): Remove flen field.
6892 (lookup_filename): Remove code that set flen field.
6894 2011-04-21 Tristan Gingold <gingold@adacore.com>
6896 * config/ia64/ia64.c (ia64_start_function): Add a guard.
6898 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
6901 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
6902 vec_extract and vec_concat for non-SSE4_1 targets.
6904 2011-04-21 Richard Guenther <rguenther@suse.de>
6906 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
6909 2011-04-21 Joseph Myers <joseph@codesourcery.com>
6911 * config/i386/cygming.h (union tree_node, TREE): Don't define or
6913 (FILE): Don't undefine.
6915 2011-04-21 Joseph Myers <joseph@codesourcery.com>
6917 * config/alpha/alpha.c (struct machine_function): Use rtx, not
6919 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
6921 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
6922 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
6923 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
6925 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
6926 definitions where used.
6927 * config/microblaze/microblaze.h (struct microblaze_args): Use
6928 rtx, not struct rtx_def *.
6929 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
6931 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
6932 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
6933 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
6934 not struct rtx_def *.
6935 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
6937 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
6939 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
6941 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
6943 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
6944 operand_equal_p to compare DR_BASE_ADDRESSes.
6945 (vect_check_interleaving): Likewise.
6947 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
6950 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
6951 for all Neon struct constants.
6953 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
6955 * target.def (legitimate_constant_p): New hook.
6956 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
6957 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
6958 * doc/tm.texi: Regenerate.
6959 * hooks.h (hook_bool_mode_rtx_true): Declare.
6960 * hooks.c (hook_bool_mode_rtx_true): Define.
6961 * system.h (LEGITIMATE_CONSTANT_P): Poison.
6962 * calls.c (precompute_register_parameters): Replace uses of
6963 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
6964 (emit_library_call_value_1): Likewise.
6965 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
6966 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
6967 * ira-costs.c (scan_one_insn): Likewise.
6968 * recog.c (general_operand, immediate_operand): Likewise.
6969 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
6970 * reload1.c (init_eliminable_invariants): Likewise.
6972 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
6974 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
6975 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
6977 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6978 * config/alpha/predicates.md (input_operand): Update call to
6979 alpha_legitimate_constant_p.
6981 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
6982 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
6983 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
6984 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6985 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
6986 (arm_legitimate_constant_p): New functions.
6987 (arm_cannot_force_const_mem): Make static.
6989 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
6991 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
6992 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
6993 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
6994 instead of bfin_legitimate_constant_p.
6995 (bfin_legitimate_constant_p): Make static. Add a mode argument.
6996 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6998 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
7000 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
7002 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
7003 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
7004 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7005 (frv_legitimate_constant_p): Make static. Add a mode argument.
7007 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
7008 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
7009 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
7011 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
7012 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
7013 * config/i386/i386.c (legitimate_constant_p): Rename to...
7014 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
7016 (ix86_cannot_force_const_mem): Update accordingly.
7017 (ix86_legitimate_address_p): Likewise.
7018 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7019 * config/i386/i386.md: Update commentary.
7021 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
7022 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
7023 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7024 (ia64_legitimate_constant_p): Make static. Add a mode argument.
7026 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
7028 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
7029 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
7030 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7031 (lm32_legitimate_constant_p): Make static. Add a mode argument.
7033 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
7034 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
7035 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
7037 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
7038 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7039 (m32r_legitimate_constant_p): New function.
7041 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
7042 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
7043 LEGITIMATE_CONSTANT_P.
7044 (LEGITIMATE_CONSTANT_P): Delete.
7045 * config/m68k/m68k.c (m68k_expand_prologue): Call
7046 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
7047 (m68k_legitimate_constant_p): New function.
7048 * config/m68k/m68k.md: Update comments.
7050 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
7051 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7052 (mcore_legitimate_constant_p): New function.
7054 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
7055 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
7056 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
7057 Add a mode argument.
7058 (mep_legitimate_address): Update accordingly.
7059 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7061 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
7063 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
7064 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
7065 static. Check OP's mode for VOIDmode.
7066 (microblaze_legitimate_constant_p): New function.
7067 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7069 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
7070 * config/mips/mips.c (mips_legitimate_constant_p): New function.
7071 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
7072 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7073 * config/mips/predicates.md: Update comments.
7075 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
7076 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
7077 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7078 (mmix_legitimate_constant_p): Make static, return a bool, and take
7080 (mmix_print_operand_address): Update accordingly.
7082 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
7084 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
7085 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
7086 static. Add a mode argument.
7087 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7089 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
7091 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
7092 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7093 (pa_legitimate_constant_p): New function.
7095 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
7097 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
7098 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7099 (pdp11_legitimate_constant_p): New function.
7101 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
7102 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7103 (rs6000_legitimate_constant_p): New function.
7105 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
7106 (rx_legitimate_constant_p): ...this.
7107 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
7108 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
7109 (rx_legitimate_constant_p): ...this.
7110 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7111 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
7113 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
7114 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
7115 * config/s390/s390.c (legitimate_constant_p): Rename to...
7116 (s390_legitimate_constant_p): ...this. Make static, return a bool,
7117 and add a mode argument.
7118 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7120 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
7122 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
7123 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7124 (sh_legitimate_constant_p): New function.
7126 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
7127 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
7128 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7129 (legitimate_constant_p): Rename to...
7130 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
7132 (constant_address_p): Update accordingly.
7134 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
7135 argument and return a bool.
7136 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
7137 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7138 (spu_legitimate_constant_p): Add a mode argument and return a bool.
7139 (spu_rtx_costs): Update accordingly.
7140 * config/spu/predicates.md (vec_imm_operand): Likewise.
7142 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
7144 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
7145 * config/v850/v850.c (v850_legitimate_constant_p): New function.
7146 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7148 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
7149 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
7150 * config/vax/vax.c (legitimate_constant_p): Likewise.
7152 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
7153 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7154 (xtensa_legitimate_constant_p): New function.
7156 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
7158 * target.def (cannot_force_const_mem): Add a mode argument.
7159 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
7160 * doc/tm.texi: Regenerate.
7161 * hooks.h (hook_bool_mode_rtx_false): Declare.
7162 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
7163 (hook_bool_mode_const_rtx_true): Likewise.
7164 (hook_bool_mode_rtx_false): New function.
7165 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
7166 to be non-VOID. Update call to cannot_force_const_mem.
7167 (find_reloads): Update accordingly.
7168 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
7169 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
7171 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
7172 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
7173 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
7174 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
7175 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
7176 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
7177 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
7178 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
7179 (m68k_cannot_force_const_mem): ...this new function.
7180 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
7182 (mips_const_insns, mips_legitimize_const_move): Update calls.
7183 (mips_secondary_reload_class): Likewise.
7184 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
7185 (pa_cannot_force_const_mem): ...this new function.
7186 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
7187 (rs6000_cannot_force_const_mem): ...this new function.
7188 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
7190 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
7191 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
7193 (xtensa_cannot_force_const_mem): ...this new function.
7195 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
7197 * config/mips/mips.c (mips16_build_function_stub): Call
7198 build_function_type_list instead of build_function_type.
7199 (mips16_build_call_stub): Likewise.
7201 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
7203 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
7204 instead of build_function_type.
7206 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
7208 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
7209 instead of build_function_type.
7211 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
7214 * config/i386/i386.md (insv): Change operand 0 constraint to
7215 "register_operand". Change operand 1 and 2 constraint to
7216 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
7217 * config/i386/sse.md (sse4_1_pinsrb): Export.
7218 (sse2_pinsrw): Ditto.
7219 (sse4_1_pinsrd): Ditto.
7220 (sse4_1_pinsrq): Ditto.
7221 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
7222 * config/i386/i386.c (ix86_expand_pinsr): New.
7224 2011-04-20 Easwaran Raman <eraman@google.com>
7226 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
7227 containing union type only with -fstrict-aliasing.
7229 2011-04-20 Jim Meyering <meyering@redhat.com>
7231 Remove useless if-before-free tests.
7232 * calls.c (expand_call, save_area): Likewise.
7233 * cfgcleanup.c (try_forward_edges): Likewise.
7234 * collect2.c (collect_execute): Likewise.
7235 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
7236 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
7237 * coverage.c (coverage_checksum_string): Likewise.
7238 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
7239 * cselib.c (cselib_init): Likewise.
7240 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
7241 (df_set_clean_cfg): Likewise.
7242 * function.c (free_after_compilation): Likewise.
7243 * gcc.c (do_spec_1, main): Likewise.
7244 * gcov.c (create_file_names): Likewise.
7245 * gensupport.c (identify_predicable_attribute): Likewise.
7246 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
7247 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
7248 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
7249 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
7250 * ipa-pure-const.c (local_pure_const): Likewise.
7251 * ipa-reference.c (propagate): Likewise.
7252 * ira-costs.c (free_ira_costs): Likewise.
7253 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
7254 * matrix-reorg.c (mat_free): Likewise.
7255 * prefix.c (get_key_value): Likewise.
7256 * profile.c (compute_value_histograms): Likewise.
7257 * reload1.c (free_reg_equiv): Likewise.
7258 * sched-deps.c (free_deps): Likewise.
7259 * sel-sched-ir.c (fence_clear): Likewise.
7260 * sese.c (set_rename, if_region_set_false_region): Likewise.
7261 * tree-data-ref.c (free_rdg): Likewise.
7262 * tree-eh.c (lower_try_finally): Likewise.
7263 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
7264 * tree-ssa-live.c (delete_var_map): Likewise.
7265 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
7266 * tree-ssa-pre.c (phi_trans_add): Likewise.
7268 2011-04-20 Jakub Jelinek <jakub@redhat.com>
7270 PR tree-optimization/48611
7271 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
7272 beyond ERT_MUST_NOT_THROW region.
7274 2011-04-20 Catherine Moore <clm@codesourcery.com>
7276 * config/mips/mips.opt (mfix-24k): New.
7277 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
7278 * config/mips/mips.md (length): Increase by 4 for stores if
7280 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
7281 all noreorder if fixing 24K errata.
7282 * doc/invoke.texi: Document mfix-24k.
7284 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
7286 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
7287 quad-word modes, reduce to 9-bit index range when above 1016 limit.
7289 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
7291 * config/arm/arm.c (arm_gen_constant): Move movw support ....
7292 (const_ok_for_op): ... to here.
7294 2011-04-20 Kai Tietz <ktietz@redhat.com>
7296 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
7297 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
7299 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
7301 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
7303 2011-04-20 Richard Guenther <rguenther@suse.de>
7305 PR tree-optimization/47892
7306 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
7309 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
7311 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
7313 2011-04-20 Tristan Gingold <gingold@adacore.com>
7315 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
7317 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
7321 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
7322 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
7323 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
7324 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
7325 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
7327 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
7330 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
7331 (avr_asm_named_section, avr_asm_output_aligned_common,
7332 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
7333 New functions to update...
7334 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
7335 (avr_asm_init_sections): Overwrite section callbacks for
7336 data_section, bss_section.
7337 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
7339 (avr_file_end): ...here.
7341 2011-04-20 Richard Guenther <rguenther@suse.de>
7344 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
7345 objects and types here. Adjust for their offset before comparing.
7347 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
7349 * tree-vect-stmts.c (vectorizable_store): Only chain one related
7352 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
7354 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
7355 (GIMPLE_H): Include $(INTERNAL_FN_H).
7356 (OBJS-common): Add internal-fn.o.
7357 (internal-fn.o): New rule.
7358 * internal-fn.def: New file.
7359 * internal-fn.h: Likewise.
7360 * internal-fn.c: Likewise.
7361 * gimple.h: Include internal-fn.h.
7362 (GF_CALL_INTERNAL): New gf_mask.
7363 (gimple_statement_call): Put fntype into a union with a new
7365 (gimple_build_call_internal): Declare.
7366 (gimple_build_call_internal_vec): Likewise.
7367 (gimple_call_same_target_p): Likewise.
7368 (gimple_call_internal_p): New function.
7369 (gimple_call_internal_fn): Likewise.
7370 (gimple_call_fntype): Return null for internal calls.
7371 (gimple_call_set_fntype): Assert that the function is not internal.
7372 (gimple_call_set_fn): Likewise.
7373 (gimple_call_set_fndecl): Likewise.
7374 (gimple_call_set_internal_fn): New function.
7375 (gimple_call_addr_fndecl): Handle null functions.
7376 (gimple_call_return_type): Likewise null types.
7377 * gimple.c (gimple_build_call_internal_1): New function.
7378 (gimple_build_call_internal): Likewise.
7379 (gimple_build_call_internal_vec): Likewise.
7380 (gimple_call_same_target_p): Likewise.
7381 (gimple_call_flags): Handle calls to internal functions.
7382 (gimple_call_fnspec): New function.
7383 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
7384 (gimple_has_side_effects): Handle null functions.
7385 (gimple_rhs_has_side_effects): Likewise.
7386 (gimple_call_copy_skip_args): Handle calls to internal functions.
7387 * cfgexpand.c (expand_call_stmt): Likewise.
7388 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
7389 * gimple-fold.c (gimple_fold_call): Handle null functions.
7390 (gimple_fold_stmt_to_constant_1): Don't fold
7391 calls to internal functions.
7392 * gimple-low.c (gimple_check_call_args): Handle calls to internal
7394 * gimple-pretty-print.c (dump_gimple_call): Likewise.
7395 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
7396 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
7397 (do_warn_unused_result): Likewise.
7398 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
7399 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
7400 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
7401 the target of a call.
7402 (initialize_hash_element): Update accordingly.
7403 (hashable_expr_equal_p): Use gimple_call_same_target_p.
7404 (iterative_hash_hashable_expr): Handle calls to internal functions.
7405 (print_expr_hash_elt): Likewise.
7406 * tree-ssa-pre.c (can_value_number_call): Likewise.
7407 (eliminate): Handle null functions.
7408 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
7409 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
7410 (find_func_aliases): Likewise.
7411 * value-prof.c (gimple_ic_transform): Likewise.
7412 (gimple_indirect_call_to_profile): Likewise.
7413 * lto-streamer-in.c (input_gimple_stmt): Likewise.
7414 * lto-streamer-out.c (output_gimple_stmt): Likewise.
7416 2011-04-19 Jan Hubicka <jh@suse.cz>
7418 * ipa-inline-transform.c (save_inline_function_body): Add comments.
7419 * ipa-inline.c (inline_small_functions): Compute summaries first,
7420 populate heap later.
7422 2011-04-19 Jan Hubicka <jh@suse.cz>
7424 * cgraph.h (save_inline_function_body): Remove.
7425 * ipa-inline-transform.c: New file, broke out of...
7426 * ipa-inline.c: ... this one; Update toplevel comment.
7427 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
7429 (update_noncloned_frequencies): Move to ipa-inline-transform.c
7430 (cgraph_mark_inline_edge): Rename to inline_call; move to
7431 ipa-inline-transform.c.
7432 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
7433 move to ipa-inline-transform.c
7434 (recursive_inlining, inline_small_functions, flatten_function,
7435 ipa_inline, inline_always_inline_functions,
7436 early_inline_small_functions): Update.
7437 (inline_transform): Move to ipa-inline-transform.c.
7438 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
7440 * Makefile.in (ipa-inline-transform.o): New file.
7441 * cgraphunit.c (save_inline_function_body): Move to
7442 ipa-inline-transform.c
7444 2011-04-19 DJ Delorie <dj@redhat.com>
7446 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
7447 registers if we already know there aren't any.
7448 (m32c_emit_epilogue): Don't emit a barrier here.
7449 (m32c_emit_eh_epilogue): Likewise.
7450 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
7451 operands at expand time.
7452 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
7454 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
7455 duplicates. Provide aliases instead.
7456 * config/m32c/prologue.md (eh_return): Emit a barrier here.
7457 (eh_epilogue): Add a "(return)" here as a hint to other parts of
7460 2011-04-19 Anatoly Sokolov <aesok@post.ru>
7462 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
7463 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
7464 (general_or_i64_p, sparc_register_move_cost): New function.
7466 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7468 * doc/install.texi (Configuration, --enable-threads): Remove mach.
7469 Add lynx, mipssde. Sort table.
7471 2011-04-19 Xinliang David Li <davidxl@google.com>
7473 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
7476 2011-04-19 Jakub Jelinek <jakub@redhat.com>
7479 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
7480 is a SUBREG with non-MODE_INT mode inside of it.
7482 2011-04-19 Martin Jambor <mjambor@suse.cz>
7484 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
7485 also according to actual contants.
7486 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
7487 (gimple_fold_call): Use it.
7488 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
7490 2011-04-19 Martin Jambor <mjambor@suse.cz>
7492 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
7493 non-pointer assignments.
7495 2011-04-19 Martin Jambor <mjambor@suse.cz>
7497 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
7498 account anc_offset and otr_type from the indirect edge info.
7499 * ipa-prop.c (get_ancestor_addr_info): New function.
7500 (compute_complex_ancestor_jump_func): Assignment analysis moved to
7501 get_ancestor_addr_info, call it.
7502 (ipa_note_param_call): Do not initialize information about polymorphic
7503 calls, return the indirect call graph edge. Remove the last
7504 parameter, adjust all callers.
7505 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
7506 parameters. Initialize polymorphic information in the indirect edge.
7508 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
7511 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
7512 the types if they have different enumeration identifiers.
7514 2011-04-19 Jan Hubicka <jh@suse.cz>
7516 * cgraph.h (cgraph_optimize_for_size_p): Declare.
7517 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
7518 * predict.c (cgraph_optimize_for_size_p): Break out from ...
7519 (optimize_function_for_size_p) ... here.
7521 2011-04-19 Richard Guenther <rguenther@suse.de>
7524 * tree.c (free_lang_data): Do not reset the decl-assembler-name
7527 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
7529 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
7530 if DECL_NO_INLINE_WARNING_P is set on the function.
7532 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
7535 * reload1.c (inc_for_reload): Return void. All callers changed.
7536 (emit_input_reload_insns): Don't try to delete previous output
7537 reloads to a register, or record spill_reg_store for autoincs.
7539 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
7541 * gengtype.h: Updated copyright year.
7542 (struct input_file_st): Add inpisplugin field.
7543 (type_fileloc): New function.
7545 (write_typed_struct_alloc_def): Add gcc_assert.
7546 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
7547 (write_typed_alloc_defns): Don't output for plugin files.
7548 (input_file_by_name): Clear inpisplugin field.
7549 (main): Set inpisplugin field for plugin files.
7551 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
7553 * gengtype-state.c (string_eq): New.
7554 (read_state): Use string_eq instead of strcmp when creating the
7557 2011-04-19 Wei Guozhi <carrot@google.com>
7560 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
7561 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
7563 * config/arm/constraints.md (Uu): New constraint.
7564 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
7566 2011-04-19 Tristan Gingold <gingold@adacore.com>
7568 * config.gcc (-*-*-*vms): Added.
7569 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
7571 * config/vms/vms-ld.c: New file.
7572 * config/vms/vms-ar.c: New file.
7573 * config/vms/t-vmsnative: New file.
7575 2011-04-18 Xinliang David Li <davidxl@google.com>
7577 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
7579 2011-04-18 Jakub Jelinek <jakub@redhat.com>
7582 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
7583 if TREE_TYPE (v) is non-NULL.
7585 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
7586 gimple_get_virt_mehtod_for_binfo.
7587 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
7588 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
7590 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
7592 2011-04-18 Michael Matz <matz@suse.de>
7593 Steve Ellcey <sje@cup.hp.com>
7595 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
7596 use its mode as source mode if it isn't VOIDmode.
7598 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
7600 * doc/passes.texi: Fill crossref nodes.
7602 2011-04-18 Jim Meyering <meyering@redhat.com>
7604 Fix doubled-word typos in comments and strings
7605 * config/alpha/vms-unwind.h: s/for for/for/
7606 * config/arm/unwind-arm.h: Likewise.
7607 * config/microblaze/microblaze.c: Likewise.
7608 * config/sh/constraints.md: s/in in/in/
7609 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
7611 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
7613 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
7614 (AVX_FLOAT_MODE_P): Ditto.
7615 (AVX128_VEC_FLOAT_MODE_P): Ditto.
7616 (AVX256_VEC_FLOAT_MODE_P): Ditto.
7617 (AVX_VEC_FLOAT_MODE_P): Ditto.
7618 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
7619 (UNSPEC_MASKSTORE): Ditto.
7620 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
7621 Merge from <sse>_movmsk<ssemodesuffix> and
7622 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
7623 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
7625 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
7626 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
7627 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
7629 2011-04-18 Jan Hubicka <jh@suse.cz>
7631 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
7633 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
7634 (want_inline_function_called_once_p): Break out the logic from
7636 (edge_badness): Ensure that profile is not misupdated.
7637 (lookup_recursive_calls): Prioritize by call frequencies.
7638 (inline_small_functions): Move program size estimates here;
7639 actually process whole queue even when unit growth has been
7640 met. (to properly compute inline_failed reasons and for the
7641 case unit size decrease.) Revisit comments on recursive inlining.
7642 (ipa_inline): Remove unit summary code; first inline hot calls
7643 of functions called once, cold calls next.
7644 (order, nnodes): Remove unused variables.
7645 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
7646 (GTFILES): Remove ipa-inline.c
7647 * sel-sched.c (fill_insns): Silence uninitialized var warning.
7649 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
7651 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
7653 2011-04-18 Jie Zhang <jie@codesourcery.com>
7654 Richard Earnshaw <rearnsha@arm.com>
7656 * arm.c (neon_builtin_type_bits): Remove.
7657 (typedef enum neon_builtin_mode): New.
7658 (T_MAX): Don't define.
7659 (typedef enum neon_builtin_datum): Remove bits, codes[],
7660 num_vars and base_fcode. Add mode, code and fcode.
7661 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
7662 VAR10): Change accordingly.
7663 (neon_builtin_data[]): Change accordingly
7664 (arm_init_neon_builtins): Change accordingly.
7665 (neon_builtin_compare): Remove.
7666 (locate_neon_builtin_icode): Remove.
7667 (arm_expand_neon_builtin): Change accordingly.
7669 * arm.h (enum arm_builtins): Move to ...
7670 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
7672 * arm.c (arm_builtin_decl): Declare.
7673 (TARGET_BUILTIN_DECL): Define.
7674 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
7675 (arm_builtin_decls[]): New.
7676 (arm_init_neon_builtins): Store builtin declarations in
7677 arm_builtin_decls[].
7678 (arm_init_tls_builtins): Likewise.
7679 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
7680 (arm_builtin_decl): New.
7682 2011-04-18 Richard Guenther <rguenther@suse.de>
7684 * tree.c (upper_bound_in_type): Build properly canonicalized
7686 (lower_bound_in_type): Likewise.
7688 2011-04-18 Richard Guenther <rguenther@suse.de>
7690 * gimple.h (gimple_call_addr_fndecl): New function.
7691 (gimple_call_fndecl): Use it.
7692 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
7694 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
7695 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
7697 2011-04-18 Richard Guenther <rguenther@suse.de>
7700 * tree.c (build_string): STRING_CST is now derived from tree_typed.
7702 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
7705 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
7706 DECL_IN_CONSTANT_POOL without RTL.
7708 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
7709 Ira Rosen <ira.rosen@linaro.org>
7712 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
7713 to match neon_vzip/vuzp/vtrn_internal.
7714 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
7715 outputs explicitly dependent on both inputs.
7716 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
7718 2011-04-18 Jakub Jelinek <jakub@redhat.com>
7720 PR tree-optimization/48616
7721 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
7722 whether the shift is by scalar or vector based on whether all SLP
7723 scalar stmts have the same rhs.
7725 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
7727 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
7730 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
7733 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
7736 2011-04-17 Jan Hubicka <jh@suse.cz>
7738 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
7739 * cgrpahunit.c (cgraph_finalize_function): Do not set
7740 finalized_by_frontend.
7741 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
7742 finalized_by_frontend.
7744 2011-04-17 Jan Hubicka <jh@suse.cz>
7746 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
7747 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
7748 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
7749 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
7751 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
7753 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
7755 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
7758 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
7759 is non-null before accessing it.
7760 (input_cgraph): Remove trailing spaces.
7762 2011-04-17 Revital Eres <revital.eres@linaro.org>
7764 * params.def (sms-min-sc): New param flag.
7765 * modulo-sched.c (sms_schedule): Use it.
7766 * doc/invoke.texi (sms-min-sc): Document it.
7768 2011-04-17 Jan Hubicka <jh@suse.cz>
7770 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
7771 present, also set gimple_call_set_cannot_inline.
7772 * ipa-inline.c: Update toplevel comment.
7774 (cgraph_clone_inlined_nodes): Fix linebreaks.
7775 (cgraph_check_inline_limits): Restructure to ...
7776 (caller_growth_limits): ... this one; be more tolerant
7777 on growth in nested inline chains; add explanatory comment;
7778 fix stack accounting thinko introduced by previous patch.
7779 (cgraph_default_inline_p): Remove.
7780 (report_inline_failed_reason): New function.
7781 (can_inline_edge_p): New function.
7782 (can_early_inline_edge_p): New function.
7783 (leaf_node_p): Move upwards in file.
7784 (want_early_inline_function_p): New function.
7785 (want_inline_small_function_p): New function.
7786 (want_inline_self_recursive_call_p): New function.
7787 (cgraph_edge_badness): Rename to ...
7788 (edge_badness) ... this one; fix linebreaks.
7789 (update_edge_key): Update call of edge_baddness; add
7790 detailed dump about queue updates.
7791 (update_caller_keys): Use can_inline_edge_p and
7792 want_inline_small_function_p.
7793 (cgraph_decide_recursive_inlining): Rename to...
7794 (recursive_inlining): Use can_inline_edge_p and
7795 want_inline_self_recursive_call_p; simplify and remove no longer
7797 (cgraph_set_inline_failed): Remove.
7798 (add_new_edges_to_heap): Use can_inline_edge_p and
7799 want_inline_small_function_p.
7800 (cgraph_decide_inlining_of_small_functions): Rename to ...
7801 (inline_small_functions): ... this one; cleanup; use
7802 can/want predicates; cleanup debug ouput; work edges till fibheap
7803 is exhausted and do not stop once unit growth is reached; remove
7804 later loop processing remaining edges.
7805 (cgraph_flatten): Rename to ...
7806 (flatten_function): ... this one; use can_inline_edge_p
7807 and can_early_inline_edge_p predicates.
7808 (cgraph_decide_inlining): Rename to ...
7809 (ipa_inline): ... this one; remove unreachable nodes before
7810 inlining functions called once; simplify the pass.
7811 (cgraph_perform_always_inlining): Rename to ...
7812 (inline_always_inline_functions): ... this one; use
7813 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
7814 (cgraph_decide_inlining_incrementally): Rename to ...
7815 (early_inline_small_functions): ... this one; simplify
7816 using new predicates; cleanup; make dumps prettier.
7817 (cgraph_early_inlining): Rename to ...
7818 (early_inliner): newer inline regular functions into always-inlines;
7819 fix updating of call stmt summaries.
7820 (pass_early_inline): Update for new names.
7821 (inline_transform): Fix formating.
7822 (gate_cgraph_decide_inlining): Rename to ...
7823 (pass_ipa_inline): ... this one.
7824 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
7825 * ipa-inline-analysis.c (dump_inline_summary): Update.
7826 (compute_inline_parameters): Do not compute disregard_inline_limits;
7827 look for mismatching arguments.
7828 (estimate_growth): Fix handlig of non-trivial self recursion.
7829 (inline_read_summary): Do not read info->disregard_inline_limits.
7830 (inline_write_summary): Do not write info->disregard_inline_limits.
7831 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
7832 and move all checks into can_inline_edge_p predicate; re-enable code
7833 comparing optimization levels.
7834 (expand_call_inline): Do not test inline_forbidden_into_p.
7835 * Makefile.in (ipa-inline.o): Update arguments.
7837 2011-04-17 Revital Eres <revital.eres@linaro.org>
7839 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
7841 2011-04-17 Revital Eres <revital.eres@linaro.org>
7843 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
7845 2011-04-17 Michael Matz <matz@suse.de>
7847 PR tree-optimization/48622
7849 * ipa-inline-analysis.c (inline_read_summary): Read size/time
7850 in same order as they're written.
7852 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7854 * config/pa/predicates.md: Reorganize and simplify predicates.
7855 Eliminate duplicate code checks.
7856 (arith_operand): Rename to arith14_operand
7857 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
7858 * config/pa/pa.md: Use renamed operands.
7859 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
7860 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
7861 arith11_operand, adddi3_operand, indexed_memory_operand,
7862 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
7863 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
7864 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
7865 move_dest_operand, move_src_operand, prefetch_cc_operand,
7866 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
7867 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
7868 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
7869 div_operand, int5_operand, movb_comparison_operator,
7870 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
7871 arith_double_operand, ireg_operand, lhs_lshift_operand,
7872 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
7873 integer_store_memory_operand): Likewise.
7874 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
7875 (integer_store_memory_operand, read_only_operand,
7876 function_label_operand, borx_reg_operand,
7877 non_hard_reg_operand): Likewise.
7878 (eq_neq_comparison_operator): Delete unused operator.
7879 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
7880 function_label_operand.
7881 (emit_move_sequence): Likewise.
7883 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
7885 * config/i386/sse.md (sseunpackmode): New mode attribute.
7886 (ssepackmode): Ditto.
7887 (vec_pack_trunc_<mode>): Macroize expander from
7888 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
7889 (vec_unpacks_lo_<mode>): Macroize expander from
7890 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
7891 (vec_unpacks_hi_<mode>): Macroize expander from
7892 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
7893 (vec_unpacku_lo_<mode>): Macroize expander from
7894 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
7895 (vec_unpacku_hi_<mode>): Macroize expander from
7896 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
7897 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
7898 ix86_expand_sse4_unpack.
7899 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
7901 2011-04-16 Jan Hubicka <jh@suse.cz>
7903 * cgraphbuild.c: Include ipa-inline.h.
7904 (reset_inline_failed): Use initialize_inline_failed.
7905 * cgraph.c: Include ipa-inline.h.
7906 (cgraph_create_node_1): Do not initialize estimated_growth.
7907 (initialize_inline_failed): More to ipa-inline-analysis.c
7908 (dump_cgraph_node): Do not dump inline flags.
7909 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
7910 and disregard_inline_limits flags.
7911 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
7912 time, size, estimated_growth.
7913 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
7915 * cgraphunit.c (cgraph_decide_is_function_needed): Use
7916 DECL_DISREGARD_INLINE_LIMITS.
7917 (cgraph_analyze_function): Do not initialize
7918 node->local.disregard_inline_limits.
7919 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
7920 inlinable, versionable and disregard_inline_limits.
7921 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
7922 cgraph_check_inline_limits, cgraph_default_inline_p,
7923 cgraph_edge_badness, update_caller_keys, update_callee_keys,
7924 add_new_edges_to_heap): Update.
7925 (cgraph_decide_inlining_of_small_function): Update; set
7926 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
7927 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
7928 cgraph_decide_inlining_incrementally): Update.
7929 * ipa-inline.h (inline_summary): Add inlinable, versionable,
7930 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
7931 time, size and estimated_growth parameters.
7932 (estimate_edge_growth): Update.
7933 (initialize_inline_failed): Declare.
7934 * ipa-split.c: Include ipa-inline.h
7935 (execute_split_functions): Update.
7936 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
7937 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
7938 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
7939 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
7940 estimated_growth to INT_MIN.
7941 (inline_node_duplication_hook): Likewise.
7942 (dump_inline_summary): Dump new fields.
7943 (compute_inline_parameters): Update.
7944 (estimate_edge_time, estimate_time_after_inlining,
7945 estimate_size_after_inlining, estimate_growth, inline_read_summary,
7946 inline_write_summary):
7947 (initialize_inline_failed): Move here from cgraph.c.
7948 * tree-sra.c: Include ipa-inline.h.
7949 (ipa_sra_preliminary_function_checks): Update.
7950 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
7953 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
7955 * config/i386/sse.md (V16): New mode iterator.
7957 (AVXMODEQI, AVXMODEDI): Remove.
7958 (sse2, sse3): New mode attribute.
7959 (mov<mode>): Use V16 mode iterator.
7960 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
7961 (push<mode>1): Use V16 mode iterator.
7962 (movmisalign<mode>): Ditto.
7963 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
7964 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
7965 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
7966 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
7967 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
7968 avx_movdqu<avxmodesuffix>.
7969 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
7970 *avx_movdqu<avxmodesuffix>.
7971 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
7972 avx_lddqu<avxmodesuffix>.
7973 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
7974 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
7975 avx_movnt<AVXMODEDI:mode>.
7976 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
7977 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
7979 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
7982 * haifa-sched.c (prune_ready_list, schedule_block): Use
7983 sched_pressure_p rather than flag_sched_pressure.
7985 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
7987 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
7988 cgraph_get_node instead of cgraph_get_create_node.
7990 2011-04-15 Jakub Jelinek <jakub@redhat.com>
7992 * cfgexpand.c (expand_debug_expr): Use
7993 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
7995 2011-04-15 Michael Matz <matz@suse.de>
7997 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
7998 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
7999 * function.c (gimplify_parameters): Ditto.
8000 * gimplify.c (gimplify_vla_decl): Ditto.
8002 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
8003 (gimple_call_set_alloca_for_var): New inline function.
8004 (gimple_call_alloca_for_var_p): Ditto.
8005 * gimple.c (gimple_build_call_from_tree): Remember
8006 CALL_ALLOCA_FOR_VAR_P state.
8007 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
8009 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
8010 calls if they were for VLA objects.
8012 2011-04-15 Martin Jambor <mjambor@suse.cz>
8014 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
8017 2011-04-15 Martin Jambor <mjambor@suse.cz>
8020 * tree-emutls.c (lower_emutls_function_body): Call
8021 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
8024 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
8026 * c-decl.c (detect_field_duplicates): Call
8027 objc_detect_field_duplicates instead of objc_get_interface_ivars.
8029 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
8031 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
8032 * gimple.c (gimple_asm_clobbers_memory_p): Define.
8033 * ipa-pure-const.c (check_stmt): Call it.
8034 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
8036 2011-04-15 Richard Guenther <rguenther@suse.de>
8038 PR tree-optimization/48290
8039 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
8040 Properly decide inhibiting propagation based on the valueized
8041 operand. Do loop-closed SSA form preserving here ...
8042 (init_copy_prop): ... not here.
8044 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
8047 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
8048 (*ieee_smax<mode>3): Likewise.
8050 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8052 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
8053 Replace match_operand with match_dup for the third operand in
8056 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
8058 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
8059 to track processing of conditionals. Update all callers.
8060 (try_combine, simplify_if_then_else): Update.
8062 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
8064 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
8067 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
8069 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
8070 instead of match_operand for operand 3.
8072 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
8074 * recog.h (insn_operand_data): Add an "allows_mem" field.
8075 * genoutput.c (output_operand_data): Initialize it.
8076 * optabs.c (maybe_legitimize_operand_same_code): New function.
8077 (maybe_legitimize_operand): Use it when matching the original
8080 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
8082 * gimplify.c: Fix issues in comments throughout.
8083 (voidify_wrapper_expr): Fix long line.
8084 (build_stack_save_restore): Likewise.
8085 (gimplify_loop_expr): Likewise.
8086 (gimplify_compound_lval): Likewise.
8087 (gimplify_init_ctor_eval): Likewise.
8088 (gimplify_modify_expr_rhs): Likewise.
8089 (omp_notice_threadprivate_variable): Likewise.
8091 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
8093 * cfgexpand.c (expand_call_stmt): Convert the function type to the
8094 original one if this is not a builtin function.
8096 2011-04-14 Jakub Jelinek <jakub@redhat.com>
8099 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
8100 offset it as needed based on top 2 bits in operands[3], change
8101 MEM mode to SFmode and mask those 2 bits away from operands[3].
8103 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
8105 * c-parser.c (c_parser_objc_protocol_definition): Updated for
8106 change from objc_declare_protocols() to objc_declare_protocol().
8108 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
8110 * config/i386/sse.md (sse4_1): New mode attribute.
8111 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
8112 avx_blend<ssemodesuffix><avxmodesuffix> and
8113 sse4_1_blend<ssemodesuffix> using VF mode iterator.
8114 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
8115 avx_blendv<ssemodesuffix><avxmodesuffix> and
8116 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
8117 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
8118 avx_dp<ssemodesuffix><avxmodesuffix> and
8119 sse4_1_dp<ssemodesuffix> using VF mode iterator.
8120 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
8121 (sse4_1_packusdw): Merge with *avx_packusdw.
8122 (sse4_1_pblendvb): Merge with *avx_pblendvb.
8123 (sse4_1_pblendw): Merge with *avx_pblendw.
8124 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
8125 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
8126 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
8128 (sse4_1_round<ssescalarmodesuffix>): Merge with
8129 *avx_round<ssescalarmodesuffix>.
8130 (aesenc): Merge with *avx_aesenc.
8131 (aesenclast): Merge with *avx_aesenclast.
8132 (aesdec): Merge with *avx_aesdec.
8133 (aesdeclast): Merge with *avx_aesdeclast.
8134 (pclmulqdq): Merge with *pclmulqdq.
8135 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
8137 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
8139 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
8142 * cfgexpand.c (get_decl_align_unit): Renamed to ...
8143 (align_local_variable): This. Update DECL_ALIGN.
8144 (add_stack_var): Updated.
8145 (expand_one_stack_var): Likewise.
8147 2011-04-14 Richard Guenther <rguenther@suse.de>
8149 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
8151 (dse_initialize_block_local_data, dse_leave_block,
8152 record_voperand_set, get_stmt_uid): Likewise.
8153 (dse_possible_dead_store_p): Allow any kind of killing stmt.
8154 (dse_optimize_stmt): Remove voperand set handling code.
8155 Simplify and improve to handle any kind of killing stmt.
8156 (dse_record_phi): Remove.
8157 (dse_enter_block): Simplify.
8158 (tree_ssa_dse): Likewise.
8159 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
8161 2011-04-14 Jan Hubicka <jh@suse.cz>
8163 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
8164 * cgraph.h (struct inline_summary): Move to ipa-inline.h
8165 (cgraph_local_info): Remove inline_summary.
8166 * ipa-cp.c: Include ipa-inline.h.
8167 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
8168 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
8170 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
8171 (input_overwrite_node): Do not set inline summary.
8172 (input_node): Do not stream inline summary.
8173 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
8174 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
8175 growth; we do not have inline parameters computed for that anyway.
8176 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
8177 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
8178 (inline_summary_t): New type and VECtor.
8179 (debug_inline_summary, dump_inline_summaries): Declare.
8180 (inline_summary): Use VOCtor.
8181 (estimate_edge_growth): Kill hack computing call stmt size directly.
8182 * lto-section-in.c (lto_section_name): Add inline section.
8183 * ipa-inline-analysis.c: Include lto-streamer.h
8184 (node_removal_hook_holder, node_duplication_hook_holder): New holders
8185 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
8186 (inline_summary_vec): Define.
8187 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
8188 dump_inline_summaries): New functions.
8189 (estimate_function_body_sizes): Properly compute size/time of outgoing
8191 (compute_inline_parameters): Alloc inline_summary; do not compute
8192 size/time of incomming calls.
8193 (estimate_edge_time): Avoid missing time summary hack.
8194 (inline_read_summary): Read inline summary info.
8195 (inline_write_summary): Write inline summary info.
8196 (inline_free_summary): Free all hooks and inline summary vector.
8197 * lto-streamer.h: Add LTO_section_inline_summary section.
8198 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
8199 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
8201 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
8203 * tree-vectorizer.h (vect_strided_store_supported): Add a
8204 HOST_WIDE_INT argument.
8205 (vect_strided_load_supported): Likewise.
8206 (vect_permute_store_chain): Return void.
8207 (vect_transform_strided_load): Likewise.
8208 (vect_permute_load_chain): Delete.
8209 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
8210 count argument. Check that the count is a power of two.
8211 (vect_strided_load_supported): Likewise.
8212 (vect_permute_store_chain): Return void. Update after above changes.
8213 Assert that the access is supported.
8214 (vect_permute_load_chain): Likewise.
8215 (vect_transform_strided_load): Return void.
8216 * tree-vect-stmts.c (vectorizable_store): Update calls after
8217 above interface changes.
8218 (vectorizable_load): Likewise.
8219 (vect_analyze_stmt): Don't check for strided powers of two here.
8221 2011-04-14 Richard Guenther <rguenther@suse.de>
8223 PR tree-optimization/48590
8224 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
8225 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
8226 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
8227 BUILT_IN_STACK_SAVE.
8228 * tree-ssa-dce.c (propagate_necessity): Handle
8229 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
8231 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
8233 * c-parser.c (c_parser_objc_class_declaration): Updated call to
8236 2011-04-14 Richard Guenther <rguenther@suse.de>
8238 * tree.h (get_object_alignment_1): Declare.
8239 * builtins.c (get_object_alignment_1): Split out worker from ...
8240 (get_object_alignment): ... here.
8241 * fold-const.c (get_pointer_modulus_and_residue): Use
8242 get_object_alignment_1.
8244 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
8246 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
8248 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
8249 parameter. Generalise code to handle arrays as well as vectors.
8250 (vect_setup_realignment): Update accordingly.
8251 * tree-vect-stmts.c (vectorizable_store): Likewise.
8252 (vectorizable_load): Likewise.
8254 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
8256 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
8257 within the per-copy loop.
8259 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
8261 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
8264 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
8266 * doc/options.texi (Negative): Explicitly mention that the
8267 Negative chain must be circular.
8269 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
8271 * function.h (block_chainon): Declare.
8272 * function.c (block_chainon): Define.
8274 2011-04-14 Anatoly Sokolov <aesok@post.ru>
8275 Eric Weddington <eric.weddington@atmel.com>
8276 Georg-Johann Lay <avr@gjlay.de>
8278 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
8280 (avr_init_builtins, avr_expand_builtin,
8281 avr_expand_delay_cycles, avr_expand_unop_builtin,
8282 avr_expand_binop_builtin ): New functions.
8283 (avr_builtin_id): New enum
8284 (struct avr_builtin_description): New struct
8285 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
8286 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
8288 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
8289 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
8290 UNSPECV_DELAY_CYCLES): new enumeration values
8291 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
8292 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
8293 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
8294 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
8295 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
8296 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
8297 "fmulsu"): New insns
8299 * config/avr/avr-c.c: fix line endings
8300 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
8301 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
8302 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
8303 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
8304 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
8306 * doc/extend.texi (AVR Built-in Functions): New node
8307 (Target Builtins): Add documentation of AVR
8310 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
8313 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
8314 alone. Error if non-const data has attribute progmem.
8316 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
8318 * tree.h (struct tree_constructor): Include tree_typed instead of
8320 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
8321 TS_TYPED instead of TS_COMMON.
8323 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
8325 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
8326 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
8327 (sse2_psadbw): Merge with *avx_psadbw.
8328 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
8329 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
8330 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
8331 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
8332 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
8333 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
8334 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
8335 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
8336 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
8337 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
8338 (ssse3_palignrti): Merge with *avx_palignrti.
8340 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
8342 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
8343 * tree-ssanames.c (fini_ssanames): VEC_free it.
8344 (make_ssa_name_fn): Update for VECness of free_ssanames.
8345 (release_ssa_name, release_dead_ssa_names): Likewise.
8346 * tree.h (struct tree_ssa_name): Include tree_typed instead of
8348 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
8349 TS_TYPED instead of TS_COMMON.
8351 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
8353 * postreload-gcse.c (gcse_after_reload_main): Add calls to
8354 statistics_counter_event.
8355 * tree-ssa-copyrename.c (stats): Define.
8356 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
8357 statistics_counter_event.
8358 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
8359 (bswap_stats, widen_mul_stats): Define.
8360 (insert_reciprocals): Increment rdivs_inserted.
8361 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
8362 rfuncs_inserted. Add calls to statistics_counter_event.
8363 (execute_cse_sincos_1): Increment inserted.
8364 (execute_cse_sincos): Zeroize sincos_stats. Add call to
8365 statistics_counter_event.
8366 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
8367 of bswap_stats. Add calls to statistics_counter_event.
8368 (convert_mult_to_widen): Increment widen_mults_inserted.
8369 (convert_plusminus_to_widen): Increment maccs_inserted.
8370 (convert_mult_to_fma): Increment fmas_inserted.
8371 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
8372 calls to statistics_counter_event.
8374 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
8376 PR rtl-optimization/48455
8377 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
8378 `temp_costs->mem_cost'.
8380 2011-04-13 Jan Hubicka <jh@suse.cz>
8382 * ipa-inline.h: New file.
8383 * ipa-inline-analysis.c: New file. Broken out of ...
8384 * ipa-inline.c: ... this file; update toplevel comment;
8385 include ipa-inline.h
8386 (inline_summary): Move to ipa-inline.h
8387 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
8388 ipa-inline-analysis.c.
8389 (cgraph_estimate_time_after_inlining): Rename to
8390 estiamte_time_after_inlining; move to ipa-inline-analysis.c
8391 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
8392 to estimate_edge_growth.
8393 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
8394 rename to estimate_size_after_inlining.
8395 (cgraph_mark_inline_edge): Update for new naming convention.
8396 (cgraph_check_inline_limits): Likewise.
8397 (cgraph_edge_badness): Likewise.
8398 (cgraph_decide_recursive_inlining): Likewise.
8399 (cgraph_decide_inlining_of_small_functions): Likewise.
8400 (cgraph_decide_inlining_incrementally): Likewise.
8401 (cgraph_estimate_growth): Rename to estimate_growth; move to
8402 ipa-inline-analysis.c.
8403 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
8404 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
8405 (compute_inline_parameters): Likewise.
8406 (compute_inline_parameters_for_current): Likewise.
8407 (pass_inline_parameters): Likewise.
8408 (inline_indirect_intraprocedural_analysis): Likewise.
8409 (analyze_function): Rename to inline_analyze_function; likewise.
8410 (add_new_function): Move to ipa-inline-analysis.c.
8411 (inline_generate_summary): Likewise.
8412 (inline_read_summary): Likewise.
8413 (inline_write_summary): Likewise.
8414 * Makefile.in (ipa-inline-analysis.c): New file.
8416 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8418 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
8419 * configure: Regenerate.
8421 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
8423 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
8424 instead of tree_common.
8425 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
8427 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
8428 TS_TYPED rather than TS_COMMON.
8429 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
8431 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
8434 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
8435 r20 around calls of __tablejump_elpm__
8437 2011-04-13 Jakub Jelinek <jakub@redhat.com>
8440 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
8442 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
8444 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
8446 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
8447 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
8448 (cfi_vec): New typedef.
8449 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
8450 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
8451 (cie_cfi_vec): New static variable.
8452 (cie_cfi_head): Delete.
8453 (add_cfi): Accept a cfi_vec * as first argument. All callers and
8454 declaration changed. Use vector rather than list operations.
8455 (new_cfi): Don't initialize the dw_cfi_next field.
8456 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
8457 rather than list operations.
8458 (lookup_cfa): Use vector rather than list operations.
8459 (output_cfis): New argument upto. Accept a cfi_vec rather than
8460 a dw_cfi_ref list head as argument. All callers changed.
8461 Iterate over the vector using upto as a maximum index.
8462 (output_all_cfis): New static function.
8463 (output_fde): Use vector rather than list operations. Use the
8464 new upto argument for output_cfis rather than manipulating a
8466 (dwarf2out_begin_prologue): Change initializations to match
8468 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
8469 from the vector length rather than searching for the end of a list.
8470 Use output_all_cfis.
8471 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
8473 2011-04-13 Nick Clifton <nickc@redhat.com>
8475 * config/rx/rx.md (movmemsi): Do not use this pattern when
8476 volatile pointers are involved.
8478 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
8480 * config/i386/sse.md (pinsrbits): Remove.
8481 (sse2_packsswb): Merge with *avx_packsswb.
8482 (sse2_packssdw): Merge with *avx_packssdw.
8483 (sse2_packuswb): Merge with *avx_packuswb.
8484 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
8485 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
8486 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
8487 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
8488 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
8489 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
8490 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
8491 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
8492 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
8493 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
8494 (sse2_loadld): Merge with *avx_loadld.
8495 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
8496 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
8497 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
8498 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
8499 (vec_concatv2di): Merge with *vec_concatv2di_avx.
8501 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
8503 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
8505 * print-tree.c (print_node): Likewise.
8506 * tree-inline.c (copy_tree_r): Likewise.
8507 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
8508 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
8509 instead of TS_COMMON.
8510 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
8511 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
8512 (copy_node_stat): Zero TREE_CHAIN only if necessary.
8513 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
8514 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
8516 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
8518 (TREE_CHAIN): Check for a TS_COMMON structure.
8519 (TREE_TYPE): Check for a TS_TYPED structure.
8521 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
8523 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
8524 cgraph_get_create_node instead of cgraph_node.
8526 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
8528 * c-parser.c (c_parser_initelt): Updated call to
8529 objc_build_message_expr.
8530 (c_parser_postfix_expression): Likewise.
8532 2011-04-12 Kai Tietz <ktietz@redhat.com>
8534 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
8535 MASK_MS_BITFIELD_LAYOUT bit.
8537 2011-04-12 Jakub Jelinek <jakub@redhat.com>
8539 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
8540 assert it is always true.
8541 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
8544 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
8546 * c-parser.c (c_lex_one_token): Rewritten conditional used when
8547 compiling Objective-C to be more efficient.
8549 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
8551 * opts-common.c (decode_cmdline_options_to_array): Remove variable
8554 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
8556 * recog.h, genoutput.c, optabs.c: Revert last patch.
8558 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8561 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
8563 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
8565 * recog.h (insn_operand_data): Add an "allows_mem" field.
8566 * genoutput.c (output_operand_data): Initialize it.
8567 * optabs.c (maybe_legitimize_operand_same_code): New function.
8568 (maybe_legitimize_operand): Use it when matching the original
8571 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
8573 * genpreds.c (process_define_predicate): Move most processing
8574 to gensupport.c. Continue to validate the expression.
8575 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
8576 (process_define_predicate): Move processing to gensupport.c.
8577 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
8578 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
8579 (compute_predicate_codes): Moved from genrecog.c. Add lineno
8581 (valid_predicate_name_p): New function, split out from old
8582 genpreds.c:process_define_predicate.
8583 (process_define_predicate): New function, combining code from
8584 old genpreds.c and genrecog.c functions.
8585 (process_rtx): Call it for DEFINE_PREDICATE and
8586 DEFINE_SPECIAL_PREDICATE.
8588 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
8590 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
8591 size of a '%A' memory reference.
8592 (T_DREG, T_QREG): New neon_builtin_type_bits.
8593 (arm_init_neon_builtins): Assert that the load and store operands
8594 are neon_struct_operands.
8595 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
8596 (NEON_ARG_MEMORY): New builtin_arg.
8597 (neon_dereference_pointer): New function.
8598 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
8599 Handle NEON_ARG_MEMORY.
8600 (arm_expand_neon_builtin): Update after above interface changes.
8601 Use NEON_ARG_MEMORY for loads and stores.
8602 * config/arm/predicates.md (neon_struct_operand): New predicate.
8603 * config/arm/iterators.md (V_two_elem): Tweak formatting.
8604 (V_three_elem): Use BLKmode for accesses that have no associated mode.
8605 (V_four_elem): Tweak formatting.
8606 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
8607 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
8608 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
8609 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
8610 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
8611 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
8612 (neon_vst4<mode>): Replace pointer operand with a memory operand.
8613 Use %A in the output template.
8614 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
8615 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
8616 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
8617 the width of the memory access. Remove post-increment.
8618 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
8620 2011-04-12 Nick Clifton <nickc@redhat.com>
8622 * config/v850/v850.c (expand_prologue): Do not use the CALLT
8623 instruction for interrupt handlers if the target is the basic V850
8625 (expand_epilogue): Likewise.
8627 2011-04-12 Jakub Jelinek <jakub@redhat.com>
8629 PR rtl-optimization/48549
8630 * combine.c (propagate_for_debug): Also stop after BB_END of
8631 this_basic_block. Process LAST and just stop processing after it.
8632 (combine_instructions): If last_combined_insn has been deleted,
8633 set last_combined_insn to its PREV_INSN.
8635 2011-04-12 Richard Guenther <rguenther@suse.de>
8637 PR tree-optimization/46076
8638 * gimple.h (struct gimple_statement_call): Add fntype field.
8639 (gimple_call_fntype): Adjust.
8640 (gimple_call_set_fntype): New function.
8641 * gimple.c (gimple_build_call_1): Set the call function type.
8642 * gimplify.c (gimplify_call_expr): Preserve the function
8643 type the frontend used for the call.
8644 (gimplify_modify_expr): Likewise.
8645 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
8647 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
8649 * tree-ssa.c (useless_type_conversion_p): Function pointer
8650 conversions are useless.
8652 2011-04-12 Martin Jambor <mjambor@suse.cz>
8654 * cgraph.h (cgraph_node): Remove function declaration.
8655 (cgraph_create_node): Declare.
8656 (cgraph_get_create_node): Likewise.
8657 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
8658 Updated all callers.
8659 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
8660 the decl does not already exist. Call cgraph_get_create_node instead
8662 (cgraph_get_create_node): New function.
8663 (cgraph_same_body_alias): Update comment.
8664 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
8665 assert it does not return NULL.
8666 (cgraph_update_edges_for_call_stmt): Likewise.
8667 (cgraph_clone_edge): Likewise.
8668 (cgraph_create_virtual_clone): Likewise.
8669 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
8670 instead of cgraph_node.
8671 (cgraph_add_new_function): Call cgraph_create_node or
8672 cgraph_get_create_node instead of cgraph_node.
8673 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
8674 instead of cgraph_node.
8675 (record_eh_tables): Likewise.
8676 (mark_address): Likewise.
8677 (mark_load): Likewise.
8678 (build_cgraph_edges): Call cgraph_get_create_node instead
8680 (rebuild_cgraph_edges): Likewise.
8681 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
8682 instead of cgraph_node.
8683 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
8685 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
8686 cgraph_create_node instead of cgraph_node.
8687 * c-decl.c (finish_function): Call cgraph_get_create_node instead
8689 * lto-cgraph.c (input_node): Likewise.
8690 * lto-streamer-in.c (input_function): Likewise.
8691 * varasm.c (mark_decl_referenced): Likewise.
8692 (assemble_alias): Likewise.
8694 2011-04-12 Martin Jambor <mjambor@suse.cz>
8696 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
8697 instead of cgraph_node and assert it does not return NULL.
8698 * lto-streamer-in.c (lto_read_body): Likewise.
8699 * omp-low.c (new_omp_context): Likewise.
8700 (create_task_copyfn): Likewise.
8701 * tree-emutls.c (lower_emutls_function_body): Likewise.
8702 * matrix-reorg.c (transform_allocation_sites): Likewise.
8704 2011-04-12 Jakub Jelinek <jakub@redhat.com>
8707 * c-typeck.c (build_asm_expr): Error out on attempts to use
8708 void type outputs or inputs for constraints that allow reg or
8711 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
8712 Richard Earnshaw <rearnsha@arm.com>
8715 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
8716 to use sign-magnitude offsets. Reject unsupported unaligned
8717 cases. Add detailed description in comments.
8718 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
8719 condition from TARGET_32BIT to TARGET_ARM.
8721 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
8723 * tree.h (struct typed_tree): New.
8724 (struct tree_common): Include it instead of tree_base.
8725 (TREE_TYPE): Update for new location of type field.
8726 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
8727 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
8728 (union tree_node): Add typed field.
8729 * treestruct.def (TS_TYPED): New.
8730 * lto-streamer.c (check_handled_ts_structures): Handle it.
8731 * tree.c (MARK_TS_TYPED): New macro.
8732 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
8734 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
8736 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
8737 (force_nonfallthru): Do not alter the loop nest if no basic block
8740 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
8742 * config/i386/sse.md (VI): New mode iterator.
8744 (AVX256MODEI): Ditto.
8745 (AVXMODEF4P): Ditto.
8746 (avxvecpsmode): Ditto.
8747 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
8748 (sse2_andnot<mode>3): New expander.
8749 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
8750 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
8751 (<any_logic:code><mode>3): Use VI mode iterator.
8752 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
8753 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
8754 (*andnottf3): Handle AVX three-operand constraints.
8755 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
8757 2011-04-11 Joseph Myers <joseph@codesourcery.com>
8758 Robert Millan <rmh@gnu.org>
8760 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
8761 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
8762 GNU_USER_DYNAMIC_LINKER64): Define.
8763 (REG_NAME): Don't undefine.
8764 (MD_UNWIND_SUPPORT): Undefine.
8765 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
8766 (REG_NAME): Don't undefine.
8767 (MD_UNWIND_SUPPORT): Undefine.
8768 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
8770 2011-04-11 Joseph Myers <joseph@codesourcery.com>
8772 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
8773 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
8775 2011-04-11 Xinliang David Li <davidxl@google.com>
8777 * value-profile.c (check_ic_target): New function.
8778 (gimple_ic_transform): Sanity check indirect call target.
8779 * gimple-low.c (gimple_check_call_args): Interface change.
8780 (gimple_check_call_matching_types): New function.
8781 * tree-inline.c (tree_can_inline_p): Call new function.
8783 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
8785 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
8786 tree-pretty-print.h & realmpfr.h.
8788 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
8791 * ira.c (setup_pressure_classes): Fix typo in loop condition.
8792 (setup_allocno_and_important_classes): Ditto.
8794 2011-04-11 Joseph Myers <joseph@codesourcery.com>
8796 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
8797 GNU_USER_DYNAMIC_LINKER.
8798 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
8799 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8800 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
8801 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
8802 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
8803 GNU_USER_TARGET_OS_CPP_BUILTINS.
8804 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
8805 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8806 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
8807 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8808 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
8809 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
8810 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
8811 GNU_USER_TARGET_OS_CPP_BUILTINS.
8812 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8813 GNU_USER_DYNAMIC_LINKER.
8814 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
8815 GNU_USER_TARGET_OS_CPP_BUILTINS.
8816 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
8817 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8818 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
8819 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8820 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
8821 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
8822 GNU_USER_DYNAMIC_LINKER64): Remove.
8823 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
8824 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8825 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8826 GNU_USER_DYNAMIC_LINKER.
8827 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
8828 GNU_USER_TARGET_OS_CPP_BUILTINS.
8829 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
8830 GNU_USER_TARGET_OS_CPP_BUILTINS.
8831 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
8832 to GNU_USER_TARGET_OS_CPP_BUILTINS.
8833 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
8834 GNU_USER_TARGET_OS_CPP_BUILTINS.
8835 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
8836 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
8837 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
8838 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
8839 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8840 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8841 GNU_USER_DYNAMIC_LINKER.
8842 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
8843 GNU_USER_TARGET_OS_CPP_BUILTINS.
8844 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
8845 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8846 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8847 GNU_USER_DYNAMIC_LINKER.
8848 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
8849 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8850 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
8851 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8852 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8853 GNU_USER_DYNAMIC_LINKER.
8854 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
8855 GNU_USER_DYNAMIC_LINKERN32.
8856 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
8857 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
8858 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
8859 GNU_USER_DYNAMIC_LINKER32.
8860 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
8861 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8862 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8863 GNU_USER_DYNAMIC_LINKER.
8864 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
8865 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8866 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
8867 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8868 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
8869 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
8870 GNU_USER_DYNAMIC_LINKER32.
8871 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
8872 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
8873 GNU_USER_DYNAMIC_LINKER.
8874 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
8875 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8876 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
8877 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
8878 GNU_USER_DYNAMIC_LINKER64.
8879 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
8880 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8881 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8882 GNU_USER_DYNAMIC_LINKER.
8883 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
8884 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8885 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8886 GNU_USER_DYNAMIC_LINKER.
8887 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
8888 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8889 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
8890 GNU_USER_DYNAMIC_LINKER32.
8891 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
8892 GNU_USER_DYNAMIC_LINKER64.
8893 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
8894 GNU_USER_DYNAMIC_LINKER64.
8895 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
8896 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8897 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
8898 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8899 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
8901 2011-04-11 Joseph Myers <joseph@codesourcery.com>
8903 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
8904 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
8905 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
8906 GNU_USER_DYNAMIC_LINKER.
8907 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
8908 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
8909 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
8910 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
8911 GNU_USER_DYNAMIC_LINKER64.
8912 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
8913 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
8914 GNU_USER_LINK_EMULATION.
8915 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
8916 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
8917 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
8918 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
8919 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
8920 CPP_SPEC, CC1_SPEC): Remove.
8921 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
8922 (GNU_USER_DYNAMIC_LINKER): Define.
8923 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
8924 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
8925 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
8926 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
8927 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
8928 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
8929 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
8930 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
8931 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
8932 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
8933 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
8934 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
8935 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
8936 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
8937 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
8938 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
8939 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
8940 GNU_USER_DYNAMIC_LINKER.
8941 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
8942 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
8943 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
8944 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
8945 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
8946 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
8947 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
8948 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
8949 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
8950 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
8952 2011-04-11 Kai Tietz <ktietz@redhat.com>
8956 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
8957 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
8959 (ix86_is_msabi_thiscall): Removed.
8960 (ix86_is_type_thiscall): Likewise.
8961 (ix86_get_callcvt): New function.
8962 (ix86_comp_type_attributes): Simplify check.
8963 (ix86_function_regparm): Use ix86_get_callcvt for calling
8964 convention attribute checks.
8965 (ix86_return_pops_args): Likewise.
8966 (ix86_static_chain): Likewise.
8967 (x86_this_parameter): Likewise.
8968 (x86_output_mi_thunk): Likewise.
8969 (ix86_function_type_abi): Optimize check for types without attributes.
8970 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
8971 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
8972 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
8974 (IX86_BASE_CALLCVT): Helper macro.
8975 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
8976 Use ix86_get_callcvt for calling convention attribute checks and avoid
8977 symbol-decoration for stdcall in TARGET_RTD case.
8978 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
8980 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
8983 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
8985 * config/i386/sse.md (VI_128): New mode iterator.
8986 (VI12_128): Rename from SSEMODE12.
8987 (VI14_128): Rename from SSEMODE14.
8988 (VI124_128): New mode iterator.
8989 (VI24_128): Rename from SSEMODE248.
8990 (VI248_128): Rename from SSEMODE248.
8991 (SSEMODE124C8): Remove.
8992 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
8993 (*sse2_<plusminus_insn><mode>3): Merge with
8994 *avx_<plusminus_insn><mode>3.
8995 (*mulv8hi3): Merge with *avx_mulv8hi3.
8996 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
8997 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
8998 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
8999 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
9000 (ashr<mode>3): Merge with *avx_ashr<mode>3.
9001 (lshr<mode>3): Merge with *avx_lshr<mode>3.
9002 (ashl<mode>3): Merge with *avx_ashl<mode>3.
9003 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
9004 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
9005 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
9006 (*<smaxmin:code>v8hi3): Ditto.
9007 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
9008 (*<smaxmin:code>v16qi3): Ditto.
9009 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
9010 (*sse2_eq<mode>3): Ditto.
9011 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
9012 (*sse2_gt<mode>3): Ditto.
9013 (vcondv2di): Split out of vcond<mode>.
9014 (vconduv2di): Split out of vcondu<mode>.
9016 2011-04-11 Richard Guenther <rguenther@suse.de>
9018 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
9019 before calling tree_low_cst.
9021 2011-04-11 Richard Guenther <rguenther@suse.de>
9023 * stor-layout.c (layout_type): Compute all array index size operations
9024 in the original type.
9025 (initialize_sizetypes): Add comment.
9026 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
9028 2011-04-11 Joseph Myers <joseph@codesourcery.com>
9030 * common.opt (Tbss=, Tdata=, Ttext=): New options.
9032 2011-04-11 Martin Jambor <mjambor@suse.cz>
9034 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
9035 of cgraph_node, handle NULL return value.
9036 (cgraph_global_info): Likewise.
9037 (cgraph_rtl_info): Likewise.
9038 * tree-inline.c (estimate_num_insns): Likewise.
9039 * gimplify.c (unshare_body): Likewise.
9040 (unvisit_body): Likewise.
9041 (gimplify_body): Likewise.
9042 * predict.c (optimize_function_for_size_p): Likewise.
9043 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
9044 (call_may_clobber_ref_p_1): Likewise.
9045 * varasm.c (function_section_1): Likewise.
9046 (assemble_start_function): Likewise.
9048 2011-04-11 Martin Jambor <mjambor@suse.cz>
9050 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
9052 * final.c (rest_of_clean_state): Likewise.
9053 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
9054 * passes.c (pass_init_dump_file): Likewise.
9055 (execute_all_ipa_transforms): Likewise.
9056 (function_called_by_processed_nodes_p): Likewise.
9057 * predict.c (maybe_hot_frequency_p): Likewise.
9058 (probably_never_executed_bb_p): Likewise.
9059 (compute_function_frequency): Likewise.
9060 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
9061 (unnest_nesting_tree_1): Likewise.
9062 (lower_nested_functions): Likewise.
9063 * tree-optimize.c (execute_fixup_cfg): Likewise.
9064 (tree_rest_of_compilation): Likewise.
9065 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
9066 * tree-sra.c (ipa_early_sra): Likewise.
9067 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
9068 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
9069 * ipa.c (record_cdtor_fn): Likewise.
9070 * ipa-inline.c (cgraph_early_inlining): Likewise.
9071 (compute_inline_parameters_for_current): Likewise.
9072 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
9073 * ipa-pure-const.c (local_pure_const): Likewise.
9074 * ipa-split.c (split_function): Likewise.
9075 (execute_split_functions): Likewise.
9076 * cgraphbuild.c (build_cgraph_edges): Likewise.
9077 (rebuild_cgraph_edges): Likewise.
9078 (cgraph_rebuild_references): Likewise.
9079 (remove_cgraph_callee_edges): Likewise.
9080 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
9081 (verify_cgraph_node): Likewise.
9082 (cgraph_analyze_functions): Likewise.
9083 (cgraph_preserve_function_body_p): Likewise.
9084 (save_inline_function_body): Likewise.
9085 (save_inline_function_body): Likewise.
9086 * tree-inline.c (copy_bb): Likewise.
9087 (optimize_inline_calls): Likewise.
9089 2011-04-11 Martin Jambor <mjambor@suse.cz>
9091 PR tree-optimization/48195
9092 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
9093 ipa_check_create_edge_args.
9094 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
9095 ipa_check_create_edge_args.
9096 * ipa-inline.c (inline_generate_summary): Do not call
9097 ipa_check_create_node_params and ipa_check_create_edge_args.
9098 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
9099 ipa_check_create_edge_args.
9101 2011-04-09 Anatoly Sokolov <aesok@post.ru>
9103 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
9105 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
9106 * function.c (record_hard_reg_sets): Likewise.
9107 * ira.c (compute_regs_asm_clobbered): Likewise.
9108 * sched-deps.c (sched_analyze_1): Likewise.
9109 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
9111 2011-04-09 Xinliang David Li <davidxl@google.com>
9113 PR tree-optimization/PR48484
9114 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
9115 has_valid_pred lazily
9117 2011-04-09 Duncan Sands <baldrick@free.fr>
9119 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
9121 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
9123 * combine.c (combine_validate_cost): Adjust comments. Set registered
9124 cost of I0 to zero at the end, if any.
9126 2011-04-08 Xinliang David Li <davidxl@google.com>
9128 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
9129 to insane profile data.
9131 2011-04-08 Xinliang David Li <davidxl@google.com>
9133 * ipa-cp.c (ipcp_update_profiling): Correct
9134 negative scale factor due to insane profile data.
9136 2011-04-08 Xinliang David Li <davidxl@google.com>
9138 * final.c (dump_basic_block_info): New function.
9139 (final): Dump basic block.
9140 (final_scan_insn): Remove old dump.
9142 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
9145 * config.gcc (i386-*-freebsd): Disable unwind table generation for
9148 2011-04-08 Michael Matz <matz@suse.de>
9151 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
9153 (rebuild_jump_labels): Call rebuild_jump_labels_1.
9154 * rtl.h (rebuild_jump_labels_chain): Declare.
9155 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
9156 insns inserted on edges.
9158 2011-04-08 Joseph Myers <joseph@codesourcery.com>
9160 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
9161 * config/arm/arm-arches.def: New.
9162 * config/arm/arm-opts.h: New.
9163 * config/arm/genopt.sh: New.
9164 * config/arm/arm-tables.opt: New (generated).
9165 * config/arm/arm.c (arm_handle_option, arm_target_help,
9166 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
9167 (all_architectures): Get most table contents from arm-arches.def.
9168 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
9169 arm_selected_tune here.
9170 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
9171 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
9172 (march=, mcpu=, mtune=): Use Enum and Var.
9173 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
9174 (arm.o): Update dependencies.
9176 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
9178 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
9180 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
9181 (write_typed_alloc_defns): Likewise.
9182 (main): Calls write_typed_alloc_defns with output_header.
9184 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
9187 * ira-color.c (setup_profitable_hard_regs): Add comments.
9188 Don't take prohibited hard regs into account.
9189 (setup_conflict_profitable_regs): Rename to
9190 get_conflict_profitable_regs.
9191 (check_hard_reg_p): Check prohibited hard regs.
9193 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
9195 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
9196 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
9197 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
9199 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9202 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
9203 move from floating point to shift amount register.
9204 (emit_move_sequence): Remove secondary reload support for floating
9205 point to shift amount amount register copies.
9206 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
9207 amount register copies.
9208 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
9209 register, return false if mode isn't a scalar integer mode.
9210 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
9212 2011-04-08 Richard Guenther <rguenther@suse.de>
9214 * gimple.c (gimple_call_flags): Remove kludge.
9216 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
9218 * sel-sched.c (sel_region_init): Move call to
9219 sel_setup_region_sched_flags after setup_current_loop_nest.
9221 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
9223 PR rtl-optimization/48272
9224 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
9225 init_insn_reg_pressure_info. Adjust a caller.
9226 * sched-int.h (init_insn_reg_pressure_info): Declare.
9227 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
9228 when sched-pressure is enabled.
9230 2011-04-08 Richard Guenther <rguenther@suse.de>
9232 * gimple.c (gimple_set_modified): Do not queue calls to
9233 MODIFIED_NORETURN_CALLS here ...
9234 * tree-ssa-operands.c (update_stmt_operands): ... but here.
9236 2011-04-08 Richard Guenther <rguenther@suse.de>
9239 * toplev.c (lang_dependent_init): Do not open asm_out_file
9240 in WPA mode, nor perform debug machinery initialization.
9241 (finalize): Do not unlink asm_out_file in WPA mode.
9243 2011-04-08 Richard Guenther <rguenther@suse.de>
9245 * gimple.h (gimple_call_fntype): New function.
9246 (gimple_call_return_type): Use it.
9247 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
9248 * gimple-low.c (gimple_check_call_args): Likewise.
9249 * gimple.c (gimple_call_flags): Likewise.
9250 (gimple_call_arg_flags): Likewise.
9251 (gimple_call_return_flags): Likewise.
9252 * tree-cfg.c (verify_gimple_call): Likewise.
9253 (do_warn_unused_result): Likewise.
9254 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
9255 * value-prof.c (gimple_ic_transform): Fix fndecl check.
9257 2011-04-08 Dmitry Melnik <dm@ispras.ru>
9259 PR rtl-optimization/48235
9260 * sel-sched.c (code_motion_process_successors): Recompute the last
9261 insn in basic block if control flow changed.
9262 (code_motion_path_driver): Ditto. Recompute the first insn as well.
9263 Update condition for ilist_remove.
9265 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
9267 PR rtl-optimization/48302
9268 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
9269 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
9270 it to record added preheader blocks.
9271 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
9272 on to sel_add_loop_preheaders.
9273 (sel_region_init): Move call to setup_current_loop_nest after
9276 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
9279 * cfgloop.h (loop_has_exit_edges): New helper.
9280 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
9282 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
9283 that have no exit edges.
9285 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
9287 PR rtl-optimization/48442
9288 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
9289 all callers. Adjust assert.
9291 2011-04-08 Jakub Jelinek <jakub@redhat.com>
9293 PR tree-optimization/48377
9294 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
9295 is_packed to true even for types with smaller TYPE_ALIGN than
9298 2011-04-08 Richard Guenther <rguenther@suse.de>
9301 * doc/tm.texi: Re-generate.
9303 2011-04-08 Wei Guozhi <carrot@google.com>
9306 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
9307 * config/arm/arm.c (arm_attr_length_push_multi): New function.
9308 * config/arm/arm.md (*push_multi): Change the length computation to
9311 2011-04-08 Anatoly Sokolov <aesok@post.ru>
9313 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
9314 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
9315 * doc/tm.texi: Regenerate.
9316 * system.h (ASM_OUTPUT_BSS): Poison.
9317 * varasm.c (asm_output_bss): Remove function.
9318 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
9320 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
9321 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
9322 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
9323 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
9325 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
9327 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
9329 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
9331 2011-04-07 Joseph Myers <joseph@codesourcery.com>
9333 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
9336 2011-04-07 Joseph Myers <joseph@codesourcery.com>
9338 * config/m68k/m68k.c (m68k_handle_option): Don't handle
9339 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
9340 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
9342 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
9343 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
9344 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
9345 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
9346 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
9347 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
9348 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
9349 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
9350 options. Don't map other m68k options manually. Don't handle
9351 old-style options as canonical.
9352 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
9353 * doc/install.texi (m68k-*-*): Document binutils version requirement.
9355 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
9357 * basic-block.h (force_nonfallthru): Move to...
9358 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
9359 (force_nonfallthru): ...here.
9360 * cfghooks.c (force_nonfallthru): New function.
9361 * cfgrtl.c (force_nonfallthru): Rename into...
9362 (rtl_force_nonfallthru): ...this.
9363 (commit_one_edge_insertion): Do not set AUX field.
9364 (commit_edge_insertions): Do not discover new basic blocks.
9365 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
9366 (cfg_layout_rtl_cfg_hooks): Likewise.
9367 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
9368 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
9369 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
9371 2011-04-07 Anatoly Sokolov <aesok@post.ru>
9373 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
9376 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
9378 * config/i386/sse.md: Update copyright year.
9379 (avxcvtvecmode): Remove.
9380 (sse_movhlps): Merge with *avx_movhlps.
9381 (sse_movlhps): Merge with *avx_movlhps.
9382 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
9383 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
9384 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
9385 (sse_loadhps): Merge with *avx_loadhps.
9386 (sse_storelps): Merge with *avx_storelps.
9387 (sse_loadlps): Merge with *avx_loadlps.
9388 (sse_movss): Merge with *avx_movss.
9389 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
9390 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
9391 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
9392 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
9393 (vec_set<mode>_0): Ditto.
9394 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
9395 (sse4_1_insertps): Merge with *avx_insertps.
9396 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
9397 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
9398 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
9399 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
9400 (sse2_storehpd): Merge with *avx_storehpd.
9401 (sse2_loadhpd): Merge with *avx_loadhpd.
9402 (sse2_loadlpd): Merge with *avx_loadlpd.
9403 (sse2_movsd): Merge with *avx_movsd.
9404 (*vec_concatv2df): Merge with *vec_concatv2df.
9406 2011-04-07 Jakub Jelinek <jakub@redhat.com>
9409 * combine.c (combine_instructions): Add last_combined_insn,
9410 update it if insn is after it, pass it to all try_combine calls.
9411 (try_combine): Add last_combined_insn parameter, pass it instead of
9412 i3 to propagate_for_debug.
9414 2011-04-07 Nick Clifton <nickc@redhat.com>
9416 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
9417 to handle MDR <-> data register transfers.
9418 (movhi_internal): Likewise.
9420 2011-04-07 Alan Modra <amodra@gmail.com>
9422 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
9423 previous stack info.
9425 2011-04-07 Tom de Vries <tom@codesourcery.com>
9428 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
9429 flow_find_cross_jump. Swap variables to implement backward replacement.
9430 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
9432 2011-04-07 Tom de Vries <tom@codesourcery.com>
9435 * cfgcleanup.c (walk_to_nondebug_insn): New function.
9436 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
9438 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
9439 src1 or src2. Redirect edges to the last basic block. Update
9440 frequency and count on multiple basic blocks in case of fallthru.
9442 2011-04-07 Tom de Vries <tom@codesourcery.com>
9445 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
9447 (old_insns_match_p): Change return type. Replace return false/true
9448 with return dir_none/dir_both. Use can_replace_by.
9449 (flow_find_cross_jump): Add dir_p parameter. Init replacement
9450 direction from dir_p. Register replacement direction in dir, last_dir
9451 and afterlast_dir. Handle new return type of old_insns_match_p using
9452 merge_dir. Return replacement direction in dir_p.
9453 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
9454 return type of old_insns_match_p.
9455 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
9456 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
9457 flow_find_cross_jump.
9458 * basic-block.h (enum replace_direction): New type.
9459 (flow_find_cross_jump): Add parameter to declaration.
9461 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
9463 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
9464 (AVXMODEDCVTPS2DQ): Ditto.
9465 (VEC_FLOAT_MODE): Ditto.
9466 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
9467 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
9468 (<any_logic:code><mode>3): Use VF mode iterator.
9469 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
9470 Use VF mode iterator.
9471 (copysign<mode>3): Use VF mode iterator.
9472 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
9473 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
9474 (*<any_logic:code><MODEF:mode>3): Merge with
9475 *avx_<any_logic:code><MODEF:mode>3.
9476 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
9477 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
9478 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
9479 (avx_cvtdq2ps<avxmodesuffix>): Remove.
9480 (sse2_cvtdq2ps): Use %v modifier.
9481 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
9482 (avx_cvtps2dq<avxmodesuffix>): Remove.
9483 (sse2_cvtps2dq): Use %v modifier.
9484 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
9485 (avx_cvttps2dq<avxmodesuffix>): Remove.
9486 (sse2_cvttps2dq): Use %v modifier.
9487 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
9488 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
9489 (sse2_cvtsd2siq): Fix insn template.
9490 (sse2_cvtsd2siq_2): Ditto.
9491 (sse2_cvttsd2siq): Ditto.
9492 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
9493 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
9495 2011-04-06 Joseph Myers <joseph@codesourcery.com>
9497 * gcov-io.c: Use GCC Runtime Library Exception.
9499 2011-04-06 Jakub Jelinek <jakub@redhat.com>
9502 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
9503 as base_reg whatever register reg has been eliminated to, instead
9504 of hardcoding STACK_POINTER_REGNUM.
9506 2011-04-06 Joseph Myers <joseph@codesourcery.com>
9508 * doc/tm.texi.in: Document C target hooks as separate from general
9510 * doc/tm.texi: Regenerate.
9511 * genhooks.c (struct hook_desc): Add docname field.
9512 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
9514 (hook_array): Include c-target.def.
9515 (emit_documentation): Use docname field in output.
9516 (emit_init_macros): Take docname argument. Only emit definitions
9517 for hooks matching docname.
9518 (main): Expect additional arguments in all cases. Pass argument
9519 to emit_init_macros.
9520 * target.def: Move initial macro definitions and comments to
9521 target-hooks-macros.h.
9522 (gcc_targetcm): Move to c-family/c-target.def.
9523 * target.h (targetcm): Move declaration to c-family/c-target.h.
9524 * targhooks.c (default_handle_c_option): Move to
9526 * targhooks.h (default_handle_c_option): Move declaration to
9527 c-family/c-common.h.
9528 * target-hooks-macros.h: New file.
9529 * config.gcc (target_has_targetcm): Define and use to add to
9530 c_target_objs and cxx_target_objs.
9531 * config/default-c.c: New file.
9532 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
9533 of target.h and target-def.h.
9534 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
9535 (darwin_objc_construct_string, darwin_cfstring_ref_p,
9536 darwin_check_cfstring_format_arg): Make static.
9537 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
9538 TARGET_STRING_OBJECT_REF_TYPE_P,
9539 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
9540 * config/darwin-protos.h (darwin_objc_construct_string,
9541 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
9543 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
9544 TARGET_STRING_OBJECT_REF_TYPE_P,
9545 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
9546 * config/t-darwin (darwin-c.o): Update dependencies.
9547 * system.h (TARGET_HAS_TARGETCM): Poison.
9548 * Makefile.in (TARGET_H): Update.
9549 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
9550 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
9551 (default-c.o): New target.
9552 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
9553 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
9554 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
9556 (build/genhooks.o): Update dependencies.
9558 2011-04-06 Richard Guenther <rguenther@suse.de>
9560 * ipa-inline.c (enum inlining_mode): Remove.
9561 (cgraph_flatten): Use some other token.
9562 (cgraph_edge_early_inlinable_p): New function, split out from ...
9563 (cgraph_perform_always_inlining): New function, split out from ...
9564 (cgraph_decide_inlining_incrementally): ... here.
9565 (cgraph_mark_inline_edge): Adjust.
9566 (cgraph_early_inlining): Re-structure.
9567 (pass_early_inline): Require SSA form.
9569 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
9570 Julian Brown <julian@codesourcery.com>
9571 Mark Shinwell <shinwell@codesourcery.com>
9573 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
9574 LO_REGS only for Thumb-1.
9575 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
9576 be used in short instructions when optimising for size on Thumb-2.
9578 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
9580 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
9581 associated with user returns to be preserved.
9583 2011-04-06 Tristan Gingold <gingold@adacore.com>
9585 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
9586 symbol_queue_size, DBXOUT_DECR_NESTING,
9587 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
9588 if XCOFF_DEBUGGING_INFO.
9590 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
9592 * config/i386/i386.md (attribute isa): New.
9593 (attribute enabled): New.
9594 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
9595 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
9596 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
9597 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
9598 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
9599 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
9600 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
9601 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
9603 * config/i386/sse.md (VF): New mode iterator.
9607 (SSEMODEF4): Remove.
9608 (attribute sse): Handle V8SF and V4DF modes.
9609 (<absneg:code><mode>2): Use VF mode iterator.
9610 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
9612 (<plusminus_insn><mode>3): Use VF mode iterator.
9613 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
9614 Use VF mode iterator.
9615 (<sse>_vm<plusminus_insn><mode>3): Merge with
9616 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
9617 (mul<mode>3): Use VF mode iterator.
9618 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
9619 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
9621 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
9622 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
9623 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
9624 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
9626 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
9627 Use VF1 mode iterator.
9628 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
9629 (sqrt<VF2:mode>2): New expander.
9630 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
9631 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
9632 and sqrtv2df2. Use VF mode iterator.
9633 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
9635 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
9636 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
9637 Use VF1 mode iterator.
9638 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
9639 (<smaxmin:code><mode>3): Use VF mode iterator.
9640 (*<smaxmin:code><mode>3_finite): Merge with
9641 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
9642 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
9643 (<sse>_vm<smaxmin:code><mode>2): Merge with
9644 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
9645 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
9647 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
9649 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
9650 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
9651 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
9652 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
9653 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
9655 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
9656 Use VF_128 mode iterator.
9657 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
9659 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
9660 VF_128 mode iterator.
9661 (vcond<mode>): Use VF mode iterator.
9662 * config/i386/predicates.md (sse_comparison_operator): Merge with
9663 avx_comparison_float_operator. Do not declare as special_predicate.
9664 * config/i386/i386.c (struct builtin_description): Update for renamed
9666 (ix86_expand_args_builtin): Ditto.
9667 (ix86_expand_sse_compare_mask): Ditto.
9669 2011-04-06 Richard Guenther <rguenther@suse.de>
9671 * tree-inline.c (estimate_num_insns): For calls simply account
9672 for all passed arguments and a used return value.
9674 2011-04-06 Richard Guenther <rguenther@suse.de>
9676 PR tree-optimization/47663
9677 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
9678 call_stmt_time fields.
9679 (cgraph_edge_inlinable_p): Declare.
9680 (cgraph_edge_recursive_p): New inline function.
9681 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
9682 (cgraph_clone_edge): Copy it.
9683 * ipa-inline.c (cgraph_estimate_edge_time): New function.
9684 Account for call stmt time.
9685 (cgraph_estimate_time_after_inlining): Take edge argument.
9686 (cgraph_estimate_edge_growth): Account call stmt size.
9687 (cgraph_estimate_size_after_inlining): Take edge argument.
9688 (cgraph_mark_inline_edge): Adjust.
9689 (cgraph_check_inline_limits): Likewise.
9690 (cgraph_recursive_inlining_p): Remove.
9691 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
9692 (cgraph_decide_recursive_inlining): Take edge argument and
9694 (cgraph_decide_inlining_of_small_functions): Do not avoid
9695 diags for recursive inlining here.
9696 (cgraph_flatten): Adjust.
9697 (cgraph_decide_inlining_incrementally): Likewise.
9698 (estimate_function_body_sizes): Remove call cost handling.
9699 (compute_inline_parameters): Initialize caller edge call costs.
9700 (cgraph_estimate_edge_growth): New function.
9701 (cgraph_estimate_growth): Use it.
9702 (cgraph_edge_badness): Likewise.
9703 (cgraph_check_inline_limits): Take an edge argument.
9704 (cgraph_decide_inlining_of_small_functions): Adjust.
9705 (cgraph_decide_inlining): Likewise.
9706 * tree-inline.c (estimate_num_insns): Only account for call
9707 return value if it is used.
9708 (expand_call_inline): Avoid diagnostics on recursive inline
9710 * lto-cgraph.c (lto_output_edge): Output edge call costs.
9711 (input_edge): Input edge call costs.
9713 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9715 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
9717 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
9719 * doc/invoke.texi (Spec Files): Fix typo.
9721 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
9723 * profile.c (branch_prob): Move declaration of local variable. Remove
9724 obsolete ??? comment. Expand the location explicitly instead of using
9725 the LOCATION_FILE and LOCATION_LINE macros.
9727 2011-04-06 Wei Guozhi <carrot@google.com>
9730 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
9731 (arm_cond_branch): Likewise.
9732 (arm_cond_branch_reversed): Likewise.
9733 (arm_jump): Likewise.
9734 (push_multi): Likewise.
9735 * config/arm/constraints.md (Py): New constraint.
9737 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9740 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
9742 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
9743 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
9744 #ifdef DBX_DEBUGGING_INFO.
9746 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
9749 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
9750 if old and new states differ.
9752 2011-04-05 Joseph Myers <joseph@codesourcery.com>
9754 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
9755 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
9756 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
9757 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
9758 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
9760 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
9761 ColdFire options to -mcpu= options.
9763 2011-04-05 Jeff Law <law@redhat.com>
9765 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
9766 check if BB is a successor of LOOP->header and return
9767 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
9769 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
9771 * cprop.c (struct reg_use): Remove.
9772 (reg_use_table): Make an array of RTX.
9773 (find_used_regs, constprop_register, local_cprop_pass,
9774 bypass_block): Simplify users of reg_use_table.
9775 (cprop_insn): Likewise. Iterate if copy propagation succeeded
9776 on one of the uses found by find_used_regs.
9778 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9781 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
9784 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9786 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
9788 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
9790 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
9793 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
9795 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9797 * combine.c: Include obstack.h.
9798 (struct insn_link): Define.
9799 (uid_log_links): Adjust type.
9800 (FOR_EACH_LOG_LINK): New macro.
9801 (insn_link_obstack): Declare.
9802 (alloc_insn_link): Define.
9803 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
9804 type of link variables.
9805 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
9806 (try_combine, record_promoted_values, distribute_notes): Likewise.
9807 (distribute_links): Likewise. Tweak prototype.
9808 (clear_log_links): Delete.
9809 (adjust_for_new_dest): Call alloc_insn_link.
9810 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
9812 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9814 * gcse.c (modify_mem_list): Convert to an array of VECs.
9815 (canon_modify_mem_list, compute_transp): Tweak formatting.
9816 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
9817 (load_killed_in_block_p): Likewise.
9818 (record_last_mem_set_info): Likewise.
9819 (clear_modify_mem_tables): Likewise.
9821 2011-04-05 Tom de Vries <tom@codesourcery.com>
9824 * function.c (emit_use_return_register_into_block): Only define if
9827 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
9829 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
9831 2011-04-05 Joseph Myers <joseph@codesourcery.com>
9833 * config/rx/rx-opts.h: New.
9834 * config/rx/rx.c (rx_cpu_type): Remove.
9835 (rx_handle_option): Don't assert that global structures are in
9836 use. Access variables via opts pointer. Defer most handling of
9837 OPT_mint_register_. Use error_at.
9838 (rx_option_override): Handle deferred OPT_mint_register_ here.
9839 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
9840 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
9841 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
9842 (rx_cpu_types): New Enum and EnumValue entries.
9843 (mint-register=): Use Defer and use Var accordingly.
9845 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9847 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
9848 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
9849 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
9851 (debug_free_queue, debug_nesting, symbol_queue_index):
9853 * dbxout.c: ...to here. Make static.
9855 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9857 * gcse.c (modify_pair): Define. Define a VEC of it.
9858 (canon_modify_mem_list): Convert to an array of VECs.
9859 (free_insn_expr_list_list): Delete.
9860 (clear_modify_mem_tables): Call VEC_free instead.
9861 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
9862 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
9863 (canon_list_insert, compute_transp): Likewise.
9865 2011-04-05 Tom de Vries <tom@codesourcery.com>
9868 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
9871 2011-04-05 Tom de Vries <tom@codesourcery.com>
9874 * function.c (emit_use_return_register_into_block): New function.
9875 (thread_prologue_and_epilogue_insns): Use
9876 emit_use_return_register_into_block.
9878 2011-04-05 Tom de Vries <tom@codesourcery.com>
9881 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
9884 2011-04-05 Tom de Vries <tom@codesourcery.com>
9886 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
9888 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
9890 * config/arm/arm.md (define_constants for unspec): Replace with
9892 (define_constants for unspecv): Replace with define_c_enum.
9893 * config/arm/neon.md (define_constants for unspec): Replace with
9896 2011-04-04 Richard Henderson <rth@redhat.com>
9899 * dwarf2out.c (output_line_info): Always emit line info from
9900 at least one section.
9901 (dwarf2out_init): Create text_section_line_info here ...
9902 (set_cur_line_info_table): ... not here.
9904 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
9907 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
9910 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
9912 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
9914 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
9915 (expr_equiv_p): Remove.
9916 (insert_set_in_table): Look at <dest, src> pair instead of expr.
9917 (hash_scan_set): Update call to insert_set_in_table.
9918 (dump_hash_table): Dump <dest, src> pair.
9919 (lookup_set): Simplify. Lookup <dest, src> pair.
9920 (compute_transp): Remove, fold heavily simplified code into...
9921 (compute_local_properties): ...here. Expect COMP and TRANSP
9923 (find_avail_set): Take set directly from struct expr.
9924 (find_bypass-set): Likewise.
9925 (bypass_block): Likewise.
9926 (cprop_insn): Likewise. Remove redundant INSN_P test.
9928 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
9929 checks on form of COND from find_implicit_sets to here.
9930 (find_implicit_sets): Cleanup control flow. Split critical edges
9931 if it exposes implicit sets. Allocate/resize implicit_sets as
9933 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
9934 changed something. Run df_analyze after find_implicit_sets if any
9935 edges were split. Do not allocate implicit_sets here.
9937 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
9938 (gcse_obstack): Renamed to cprop_obstack.
9939 (GNEW, GNEWVEC, GNEWVAR): Remove.
9941 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
9942 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
9943 (gcse_alloc): Likewise, and rename to cprop_alloc.
9944 (alloc_gcse_men, free_gcse_mem): Remove.
9945 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
9946 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
9947 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
9949 * cprop.c (oprs_not_set_p): Remove.
9950 (mark_set, mark_clobber): Remove.
9951 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
9952 (reg_not_set_p): New function.
9953 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
9954 (cprop_insn): Likewise.
9955 (cprop_jump): Use FOR_EACH_EDGE.
9957 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
9960 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
9961 (rank_for_schedule): Use scheduled_insns vector instead of
9962 last_scheduled_insn.
9963 (ok_for_early_queue_removal): Likewise.
9964 (queue_to_ready): Search forward in nonscheduled_insns_begin if
9966 (choose_ready): Likewise.
9967 (commit_schedule): Use VEC_iterate.
9968 (schedule_block): Initialize nonscheduled_insns_begin. If we have
9969 a dbg_cnt, use it and ensure the first insn is in the ready list.
9970 (haifa_sched_init): Allocate scheduled_insns.
9971 (sched_extend_ready_list): Don't allocate it; reserve space.
9972 (haifa_sched_finish): Free it.
9974 2011-04-04 Joseph Myers <joseph@codesourcery.com>
9976 * optc-gen.awk: Always remove type from Variable entry before
9977 recording in var_seen.
9979 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
9981 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
9982 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
9983 call to tidy_fallthru_edges.
9985 2011-04-04 Joseph Myers <joseph@codesourcery.com>
9987 * doc/options.texi (ToLower): Document.
9988 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
9989 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
9990 * opts.h (cl_option): Add cl_tolower field.
9991 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
9992 arguments with lowercase strings.
9993 * config/rx/rx.opt (mcpu=): Add ToLower.
9994 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
9997 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
9999 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
10001 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
10003 * config/vax/vax.c: Include reload.h.
10005 2011-04-04 Anatoly Sokolov <aesok@post.ru>
10007 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
10008 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
10009 (sparc_preferred_reload_class): New function.
10011 2011-04-04 Jakub Jelinek <jakub@redhat.com>
10014 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
10015 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
10017 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
10019 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
10020 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
10022 2011-04-03 Anatoly Sokolov <aesok@post.ru>
10024 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
10025 (ASM_OUTPUT_ALIGNED_BSS): Define.
10027 2011-04-03 Michael Matz <matz@suse.de>
10029 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
10030 and next_slot members.
10031 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
10032 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
10033 (lto_streamer_cache_append): Declare.
10034 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
10035 unsigned index, remove offset parameter, ensure that we append
10036 or update existing entries.
10037 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
10038 parameter, update next_slot for append.
10039 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
10041 (lto_streamer_cache_insert_at): Likewise.
10042 (lto_streamer_cache_append): New function.
10043 (lto_streamer_cache_lookup): Use unsigned index.
10044 (lto_streamer_cache_get): Likewise.
10045 (lto_record_common_node): Don't test tree_node_can_be_shared.
10046 (preload_common_node): Adjust call to lto_streamer_cache_insert.
10047 (lto_streamer_cache_delete): Don't free offsets member.
10048 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
10049 (lto_output_string_with_length): Use lto_output_data_stream.
10050 (lto_output_tree_header): Remove ix parameter, don't write it.
10051 (lto_output_builtin_tree): Likewise.
10052 (lto_write_tree): Adjust callers to above, don't track and write
10053 offset, write unsigned index.
10054 (output_unreferenced_globals): Don't emit all global vars.
10055 (write_global_references): Use unsigned indices.
10056 (lto_output_decl_state_refs): Likewise.
10057 (write_symbol): Likewise.
10058 * lto-streamer-in.c (lto_input_chain): Move earlier.
10059 (input_function): Use unsigned index.
10060 (input_alias_pairs): Don't read and then ignore all global vars.
10061 (lto_materialize_tree): Remove ix_p parameter, don't read index,
10062 don't pass it back, use lto_streamer_cache_append.
10063 (lto_register_var_decl_in_symtab): Use unsigned index.
10064 (lto_register_function_decl_in_symtab): Likewise.
10065 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
10067 (lto_get_builtin_tree): Don't read index, use
10068 lto_streamer_cache_append.
10069 (lto_read_tree): Adjust call to lto_materialize_tree.
10071 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
10072 don't use function calls in arguments to MIN.
10074 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
10077 * gimple.c (gimple_type_leader_entry): Mark deletable.
10079 2011-04-03 Alan Modra <amodra@gmail.com>
10081 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
10083 2011-04-03 Michael Matz <matz@suse.de>
10085 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
10087 * tree.h (tree_decl_non_common.vindex): Adjust comment.
10089 2011-04-03 Michael Matz <matz@suse.de>
10091 * cgraphbuild.c (record_reference): Canonicalize constructor values.
10092 * gimple-fold.c (canonicalize_constructor_val): Accept being called
10093 without function context.
10094 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
10095 current_function_decl and cfun.
10097 2011-04-03 Michael Matz <matz@suse.de>
10099 * tree.c (decl_init_priority_insert): Don't create entry for
10101 (decl_fini_priority_insert): Ditto.
10102 (fields_compatible_p, find_compatible_field): Remove.
10103 * tree.h (fields_compatible_p, find_compatible_field): Remove.
10104 * gimple.c (gimple_compare_field_offset): Adjust block comment.
10106 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
10108 * combine.c (try_combine): Remove useless local variable.
10110 2011-04-03 Richard Guenther <rguenther@suse.de>
10111 Ira Rosen <ira.rosen@linaro.org>
10113 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
10114 non-variable offsets and compare the remaining bases of the two
10115 accesses instead of looking for exact same data-ref.
10117 2011-04-02 Kai Tietz <ktietz@redhat.com>
10120 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
10122 * i386.c (ix86_is_msabi_thiscall): New helper function.
10123 (ix86_is_type_thiscall): New helper function.
10124 (ix86_comp_type_attributes): Handle thiscall for method-functions
10126 (init_cumulative_args): Likewise.
10127 (find_drap_reg): Likewise.
10128 (ix86_static_chain): Likewise.
10129 (x86_this_parameter): Likewise.
10130 (x86_output_mi_thunk): Likewise.
10132 2011-04-01 Olivier Hainque <hainque@adacore.com>
10133 Nicolas Setton <setton@adacore.com>
10134 Eric Botcazou <ebotcazou@adacore.com>
10136 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
10137 (add_gnat_descriptive_type_attribute): New function.
10138 (gen_array_type_die): Call it.
10139 (gen_enumeration_type_die): Likewise.
10140 (gen_struct_or_union_type_die): Likewise.
10141 (modified_type_die): Likewise.
10142 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
10143 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
10144 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
10146 2011-04-01 Jakub Jelinek <jakub@redhat.com>
10149 * dwarf2out.c (resolve_addr): Don't call force_decl_die
10150 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
10153 2011-03-17 Richard Guenther <rguenther@suse.de>
10156 * lto-cgraph.c (input_overwrite_node): Clear the abstract
10157 origin for decls in other ltrans units.
10158 (input_varpool_node): Likewise.
10160 2011-04-01 Jakub Jelinek <jakub@redhat.com>
10162 PR middle-end/48335
10163 * expr.c (expand_assignment): Handle all possibilities
10164 if TO_RTX is CONCAT.
10165 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
10166 (store_split_bit_field): If SUBREG_REG (op0) or
10167 op0 itself has smaller mode than word, return it
10168 for offset 0 and const0_rtx for out-of-bounds stores.
10169 If word is const0_rtx, skip it.
10171 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
10173 * config/h8300/h8300.c (print_operand_address): Rename to...
10174 (h8300_print_operand_address): ...this. Make static. Adjust comments.
10175 Call h8300_print_operand and h8300_print_operand_address instead of
10176 print_operand and print_operand_address. Declare.
10177 (print_operand): Renake to...
10178 (h8300_print_operand): ...this. Make static. Adjust comments.
10179 Call h8300_print_operand instead of print_operand. Declare.
10180 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
10181 (h8300_register_move_cost): Likewise.
10182 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
10183 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
10184 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
10185 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
10186 * config/h8300/h8300-protos.h (print_operand): Delete.
10187 (print_operand_address): Delete.
10189 2011-04-01 Richard Henderson <rth@redhat.com>
10192 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
10193 in strict mode before dwarf4. Re-order tests to early out
10194 before switching sections.
10196 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
10198 * config/h8300/constraints.md: New file.
10199 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
10200 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
10201 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
10202 * config/h8300/predicates.md (bit_operand): Likewise.
10203 (incdec_operand): Use satisfies_constraint_M and
10204 satisfies_constraint_O. Don't use C code block.
10205 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
10206 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
10207 (compute_mov_length): Use satisfies_constraint_G.
10208 (fix_bit_operand): Use satisfies_constraint_U.
10209 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
10210 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
10211 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
10212 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
10213 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
10214 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
10215 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10216 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
10217 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
10218 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
10219 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
10220 (EXTRA_MEMORY_CONSTRAINT): Delete.
10222 2011-04-01 Andrew Pinski <pinskia@gmail.com>
10223 Michael Meissner <meissner@linux.vnet.ibm.com>
10226 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
10227 operands, as per the specifications.
10229 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
10230 (vec_extract_evenv4sf): Ditto.
10231 (vec_extract_evenv8hi): Ditto.
10232 (vec_extract_evenv16qi): Ditto.
10233 (vec_extract_oddv4si): Ditto.
10235 2011-03-31 Mark Wielaard <mjw@redhat.com>
10237 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
10238 high_pc attribute if the CU has no associated code. Only output
10239 DW_AT_entry_pc for CU if not generating strict dwarf and
10242 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
10244 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
10245 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
10247 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
10248 * final.c (final_start_function): Call the new function rather
10249 than using a NULL argument for dwarf2out_frame_debug.
10251 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
10252 that contains the prologue.
10254 * haifa-sched.c (queue_insn): New arg REASON. All callers
10255 changed. Print it in debugging output.
10257 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
10259 * sched-ebb.c (begin_schedule_ready): Remove second argument.
10260 Split most of the code into...
10261 (begin_move_insn): ... here. New function.
10262 (ebb_sched_info): Add a pointer to it.
10263 * haifa-sched.c (scheduled_insns): New static variable.
10264 (sched_extend_ready_list): Allocate it.
10265 (schedule_block): Use it to record the order of scheduled insns.
10266 Perform RTL changes to move insns only after all scheduling
10267 decisions have been made.
10268 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
10269 begin_move_insn field.
10270 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
10271 * sched-int.h (struct haifa_sched_info): Remove second argument
10272 from begin_schedule_ready hook. Add new member begin_move_insn.
10273 * sched-rgn.c (begin_schedule_ready): Remove second argument.
10274 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
10276 * haifa-sched.c (prune_ready_list): New function, broken out of
10278 (schedule_block): Use it.
10280 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10282 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
10284 2011-04-01 Kai Tietz <ktietz@redhat.com>
10286 * config.gcc (*-*-mingw*): Allow as option the
10287 posix threading model.
10288 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
10289 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
10291 (CPP_SPEC): Add pthread/no-pthread handling.
10292 (LIB_SPEC): Likewise.
10293 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
10294 (LIB_SPEC): Likewise.
10295 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
10296 flag to pass -pthread option for shared libgcc build.
10297 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
10298 for shared libgcc build.
10299 * config/i386/t-mingw-pthread: New file.
10300 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
10301 New define to enable use of library pthread by default.
10302 * config/i386/mingw.opt (pthread): New driver option.
10303 (no-pthread): New driver option.
10304 * config/i386/cygming.opt: Make sure trailing empty line is retained.
10305 * config/i386/mingw-w64.opt: Likewise.
10307 2011-04-01 Gary Funck <gary@intrepid.com>
10309 * c-decl.c (grokdeclarator): Fix formatting.
10311 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
10313 * expr.c (emit_block_move_via_movmem): Use n_generator_args
10314 instead of n_operands.
10315 (set_storage_via_setmem): Likewise.
10316 * optabs.c (maybe_gen_insn): Likewise.
10317 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
10318 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
10319 (mips_expand_builtin_direct): Likewise.
10320 * config/spu/spu.c (expand_builtin_args): Likewise.
10322 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
10324 * recog.h (insn_data_d): Add n_generator_args.
10325 * genoutput.c (data): Likewise.
10326 (output_insn_data): Print it.
10327 (max_opno, num_dups): Delete.
10328 (scan_operands): Just fill in "d->operand[...]".
10329 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
10331 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
10333 * gensupport.h (pattern_stats): New structure.
10334 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
10335 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
10336 (max_operand_1, max_operand_vec): Delete.
10337 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
10339 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
10341 * emit-rtl.c (emit_pattern_after_setloc): New function.
10342 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
10343 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
10344 (emit_pattern_after): New function.
10345 (emit_insn_after, emit_jump_insn_after): Call it.
10346 (emit_call_insn_after, emit_debug_insn_after): Likewise.
10347 (emit_pattern_before_setloc): New function.
10348 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
10349 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
10351 (emit_pattern_before): New function.
10352 (emit_insn_before, emit_jump_insn_before): Call it.
10353 (emit_call_insn_before, emit_debug_insn_before): Likewise.
10355 2011-03-31 Richard Henderson <rth@redhat.com>
10357 * dwarf2out.c (dw_separate_line_info_ref): Remove.
10358 (dw_separate_line_info_entry): Remove.
10359 (enum dw_line_info_opcode): New.
10360 (dw_line_info_entry): Use it.
10361 (dw_line_info_table, dw_line_info_table_p): New.
10362 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
10363 (line_info_table, line_info_label_num): Remove.
10364 (line_info_table_in_use): Remove.
10365 (separate_line_info_table): Remove.
10366 (separate_line_info_table_allocated): Remove.
10367 (separate_line_info_table_in_use): Remove.
10368 (LINE_INFO_TABLE_INCREMENT): Remove.
10369 (line_info_label_num): New.
10370 (cur_line_info_table): New.
10371 (text_section_line_info, cold_text_section_line_info): New.
10372 (separate_line_info): New.
10373 (SEPARATE_LINE_CODE_LABEL): Remove.
10374 (print_dwarf_line_table): Remove.
10375 (debug_dwarf): Don't dump it.
10376 (output_one_line_info_table): New.
10377 (output_line_info): Use it.
10378 (new_line_info_table): New.
10379 (set_cur_line_info_table): New.
10380 (dwarf2out_switch_text_section): Use it.
10381 (dwarf2out_begin_function): Likewise.
10382 (push_dw_line_info_entry): New.
10383 (dwarf2out_source_line): Rewrite for new line info tables.
10384 (dwarf2out_init): Remove dead initailizations.
10386 2011-03-31 Joseph Myers <joseph@codesourcery.com>
10388 * opts.h (cl_option): Add comments to fields. Add bit-fields for
10390 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
10391 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
10392 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
10393 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
10394 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
10395 * opt-functions.awk (flag_init, switch_bit_fields): New.
10396 (switch_flags): Don't handle flags moved to bit-fields. Don't
10397 generate CL_MISSING_OK or CL_SAVE.
10398 * optc-gen.awk: Update to generate bit-field output as well as
10400 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
10401 bit-field instead of CL_REJECT_DRIVER flag.
10402 * opts-common.c (generate_canonical_option,
10403 decode_cmdline_option): Use bit-fields instead of CL_* flags.
10404 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
10405 instead of CL_REJECT_NEGATIVE flag.
10406 * toplev.c (print_switch_values): Use cl_report bit-field instead
10409 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
10411 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
10412 a zero minimum index only if it is redundant.
10414 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
10416 PR rtl-optimization/48381
10417 * ira-color.c (assign_hard_reg): Use hard reg set intersection
10418 instead of ira_class_hard_reg_index for calculating conflicting
10421 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
10423 * cprop.c: Clean up hash table building.
10424 (reg_avail_info): Remove.
10425 (oprs_available_p): Remove.
10426 (record_last_reg_set_info): Remove.
10427 (record_last_set_info): Remove.
10428 (reg_available_p): New function.
10429 (gcse_constant_p): Do not treat unfolded conditions as constants.
10430 (make_set_regs_unavailable): New function.
10431 (hash_scan_set): Simplify with new reg_available_p.
10432 (compute_hash_table_work): Traverse insns stream only once.
10433 Do not compute reg_avail_info. Traverse insns in reverse order.
10434 Record implicit sets after recording explicit sets from the block.
10436 2011-03-31 Michael Matz <matz@suse.de>
10438 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
10440 2011-03-31 Anatoly Sokolov <aesok@post.ru>
10442 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
10443 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
10444 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10445 (h8300_mode_dependent_address_p): New function.
10446 (h8300_get_index): Make static.
10448 2011-03-31 Jeff Law <law@redhat.com>
10450 * reload1.c (elimination_effects): Fix typo in recent change.
10452 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
10453 typo potentially leading to null pointer dereference.
10455 * caller-save.c (new_saved_hard_reg): Eliminate return value.
10456 (setup_save_areas): Corresponding changes to avoid useless
10459 * jump.c (reversed_comparison_code_parts): Avoid successive return
10460 statements when REVERSE_CONDITION is defined.
10462 * expr.c (expand_assignment): Avoid useless assignments.
10463 (expand_expr_real_1): Likewise.
10464 (expand_expr_real_2): Avoid useless statements.
10466 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
10468 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
10470 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
10473 * stmt.c (expand_expr_stmt): Avoid useless assignment.
10475 2011-03-31 Joseph Myers <joseph@codesourcery.com>
10478 * doc/tm.texi.in (TARGET_VERSION): Remove.
10479 * doc/tm.texi: Regenerate.
10480 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
10481 * collect2.c (main): Don't use TARGET_VERSION.
10482 * mips-tdump.c (main): Don't use TARGET_VERSION.
10483 * mips-tfile.c (main): Don't use TARGET_VERSION.
10484 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
10485 * config/rs6000/vxworksae.h: Remove.
10486 * config/alpha/alpha.h (TARGET_VERSION): Remove.
10487 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
10488 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
10489 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
10490 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
10491 * config/arm/arm.h (TARGET_VERSION): Remove.
10492 * config/arm/coff.h (TARGET_VERSION): Remove.
10493 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
10494 * config/arm/elf.h (TARGET_VERSION): Remove.
10495 * config/arm/freebsd.h (TARGET_VERSION): Remove.
10496 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
10497 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
10498 * config/arm/pe.h (TARGET_VERSION): Remove.
10499 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
10500 * config/arm/semi.h (TARGET_VERSION): Remove.
10501 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
10502 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
10503 * config/arm/vxworks.h (TARGET_VERSION): Remove.
10504 * config/avr/avr.h (TARGET_VERSION): Remove.
10505 * config/bfin/bfin.h (TARGET_VERSION): Remove.
10506 * config/fr30/fr30.h (TARGET_VERSION): Remove.
10507 * config/frv/frv.h (TARGET_VERSION): Remove.
10508 * config/h8300/h8300.h (TARGET_VERSION): Remove.
10509 * config/i386/cygwin.h (TARGET_VERSION): Remove.
10510 * config/i386/darwin.h (TARGET_VERSION): Remove.
10511 * config/i386/darwin64.h (TARGET_VERSION): Remove.
10512 * config/i386/djgpp.h (TARGET_VERSION): Remove.
10513 * config/i386/freebsd.h (TARGET_VERSION): Remove.
10514 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
10515 * config/i386/gnu.h (TARGET_VERSION): Remove.
10516 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
10517 * config/i386/i386elf.h (TARGET_VERSION): Remove.
10518 * config/i386/linux.h (TARGET_VERSION): Remove.
10519 * config/i386/linux64.h (TARGET_VERSION): Remove.
10520 * config/i386/lynx.h (TARGET_VERSION): Remove.
10521 * config/i386/mingw32.h (TARGET_VERSION): Remove.
10522 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
10523 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
10524 * config/i386/netware.h (TARGET_VERSION): Remove.
10525 * config/i386/nto.h (TARGET_VERSION): Remove.
10526 * config/i386/openbsd.h (TARGET_VERSION): Remove.
10527 * config/i386/vxworks.h (TARGET_VERSION): Remove.
10528 * config/ia64/elf.h (TARGET_VERSION): Remove.
10529 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
10530 * config/ia64/hpux.h (TARGET_VERSION): Remove.
10531 * config/ia64/linux.h (TARGET_VERSION): Remove.
10532 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
10533 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
10534 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
10535 * config/lm32/lm32.h (TARGET_VERSION): Remove.
10536 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
10537 * config/m32c/m32c.h (TARGET_VERSION): Remove.
10538 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
10539 * config/m32r/m32r.h (TARGET_VERSION): Remove.
10540 * config/m68k/linux.h (TARGET_VERSION): Remove.
10541 * config/m68k/m68k.h (TARGET_VERSION): Remove.
10542 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
10543 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
10544 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
10545 * config/mep/mep.h (TARGET_VERSION): Remove.
10546 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
10547 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
10548 * config/mips/iris6.h (MACHINE_TYPE): Remove.
10549 * config/mips/linux.h (TARGET_VERSION): Remove.
10550 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
10551 * config/mips/vxworks.h (TARGET_VERSION): Remove.
10552 * config/mmix/mmix.h (TARGET_VERSION): Remove.
10553 * config/mn10300/linux.h (TARGET_VERSION): Remove.
10554 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
10555 * config/pa/pa.h (TARGET_VERSION): Remove.
10556 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
10557 * config/picochip/picochip.h (TARGET_VERSION): Remove.
10558 * config/rs6000/aix.h (TARGET_VERSION): Remove.
10559 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
10560 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
10561 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
10562 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
10563 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
10564 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
10565 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
10566 * config/rs6000/linux.h (TARGET_VERSION): Remove.
10567 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
10568 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
10569 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
10570 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
10571 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
10572 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
10573 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
10574 * config/s390/linux.h (TARGET_VERSION): Remove.
10575 * config/s390/s390.h (TARGET_VERSION): Remove.
10576 * config/s390/tpf.h (TARGET_VERSION): Remove.
10577 * config/score/score.h (TARGET_VERSION): Remove.
10578 * config/sh/linux.h (TARGET_VERSION): Remove.
10579 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
10580 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
10581 * config/sh/sh.h (TARGET_VERSION): Remove.
10582 * config/sh/sh64.h (TARGET_VERSION): Remove.
10583 * config/sh/superh.h (TARGET_VERSION): Remove.
10584 * config/sh/vxworks.h (TARGET_VERSION): Remove.
10585 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
10586 * config/sparc/linux.h (TARGET_VERSION): Remove.
10587 * config/sparc/linux64.h (TARGET_VERSION): Remove.
10588 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
10589 TARGET_NAME32, TARGET_NAME): Remove.
10590 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
10591 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
10592 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
10593 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
10594 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
10595 * config/spu/spu.h (TARGET_VERSION): Remove.
10596 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
10597 * config/v850/v850.h (TARGET_VERSION): Remove.
10598 * config/vax/linux.h (TARGET_VERSION): Remove.
10599 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
10600 * config/xtensa/elf.h (TARGET_VERSION): Remove.
10601 * config/xtensa/linux.h (TARGET_VERSION): Remove.
10603 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
10606 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
10607 frame-related from frame-unrelated adjustments to the stack pointer.
10609 2011-03-31 Jakub Jelinek <jakub@redhat.com>
10611 * common.opt (fdebug-types-section): Move earlier.
10612 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
10614 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
10616 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
10619 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
10621 * tree.h (CASE_CHAIN): Define.
10622 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
10623 (gimple_redirect_edge_and_branch): Likewise.
10625 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
10627 PR middle-end/48367
10628 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
10631 2011-03-30 Jeff Law <law@redhat.com>
10633 * PR bootstrap/48371
10634 * reload1.c (reload): Fix botch in last change.
10636 * reload.h (struct reload): Fix typo introduced in last change.
10638 2011-03-30 Joseph Myers <joseph@codesourcery.com>
10640 * config/arm/arm.opt (mhard-float, msoft-float): Mark
10641 Undocumented. Remove help text.
10642 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
10645 2011-03-30 Joseph Myers <joseph@codesourcery.com>
10647 * doc/options.texi (NegativeAlias): Document.
10648 (Alias): Mention NegativeAlias.
10649 * opt-functions.awk: Handle NegativeAlias.
10650 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
10651 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
10652 * opts.h (CL_NEGATIVE_ALIAS): Define.
10653 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
10654 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
10656 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
10658 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
10659 mno-spe and mno-isel instead of mspe=no and -misel=no.
10661 2011-03-29 Mark Wielaard <mjw@redhat.com>
10663 * common.opt (fdebug-types-section): New flag.
10664 * doc/invoke.texi: Document new -fno-debug-types-section flag.
10665 * dwarf2out.c (use_debug_types): New define.
10666 (struct die_struct): Mark die_id with GTY desc use_debug_types.
10667 (print_die): Guard output of type unit signatures using
10669 (build_abbrev_table): Replace assert of dwarf_version >= 4
10670 with assert on use_debug_types.
10671 (size_of_die): Likewise.
10672 (unmark_dies): Likewise.
10673 (value_format): Decide AT_ref_external form on use_debug_types.
10674 (output_die): Replace dwarf_version version check guard with
10675 use_debug_types where appropriate.
10676 (modified_type_die): Likewise.
10677 (gen_reference_type_die): Likewise.
10678 (dwarf2out_start_source_file): Likewise.
10679 (dwarf2out_end_source_file): Likewise.
10680 (prune_unused_types_walk_attribs): Likewise.
10681 (dwarf2out_finish): Likewise.
10683 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
10685 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
10687 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
10689 PR rtl-optimization/48332
10690 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
10691 mode of input operand N and modeN to its actual mode.
10693 2011-03-30 Jeff Law <law@redhat.com>
10695 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
10696 define accessor macro.
10697 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
10698 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
10699 (reg_equiv_init): Likewise.
10700 (reg_equivs_size): New variable.
10701 (reg_equiv_init_size): Remove.
10702 (allocate_initial_values): Move prototype to here from....
10703 * integrate.h (allocate_initial_values): Remove prototype.
10704 * integrate.c: Include reload.h.
10705 (allocate_initial_values): Corresponding changes.
10706 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
10707 (fix_reg_equiv_init, no_equiv): Corresponding changes.
10708 (update_equiv_regs): Corresponding changes.
10709 (ira): Corresponding changes.
10710 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
10711 (push_secondary_reload): Corresponding changes.
10712 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
10713 (make_memloc, find_reloads_address): Corresponding changes.
10714 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
10715 (find_reloads_address_1): Corresponding changes.
10716 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
10717 (refers_to_regno_for_reload_p): Corresponding changes.
10718 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
10719 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
10720 * reload1.c: Include ggc.h.
10721 (grow_reg_equivs): New function.
10722 (replace_pseudos_in, reload): Corresponding changes.
10723 (calculate_needs_all_insns, alter_regs): Corresponding changes.
10724 (eliminate_regs_1, elimination_effects): Corresponding changes.
10725 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
10726 (delete_output_reload): Likewise.
10727 * caller-save.c (mark_referenced_regs): Corresponding changes.
10728 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
10729 * frv/predicates.md (frv_load_operand): Corresponding changes.
10730 * microblaze/microblaze.c (double_memory_operand): Corresponding
10732 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
10733 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
10734 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
10735 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
10736 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
10738 * pa/pa.c (emit_move_sequence): Corresponding changes.
10739 * vax/vax.c (nonindexed_address_p): Corresponding changes.
10741 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
10744 * config/arm/arm.c (coproc_secondary_reload_class): Handle
10745 structure modes. Don't check neon_vector_mem_operand for
10746 vector or structure modes.
10748 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
10749 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10752 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
10753 operand 1 and reshuffle the operands to match.
10754 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
10756 2011-03-30 Christian Schüler <cschueler@gmx.de>
10759 * config/c.opt (F): Added 'Driver' to -F option.
10762 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
10764 * config/darwin.opt: Added '-arch' option.
10766 2011-03-30 Nick Clifton <nickc@redhat.com>
10768 * config/rx/rx.md: Add peepholes and patterns to combine
10769 extending loads and simple arithmetic instructions.
10770 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
10771 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
10772 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
10773 modes to use pre-decrement and post-increment addressing.
10774 (rx_is_restricted_memory_address): Add range checking of REG+INT
10776 (rx_print_operand): Add support for %Q. Fix handling of %Q.
10777 (rx_memory_move_cost): Adjust cost of stores.
10778 (rx_adjust_insn_length): New function.
10780 2011-03-30 Jakub Jelinek <jakub@redhat.com>
10783 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
10784 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
10785 matching arg00/arg01 types.
10787 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
10789 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
10790 last_location to UNKNOWN_LOCATION.
10792 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
10795 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
10798 2011-03-30 Joseph Myers <joseph@codesourcery.com>
10799 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10802 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
10803 Init(PROCESSOR_V7).
10804 (sparc_cpu): Likewise.
10805 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
10808 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
10811 PR middle-end/48342
10812 PR rtl-optimization/48345
10813 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
10814 hard regs for given mode from profitable regs when doing secondary
10817 2011-03-29 Jeff Law <law@redhat.com>
10820 * tree-ssa-threadupdate.c (struct redirection_data): Remove
10821 do_not_duplicate field.
10822 (lookup_redirection_data): Corresponding changes.
10823 (create_duplicates): Always create a template block.
10824 (redirect_edges): Remove code which reused the original block
10825 when it was going to become unreachable code.
10826 (thread_block): Don't set do_not_duplicate field.
10828 2011-03-29 Joseph Myers <joseph@codesourcery.com>
10830 * lto-opts.c (register_user_option_p, lto_register_user_option):
10831 Make type argument unsigned.
10832 * lto-streamer.h (lto_register_user_option): Make type argument
10834 * opth-gen.awk: Make CL_* macros unsigned.
10835 * opts-common.c (find_opt): Make lang_mask argument unsigned.
10836 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
10837 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
10838 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
10839 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
10840 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
10841 (find_opt): Make lang_mask argument unsigned.
10843 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
10845 PR rtl-optimization/48331
10846 PR rtl-optimization/48334
10847 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
10848 for any used algorithm.
10850 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
10852 * ira-conflicts.c (build_object_conflicts): Add unused attribute
10855 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
10857 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
10858 (alpha_option_override): Don't set alpha_sr_alias_set.
10859 (emit_frame_store_1): Use gen_frame_mem rather than calling
10861 (alpha_expand_epilogue): Ditto.
10863 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
10865 PR tree-optimization/48290
10866 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
10867 vectorization, check that relevant phis in the basic block after
10868 the inner loop are really inner loop's exit phis.
10870 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
10873 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
10874 (cached_dw_loc_list_def): New structure.
10875 (cached_dw_loc_list): New typedef.
10876 (cached_dw_loc_list_table): New variable.
10877 (cached_dw_loc_list_table_hash): New function.
10878 (cached_dw_loc_list_table_eq): Likewise.
10879 (add_location_or_const_value_attribute): Take a bool cache_p.
10880 Cache the list when the parameter is true.
10881 (gen_formal_parameter_die): Update caller.
10882 (gen_variable_die): Likewise.
10883 (dwarf2out_finish): Likewise.
10884 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
10885 while generating debug info for the decl.
10886 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
10887 (dwarf2out_init): Initialize cached_dw_loc_list_table.
10888 (resolve_addr): Cache the result of resolving a chain of
10891 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
10893 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
10894 conflict object hard regset nodes have intersecting hard reg sets.
10896 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
10897 after regstat_init_n_sets_and_refs.
10899 * ira.c: Add more comments at the top.
10900 (setup_stack_reg_pressure_class, setup_pressure_classes):
10901 Add comments how we compute the register pressure classes.
10902 (setup_allocno_and_important_classes): Add more comments.
10903 (setup_class_translate_array, reorder_important_classes)
10904 (setup_reg_class_relations): Add comments.
10906 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
10909 * ira-color.c: Add 2011 to the Copyright line.
10910 (assign_hard_reg): Add more comments.
10911 (improve_allocation): Ditto.
10913 * ira-costs.c: Add 2011 to the Copyright line.
10914 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
10916 (setup_regno_cost_classes_by_mode): Ditto.
10918 Initial patches from ira-improv branch:
10920 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
10922 * ira-build.c (ira_create_object): Remove initialization of
10923 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
10924 (ira_create_allocno): Remove initialization of
10925 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
10926 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
10927 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
10928 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
10929 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
10930 Initialize ALLOCNO_ADD_DATA.
10931 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
10932 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
10934 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
10935 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
10937 * ira.c (ira_reallocate): Remove.
10938 (setup_pressure_classes): Call
10939 ira_init_register_move_cost_if_necessary. Use
10940 ira_register_move_cost instead of ira_get_register_move_cost.
10941 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
10942 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
10944 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
10945 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
10946 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
10947 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
10948 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
10949 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
10951 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
10952 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
10953 (struct allocno_color_data): New.
10954 (allocno_color_data_t): New typedef.
10955 (allocno_color_data): New definition.
10956 (ALLOCNO_COLOR_DATA): New macro.
10957 (struct object_color_data): New.
10958 (object_color_data_t): New typedef.
10959 (object_color_data): New definition.
10960 (OBJECT_COLOR_DATA): New macro.
10961 (update_copy_costs, calculate_allocno_spill_cost): Call
10962 ira_init_register_move_cost_if_necessary. Use
10963 ira_register_move_cost instead of ira_get_register_move_cost.
10964 (move_spill_restore, update_curr_costs): Ditto.
10965 (allocno_spill_priority): Make it inline.
10966 (color_pass): Allocate and free allocno_color_dat and object_color_data.
10967 (struct coalesce_data, coalesce_data_t): New.
10968 (allocno_coalesce_data): New definition.
10969 (ALLOCNO_COALESCE_DATA): New macro.
10970 (merge_allocnos, coalesced_allocno_conflict_p): Use
10971 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
10972 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
10973 (coalesce_allocnos): Ditto.
10974 (setup_coalesced_allocno_costs_and_nums): Ditto.
10975 (collect_spilled_coalesced_allocnos): Ditto.
10976 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
10977 (setup_slot_coalesced_allocno_live_ranges): Ditto.
10978 (coalesce_spill_slots): Ditto.
10979 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
10980 free allocno_coalesce_data.
10982 * ira-conflicts.c: Fix formatting.
10983 (process_regs_for_copy): Call
10984 ira_init_register_move_cost_if_necessary. Use
10985 ira_register_move_cost instead of ira_get_register_move_cost.
10986 (build_object_conflicts): Optimize.
10988 * ira-costs.c (record_reg_classes): Optimize. Call
10989 ira_init_register_move_cost_if_necessary. Use
10990 ira_register_move_cost, ira_may_move_in_cost, and
10991 ira_may_move_out_cost instead of ira_get_register_move_cost and
10992 ira_get_may_move_cost.
10993 (record_address_regs): Ditto.
10994 (scan_one_insn): Optimize.
10995 (find_costs_and_classes): Optimize.
10996 (process_bb_node_for_hard_reg_moves): Call
10997 ira_init_register_move_cost_if_necessary. Use
10998 ira_register_move_cost instead of ira_get_register_move_cost.
11000 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
11001 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
11002 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
11003 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
11005 (ira_initiate_emit_data, ira_finish_emit_data)
11006 (create_new_allocno): New functions.
11007 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
11008 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
11009 Use ira_register_move_cost instead of ira_get_register_move_cost.
11011 * ira-int.h: Fix some comments.
11012 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
11013 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
11014 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
11015 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
11017 (struct ira_allocno): Make mode and aclass a bitfield. Move other
11018 bitfield after mode. Make hard_regno a short int. Make
11019 hard_regno short. Remove first_coalesced_allocno and
11020 next_coalesced_allocno. Move mem_optimized_dest_p,
11021 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
11022 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
11023 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
11024 temp, colorable_p. Add new member add_data.
11025 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
11026 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
11027 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
11028 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
11029 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
11030 (ALLOCNO_ADD_DATA): New macro.
11031 (ira_emit_data_t): New typedef.
11032 (struct ira_emit_data): New. Move mem_optimized_dest_p,
11033 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
11034 from struct ira_allocno.
11035 (ALLOCNO_EMIT_DATA): New macro.
11036 (ira_allocno_emit_data, allocno_emit_reg): New.
11037 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
11038 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
11039 (OBJECT_ADD_DATA): New macro.
11040 (ira_reallocate): Remove.
11041 (ira_initiate_emit_data, ira_finish_emit_data): New.
11042 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
11043 (ira_init_register_move_cost_if_necessary): New.
11044 (ira_object_conflict_iter_next): Merge into
11045 ira_object_conflict_iter_cond.
11046 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
11048 * ira-live.c (process_single_reg_class_operands): Call
11049 ira_init_register_move_cost_if_necessary. Use
11050 ira_register_move_cost instead of ira_get_register_move_cost.
11052 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
11054 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
11056 * ira-costs.c: Fix formatting.
11057 (cost_classes, cost_classes_num): Remove.
11058 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
11059 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
11060 (cost_classes_del, cost_classes_htab): New.
11061 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
11062 (initiate_regno_cost_classes, setup_cost_classes): New.
11063 (setup_regno_cost_classes_by_aclass): New.
11064 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
11065 (record_reg_classes): Use regno_cost_classes instead of
11066 cost_classes. Move checking opposite operand up.
11067 (record_address_regs): Use regno_cost_classes
11068 instead of cost_classes.
11069 (scan_one_insn): Ditto. Use always general register.
11070 (print_allocno_costs): Use regno_cost_classes instead of
11072 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
11073 (find_costs_and_classes): Set up cost classes for each registers.
11074 Use also their mode for this. Use regno_cost_classes instead of
11076 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
11078 (free_ira_costs, ira_init_costs): Don't use cost_classes.
11079 (ira_costs, ira_set_pseudo_classes): Call
11080 initiate_regno_cost_classes and finish_regno_cost_classes.
11082 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
11084 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
11086 * target.def (ira_cover_classes): Remove.
11088 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
11090 * doc/tm.texi.in: Ditto.
11092 * ira-conflicts.c: Remove mentioning cover classes from the file.
11093 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
11094 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
11096 * targhooks.c (default_ira_cover_classes): Remove.
11098 * targhooks.h (default_ira_cover_classes): Ditto.
11100 * haifa-sched.c: Remove mentioning cover classes from the file.
11101 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
11102 ira_pressure_classes and ira_pressure_classes_num instead of
11103 ira_reg_class_cover_size and ira_reg_class_cover. Use
11104 sched_regno_pressure_class instead of sched_regno_cover_class.
11105 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
11106 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
11108 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
11109 classes from the file.
11110 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
11111 (struct object_hard_regs, struct object_hard_regs_node): New.
11112 (struct ira_object): New members profitable_hard_regs,
11113 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
11114 (struct ira_allocno): Rename cover_class to aclass. Rename
11115 cover_class_cost and updated_cover_class_cost to class_cost and
11116 updated_class_cost. Remove splay_removed_p and
11117 left_conflict_size. Add new members colorable_p.
11118 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
11119 (ALLOCNO_COLORABLE_P): New macro.
11120 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
11121 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
11122 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
11123 (OBJECT_...): Rename parameter C to O.
11124 (OBJECT_PROFITABLE_HARD_REGS): New macro.
11125 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
11126 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
11127 (struct target_ira_int): New members x_ira_max_memory_move_cost,
11128 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
11129 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
11130 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
11131 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
11132 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
11133 x_ira_reg_class_subunion.
11134 (ira_max_memory_move_cost, ira_max_register_move_cost)
11135 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
11136 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
11137 (ira_important_class_nums, ira_reg_class_superunion): New macros.
11138 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
11139 (ira_reg_class_union): Rename to ira_reg_class_subunion.
11140 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
11141 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
11142 (ira_tune_allocno_costs_and_cover_classes): Rename to
11143 ira_tune_allocno_costs.
11144 (ira_debug_hard_regs_forest): New.
11145 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
11146 (ira_object_conflict_iter_next): Fix comments.
11147 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
11148 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
11149 cover_class to aclass.
11150 (ira_allocate_and_accumulate_costs): Ditto.
11151 (ira_allocate_and_set_or_copy_costs): Ditto.
11153 * opts.c (decode_options): Remove ira_cover_class check.
11155 * ira-color.c: Remove mentioning cover classes from the file. Use
11156 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
11157 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
11158 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
11159 (splay-tree.h): Remove include.
11160 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
11161 before copy_freq_compare_func.
11162 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
11163 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
11165 (hard_regs_roots, hard_regs_node_vec): Ditto.
11166 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
11167 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
11168 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
11169 (create_new_object_hard_regs_node): Ditto.
11170 (add_new_object_hard_regs_node_to_forest): Ditto.
11171 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
11172 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
11174 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
11175 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
11176 (remove_unused_object_hard_regs_nodes): Ditto.
11177 (enumerate_object_hard_regs_nodes): Ditto.
11178 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
11179 (object_hard_regs_subnode_t): Ditto.
11180 (struct object_hard_regs_subnode): Ditto.
11181 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
11182 (setup_object_hard_regs_subnode_index): Ditto.
11183 (get_object_hard_regs_subnodes_num): Ditto.
11184 (form_object_hard_regs_nodes_forest): Ditto.
11185 (finish_object_hard_regs_nodes_tree): Ditto.
11186 (finish_object_hard_regs_nodes_forest): Ditto.
11187 (allocnos_have_intersected_live_ranges_p): Rename to
11188 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
11189 (pseudos_have_intersected_live_ranges_p): Rename to
11190 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
11191 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
11192 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
11193 (update_copy_costs): Remove assert. Skip cost update if the hard
11194 reg does not belong the class.
11195 (assign_hard_reg): Process only profitable hard regs.
11196 (uncolorable_allocnos_num): Make it scalar.
11197 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
11198 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
11199 and ira_reg_class_max_nregs.
11200 (bucket_allocno_compare_func): Check frequency first.
11201 (sort_bucket): Add compare function as a parameter.
11202 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
11203 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
11204 (push_allocno_to_stack): Rewrite for checking new allocno
11206 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
11207 (push_only_colorable): Pass new parameter to sort_bucket.
11208 (push_allocno_to_spill): Remove.
11209 (allocno_spill_priority_compare): Make it inline and rewrite.
11210 (splay_tree_allocate, splay_tree_free): Remove.
11211 (allocno_spill_sort_compare): New function.
11212 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
11213 build and use splay tree. Choose first allocno in uncolorable
11214 allocno bucket to spill. Remove setting spill cost.
11215 (all_conflicting_hard_regs): Remove.
11216 (setup_allocno_available_regs_num): Check only profitable hard
11217 regs. Print info about hard regs nodes.
11218 (setup_allocno_left_conflicts_size): Remove.
11219 (put_allocno_into_bucket): Don't call
11220 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
11221 (improve_allocation): New.
11222 (color_allocnos): Call setup_profitable_hard_regs,
11223 form_object_hard_regs_nodes_forest, improve_allocation,
11224 finish_object_hard_regs_nodes_forest. Setup spill cost.
11225 (print_loop_title): Use pressure classes.
11226 (color_allocnso): Ditto.
11227 (do_coloring): Remove allocation and freeing splay_tree_node_pool
11228 and allocnos_for_spilling.
11229 (ira_sort_regnos_for_alter_reg): Don't setup members
11230 {first,next}_coalesced_allocno.
11231 (color): Remove allocating and freeing removed_splay_allocno_vec.
11232 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
11233 prohibited_class_mode_regs.
11235 * ira-lives.c: Remove mentioning cover classes from the file. Fix
11237 (update_allocno_pressure_excess_length): Use pressure classes.
11238 (inc_register_pressure, dec_register_pressure): Check for pressure
11240 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
11241 pressure class. Use ira_reg_class_nregs instead of
11242 ira_reg_class_max_nregs.
11243 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
11244 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
11245 (single_reg_class): Use ira_reg_class_nregs instead of
11246 ira_reg_class_max_nregs.
11247 (process_bb_node_lives): Use pressure classes.
11249 * ira-emit.c: Remove mentioning cover classes from the file. Use
11250 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
11251 (change_loop): Use pressure classes.
11252 (modify_move_list): Call ira_set_allocno_class instead of
11253 ira_set_allocno_cover_class.
11255 * ira-build.c: Remove mentioning cover classes from the file. Use
11256 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
11257 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
11258 ALLOCNO_UPDATED_CLASS_COST instead of
11259 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
11260 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
11261 (ira_create_allocno): Remove initialization of
11262 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
11263 ALLOCNO_COLORABLE_P.
11264 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
11265 Update conflict regs for the objects.
11266 (create_cap_allocno): Remove assert. Don't propagate
11267 ALLOCNO_AVAILABLE_REGS_NUM.
11268 (ira_free_allocno_costs): New function.
11269 (finish_allocno): Change a part of code into call of
11270 ira_free_allocno_costs.
11271 (low_pressure_loop_node_p): Use pressure classes.
11272 (object_range_compare_func): Don't compare classes.
11273 (setup_min_max_conflict_allocno_ids): Ditto.
11275 * loop-invariant.c: Remove mentioning cover classes from the file.
11276 Use ira_pressure_classes and ira_pressure_classes_num instead of
11277 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
11278 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
11279 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
11280 Use reg_allocno_class instead of reg_cover_class.
11281 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
11282 STACK_REG_COVER_CLASS.
11283 (get_regno_cover_class): Rename to get_regno_pressure_class.
11284 (move_loop_invariants): Initialize and finalize regstat.
11286 * ira.c: Remove mentioning cover classes from the file. Add
11287 comments about coloring without cover classes. Use ALLOCNO_CLASS
11288 instead of ALLOCNO_COVER_CLASS. Fix formatting.
11289 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
11290 setup_class_subset_and_memory_move_costs.
11291 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
11292 (setup_cover_and_important_classes): Rename to
11293 setup_allocno_and_important_classes.
11294 (setup_class_translate_array): New.
11295 (setup_class_translate): Call it for allocno and pressure classes.
11296 (cover_class_order): Rename to allocno_class_order.
11297 (comp_reg_classes_func): Use ira_allocno_class_translate instead
11298 of ira_class_translate.
11299 (reorder_important_classes): Set up ira_important_class_nums.
11300 (setup_reg_class_relations): Set up ira_reg_class_superunion.
11301 (print_class_cover): Rename to print_classes. Add parameter.
11302 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
11303 Print pressure classes too.
11304 (find_reg_class_closure): Rename to find_reg_classes. Don't call
11305 setup_reg_subclasses.
11306 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
11307 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
11308 (setup_prohibited_class_mode_regs): Use
11309 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
11310 (clarify_prohibited_class_mode_regs): New function.
11311 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
11312 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
11313 (ira_init_once): Initialize them.
11314 (free_register_move_costs): Process them.
11315 (ira_init): Move calls of find_reg_classes and
11316 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
11317 Call clarify_prohibited_class_mode_regs.
11318 (ira_no_alloc_reg): Remove.
11319 (too_high_register_pressure_p): Use pressure classes.
11321 * sched-deps.c: Remove mentioning cover classes from the file.
11322 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
11323 ira_pressure_classes and ira_pressure_classes_num instead of
11324 ira_reg_class_cover_size and ira_reg_class_cover.
11325 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
11326 sched_regno_pressure_class instead of sched_regno_cover_class.
11327 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
11328 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
11330 * ira.h: Add 2010 to Copyright.
11331 (ira_no_alloc_reg): Remove external.
11332 (struct target_ira): Rename x_ira_hard_regno_cover_class,
11333 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
11334 x_ira_class_translate to x_ira_hard_regno_allocno_class,
11335 x_ira_allocno_classes_num, x_ira_allocno_classes, and
11336 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
11337 x_ira_pressure_classes, x_ira_pressure_class_translate, and
11338 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
11339 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
11340 x_ira_no_alloc_regs.
11341 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
11342 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
11343 ira_allocno_classes_num and ira_allocno_classes.
11344 (ira_class_translate): Rename to ira_allocno_class_translate.
11345 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
11346 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
11347 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
11348 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
11349 (ira_no_alloc_regs): New.
11351 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
11352 classes from the file. Use ALLOCNO_CLASS instead of
11353 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
11354 ALLOCNO_COVER_CLASS_COST.
11355 (regno_cover_class): Rename to regno_aclass.
11356 (record_reg_classes): Use ira_reg_class_subunion instead of
11357 ira_reg_class_union.
11358 (record_address_regs): Check overflow.
11359 (scan_one_insn): Ditto.
11360 (print_allocno_costs): Print total mem cost fore regional allocation.
11361 (print_pseudo_costs): Use REG_N_REFS.
11362 (find_costs_and_classes): Use classes intersected with them on the
11363 1st pass. Check overflow. Use ira_reg_class_subunion instead of
11364 ira_reg_class_union. Use ira_allocno_class_translate and
11365 regno_aclass instead of ira_class_translate and regno_cover_class.
11366 Modify code for finding regno_aclass. Setup preferred classes for
11368 (setup_allocno_cover_class_and_costs): Rename to
11369 setup_allocno_class_and_costs. Use regno_aclass instead of
11370 regno_cover_class. Use ira_set_allocno_class instead of
11371 ira_set_allocno_cover_class.
11372 (init_costs, finish_costs): Use regno_aclass instead of
11374 (ira_costs): Use setup_allocno_class_and_costs instead of
11375 setup_allocno_cover_class_and_costs.
11376 (ira_tune_allocno_costs_and_cover_classes): Rename to
11377 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
11378 by processing objects. Use ira_reg_class_max_nregs instead of
11379 ira_reg_class_nregs.
11381 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
11383 * sched-int.h: Remove mentioning cover classes from the file.
11384 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
11386 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
11387 classes from the file.
11388 (struct reg_pref): Rename coverclass into allocnoclass.
11389 (reg_cover_class): Rename to reg_allocno_class.
11391 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
11393 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
11395 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
11397 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
11399 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
11401 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
11403 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
11405 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
11407 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
11409 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
11411 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
11412 (i386_ira_cover_classes): Ditto.
11414 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
11416 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
11418 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
11420 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
11422 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
11424 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
11426 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
11427 (mips_ira_cover_classes): Ditto.
11429 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
11431 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
11433 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
11435 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
11437 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
11439 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
11440 (IRA_COVER_CLASSES_VSX): Ditto.
11442 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
11443 (rs6000_ira_cover_classes): Ditto.
11445 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
11447 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
11449 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
11451 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
11453 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
11455 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
11457 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
11459 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
11461 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
11463 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
11465 2011-03-29 Jakub Jelinek <jakub@redhat.com>
11468 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
11469 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
11470 dw_fde_unlikely_section_end_label, cold_in_std_section,
11471 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
11472 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
11474 (output_fde): Use dw_fde_second_{begin,end} if second is
11475 true, otherwise dw_fde_{begin,end}.
11476 (output_call_frame_info): Test dw_fde_second_begin != NULL
11477 instead of dw_fde_switched_sections.
11478 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
11479 fields, initialize new fields. Initialize in_std_section
11480 unconditionally from the first partition.
11481 (dwarf2out_end_epilogue): Don't override dw_fde_end when
11482 dw_fde_second_begin is non-NULL.
11483 (dwarf2out_switch_text_section): Stop initializing removed
11484 dw_fde_struct fields, initialize new fields, initialize
11485 also dw_fde_end here. Set dw_fde_switch_cfi even when
11486 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
11487 (struct var_loc_list_def): Add last_before_switch field.
11488 (arange_table, arange_table_allocated, arange_table_in_use,
11489 ARANGE_TABLE_INCREMENT, add_arange): Removed.
11490 (size_of_aranges): Count !in_std_section and !second_in_std_section
11491 hunks in fdes, instead of looking at arange_table_in_use.
11492 (output_aranges): Add aranges_length argument, don't call
11493 size_of_aranges here. Instead of using aranges_table*
11494 emit ranges for fdes when !in_std_section resp.
11495 !second_in_std_section.
11496 (dw_loc_list): Break ranges crossing section switch.
11497 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
11498 use dw_fde_second_end instead of dw_fde_end as end of last range.
11499 (gen_subprogram_die): Don't call add_arange. Use
11500 dw_fde_{begin,end} for first partition and if switched
11501 section dw_fde_second_{begin,end} for the second.
11502 (var_location_switch_text_section_1,
11503 var_location_switch_text_section): New functions.
11504 (dwarf2out_begin_function): Initialize cold_text_section even
11505 when function_section () isn't text_section.
11506 (prune_unused_types): Don't walk arange_table.
11507 (dwarf2out_finish): Don't needlessly test
11508 flag_reorder_blocks_and_partition when testing cold_text_section_used.
11509 If info_section_emitted, call size_of_aranges and if it indicates
11510 non-empty .debug_aranges, call output_aranges with the computed
11511 size. Stop using removed dw_fde_struct fields, use
11512 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
11516 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
11517 create ENTRY_VALUE if incoming or address of incoming's MEM
11519 * dwarf2out.c (mem_loc_descriptor): Don't emit
11520 DW_OP_GNU_entry_value of DW_OP_fbreg.
11521 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
11522 on ENTRY_VALUE is able to find the canonical parameter VALUE.
11523 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
11524 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
11526 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
11527 is a REG_P or MEM_P with REG_P address, compute hash directly
11528 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
11529 (preserve_only_constants): Don't clear VALUES forwaring
11530 ENTRY_VALUE to some other VALUE.
11532 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
11534 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
11535 instead of GEN_INT.
11537 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
11539 * cfgexpand.c (expand_gimple_cond): Always set the source location and
11540 block before expanding the statement.
11541 (expand_gimple_stmt_1): Likewise. Set them here...
11542 (expand_gimple_stmt): ...and not here. Tidy.
11543 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
11546 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
11548 * Makefile.in: New rule for cprop.o.
11549 * gcse.c: Move constant/copy propagation to cprop.c.
11550 (compute_local_properties): Only handle expression tables.
11551 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
11552 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
11553 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
11554 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
11555 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
11556 compute_cprop_data, find_used_regs, try_replace_reg,
11557 find_avail_set, cprop_jump, constprop_register, cprop_insn,
11558 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
11559 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
11560 find_bypass_set, reg_killed_on_edge, bypass_block,
11561 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
11562 execute_rtl_cprop, pass_rtl_cprop): Move to...
11563 * cprop.c: ...here. New file, constant/copy propagation for RTL
11564 moved from gcse.c to here with minor cleanups in duplicated code.
11566 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
11568 * config/i386/i386.c (flag_opts): Fix a typo in
11569 -mavx256-split-unaligned-store.
11571 2011-03-28 Anatoly Sokolov <aesok@post.ru>
11573 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
11574 LIBCALL_VALUE): Remove macros.
11575 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11576 TARGET_FUNCTION_VALUE_REGNO_P): Define.
11577 (h8300_function_value, h8300_libcall_value,
11578 h8300_function_value_regno_p): New functions.
11580 2011-03-28 Anatoly Sokolov <aesok@post.ru>
11582 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
11584 2011-03-28 Jeff Law <law@redhat.com>
11586 * tree-ssa-threadupdate.c (redirect_edges): Call
11587 create_edge_and_update_destination_phis as needed.
11588 (create_edge_and_update_destination_phis): Accept new BB argument.
11589 All callers updated.
11590 (thread_block): Do not update the profile when threading around
11591 intermediate blocks.
11592 (thread_single_edge): Likewise.
11593 (determine_bb_domination_status): If BB is not a successor of the
11594 loop header, return NONDOMINATING.
11595 (register_jump_thread): Note when we register a jump thread around
11596 an intermediate block.
11597 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
11598 (thread_across_edge): Use it.
11600 2011-03-28 Tristan Gingold <gingold@adacore.com>
11602 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
11603 when for_return is 2.
11605 2011-03-28 Jeff Law <law@redhat.com>
11607 * var-tracking.c (canonicalize_values_mark): Delete unused
11609 (canonicalize_values_star, set_variable_part): Likewise.
11610 (clobber_variable_part, delete_variable_part): Likewise.
11612 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
11614 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
11616 2011-03-28 Martin Jambor <mjambor@suse.cz>
11618 * tree-inline.c (expand_call_inline): Do not check that destination
11620 (optimize_inline_calls): Assert that destination node is analyzed.
11621 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
11622 not call tree_lowering_passes.
11623 * cgraph.h (cgraph_analyze_function): Declare.
11624 * cgraphunit.c (cgraph_analyze_function): Make public.
11626 2011-03-28 Joseph Myers <joseph@codesourcery.com>
11628 * config/sparc/sparc-opts.h: New.
11629 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
11630 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
11631 (sparc_option_override): Store processor_type enumeration rather
11632 than string in cpu_default. Remove name and enumeration from
11633 cpu_table. Directly default -mcpu then default -mtune from -mcpu
11634 without using sparc_select. Use target_flags_explicit instead of
11636 * config/sparc/sparc.h (enum processor_type): Move to
11638 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
11639 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
11640 HeaderInclude entry.
11641 (mcpu=, mtune=): Use Var and Enum.
11642 (sparc_processor_type): New Enum and EnumValue entries.
11644 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11645 Iain Sandoe <iains@gcc.gnu.org>
11648 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
11650 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
11652 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
11653 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
11654 Insert new statements at it in lieu of STMT.
11655 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
11656 * tree-vect-stmts.c (vectorizable_store): Likewise.
11657 (vectorizable_load): Likewise.
11659 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
11661 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
11666 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
11668 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
11669 unaligned 256bit load/store.
11670 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
11671 (*avx_movdqu<avxmodesuffix>): Likewise.
11673 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11676 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
11677 * config/pa/pa.md (iordi3): Use new predicate in expander.
11678 (iorsi3): Likewise.
11680 2011-03-27 Anatoly Sokolov <aesok@post.ru>
11682 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
11683 FUNCTION_VALUE_REGNO_P): Remove macros.
11684 * config/mips/mips-protos.h (mips_function_value): Remove.
11685 * config/mips/mips.c (mips_function_value): Rename to...
11686 (mips_function_value_1): ... this. Make static. Handle receiving
11687 the function type in 'fn_decl_or_type' argument.
11688 (mips_function_value, mips_libcall_value,
11689 mips_function_value_regno_p): New function.
11690 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11691 TARGET_FUNCTION_VALUE_REGNO_P): Define.
11693 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
11695 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
11696 and -mavx256-split-unaligned-store.
11697 (ix86_option_override_internal): Split 32-byte AVX unaligned
11698 load/store by default.
11699 (ix86_avx256_split_vector_move_misalign): New.
11700 (ix86_expand_vector_move_misalign): Use it.
11702 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
11703 -mavx256-split-unaligned-store.
11705 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
11706 256bit load/store. Generate unaligned store on misaligned memory
11708 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
11710 (*avx_movdqu<avxmodesuffix>): Likewise.
11712 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
11713 -mavx256-split-unaligned-store.
11715 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
11718 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
11721 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
11723 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
11724 opno arguments with an expand_operand. Use create_input_operand.
11725 (mips_prepare_builtin_target): Delete.
11726 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
11728 (mips_expand_builtin_direct): Use create_output_operand and
11729 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
11730 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
11731 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
11733 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
11735 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
11737 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
11739 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
11741 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
11742 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
11743 basic blocks and call commit_edge_insertions directly.
11744 (fixup_abnormal_edges): Move from here to...
11745 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
11746 on the edges and return whether some have actually been inserted.
11747 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
11750 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
11752 PR rtl-optimization/48144
11753 * sel-sched-ir.c (merge_history_vect): Factor out from ...
11754 (merge_expr_data): ... here.
11755 (av_set_intersect): Rename to av_set_code_motion_filter.
11756 Update all callers. Call merge_history_vect when an expression
11757 is found in both sets.
11758 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
11760 2011-03-26 Alan Modra <amodra@gmail.com>
11762 * config/rs6000/predicates.md (word_offset_memref_op): Handle
11763 cmodel medium addresses.
11764 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
11765 64-bit gpr loads and stores.
11766 (rs6000_secondary_reload_ppc64): New function.
11767 * config/rs6000/rs6000-protos.h: Declare it.
11768 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
11770 2011-03-26 Alan Modra <amodra@gmail.com>
11773 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
11774 GNU Go in traceback table.
11776 2011-03-25 Richard Henderson <rth@redhat.com>
11778 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
11779 if there are exactly 6 operands.
11780 (set_storage_via_setmem): Similarly.
11782 2011-03-25 Kai Tietz <ktietz@redhat.com>
11784 * collect2.c (write_c_file_stat): Handle backslash
11785 as right-hand directory separator.
11786 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
11787 checking just for slash.
11788 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
11789 instead of checking for trailing slash.
11790 * gcc.c (record_temp_file): Use filename_cmp instead
11792 (do_spec_1): Likewise.
11793 (replace_outfile_spec_function): Likewise.
11794 (is_directory): Use filename_ncmp instead of strncmp.
11795 (print_multilib_info): Likewise.
11796 * gcov.c (find_source): Use filename_cmp instead
11798 (make_gcov_file_name): Fix order of slash/backslash
11800 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
11801 (add_standard_paths): Likewise.
11802 * mips-tfile.c (saber_stop): Handle backslash.
11803 * prefix.c (update_path): Use filename_ncmp instead of
11805 * profile.c (output_location): Use filename_cmp instead
11807 * read-md.c (handle_toplevel_file): Handle backslash.
11808 * tlink.c (frob_extension): Likewise.
11809 * tree-cfg.c (same_line_p): Use filename_cmp instead of
11811 * tree-dump.c (dequeue_and_dump): Handle backslash.
11812 * tree.c (get_file_function_name): Likewise.
11813 * gengtype.c (read_input_list): Likewise.
11814 (get_file_realbasename): Likewise.
11815 (get_output_file_with_visibility): Use filename_cmp
11818 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
11820 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
11823 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
11825 * fold-const.c (expr_location_or): New function.
11826 (fold_truth_not_expr): Call it.
11828 2011-03-25 Jeff Law <law@redhat.com>
11830 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
11832 * c-family/c-common.c (def_fn_type): Likewise.
11833 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
11834 * emit-rtl.c (gen_rtvec): Likewise.
11835 * lto/lto-lang.c (def_fn_type): Likewise.
11837 2011-03-25 Richard Guenther <rguenther@suse.de>
11839 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
11840 also generate copies.
11841 (fini_copy_prop): Handle constant values properly.
11843 2011-03-25 Jakub Jelinek <jakub@redhat.com>
11845 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
11846 mode size instead of bitsize with DWARF2_ADDR_SIZE.
11847 (hash_loc_operands, compare_loc_operands): Handle
11848 DW_OP_GNU_entry_value.
11850 2011-03-25 Kai Tietz <ktietz@redhat.com>
11852 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
11853 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
11854 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
11855 comment and use macro TARGET_64BIT_MS_ABI instead.
11856 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
11857 and change default behavior for 32-bit MS_ABI.
11858 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
11859 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
11861 (ix86_cfun_abi): Likewise.
11862 (ix86_maybe_switch_abi): Adjust comment.
11863 (init_cumulative_args): Check for bit-ness in MS_ABI case.
11864 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
11865 instead of checking for SYSV_ABI.
11866 (ix86_nsaved_sseregs): Likewise.
11867 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
11869 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
11870 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
11871 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
11872 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
11873 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
11875 2011-03-25 Richard Guenther <rguenther@suse.de>
11877 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
11878 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
11879 (verify_gimple): Remove.
11880 * tree-cfg.c (verify_gimple_call): Merge verification
11882 (verify_gimple_phi): Merge verification from verify_stmts.
11883 (verify_gimple_label): New function.
11884 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
11885 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
11886 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
11887 (verify_stmts): Rename to verify_gimple_in_cfg.
11888 (verify_gimple_in_cfg): New function.
11889 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
11890 * tree-ssa.c (verify_ssa): Likewise.
11891 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
11893 2011-03-25 Richard Guenther <rguenther@suse.de>
11895 * passes.c (init_optimization_passes): Add FRE pass after
11898 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
11899 Andrew Stubbs <ams@codesourcery.com>
11901 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
11903 (arm_movdi_vfp_cortexa8): New pattern.
11904 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
11905 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
11906 instructions when tuning for Cortex-A8. Set attribute "arch".
11907 * config/arm/arm.md: Move include arm-tune.md up a bit.
11908 (define_attr "arch"): Add "onlya8" and "nota8" values.
11909 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
11911 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
11915 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
11917 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
11918 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
11919 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
11920 * passes.c (init_optimization_passes): Move
11921 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
11923 2011-03-25 Kai Tietz <ktietz@redhat.com>
11925 * c-typeck.c (comptypes_internal): Replace target
11926 hook call of comp_type_attributes by version in tree.c file.
11927 * gimple.c (gimple_types_compatible_p_1): Likewise.
11928 * tree-ssa.c (useless_type_conversion_p): Likewise.
11929 * tree.c (build_type_attribute_qual_variant): Likewise.
11930 (attribute_value_equal): New static helper function.
11931 (comp_type_attributes): New function.
11932 (merge_attributes): Use attribute_value_equal for comparison.
11933 (attribute_list_contained): Likewise.
11934 * tree.h (comp_type_attributes): New prototype.
11936 2011-03-25 Richard Guenther <rguenther@suse.de>
11938 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
11939 of complex types at -O0.
11940 (verify_gimple_assign_binary): Likewise.
11941 (verify_gimple_assign_ternary): Likewise.
11943 2011-03-24 Mark Wielaard <mjw@redhat.com>
11945 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
11946 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
11948 2011-03-24 Mark Wielaard <mjw@redhat.com>
11951 * dwarf2out.c (output_abbrev_section): Only write table when
11952 abbrev_die_table_in_use > 1.
11954 2011-02-24 Richard Henderson <rth@redhat.com>
11956 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
11957 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
11958 (alpha_expand_unaligned_load_words): Use extql.
11959 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
11960 (emit_insxl): Handle all modes for consistency.
11962 2011-02-24 Richard Henderson <rth@redhat.com>
11964 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
11965 (alpha_expand_unaligned_load): Likewise.
11966 (alpha_expand_unaligned_store): Likewise.
11967 (alpha_expand_unaligned_load_words): Likewise.
11968 (alpha_expand_unaligned_store_words): Likewise.
11969 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
11970 (alpha_split_lock_test_and_set_12): Likewise.
11971 (print_operand, alpha_fold_builtin_extxx): Likewise.
11972 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
11973 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
11974 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
11975 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
11976 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
11977 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
11978 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
11979 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
11980 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
11981 (extwl, extll, extql): Similarly.
11982 (inswh, inslh, insqh): Similarly.
11983 (mskbl, mskwl, mskll, mskql): Similarly.
11984 (mskwh, msklh, mskqh): Similarly.
11986 2011-02-24 Richard Henderson <rth@redhat.com>
11988 * config/alpha/alpha.md (attribute isa): Add er, ner.
11989 (attribute enabled): Handle them.
11990 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
11992 2011-02-24 Richard Henderson <rth@redhat.com>
11994 * config/alpha/alpha.md (attribute isa): Add vms.
11995 (attribute enabled): Handle it.
11996 (*movsf): Merge *movsf_{nofix,fix,nofp}.
11997 (*movdf): Merge *movdf_{nofix,fix,nofp}.
11998 (*movtf): Rename from *movtf_internal for consistency.
11999 (*movsi): Merge with *movsi_nt_vms.
12000 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
12001 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
12002 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
12003 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
12005 2011-02-24 Richard Henderson <rth@redhat.com>
12007 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
12008 (extendqisi2, extendhisi2): Likewise.
12009 (extendqidi2): Simplify BWX/non-BWX expansions.
12010 (extendhidi2): Similarly.
12012 2011-02-24 Richard Henderson <rth@redhat.com>
12014 * config/alpha/alpha.md (attribute isa): New.
12015 (attribute enabled): New.
12016 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
12017 (zero_extendqisi2, zero_extendqidi2): Similarly.
12018 (zero_extendhisi2, zero_extendhidi2): Similarly.
12019 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
12021 2011-02-24 Richard Henderson <rth@redhat.com>
12023 * config/alpha/predicates.md (input_operand): Revert last change;
12024 update comment to mention 32-bit VMS rather than Windows.
12026 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
12028 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
12029 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
12030 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
12031 * passes.c (init_optimization_passes): Move
12032 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
12034 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
12036 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
12038 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
12040 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
12043 2011-03-24 Jakub Jelinek <jakub@redhat.com>
12046 * simplify-rtx.c (simplify_const_unary_operation): Call
12047 real_convert when changing mode class with FLOAT_EXTEND.
12049 2011-03-24 Nick Clifton <nickc@redhat.com>
12051 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
12052 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
12053 * config/rx/rx.c (rx_option_override): Set align_jumps,
12054 align_loops and align_labels if not set by the user.
12055 (rx_align_for_label): New function.
12056 (rx_max_skip_for_label): New function.
12057 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
12058 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
12059 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
12060 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
12061 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
12063 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
12065 PR rtl-optimization/48263
12066 * optabs.c (expand_binop_directly): Reinstate convert_modes code
12067 and original commutative_p handling. Use maybe_gen_insn.
12069 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12071 * reload.c (find_reloads_subreg_address): Add address_reloaded
12072 parameter and return true there if the full address has been
12074 (find_reloads_toplev): Pass address_reloaded flag.
12075 (find_reloads_address_1): Don't use address_reloaded parameter.
12077 2011-03-24 Jeff Law <law@redhat.com>
12079 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
12080 unused variable "ann".
12081 (remove_unused_locals): Likewise.
12083 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
12086 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
12089 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12091 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
12092 for invalid symbolic addresses.
12093 (s390_secondary_reload): Don't use s390_check_symref_alignment for
12096 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
12098 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
12099 the argument in calls to fold_truth_not_expr.
12101 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
12103 * tree.c (record_node_allocation_statistics): New function.
12104 (make_node_stat, copy_node_stat, build_string): Call it.
12105 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
12106 (build1_stat, build_omp_clause): Likewise.
12108 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
12110 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
12113 2011-03-24 Richard Guenther <rguenther@suse.de>
12115 PR tree-optimization/48271
12116 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
12117 blocks that still exist.
12119 2011-03-24 Richard Guenther <rguenther@suse.de>
12121 PR tree-optimization/48270
12122 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
12123 not free datarefs before ddrs.
12125 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
12127 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
12128 from the address built for a reference with variable offset.
12130 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
12133 * config/i386/i386.md (*movdf_internal_rex64): Do not split
12134 alternatives that can be handled with movq or movabsq insn.
12135 (*movdf_internal): Disable for !TARGET_64BIT.
12136 (*movdf_internal_nointeger): Ditto.
12137 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
12139 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
12141 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
12142 (FUNCTION_ARG_ADVANCE): Likewise.
12143 * tm.texi.in: Change references to them to hook references.
12144 * tm.texi: Regenerate.
12145 * targhooks.c (default_function_arg): Eliminate check for target macro.
12146 (default_function_incoming_arg): Likewise.
12147 (default_function_arg_advance): Likewise.
12148 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
12149 (function_arg_advance): Likewise.
12150 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
12152 2011-03-24 Richard Guenther <rguenther@suse.de>
12154 PR middle-end/48269
12155 * tree-object-size.c (addr_object_size): Do not double-account
12156 for MEM_REF offsets.
12158 2011-03-24 Diego Novillo <dnovillo@google.com>
12160 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
12161 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
12162 (lto_input_data_block): Move from lto-opts.c. Make extern.
12164 (lto_input_string): Rename from input_string. Make extern.
12166 * lto-streamer-out.c (lto_output_string_with_length): Rename from
12167 output_string_with_length.
12168 Output 0 to indicate a non-NULL string. Update all callers to
12170 (lto_output_string): Rename from output_string. Make extern.
12172 (lto_output_decl_state_streams): Make extern.
12173 (lto_output_decl_state_refs): Make extern.
12174 * lto-streamer.h (lto_input_string): Declare.
12175 (lto_input_data_block): Declare.
12176 (lto_output_string): Declare.
12177 (lto_output_string_with_length): Declare.
12178 (lto_output_decl_state_streams): Declare.
12179 (lto_output_decl_state_refs): Declare.
12181 2011-03-24 Richard Guenther <rguenther@suse.de>
12183 PR tree-optimization/46562
12184 * tree.c (build_invariant_address): New function.
12185 * tree.h (build_invariant_address): Declare.
12186 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
12187 a renamed function moved ...
12188 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
12189 Take valueization callback parameter.
12190 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
12191 * gimple-fold.h: New file.
12192 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
12193 (ccp_fold, fold_const_aggregate_ref,
12194 fold_ctor_reference, fold_nonarray_ctor_reference,
12195 fold_array_ctor_reference, fold_string_cst_ctor_reference,
12196 get_base_constructor): Move ...
12197 * gimple-fold.c: ... here.
12198 (gimple_fold_stmt_to_constant_1): New function
12199 split out from ccp_fold. Take a valueization callback parameter.
12200 Valueize all operands.
12201 (gimple_fold_stmt_to_constant): New wrapper function.
12202 (fold_const_aggregate_ref_1): New function split out from
12203 fold_const_aggregate_ref. Take a valueization callback parameter.
12204 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
12205 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
12206 invariant POINTER_PLUS_EXPRs to invariant form.
12207 (vn_valueize): New function.
12208 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
12209 * tree-vrp.c (vrp_valueize): New function.
12210 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
12211 to fold statements to constants.
12212 * tree-ssa-pre.c (eliminate): Properly guard propagation of
12213 function declarations.
12214 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
12215 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
12217 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
12219 * config/h8300/predicates.md (jump_address_operand): Fix register
12222 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
12224 * doc/invoke.texi (max-stores-to-sink): Document.
12225 * params.h (MAX_STORES_TO_SINK): Define.
12226 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
12227 if either vectorization or if-conversion is disabled.
12228 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
12229 tree-vect-data-refs.c vect_equal_offsets.
12230 (dr_equal_offsets_p): New function.
12231 (find_data_references_in_bb): Remove static.
12232 * tree-data-ref.h (find_data_references_in_bb): Declare.
12233 (dr_equal_offsets_p): Likewise.
12234 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
12235 (vect_drs_dependent_in_basic_block): Update calls to
12236 vect_equal_offsets.
12237 (vect_check_interleaving): Likewise.
12238 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
12239 (cond_if_else_store_replacement): Rename to...
12240 (cond_if_else_store_replacement_1): ... this. Change arguments and
12242 (cond_if_else_store_replacement): New function.
12243 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
12244 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
12246 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
12249 * config/arm/arm.md (casesi): Use the gen_int_mode() function
12250 to subtract lower bound instead of GEN_INT().
12252 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
12257 * doc/extend.texi (Alignment): Move section to match order in TOC.
12258 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
12259 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
12261 2011-03-23 Jeff Law <law@redhat.com>
12263 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
12264 before removing the edge.
12266 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
12267 it may have been freed by redirect_branch_edge or
12268 redirect_edge_succ_nodup.
12270 2011-03-23 Richard Guenther <rguenther@suse.de>
12272 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
12273 (check_va_list_escapes): Likewise.
12274 (check_all_va_list_escapes): Likewise.
12276 2011-03-23 Richard Guenther <rguenther@suse.de>
12278 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
12279 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
12280 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
12281 (alias.o): Likewise.
12282 (ipa-type-escape.o): Remove.
12283 (ipa-struct-reorg.o): Likewise.
12284 (GTFILES): Remove ipa-struct-reorg.c.
12285 * alias.c: Do not include ipa-type-escape.h.
12286 * tree-ssa-alias.c: Likewise.
12287 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
12288 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
12289 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
12290 and ipa-type-escape passes.
12291 * tree-pass.h (pass_ipa_type_escape): Remove.
12292 (pass_ipa_struct_reorg): Likewise.
12293 * ipa-struct-reorg.h: Remove.
12294 * ipa-struct-reorg.c: Likewise.
12295 * ipa-type-escape.h: Likewise.
12296 * ipa-type-escape.c: Likewise.
12297 * doc/invoke.texi (-fipa-struct-reorg): Remove.
12298 (--param struct-reorg-cold-struct-ratio): Likewise.
12299 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
12300 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
12301 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
12303 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12305 * config/s390/2084.md: Enable all insn reservations also for z9_ec
12306 cpu attribute value.
12307 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
12308 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
12309 * config/s390/s390.c (processor_flags_table): New constant array.
12310 (s390_handle_arch_option): Remove.
12311 (s390_handle_option): Remove s390_handle_arch_option invocations
12312 and OPT_mwarn_framesize_ handling.
12313 (s390_option_override): Remove s390_handle_arch_option invocation.
12314 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
12316 * config/s390/s390.md (cpu attribute): Add z9_ec value.
12317 * config/s390/s390.opt (s390_tune, s390_arch)
12318 (march=): Replace s390_arch_option enum and values with
12319 processor_type. Set variable name to s390_arch. Set
12320 initialization value.
12321 (mtune=): Replace s390_arch_option with processor_type. Set
12322 variable name to s390_tune. Set initialization value.
12324 2011-03-23 Julian Brown <julian@codesourcery.com>
12326 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
12327 accesses which are not naturally aligned.
12329 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
12332 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
12334 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
12336 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
12337 parameter from "int" to "enum insn_code".
12338 (expand_operand_type): New enum.
12339 (expand_operand): New structure.
12340 (create_expand_operand): New function.
12341 (create_fixed_operand, create_output_operand): Likewise
12342 (create_input_operand, create_convert_operand_to): Likewise.
12343 (create_convert_operand_from, create_address_operand): Likewise.
12344 (create_integer_operand): Likewise.
12345 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
12346 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
12347 (expand_insn, expand_jump_insn): Likewise.
12348 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
12349 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
12350 (expand_movstr, expand_builtin___clear_cache): Likewise.
12351 (expand_builtin_lock_release): Likewise.
12352 * explow.c (allocate_dynamic_stack_space): Likewise.
12353 (probe_stack_range): Likewise. Allow check_stack to FAIL,
12354 and use the default handling in that case.
12355 * expmed.c (check_predicate_volatile_ok): Delete.
12356 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
12357 (emit_cstore): Likewise.
12358 * expr.c (emit_block_move_via_movmem): Likewise.
12359 (set_storage_via_setmem, expand_assignment): Likewise.
12360 (emit_storent_insn, try_casesi): Likewise.
12361 (emit_single_push_insn): Likewise. Allow the expansion to fail.
12362 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
12363 (expand_vec_shift_expr, expand_binop_directly): Likewise.
12364 (expand_twoval_unop, expand_twoval_binop): Likewise.
12365 (expand_unop_direct, emit_indirect_jump): Likewise.
12366 (emit_conditional_move, vector_compare_rtx): Likewise.
12367 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
12368 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
12369 (expand_sync_lock_test_and_set): Likewise.
12370 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
12371 (emit_unop_insn): Likewise.
12372 (expand_copysign_absneg): Change icode to an insn_code.
12373 (create_convert_operand_from_type): New function.
12374 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
12375 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
12376 (expand_insn, expand_jump_insn): Likewise.
12377 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
12378 than const_int_operand for operand 2.
12380 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12382 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
12385 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
12387 * emit-rtl.c (emit_pattern_before_noloc): New function.
12388 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
12389 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
12390 (emit_pattern_after_noloc): New function.
12391 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
12392 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
12394 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
12396 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
12397 (__ffsDI2): Likewise.
12399 2011-03-22 Richard Henderson <rth@redhat.com>
12401 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
12402 of !TARGET_ABI_OPEN_VMS.
12403 (alpha_trampoline_init, alpha_start_function): Likewise.
12404 (alpha_expand_epilogue, alpha_file_start): Likewise.
12405 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
12406 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
12407 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
12408 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
12409 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
12411 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12413 * config/s390/s390-opts.h: New.
12414 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
12415 s390_arch_flags, s390_warn_framesize, s390_stack_size,
12416 s390_stack_guard): Remove.
12417 (s390_handle_arch_option): Return void. Take enum
12418 s390_arch_option value instead of string and searching array.
12419 (s390_handle_option): Don't assert that global structures are in
12420 use. Access variables via opts pointer. Use error_at. Don't use
12421 sscanf for -mstack-guard= or -mstack-size=. Update call to
12422 s390_handle_arch_option.
12423 (s390_option_override): Update call to s390_handle_arch_option.
12424 (s390_emit_prologue): Use %d format for s390_stack_size in
12425 diagnostic. Use %wd for HOST_WIDE_INT.
12426 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
12427 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
12428 * config/s390/s390.opt (config/s390/s390-opts.h): New
12429 HeaderInclude entry.
12430 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
12431 s390_arch_flags, s390_warn_framesize): New Variable entries.
12432 (s390_arch_option): New Enum and EnumValue entries.
12433 (march=): Use Enum instead of Var.
12434 (mstack-guard=, mstack-size=): Use UInteger and Var.
12435 (mtune=): Use Enum.
12437 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12439 * config/score/score.c (score_handle_option): Don't assert that
12440 global structures are in use. Access target_flags via opts
12441 pointer. Use value of -march= option to determine target_flags
12443 * config/score/score.opt (march=): Use Enum.
12444 (score_arch): New Enum and EnumValue entries.
12446 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12448 * config/mep/mep.c (option_mtiny_specified): Remove.
12449 (mep_option_override): Move register handling for -mivc2 from
12450 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
12451 instead of option_mtiny_specified.
12452 (mep_handle_option): Access target_flags via opts pointer. Don't
12453 assert that global structures are in use. Defer part of -mivc2
12454 handling and move it to mep_option_override.
12455 * config/mep/mep.opt (IVC2): New Mask entry.
12456 (mivc2): Use Var and Defer instead of Mask.
12458 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12460 * config/v850/v850-opts.h: New.
12461 * config/v850/v850.c (small_memory): Replace with
12462 small_memory_physical_max array. Make that array static const.
12463 (v850_handle_memory_option): Take integer value of argument. Take
12464 gcc_options pointer, option text and location. Return void.
12465 Update for changes to small memory structures.
12466 (v850_handle_option): Access target_flags via opts pointer. Don't
12467 assert that global structures are in use. Update calls to
12468 v850_handle_memory_option.
12469 (v850_encode_data_area): Update references to small memory settings.
12470 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
12471 (enum small_memory_type): Move to v850-opts.h.
12472 * config/v850/v850.opt (config/v850/v850-opts.h): New
12473 HeaderInclude entry.
12474 (small_memory_max): New Variable entry.
12475 (msda): Replace by pair of options msda= and msda-. Use UInteger.
12476 (mtda, mzda): Likewise.
12478 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12480 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
12481 pointer. Don't assert that global structures are in use.
12483 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12485 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
12486 via opts pointer. Don't assert that global structures are in use.
12488 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12490 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
12491 (munix=93): Use Var.
12492 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
12493 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
12494 * config/pa/pa-opts.h: New.
12495 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
12496 (pa_handle_option): Don't assert that global structures are in
12497 use. Access target_flags via opts pointer. Don't handle
12498 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
12500 (pa_option_override): Handle deferred OPT_mfixed_range_.
12502 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12504 * config/mn10300/mn10300-opts.h: New.
12505 * config/mn10300/mn10300.c (mn10300_processor,
12506 mn10300_tune_string): Remove.
12507 (mn10300_handle_option): Don't assert that global structures are
12508 in use. Access mn10300_processor via opts pointer. Don't handle
12510 * config/mn10300/mn10300.h (enum processor_type): Move to
12512 (mn10300_processor): Remove.
12513 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
12514 HeaderInclude entry.
12515 (mn10300_processor): New Variable entry.
12518 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12520 * config/microblaze/microblaze.c: Don't include opts.h.
12521 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
12522 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
12523 (mno-clearbss): Use Var and Warn.
12525 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12527 * config/m32r/m32r-opts.h: New.
12528 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
12529 (m32r_handle_option): Don't assert that global structures are in
12530 use. Access target_flags and m32r_cache_flush_func via opts
12531 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
12532 OPT_mno_flush_trap here.
12533 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
12534 include of m32r-opts.h.
12535 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
12536 HeaderInclude entry.
12537 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
12538 (mmodel=): Use Enum and Var.
12539 (m32r_model): New Enum and EnumValue entries.
12540 (mno-flush-trap): Use Var.
12541 (msdata=): Use Enum and Var.
12542 (m32r_sdata): New Enum and EnumValue entries.
12544 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12546 * config/m32c/m32c.c: Don't include opts.h.
12547 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
12548 m32c_handle_option): Remove.
12549 (m32c_option_override): Check global_options_set.x_target_memregs
12550 instead of target_memregs_set.
12551 * config/m32c/m32c.h (target_memregs): Remove.
12552 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
12555 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12557 * config/iq2000/iq2000-opts.h: New.
12558 * config/iq2000/iq2000.c: Don't include opts.h.
12559 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
12560 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
12561 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
12562 HeaderInclude entry.
12563 (iq2000_tune): New Variable entry.
12564 (march=): Add comment. Use Enum.
12565 (iq2000_arch): New Enum and EnumValue entries.
12566 (mcpu=): Use Enum and Var.
12567 (iq2000_tune): New Enum and EnumValue entries.
12569 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12571 * config/ia64/ia64-opts.h: New.
12572 * config/ia64/ia64.c (ia64_tune): Remove.
12573 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
12574 here. Use error_at.
12575 (ia64_option_override): Handle deferred OPT_mfixed_range_.
12576 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
12577 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
12578 HeaderInclude entry.
12579 (ia64_tune): New Variable entry.
12580 (mfixed-range=): Use Defer and Var.
12581 (mtune=): Use Enum and Var.
12582 (ia64_tune): New Enum and EnumValue entries.
12584 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12586 * config/frv/frv-opts.h: New.
12587 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
12589 (frv_cpu_type): Remove.
12590 * config/frv/frv.c: Don't include opts.h.
12591 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
12592 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
12593 (frv_cpu_type): New Variable entry.
12594 (frv_cpu): New Enum and EnumValue entries.
12596 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12598 * config/cris/cris.c (cris_handle_option): Access target_flags via
12599 opts pointer. Don't assert that global structures are in use.
12600 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
12601 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
12603 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12605 * config/bfin/bfin-opts.h: New.
12606 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
12607 bfin_si_revision, bfin_workarounds): Remove.
12608 (bfin_cpus): Make static const.
12609 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
12610 not bfin_lib_id_given.
12611 (bfin_handle_option): Don't set bfin_lib_id_given. Access
12612 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
12613 pointer. Use error_at. Don't assert that global structures are in use.
12614 * config/bfin/bfin.h: Include bfin-opts.h.
12615 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
12616 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
12617 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
12618 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
12621 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12623 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
12624 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
12625 or -msoft-float here.
12626 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
12627 -msoft-float and -mhard-float.
12628 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
12629 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
12631 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
12633 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
12634 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
12636 (LIBGCC_SPEC): Don't handle -msoft-float.
12637 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
12639 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
12641 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
12642 -mfloat-abi=*, not -msoft-float and -mhard-float.
12643 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
12645 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
12646 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
12647 mhard-float and msoft-float.
12648 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
12649 mfloat-abi=soft in comments, not mhard-float and msoft-float.
12650 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
12651 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
12653 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
12654 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
12656 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
12658 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
12661 2011-03-22 Richard Henderson <rth@redhat.com>
12663 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
12664 TARGET_ABI_WINDOWS_NT.
12665 (alpha_output_function_end_prologue): Likewise.
12666 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
12667 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
12668 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
12669 (trap, *movsi_nt_vms): Likewise.
12670 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
12671 (*tablejump_osf_nt_internal): Remove.
12672 * config/alpha/predicates.md (input_operand): Only test Pmode.
12674 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12676 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
12677 via opts pointer. Use error_at. Don't assert that global
12678 structures are in use.
12680 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12682 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
12683 (ix86_handle_option): Access ix86_isa_flags and
12684 ix86_isa_flags_explicit via opts pointer. Don't assert that
12685 global structures are in use.
12686 (ix86_function_specific_save, ix86_function_specific_restore):
12687 Update ix86_isa_flags_explicit field name.
12688 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
12689 (ix86_isa_flags_explicit): Rename TargetSave entry to
12690 x_ix86_isa_flags_explicit.
12692 2011-03-22 Richard Henderson <rth@redhat.com>
12694 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
12695 (alpha_option_override, direct_return): Likewise.
12696 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
12697 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
12698 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
12699 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
12700 (alpha_expand_epilogue, alpha_end_function): Likewise.
12701 (alpha_init_libfuncs): Likewise.
12702 (struct machine_function): Remove unicosmk members.
12703 (print_operand) ['t']: Remove.
12704 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
12705 unicosmk_output_module_name, unicosmk_output_common,
12706 current_section_align, unicosmk_output_text_section_asm_op,
12707 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
12708 unicosmk_section_type_flags, unicosmk_unique_section,
12709 unicosmk_asm_named_section, unicosmk_insert_attributes,
12710 unicosmk_output_align, unicosmk_defer_case_vector,
12711 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
12712 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
12713 unicosmk_output_ssib, unicosmk_add_call_info_word,
12714 unicosmk_extern_head, unicosmk_output_default_externs,
12715 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
12716 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
12717 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
12718 * config/alpha/alpha-protos.h: Update.
12719 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
12720 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
12721 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
12722 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
12723 (*mulsi_se, mulvsi3): Likewise.
12724 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
12725 (*divmodsi_internal, call, call_value, realign): Likewise.
12726 (moddi3, umoddi3): Likewise; remove duplicate expander.
12727 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
12728 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
12729 (*movdi_nofix): Remove r/U alternative.
12730 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
12731 * config/alpha/constraints.md ("U"): Remove.
12732 * config/alpha/predicates.md (call_operand"): Don't test
12733 TARGET_ABI_UNICOSMK.
12735 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12737 * target.def (handle_option): Take gcc_options and
12738 cl_decoded_option pointers and location_t.
12739 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
12740 * doc/tm.texi: Regenerate.
12741 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
12742 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
12743 * lto-opts.c (lto_reissue_options): Generate option structure for
12744 targetm.handle_option call.
12745 * opts.c (target_handle_option): Update call to
12746 targetm.handle_option. Remove assertions about values now passed
12748 * targhooks.c (default_target_handle_option): New.
12749 * targhooks.h (default_target_handle_option): Declare.
12750 * config/alpha/alpha.c: Include opts.h.
12751 (alpha_handle_option): Update to new hook interface.
12752 * config/arm/arm.c: Include opts.h.
12753 (arm_handle_option): Update to new hook interface.
12754 * config/arm/t-arm (arm.o): Update dependencies.
12755 * config/bfin/bfin.c: Include opts.h.
12756 (bfin_handle_option): Update to new hook interface.
12757 * config/cris/cris.c: Include opts.h.
12758 (cris_handle_option): Update to new hook interface.
12759 * config/frv/frv.c: Include opts.h.
12760 (frv_handle_option): Update to new hook interface.
12761 * config/i386/i386.c: Include opts.h.
12762 (ix86_handle_option): Update to new hook interface.
12763 (ix86_valid_target_attribute_inner_p): Generate option structure
12764 for call to ix86_handle_option.
12765 * config/i386/t-i386 (i386.o): Update dependencies.
12766 * config/ia64/ia64.c: Include opts.h.
12767 (ia64_handle_option): Update to new hook interface.
12768 * config/ia64/t-ia64 (ia64.o): Update dependencies.
12769 * config/iq2000/iq2000.c: Include opts.h.
12770 (iq2000_handle_option): Update to new hook interface.
12771 * config/m32c/m32c.c: Include opts.h.
12772 (m32c_handle_option): Update to new hook interface.
12773 * config/m32r/m32r.c: Include opts.h.
12774 (m32r_handle_option): Update to new hook interface.
12775 * config/m68k/m68k.c: Include opts.h.
12776 (m68k_handle_option): Update to new hook interface.
12777 * config/mep/mep.c: Include opts.h.
12778 (mep_handle_option): Update to new hook interface.
12779 * config/microblaze/microblaze.c: Include opts.h.
12780 (microblaze_handle_option): Update to new hook interface.
12781 * config/mips/mips.c: Include opts.h.
12782 (mips_handle_option): Update to new hook interface.
12783 * config/mn10300/mn10300.c: Include opts.h.
12784 (mn10300_handle_option): Update to new hook interface.
12785 * config/pa/pa.c: Include opts.h.
12786 (pa_handle_option): Update to new hook interface.
12787 * config/pdp11/pdp11.c: Include opts.h.
12788 (pdp11_handle_option): Update to new hook interface.
12789 * config/rs6000/rs6000.c: Include opts.h.
12790 (rs6000_handle_option): Update to new hook interface.
12791 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
12792 * config/rx/rx.c: Include opts.h.
12793 (rx_handle_option): Update to new hook interface.
12794 * config/s390/s390.c: Include opts.h.
12795 (s390_handle_option): Update to new hook interface.
12796 * config/score/score.c: Include opts.h.
12797 (score_handle_option): Update to new hook interface.
12798 * config/sh/sh.c: Include opts.h.
12799 (sh_handle_option): Update to new hook interface.
12800 * config/sparc/sparc.c: Include opts.h.
12801 (sparc_handle_option): Update to new hook interface.
12802 * config/v850/v850.c: Include opts.h.
12803 (v850_handle_option): Update to new hook interface.
12805 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12807 * gcc.c (driver_unknown_option_callback): Only permit and save
12808 unknown -Wno- options.
12809 (driver_wrong_lang_callback): Save options directly instead of via
12810 driver_unknown_option_callback.
12812 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
12814 * combine.c (simplify_set): Try harder to find the best CC mode when
12815 simplifying a nested COMPARE on the RHS.
12817 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12819 * config/alpha/gnu.h: Remove.
12820 * config/arc: Remove directory.
12821 * config/arm/netbsd.h: Remove.
12822 * config/arm/t-pe: Remove.
12823 * config/crx: Remove directory.
12824 * config/i386/netbsd.h: Remove.
12825 * config/m68hc11: Remove directory.
12826 * config/m68k/uclinux-oldabi.h: Remove.
12827 * config/mcore/mcore-pe.h: Remove.
12828 * config/mcore/t-mcore-pe: Remove.
12829 * config/netbsd-aout.h: Remove.
12830 * config/rs6000/gnu.h: Remove.
12831 * config/sh/sh-symbian.h: Remove.
12832 * config/sh/symbian-base.c: Remove.
12833 * config/sh/symbian-c.c: Remove.
12834 * config/sh/symbian-cxx.c: Remove.
12835 * config/sh/symbian-post.h: Remove.
12836 * config/sh/symbian-pre.h: Remove.
12837 * config/sh/t-symbian: Remove.
12838 * config/svr3.h: Remove.
12839 * config/vax/netbsd.h: Remove.
12840 * config.build: Don't handle i[34567]86-*-pe.
12841 * config.gcc: Remove handling of deprecations for most deprecated
12843 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
12844 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
12845 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
12846 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
12847 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
12848 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
12850 * config.host: Don't handle i[34567]86-*-pe.
12851 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
12852 (ASM_SPEC32): Don't handle -mcall-gnu.
12853 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
12855 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
12856 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
12857 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
12858 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
12859 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
12860 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
12861 conditional on SYMBIAN.
12862 * configure.ac: Don't handle powerpc*-*-gnu*.
12863 * configure: Regenerate.
12864 * doc/extend.texi (interrupt attribute): Don't mention CRX.
12865 * doc/install-old.texi (m6811, m6812): Don't mention.
12866 * doc/install.texi (arc-*-elf*): Don't document multilib option.
12867 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
12868 (m68k-uclinuxoldabi): Don't mention.
12869 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
12871 (-mcall-gnu): Remove.
12872 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
12873 families): Remove constraint documentation.
12875 2011-03-22 Marius Strobl <marius@FreeBSD.org>
12877 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
12878 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
12879 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
12881 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
12884 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
12885 vector when peeking at the next token for vector, don't expand the
12888 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
12890 * config/avr/avr-protos.h (expand_epilogue): Change prototype
12891 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
12892 * config/avr/avr.c (init_cumulative_args)
12893 (avr_function_arg_advance): Use it.
12894 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
12896 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
12897 (avr_function_ok_for_sibcall): ...this new function.
12898 (avr_lookup_function_attribute1): New static Function.
12899 (avr_naked_function_p, interrupt_function_p)
12900 (signal_function_p, avr_OS_task_function_p)
12901 (avr_OS_main_function_p): Use it.
12902 * config/avr/avr.md ("sibcall", "sibcall_value")
12903 ("sibcall_epilogue"): New expander.
12904 ("*call_insn", "*call_value_insn"): New insn.
12905 ("call_insn", "call_value_insn"): Remove
12906 ("call", "call_value", "epilogue"): Change expander to handle
12909 2011-03-21 Nick Clifton <nickc@redhat.com>
12911 * doc/invoke.texi (Overall Options): Move closing brace to end of
12913 (Optimization Options): Add missing @gol.
12914 (Directory Options): Likewise.
12915 (i386 and x86-64 Options): Likewise.
12916 (RS6000 and PowerPC Options): Likewise.
12917 (i386 and x86-64 Windows Options): Likewise.
12918 (V850 Options): Add text missing from descriptions.
12920 2011-03-22 Richard Henderson <rth@redhat.com>
12922 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
12923 (avr_incoming_return_addr_rtx): New.
12924 (emit_push_byte): New.
12925 (expand_prologue): Use it. Remove incorrect dwarf annotation for
12926 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
12927 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
12928 (emit_pop_byte): New.
12929 (expand_epilogue): Use it. Pop frame pointer by bytes.
12930 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
12931 (INCOMING_RETURN_ADDR_RTX): New.
12932 (INCOMING_FRAME_SP_OFFSET): New.
12933 (ARG_POINTER_CFA_OFFSET): New.
12934 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
12935 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
12938 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
12940 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
12942 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
12943 (FUNCTION_ARG_ADVANCE): Likewise.
12944 * tm.texi.in: Change references to them to hook references.
12945 * tm.texi: Regenerate.
12946 * targhooks.c (default_function_arg): Eliminate check for target
12948 (default_function_incoming_arg): Likewise.
12949 (default_function_arg_advance): Likewise.
12950 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
12951 (function_arg_advance): Likewise.
12952 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
12954 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
12956 * tree.c (build_call_1): New function.
12957 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
12959 2011-03-22 Richard Guenther <rguenther@suse.de>
12961 PR tree-optimization/48228
12962 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
12963 for single-arg PHIs.
12965 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
12967 PR rtl-optimization/48143
12968 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
12969 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
12970 sse2_cvtps2pd): Likewise.
12972 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12974 * recog.c (canonicalize_change_group): Use validate_unshare_change.
12976 2011-03-22 Richard Guenther <rguenther@suse.de>
12978 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
12979 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
12980 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
12981 and REALIGN_LOAD_EXPR.
12982 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
12983 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
12984 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
12985 DOT_PROD_EXPR case ...
12986 (expand_expr_real_2): ... here.
12987 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
12988 and REALIGN_LOAD_EXPR.
12989 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
12990 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
12991 (vect_create_epilog_for_reduction): Likewise.
12992 (vectorizable_reduction): Likewise.
12993 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
12994 * tree-vect-stmts.c (vectorizable_load): Likewise.
12996 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
12998 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
13000 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13002 * config/s390/s390.c (s390_delegitimize_address): Fix offset
13003 handling for PLTOFF/GOTOFF.
13005 2011-03-22 Nick Clifton <nickc@redhat.com>
13007 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
13008 trailing backslash from the end of the macro definition.
13010 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13012 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
13015 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
13017 * expr.h (prepare_operand): Move to...
13018 * optabs.h (prepare_operand): ...here and change the insn code
13019 parameter from "int" to "enum insn_code".
13020 (insn_operand_matches): Declare.
13021 * expr.c (init_expr_target): Use insn_operand_matches.
13022 (compress_float_constant): Likewise.
13023 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
13024 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
13025 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
13026 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
13028 (gen_cond_trap): Likewise.
13029 (prepare_operand): Likewise. Change icode to an insn_code.
13030 (insn_operand_matches): New function.
13031 * reload.c (find_reloads_address_1): Use insn_operand_matches.
13032 * reload1.c (gen_reload): Likewise.
13033 * targhooks.c (default_secondary_reload): Likewise.
13035 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
13037 * config/alpha/alpha.md (unspec): New define_c_enum.
13040 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
13043 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
13044 between a call and its CALL_ARG_LOCATION note.
13046 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
13048 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
13050 2011-03-21 Jakub Jelinek <jakub@redhat.com>
13054 * c-common.c (shorten_compare): If primopN is first sign-extended
13055 to opN and then zero-extended to result type, set primopN to opN.
13057 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
13059 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
13060 for barrier handlers.
13062 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
13064 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
13065 UNSPEC constants to be in the unspec enumeration, and redefine
13066 all UNSPECV constants to be in the unspecv enumeration, so that
13067 dumps print which unspec/unspec_volatile this is.
13068 * config/rs6000/vector.md (UNSPEC_*): Ditto.
13069 * config/rs6000/paired.md (UNSPEC_*): Ditto.
13070 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
13071 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
13072 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
13074 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
13075 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
13076 UNSPECV_LWSYNC, since these are used as unspec_volatile.
13077 * config/rs6000/sync.md (isync, lwsync): Ditto.
13079 2011-03-21 Richard Guenther <rguenther@suse.de>
13081 * params.def (lto-min-partition): Fix typo.
13083 2011-03-21 Richard Guenther <rguenther@suse.de>
13086 * c-decl.c (grokdeclarator): Drop to the main variant only
13087 for array types. Drop flag_gen_aux_info check.
13089 2011-03-21 Richard Guenther <rguenther@suse.de>
13091 PR translation/47911
13092 * params.def (lto-partitions): Fix typo.
13093 (lto-min-partition): Fix wording.
13095 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
13097 * config/rs6000/t-freebsd: Remove duplication from file.
13099 2011-03-21 Richard Guenther <rguenther@suse.de>
13101 PR middle-end/47661
13102 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
13104 2011-03-21 Richard Guenther <rguenther@suse.de>
13107 * params.def (lto-partitions): Require at least 1 partition.
13109 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13111 * gthr-solaris.h: Remove.
13112 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
13113 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
13114 (LIB_SPEC): Likewise.
13115 * config/sol2.opt (threads): Remove.
13116 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
13117 (sparc*-*-solaris2*): Likewise.
13118 * configure.ac (enable_threads): Enable solaris support.
13119 * configure: Regenerate.
13120 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
13121 * doc/install.texi (Configuration, --enable-threads=lib): Remove
13124 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13126 * config.gcc: Obsolete *-*-solaris2.8*.
13127 * doc/install.texi (Specific, *-*-solaris2*): Document it.
13129 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13132 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
13133 reference. Solaris 8 perl works.
13135 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13138 * doc/install.texi (Prerequisites): Move jar etc. up.
13139 Explain support library version requirements.
13141 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13144 * doc/install.texi (Prerequisites): Move Perl to build
13145 requirements. Always necessary on Solaris 2 with Sun ld.
13147 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13149 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
13151 (Specific, i?86-*-solaris2.[89]): Likewise.
13152 (Specific, i?86-*-solaris2.10): Likewise.
13153 (Specific, mips-sgi-irix6): Likewise.
13154 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
13155 Update for binutils 2.21.
13157 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13159 * configure.ac (gcc_cv_lto_plugin): Fix typo.
13160 Allow -fuse-linker-plugin for non-default plugin linker.
13161 * configure: Regenerate.
13163 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
13166 * gengtype.c (files_rules): Added rule for cp/parser.h.
13168 2011-03-21 Jakub Jelinek <jakub@redhat.com>
13171 * config/s390/s390.c (s390_delegitimize_address): Don't call
13172 lowpart_subreg if orig_x has BLKmode.
13174 2011-03-21 Kai Tietz <ktietz@redhat.com>
13177 * doc/plugins.texi: Adjust documentation for plugin register_callback.
13178 * tree.h (attribute_spec): Add new member affects_type_identity.
13179 * attribs.c (empty_attribute_table): Adjust attribute_spec
13181 * config/alpha/alpha.c: Likewise.
13182 * config/arc/arc.c: Likewise.
13183 * config/arm/arm.c: Likewise.
13184 * config/avr/avr.c: Likewise.
13185 * config/bfin/bfin.c: Likewise.
13186 * config/crx/crx.c: Likewise.
13187 * config/darwin.h: Likewise.
13188 * config/h8300/h8300.c: Likewise.
13189 * config/i386/cygming.h: Likewise.
13190 * config/i386/i386.c: Likewise.
13191 * config/ia64/ia64.c: Likewise.
13192 * config/m32c/m32c.c: Likewise.
13193 * config/m32r/m32r.c: Likewise.
13194 * config/m68hc11/m68hc11.c: Likewise.
13195 * config/m68k/m68k.c: Likewise.
13196 * config/mcore/mcore.c: Likewise.
13197 * config/mep/mep.c: Likewise.
13198 * config/microblaze/microblaze.c: Likewise.
13199 * config/mips/mips.c: Likewise.
13200 * config/rs6000/rs6000.c: Likewise.
13201 * config/rx/rx.c: Likewise.
13202 * config/sh/sh.c: Likewise.
13203 * config/sol2.h: Likewise.
13204 * config/sparc/sparc.c: Likewise.
13205 * config/spu/spu.c: Likewise.
13206 * config/stormy16/stormy16.c: Likewise.
13207 * config/v850/v850.c: Likewise.
13209 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
13211 * simplify-rtx.c (simplify_binary_operation_1): Handle
13212 (xor (and A B) C) case when B and C are both constants.
13214 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
13216 * tree-dfa.c (add_referenced_var): Fix typo in comment.
13218 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
13221 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
13223 2011-03-20 Jakub Jelinek <jakub@redhat.com>
13225 PR rtl-optimization/48156
13226 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
13227 assume df and df_lr are not NULL.
13229 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13232 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
13233 between a call and its CALL_ARG_LOCATION note.
13235 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
13238 * config/sh/sh.c (find_barrier): Don't emit a constant pool
13239 between a call and its corresponding CALL_ARG_LOCATION note.
13241 2011-03-19 Anatoly Sokolov <aesok@post.ru>
13243 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
13244 instead of loop. Use HARD_REGISTER_NUM_P predicate.
13245 * haifa-sched.c (setup_ref_regs): Ditto.
13246 * caller-save.c (add_used_regs_1): Ditto.
13247 * dse.c (look_for_hardregs): Ditto.
13248 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
13249 * sched-rgn.c (check_live_1): Ditto.
13251 2011-03-18 Joseph Myers <joseph@codesourcery.com>
13253 * c-decl.c (diagnose_mismatched_decls): Give an error for
13254 redefining a typedef with variably modified type.
13256 2011-03-18 Joseph Myers <joseph@codesourcery.com>
13258 * c-decl.c (grokfield): Don't allow typedefs for structures or
13259 unions with no tag by default.
13260 * doc/extend.texi (Unnamed Fields): Update.
13262 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
13264 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
13265 Rewrite using indirect functions.
13266 (lwp_slwpcb): Ditto.
13267 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
13268 (avx_vinsertf128<mode>): Ditto.
13270 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13272 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
13275 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13277 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
13278 splitting between a call and its corresponding CALL_ARG_LOCATION note.
13280 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
13282 PR rtl-optimization/48170
13283 * gcse.c (hoist_code): Remove bogus asserts.
13285 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
13287 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
13288 computation for prologue/epilogue.
13290 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13292 * Makefile.in (check-consistency): Remove.
13294 2011-03-18 Jakub Jelinek <jakub@redhat.com>
13297 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
13298 arange_table_in_use is 0, but either text_section_used or
13299 cold_text_section_used is true. Don't call it if
13300 !info_section_emitted.
13302 2011-03-18 Anatoly Sokolov <aesok@post.ru>
13304 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
13305 FUNCTION_VALUE_REGNO_P): Remove.
13306 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
13308 * config/avr/avr.c (avr_ret_register): Make static inline.
13309 (avr_function_value_regno_p): New function.
13310 (avr_libcall_value): Make static. Add 'func' argument.
13311 (avr_function_value): Make static. Rename 'func' argument to
13312 'fn_decl_or_type', forward it to avr_libcall_value. Call
13313 avr_ret_register function instead of RET_REGISTER macro.
13314 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
13316 2011-03-18 Jason Merrill <jason@redhat.com>
13319 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
13321 2011-03-18 Richard Guenther <rguenther@suse.de>
13323 * doc/install.texi (--enable-gold): Remove.
13324 (--with-plugin-ld): Document.
13325 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
13327 2011-03-18 Andrew Pinski <pinskia@gmail.com>
13329 PR middle-end/47790
13330 * expr.c (optimize_bitfield_assignment_op): Revamp to work
13331 again after expansion changes.
13333 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
13335 * combine.c (try_combine): Do simplification only call of
13336 subst() on i2 even when i1 is present. Update comments.
13338 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
13340 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
13341 and UNSPEC_PCREL_SYMOFF.
13343 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13345 * config/s390/s390.md: Use define_c_enum for the unspec constant
13348 2011-03-18 Richard Henderson <rth@redhat.com>
13349 Jakub Jelinek <jakub@redhat.com>
13352 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
13353 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
13355 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
13357 PR middle-end/47725
13358 * combine.c (cant_combine_insn_p): Don't check zero/sign
13359 extended hard registers.
13361 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
13363 PR middle-end/47725
13364 * combine.c (cant_combine_insn_p): Check zero/sign extended
13367 2011-03-17 Anatoly Sokolov <aesok@post.ru>
13369 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13370 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
13371 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
13372 Change return type to bool.
13373 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13375 2011-03-17 Jakub Jelinek <jakub@redhat.com>
13378 * var-tracking.c (prepare_call_arguments): If CALL target
13379 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
13380 pc instead of looking it up using cselib_lookup and use
13381 Pmode for it if x has VOIDmode.
13382 * dwarf2out.c (gen_subprogram_die): If also both first and
13383 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
13386 * function.c (assign_parms): For data.passed_pointer parms
13387 use MEM of data.entry_parm instead of data.entry_parm itself
13388 as DECL_INCOMING_RTL.
13389 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
13390 also when passed and declared mode is the same, DECL_RTL
13391 is a MEM with pseudo as address and DECL_INCOMING_RTL is
13394 2011-03-16 Jeff Law <law@redhat.com>
13396 PR rtl-optimization/37273
13397 * ira-costs.c (scan_one_insn): Detect constants living in memory and
13398 handle them like argument loads from stack slots. Do not double
13399 count memory for memory constants and argument loads from stack slots.
13401 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
13404 * var-tracking.c (prepare_call_arguments): Check SUBREG.
13406 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
13409 * config/i386/i386.opt: Add Save to -mavx and -mfma.
13411 2011-03-17 Jakub Jelinek <jakub@redhat.com>
13414 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
13416 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
13417 Clear call_arg_locations and call_arg_loc_last always.
13419 PR middle-end/48152
13420 * var-tracking.c (prepare_call_arguments): If argument needs to be
13421 passed by reference, adjust argtype and mode.
13423 2011-03-17 Richard Guenther <rguenther@suse.de>
13425 PR middle-end/48134
13426 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
13427 a value make sure to fold the statement.
13429 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
13432 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
13433 return condition with !cfun->calls_alloca.
13435 2011-03-17 Richard Guenther <rguenther@suse.de>
13438 * lto-cgraph.c (input_overwrite_node): Clear the abstract
13439 origin for decls in other ltrans units.
13440 (input_varpool_node): Likewise.
13442 2011-03-17 Richard Guenther <rguenther@suse.de>
13444 PR middle-end/48165
13445 * tree-object-size.c (compute_object_offset): Properly return
13446 the offset operand of MEM_REFs as sizetype.
13448 2011-03-17 Jakub Jelinek <jakub@redhat.com>
13450 PR rtl-optimization/48141
13451 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
13452 * dse.c: Include params.h.
13453 (active_local_stores_len): New variable.
13454 (add_wild_read, dse_step1): Clear it when setting active_local_stores
13456 (record_store, check_mem_read_rtx): Decrease it when removing
13458 (scan_insn): Likewise. Increase it when adding to chain, if it
13459 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
13460 set active_local_stores to NULL before the addition.
13461 * Makefile.in (dse.o): Depend on $(PARAMS_H).
13463 PR rtl-optimization/48141
13464 * dse.c (record_store): If no positions are needed in an insn
13465 that cannot be deleted, at least unchain it from active_local_stores.
13467 2011-03-16 Dodji Seketeli <dodji@redhat.com>
13470 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
13471 (lookup_type_die_strip_naming_typedef): ... here.
13472 (get_context_die): Use it.
13473 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
13474 the anonymous struct named by the naming typedef.
13476 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
13479 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
13480 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
13482 2011-03-16 Jeff Law <law@redhat.com>
13484 * tree-vrp.c (identify_jump_threads): Slightly simplify type
13485 check for operands of conditional. Allow type to be a pointer.
13487 2011-03-16 Richard Guenther <rguenther@suse.de>
13489 PR tree-optimization/48149
13490 * fold-const.c (fold_binary_loc): Fold
13491 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
13493 2011-03-16 Richard Guenther <rguenther@suse.de>
13495 PR tree-optimization/26134
13496 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
13497 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
13498 (non_rewritable_mem_ref_base): Handle complex type component
13499 accesses, constrain offsets for vector and complex extracts
13502 2011-03-16 Richard Guenther <rguenther@suse.de>
13504 PR tree-optimization/48146
13505 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
13506 operands avoiding the need for renaming.
13508 2011-03-16 Richard Guenther <rguenther@suse.de>
13510 * gimple-fold.c (maybe_fold_reference): Open-code relevant
13511 constant folding. Move MEM_REF canonicalization first.
13512 Rely on fold_const_aggregate_ref for initializer folding.
13513 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
13515 2011-03-16 Jakub Jelinek <jakub@redhat.com>
13517 PR middle-end/48136
13518 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
13519 arg0/arg1 or their arguments are always fold converted to matching
13522 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
13525 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13528 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
13529 Handle in-tree gold.
13530 (ld_vers): Extract binutils version for gold.
13531 (gcc_cv_ld_hidden): Handle gold here.
13532 (gcc_cv_lto_plugin): Determine level of linker plugin support.
13533 * configure: Regenerate.
13534 * config.in: Regenerate.
13535 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
13536 -fuse-linker-plugin otherwise.
13537 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
13538 (LINK_COMMAND_SPEC): Use it.
13539 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
13541 2011-03-16 Jakub Jelinek <jakub@redhat.com>
13543 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
13544 * calls.c: Remove debug.h include.
13545 (emit_call_1): Don't call virtual_call_token debug hook.
13546 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
13547 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
13548 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
13549 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
13550 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
13551 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
13552 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
13553 dwarf2out_virtual_call): Remove.
13554 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
13555 copy_call_info and virtual_call hooks.
13556 (dwarf2out_init): Don't initialize vcall_insn_table,
13557 debug_dcall_section and debug_vcall_section.
13558 (prune_unused_types): Don't mark nodes from dcall_table.
13559 (dwarf2out_finish): Don't output dcall or vcall tables.
13560 * final.c (final_scan_insn): Don't call direct_call or
13561 virtual_call debug hooks.
13562 * debug.h (struct gcc_debug_hooks): Remove direct_call,
13563 virtual_call_token, copy_call_info and virtual_call hooks.
13564 (debug_nothing_uid): Remove prototype.
13565 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
13566 copy_call_info and virtual_call hooks.
13567 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
13568 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
13569 * debug.c (do_nothing_debug_hooks): Likewise.
13570 (debug_nothing_uid): Remove.
13571 * doc/invoke.texi (-fenable-icf-debug): Remove.
13572 * common.opt (-fenable-icf-debug): Likewise.
13574 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
13575 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
13576 call's MEM. Handle functions returning aggregate through a hidden
13577 first pointer. For virtual calls add clobbered pc to call arguments
13579 * dwarf2out.c (gen_subprogram_die): Emit
13580 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
13584 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
13585 * rtl.h (ENTRY_VALUE_EXP): Define.
13586 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
13587 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
13588 * print-rtl.c (print_rtx): Likewise.
13589 * gengtype.c (adjust_field_rtx_def): Likewise.
13590 * var-tracking.c (vt_add_function_parameter): Adjust
13591 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
13592 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
13593 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
13594 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
13595 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
13597 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
13598 Call var_location debug hook even on CALL_INSNs.
13599 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
13600 * rtl.def (ENTRY_VALUE): New.
13601 * dwarf2out.c: Include cfglayout.h.
13602 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
13603 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
13604 (struct call_arg_loc_node): New type.
13605 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
13606 tail_call_site_count): New variables.
13607 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
13608 DW_TAG_GNU_call_site_parameter.
13609 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
13610 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
13611 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
13612 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
13613 and DW_AT_GNU_all_source_call_sites.
13614 (mem_loc_descriptor): Handle ENTRY_VALUE.
13615 (add_src_coords_attributes): Don't add enything if
13616 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
13617 (dwarf2out_abstract_function): Save and clear call_arg_location,
13618 call_site_count and tail_call_site_count around dwarf2out_decl call.
13619 (gen_call_site_die): New function.
13620 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
13621 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
13622 (dwarf2out_function_decl): Clear call_arg_locations,
13623 call_arg_loc_last, set call_site_count and tail_call_site_count
13624 to -1 and free block_map.
13625 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
13626 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
13627 followed by any real instructions.
13628 (dwarf2out_begin_function): Set call_site_count and
13629 tail_call_site_count to 0.
13630 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
13631 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
13632 attempt to force a DIE for it and worst case remove the attribute.
13633 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
13634 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
13636 * var-tracking.c: Include tm_p.h.
13637 (vt_stack_adjustments): For calls call note_register_arguments.
13638 (argument_reg_set): New variable.
13639 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
13640 ensure the VALUE is resolved.
13641 (call_arguments): New variable.
13642 (prepare_call_arguments): New function.
13643 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
13644 (struct expand_loc_callback_data): Add ignore_cur_loc field.
13645 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
13646 always use the best expression.
13647 (vt_expand_loc): Add ignore_cur_loc argument.
13648 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
13649 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
13650 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
13651 note for all calls.
13652 (vt_add_function_parameter): Use cselib_lookup_from_insn.
13653 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
13654 argument. Don't call cselib_preserve_only_values and
13655 cselib_reset_table.
13656 (note_register_arguments): New function.
13657 (vt_initialize): Compute argument_reg_set. Call
13658 vt_add_function_parameters before processing basic blocks instead of
13659 afterwards. For calls call prepare_call_arguments before calling
13660 cselib_process_insn.
13661 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
13662 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
13663 (var-tracking.o): Depend on $(TM_P_H).
13664 * cfglayout.h (insn_scope): New prototype.
13665 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
13666 * cfglayout.c (insn_scope): No longer static.
13667 * insn-notes.def (CALL_ARG_LOCATION): New.
13668 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
13669 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
13670 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
13671 nothing for DECL_EXTERNAL BLOCK_VARS.
13673 2011-03-16 Alan Modra <amodra@gmail.com>
13676 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
13677 create invalid offset address for vsx splat insn.
13678 * config/rs6000/predicates.md (splat_input_operand): New.
13679 * config/rs6000/vsx.md (vsx_splat_*): Use it.
13681 2011-03-15 Xinliang David Li <davidxl@google.com>
13684 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
13685 (normalize_preds): New function.
13686 (is_use_properly_guarded): Normalize def predicates.
13688 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13691 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
13692 in the output template.
13694 2011-03-15 Richard Guenther <rguenther@suse.de>
13696 PR middle-end/47650
13697 * tree-pretty-print.c (dump_function_declaration): Properly
13698 dump unprototyped and varargs function types.
13700 2011-03-15 Richard Guenther <rguenther@suse.de>
13702 PR tree-optimization/13954
13703 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
13706 2011-03-15 Richard Guenther <rguenther@suse.de>
13708 PR tree-optimization/48037
13709 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
13710 selects into BIT_FIELD_REFs.
13711 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
13714 2011-03-15 Jakub Jelinek <jakub@redhat.com>
13716 PR tree-optimization/48129
13717 * builtins.c (fold_builtin_snprintf): Convert to type of
13718 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
13719 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
13721 2011-03-15 Richard Guenther <rguenther@suse.de>
13723 PR tree-optimization/41490
13724 * tree-ssa-dce.c (propagate_necessity): Handle returns without
13725 value but with VUSE.
13726 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
13728 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
13729 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
13730 * tree-tailcall.c (find_tail_calls): Ignore returns.
13732 2011-03-15 Richard Guenther <rguenther@suse.de>
13734 PR middle-end/48031
13735 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
13736 or variable-indexed array accesses when in gimple form.
13738 2011-03-15 Richard Guenther <rguenther@suse.de>
13740 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
13742 2011-03-15 Alan Modra <amodra@gmail.com>
13745 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
13746 presume symbol_refs without a symbol_ref_decl are suitably
13747 aligned, nor other trees we may see here. Handle anchor symbols.
13748 (legitimate_constant_pool_address_p): Comment. Add mode param.
13749 Check cmodel=medium addresses. Adjust all calls.
13750 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
13751 creating cmodel=medium optimized access to locals.
13752 * config/rs6000/constraints.md (R): Pass QImode to
13753 legitimate_constant_pool_address_p.
13754 * config/rs6000/predicates.md (input_operand): Pass mode to
13755 legitimate_constant_pool_address_p.
13756 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
13759 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
13762 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
13763 64-bit constants being loaded into registers other than GPRs such
13764 as loading 0 into a VSX register.
13766 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13768 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
13770 2011-03-14 Jakub Jelinek <jakub@redhat.com>
13772 PR middle-end/47917
13773 * builtins.c (fold_builtin_snprintf): New function.
13774 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
13775 (fold_builtin_4): Likewise.
13777 PR middle-end/38878
13778 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
13779 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
13780 and C - X == X also strip nops from +/-/p+ operand.
13781 When optimizing -X == C, fold C to arg0's type.
13784 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
13785 emit it as add_AT_int instead of add_AT_unsigned.
13787 2011-03-14 Tom Tromey <tromey@redhat.com>
13789 * unwind-dw2.c: Include sys/sdt.h if it exists.
13790 (_Unwind_DebugHook): Use STAP_PROBE2.
13791 * config.in, configure: Rebuild.
13792 * configure.ac: Check for sys/sdt.h.
13794 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
13796 * config/i386/i386.md (ROUND_FLOOR): New constant.
13797 (ROUND_CEIL): Ditto.
13798 (ROUND_TRUNC): Ditto.
13799 (ROUND_MXCSR): Ditto.
13800 (ROUND_NO_EXC): Ditto.
13801 (rint<mode>2): Use new defines instead of numerical constants.
13802 (floor<mode>2): Ditto.
13803 (ceil<mode>2): Ditto.
13804 (btrunc<mode>2): Ditto.
13805 * config/i386/i386-builtin-types.def: Define ROUND function type
13807 * config/i386/i386.c (enum ix86_builtins): Add
13808 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
13809 (struct builtin_description): Add
13810 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
13811 (ix86_expand_sse_round): New static function.
13812 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
13814 (ix86_builtin_vectorized_function): Handle
13815 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
13817 2011-03-14 Tom Tromey <tromey@redhat.com>
13819 * c-parser.c (c_parser_asm_string_literal): Clear
13820 warn_overlength_strings.
13822 2011-03-14 Tom Tromey <tromey@redhat.com>
13824 * c-parser.c (disable_extension_diagnostics): Save
13825 warn_overlength_strings.
13826 (restore_extension_diagnostics): Restore warn_overlength_strings.
13828 2011-03-14 Jakub Jelinek <jakub@redhat.com>
13830 * BASE-VER: Change to 4.7.0.
13832 2011-03-14 Richard Guenther <rguenther@suse.de>
13834 PR middle-end/48098
13835 * tree.c (build_vector_from_val): Adjust assert to requirements
13838 2011-03-14 Jakub Jelinek <jakub@redhat.com>
13841 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
13843 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
13845 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
13846 terms of target_flags_explicit. Adjust copyright year.
13848 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
13849 * config/rs6000/t-freebsd: New file. Add override for
13852 2011-03-13 Chris Demetriou <cgd@google.com>
13854 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
13855 (-fno-diagnostics-show-option): this, to reflect current default.
13856 (-Werror=): Update text about -fno-diagnostics-show-option.
13858 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
13861 * config/rs6000/predicates.md (easy_vector_constant_add_self,
13862 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
13863 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
13864 mode is not V2DImode or V2DFmode.
13865 (vspltis_constant): Do not handle V2DImode and V2DFmode.
13866 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
13867 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
13869 (movdi_internal64): Likewise.
13871 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
13873 PR tree-optimization/47127
13874 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
13876 (set_cloog_options): Same.
13877 (scop_to_clast): Same.
13878 (print_clast_stmt): Do not call cloog_state_malloc and
13880 (print_generated_program): Same.
13882 * graphite-clast-to-gimple.h (cloog_state): Declared.
13883 (scop_to_clast): Adjust declaration.
13884 * graphite.c (cloog_state): Defined here.
13885 (graphite_initialize): Call cloog_state_malloc.
13886 (graphite_finalize): Call cloog_state_free.
13888 2011-03-11 Jason Merrill <jason@redhat.com>
13890 * attribs.c (lookup_attribute_spec): Take const_tree.
13893 2011-03-11 Joseph Myers <joseph@codesourcery.com>
13895 * config/sparc/sparc.c (sparc_option_override): Use
13896 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
13898 2011-03-11 Richard Guenther <rguenther@suse.de>
13900 PR tree-optimization/48067
13901 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
13902 multiplication result will be only used once on the target
13905 2011-03-11 Richard Guenther <rguenther@suse.de>
13907 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
13909 2011-03-11 Richard Guenther <rguenther@suse.de>
13912 * tree.c (find_decls_types_r): Do not walk types only reachable
13913 from IDENTIFIER_NODEs.
13915 2011-03-11 Jakub Jelinek <jakub@redhat.com>
13917 PR middle-end/48044
13918 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
13919 all vnode->force_output nodes as needed.
13921 2011-03-11 Jason Merrill <jason@redhat.com>
13924 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
13925 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
13927 2011-03-11 Martin Jambor <mjambor@suse.cz>
13929 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
13932 2011-03-11 Jakub Jelinek <jakub@redhat.com>
13934 PR tree-optimization/48063
13935 * ipa-inline.c (cgraph_decide_inlining): Don't try to
13936 inline functions called once if !tree_can_inline_p (node->callers).
13938 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
13940 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
13942 * config/score/score3.c: Delete.
13943 * config/score/score3.h: Delete.
13944 * config/score/mul-div.S: Delete.
13945 * config/score/sfp-machine.h: Add new file.
13946 * config/score/constraints.md: Add new file.
13947 * config/score/t-score-softfp: Add new file.
13948 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
13949 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
13950 (score7_extra_constraint): Delete.
13951 (score7_option_override): Remove unused code.
13952 * config/score/score.c: Remove score3 and score5 define and code.
13953 * config/score/score.h: Remove score3 and score5 define and code.
13954 * config/score/score.md: Remove score3 template and unusual insn.
13955 * config/score/score.opt: Remove score3 and score5 options.
13957 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13959 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
13960 when _HPUX_SOURCE is defined.
13961 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
13963 2011-03-10 Jason Merrill <jason@redhat.com>
13966 * stor-layout.c (layout_type): Don't set structural equality
13967 on arrays of incomplete type.
13968 * tree.c (type_hash_eq): Handle comparing them properly.
13970 2011-03-10 Jakub Jelinek <jakub@redhat.com>
13973 * config/s390/s390.c (s390_delegitimize_address): Make sure the
13974 result mode matches original rtl mode.
13976 2011-03-10 Nick Clifton <nickc@redhat.com>
13978 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
13979 (andsi3, andsi3_flags): Fix timings for three operand alternative.
13981 2011-03-09 Jakub Jelinek <jakub@redhat.com>
13983 PR rtl-optimization/47866
13984 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
13985 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
13986 if target wasn't scalar.
13987 * function.c (assign_stack_temp_for_type): Assert that neither
13988 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
13989 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
13991 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
13993 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13995 * config/s390/s390-protos.h (s390_label_align): New prototype.
13996 * config/s390/s390.c (s390_label_align): New function.
13997 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
13999 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
14002 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
14003 V2DI/V2DF constants. Only all 0's or all 1's are easy.
14004 (output_vec_const_move): Ditto.
14006 2011-03-08 Anatoly Sokolov <aesok@post.ru>
14008 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
14009 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
14010 * config/mips/mips.c (mips_preferred_reload_class): Make static.
14011 Change 'rclass' argument and result type to reg_class_t.
14012 (TARGET_PREFERRED_RELOAD_CLASS): Define.
14014 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
14016 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
14017 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
14018 (TARGET_MEMORY_MOVE_COST): Define.
14019 (avr_register_move_cost, avr_memory_move_cost): New Functions.
14021 2011-03-08 Jakub Jelinek <jakub@redhat.com>
14024 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
14027 PR tree-optimization/48022
14028 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
14031 2011-03-07 Jakub Jelinek <jakub@redhat.com>
14034 * var-tracking.c (find_use_val): Return NULL for
14035 cui->sets && cui->store_p BLKmode MEMs.
14037 2011-03-07 Anatoly Sokolov <aesok@post.ru>
14039 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
14041 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
14042 xstormy16_print_operand_address): Remove.
14043 * config/stormy16/stormy16.c (xstormy16_print_operand,
14044 xstormy16_print_operand_address): Make static.
14045 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
14047 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
14050 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
14051 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
14054 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
14057 * cfgloopmanip.c (fix_bb_placements): Return immediately
14058 if FROM is BASE_LOOP's header.
14060 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
14062 * gimplify.c (gimplify_function_tree): Fix building calls
14063 to __builtin_return_address.
14065 2011-03-07 Alan Modra <amodra@gmail.com>
14067 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
14068 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
14069 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
14070 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
14072 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
14073 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
14074 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
14075 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
14076 * config/rs6000/rs6000.c
14077 (rs6000_elf_end_indicate_exec_stack): Rename to..
14078 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
14079 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
14080 (rs6000_file_start): ..here.
14081 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
14082 file scope variables.
14083 (call_ABI_of_interest): New function.
14084 (init_cumulative_args): Set above vars when function return value
14085 is a float, vector, or small struct.
14086 (rs6000_function_arg_advance_1): Likewise for function args.
14087 (rs6000_va_start): Set rs6000_passes_float if variable arg function
14088 references float args.
14090 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
14092 * doc/cfg.texi: Remove "See" before @ref.
14093 * doc/invoke.texi: Likewise.
14095 2011-03-05 Jason Merrill <jason@redhat.com>
14097 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
14099 2011-03-05 Anthony Green <green@moxielogic.com>
14101 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
14103 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
14105 PR rtl-optimization/47899
14106 * cfgloopmanip.c (fix_bb_placements): Fix first argument
14107 to flow_loop_nested_p when moving the loop upward.
14109 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
14112 * arm.md (movhi_insn_arch4): Accept any immediate constant.
14114 2011-03-05 Jakub Jelinek <jakub@redhat.com>
14116 PR tree-optimization/47967
14117 * ipa-cp.c (build_const_val): Return NULL instead of creating
14118 VIEW_CONVERT_EXPR for mismatching sizes.
14119 (ipcp_create_replace_map): Return NULL if build_const_val failed.
14120 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
14121 give up on versioning.
14123 2011-03-05 Alan Modra <amodra@gmail.com>
14126 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
14127 full cmodel medium/large lo_sum + high addresses.
14129 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14131 * config/s390/s390.c (s390_decompose_address): Reject non-literal
14132 pool references in UNSPEC_LTREL_OFFSET.
14134 2011-03-04 Jan Hubicka <jh@suse.cz>
14137 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
14138 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
14139 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
14141 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
14142 cgraph_add_thunk): Add node pointers.
14143 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
14144 associated to right node.
14145 (input_node): Update use of cgraph_same_body_alias
14146 and cgraph_add_thunk.
14148 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
14150 * config/i386/i386.opt (mprefer-avx128): New flag.
14151 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
14152 modes when the flag -mprefer-avx128 is on.
14154 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
14156 * dwarf2out.c (compare_loc_operands): Fix address handling.
14158 2011-03-04 Alan Modra <amodra@gmail.com>
14160 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
14162 2011-03-04 Richard Guenther <rguenther@suse.de>
14164 PR middle-end/47968
14165 * expmed.c (extract_bit_field_1): Prefer vector modes that
14166 vec_extract patterns can handle.
14168 2011-03-04 Richard Guenther <rguenther@suse.de>
14170 PR middle-end/47975
14171 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
14173 2011-03-04 Richard Henderson <rth@redhat.com>
14175 * explow.c (emit_stack_save): Remove 'after' parameter.
14176 (emit_stack_restore): Likewise.
14177 * expr.h: Update to match.
14178 * builtins.c, calls.c, stmt.c: Likewise.
14179 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
14180 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
14181 * function.c (expand_function_end): Insert the emit_stack_save
14182 sequence before parm_birth_insn instead of after.
14184 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
14186 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
14187 (ssse3_pmaddubsw128): Ditto.
14188 (ssse3_pmaddubsw): Ditto.
14190 2011-03-03 Steve Ellcey <sje@cup.hp.com>
14192 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
14194 2011-03-03 Jakub Jelinek <jakub@redhat.com>
14197 * gimplify.c (omp_add_variable): Only call omp_notice_variable
14198 on TYPE_SIZE_UNIT if it is a DECL.
14201 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
14202 first operand is not is_gimple_mem_ref_addr, try to fold it.
14203 If the operand still isn't is_gimple_mem_ref_addr, clear
14206 2011-03-03 Richard Guenther <rguenther@suse.de>
14208 PR middle-end/47283
14209 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
14211 (refs_may_alias_p_1): For release branches return true if
14212 we are confused by our input.
14214 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14216 * config/s390/s390.c (s390_function_value): Rename to ...
14217 (s390_function_and_libcall_value): ... this.
14218 (s390_function_value): New function.
14219 (s390_libcall_value): New function.
14220 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
14221 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
14222 target macro definitions.
14223 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
14225 2011-03-02 Joseph Myers <joseph@codesourcery.com>
14227 * config/i386/freebsd64.h (CC1_SPEC): Define.
14228 * config/i386/linux64.h (CC1_SPEC): Define.
14229 * config/i386/x86-64.h (CC1_SPEC): Don't define.
14231 2011-03-02 Anatoly Sokolov <aesok@post.ru>
14233 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
14235 * config/stormy16/stormy16.c: Include reload.h.
14236 (xstormy16_memory_move_cost): New function.
14237 (TARGET_MEMORY_MOVE_COST): Define.
14239 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
14241 PR rtl-optimization/47925
14242 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
14243 with side effects. Remove the more-specific check for volatile asms.
14245 2011-03-02 Alan Modra <amodra@gmail.com>
14248 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
14249 toc relative addresses for valid offsets.
14251 2011-03-01 Richard Guenther <rguenther@suse.de>
14253 PR tree-optimization/47890
14254 * tree-vect-loop.c (get_initial_def_for_induction): Set
14255 related stmt properly.
14257 2011-03-01 Richard Guenther <rguenther@suse.de>
14260 * lto-streamer.c (lto_record_common_node): Also register
14261 the canonical type.
14263 2011-03-01 Richard Guenther <rguenther@suse.de>
14266 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
14267 Do not stream DECL_ABSTRACT_ORIGIN.
14268 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
14269 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
14270 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
14271 Do not stream DECL_ABSTRACT_ORIGIN.
14272 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
14273 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
14275 2011-02-28 Anatoly Sokolov <aesok@post.ru>
14277 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
14278 FUNCTION_VALUE_REGNO_P): Remove.
14279 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
14280 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
14281 Add 'outgoing' argument.
14282 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
14284 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
14285 TARGET_FUNCTION_VALUE_REGNO_P): Define.
14287 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
14290 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
14291 (lookup_filename): Likewise.
14292 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
14294 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
14295 Jakub Jelinek <jakub@redhat.com>
14297 PR middle-end/47893
14298 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
14299 (assign_stack_local_1): Change last argument type to int.
14300 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
14301 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
14302 don't record padding space into frame_space_list nor use those areas.
14303 (assign_stack_local): Adjust caller.
14304 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
14305 of assign_stack_local, pass 0 as last argument.
14306 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
14309 2011-02-28 Jakub Jelinek <jakub@redhat.com>
14312 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
14313 Use target address_mode and pointer_mode hooks instead of hardcoded
14314 Pmode and ptr_mode. Handle some simple cases of extending if
14315 POINTERS_EXTEND_UNSIGNED < 0.
14316 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
14317 Call convert_debug_memory_address.
14318 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
14319 convert_debug_memory_address.
14321 PR middle-end/46790
14322 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
14323 * configure: Regenerated.
14324 * config.in: Regenerated.
14325 * varasm.c (default_function_section): Return NULL
14326 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
14328 2011-02-28 Martin Jambor <mjambor@suse.cz>
14330 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
14331 the description to match the printed values.
14333 2011-02-28 Richard Guenther <rguenther@suse.de>
14335 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
14336 of the copied scope tree.
14338 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14340 * doc/extend.texi (Function Attributes): Avoid deeply (and
14341 wrongly) nested tables.
14343 2011-02-27 Jakub Jelinek <jakub@redhat.com>
14345 PR middle-end/47903
14346 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
14347 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
14348 r isn't op0 nor op1.
14350 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
14352 * config/avr/avr.md: Remove magic comment for emacs.
14354 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
14357 * config/avr/avr.c (avr_option_override): Use error on bad options.
14358 (avr_help): New function.
14359 (TARGET_HELP): Define.
14361 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
14364 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
14365 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
14367 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
14369 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
14370 (ARM Options): Ditto.
14371 (i386 and x86-64 Options): Ditto.
14372 (RX Options): Ditto.
14373 (SPARC Options): Ditto.
14375 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
14377 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
14378 FreeBSD 6 and later. Generally use cpu generic.
14380 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
14382 * doc/cpp.texi: Update copyright years.
14384 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
14387 * config/lm32/lm32.md (ashrsi3): Added needed variable.
14389 2011-02-25 Jon Beniston <jon@beniston.com>
14392 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
14393 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
14394 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
14395 (lm32_block_move_inline): Add type cast to remove warning.
14396 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
14397 (gen_int_relational): Move declarations to start of function.
14399 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
14401 PR tree-optimization/45470
14402 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
14403 can throw internally only.
14404 * tree-vect-stmts.c (vectorizable_call): Likewise.
14406 2011-02-24 Anatoly Sokolov <aesok@post.ru>
14408 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
14409 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
14410 * config/stormy16/stormy16-protos.h
14411 (xstormy16_preferred_reload_class): Remove.
14412 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
14413 static. Change 'rclass' argument and return type to reg_class_t.
14414 (TARGET_PREFERRED_RELOAD_CLASS,
14415 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
14417 2011-02-24 Richard Guenther <rguenther@suse.de>
14419 * lto-streamer-in.c (input_bb): Do not find referenced vars
14420 in debug statements.
14422 2011-02-23 Jason Merrill <jason@redhat.com>
14424 * common.opt (fabi-version): Document v5 and v6.
14426 2011-02-23 Richard Guenther <rguenther@suse.de>
14428 PR tree-optimization/47849
14429 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
14431 2011-02-23 Jie Zhang <jie@codesourcery.com>
14433 * opts-common.c (decode_cmdline_option): Print empty string
14434 argument as "" in decoded->orig_option_with_args_text.
14435 * gcc.c (execute): Print empty string argument as ""
14436 in the verbose output.
14437 (do_spec_1): Keep empty string argument.
14439 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
14441 * config.gcc: Declare score-* and crx-* obsolete.
14443 2011-02-23 Jie Zhang <jie@codesourcery.com>
14445 PR rtl-optimization/47763
14446 * web.c (web_main): Ignore naked clobber when replacing register.
14448 2011-02-22 Anatoly Sokolov <aesok@post.ru>
14450 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
14453 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
14456 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
14458 2011-02-22 Mike Stump <mikestump@comcast.net>
14460 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
14462 * configure: Regenerate.
14464 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
14466 PR rtl-optimization/46002
14467 * ira-color.c (update_copy_costs): Change class intersection
14468 test to reg_class_contents[] test of 'hard_regno'.
14470 2011-02-21 Joseph Myers <joseph@codesourcery.com>
14472 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
14473 than Driver option.
14474 * config/hpux11.opt (mt): Likewise.
14475 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
14476 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
14477 * config/vax/elf.opt (mno-asm-pic): Likewise.
14478 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
14480 2011-02-21 Mike Stump <mikestump@comcast.net>
14483 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
14484 tree so we can get save the type.
14485 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
14486 for CFString instead of trying to use past the end of the builtins.
14487 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
14488 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
14489 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
14490 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
14491 Rename to darwin_builtin_cfstring.
14492 (darwin_init_cfstring_builtins): Return the built type.
14494 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
14497 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
14498 (_mm256_insert_epi64): Use _mm_insert_epi64.
14500 2011-02-21 Anatoly Sokolov <aesok@post.ru>
14502 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
14503 * config/stormy16/stormy16-protos.h
14504 (xstormy16_mode_dependent_address_p): Remove.
14505 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
14506 Make static. Change return type to bool. Change argument type to
14507 const_rtx. Remove dead code.
14508 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14510 2011-02-21 Richard Guenther <rguenther@suse.de>
14513 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
14514 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
14515 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
14517 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
14518 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
14520 2011-02-20 Richard Guenther <rguenther@suse.de>
14523 * tree.c (free_lang_data_in_decl): Clean builtins from
14524 the TU decl BLOCK_VARS.
14526 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
14530 * haifa-sched.c (fix_tick_ready): Skip tick computation
14533 2011-02-19 Richard Guenther <rguenther@suse.de>
14536 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
14537 Remove lazy BLOCK_VARS streaming.
14538 (lto_input_ts_block_tree_pointers): Likewise.
14539 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
14541 2011-02-19 Joseph Myers <joseph@codesourcery.com>
14543 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
14545 2011-02-19 Joseph Myers <joseph@codesourcery.com>
14547 * config/i386/biarch32.h, config/i386/mach.h,
14548 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
14550 2011-02-19 Jakub Jelinek <jakub@redhat.com>
14553 * config/i386/i386.md (peephole2 for shift and plus): Use
14554 operands[1] original mode in the first insn.
14556 2011-02-18 Mike Stump <mikestump@comcast.net>
14558 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
14560 2011-02-18 Jan Hubicka <jh@suse.cz>
14562 PR middle-end/47788
14563 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
14564 to zero when the function is not inlinable at all.
14566 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14568 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
14569 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
14570 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
14571 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
14572 * config/pa/t-pa64: Likewise.
14573 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
14575 2011-02-18 Jakub Jelinek <jakub@redhat.com>
14578 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
14580 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14583 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
14585 2011-02-18 Anatoly Sokolov <aesok@post.ru>
14587 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
14588 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
14589 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
14590 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
14591 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
14592 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
14593 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
14594 m32r_load_postinc_p, m32r_store_preinc_predec_p,
14595 m32r_legitimate_address_p): New functions.
14596 * config/m32r/constraints.md (constraint "S"): Don't use
14597 STORE_PREINC_PREDEC_P.
14598 (constraint "U"): Don't use LOAD_POSTINC_P.
14600 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
14602 PR rtl-optimization/46178
14603 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
14604 compute ira_hard_regno_cover_class[].
14606 2011-02-18 Richard Guenther <rguenther@suse.de>
14609 * lto-streamer.h (lto_global_var_decls): Declare.
14610 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
14611 statics for global var processing.
14613 2011-02-18 Richard Guenther <rguenther@suse.de>
14615 PR tree-optimization/47737
14616 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
14617 edge dominance check.
14619 2011-02-18 Jakub Jelinek <jakub@redhat.com>
14622 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
14623 avoid invalid rtx sharing.
14625 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
14627 * doc/cpp.texi (Obsolete Features): Add background on the
14628 origin of assertions.
14630 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
14632 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
14634 * config/darwin.c (output_objc_section_asm_op): Added support for
14636 (is_objc_metadata): New.
14637 (darwin_objc2_section): New.
14638 (darwin_objc1_section): New.
14639 (machopic_select_section): Added support for ABI v1 and v2.
14640 (darwin_emit_objc_zeroed): New.
14641 (darwin_output_aligned_bss): Detect objc metadata and treat it
14643 (darwin_asm_output_aligned_decl_common): Same.
14644 (darwin_asm_output_aligned_decl_local): Same.
14645 * config/darwin-sections.def: Updated for ABI v1 and v2.
14646 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
14647 compiling Objective-C code for the NeXT runtime, default to using
14648 ABI version 0 for 32-bit, and version 2 for 64-bit.
14650 2011-02-17 Joseph Myers <joseph@codesourcery.com>
14652 * common.opt (optimize_fast): New Variable.
14653 * opts.c (default_options_optimization): Use opts->x_optimize_fast
14654 instead of local variable ofast.
14656 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
14658 * doc/invoke.texi (fobjc-abi-version): Documented.
14659 (fobjc-nilcheck): Documented.
14660 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
14663 2011-02-17 Joseph Myers <joseph@codesourcery.com>
14666 * common.opt (export-dynamic): New Driver option.
14667 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
14669 2011-02-17 Joseph Myers <joseph@codesourcery.com>
14671 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
14673 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
14674 Jan Hubicka <jh@suse.cz>
14678 * cfgexpand.c (account_used_vars_for_block): Remove.
14679 (estimated_stack_frame_size): Use referenced vars.
14680 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
14681 that were referenced in the original function. Test src_fn
14682 rather than cfun. Drop redundant get_var_ann.
14683 (setup_one_parameter): Drop redundant get_var_ann.
14684 (declare_return_variable): Likewise.
14685 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
14686 (copy_arguments_for_versioning): Drop redundant get_var_ann.
14687 * ipa-inline.c (compute_inline_parameters): Do not compute
14688 disregard_inline_limits here.
14689 (compute_inlinable_for_current, pass_inlinable): New.
14690 (pass_inline_parameters): Require PROP_referenced_vars.
14691 * cgraphunit.c (cgraph_process_new_functions): Don't run
14692 compute_inline_parameters explicitly unless function is in SSA form.
14693 (cgraph_analyze_function): Set .disregard_inline_limits.
14694 * tree-sra.c (convert_callers): Compute inliner parameters
14695 only for functions already in SSA form.
14697 2011-02-17 Joseph Myers <joseph@codesourcery.com>
14699 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
14700 -mlittle-endian-data.
14702 2011-02-17 Joseph Myers <joseph@codesourcery.com>
14704 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
14705 -mno-fpu, not -fpu and -no-fpu.
14706 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
14707 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
14709 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
14712 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
14713 input reload with PLUS RTX.
14715 2011-02-16 Joseph Myers <joseph@codesourcery.com>
14717 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
14718 of InverseVar(MDMX).
14720 2011-02-16 Joseph Myers <joseph@codesourcery.com>
14722 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
14725 2011-02-16 Joseph Myers <joseph@codesourcery.com>
14727 * config/mn10300/mn10300.opt (mno-crt0): New.
14729 2011-02-16 Joseph Myers <joseph@codesourcery.com>
14731 * config/m68k/uclinux.opt (static-libc): New Driver option.
14733 2011-02-16 Joseph Myers <joseph@codesourcery.com>
14735 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
14737 2011-02-16 Joseph Myers <joseph@codesourcery.com>
14739 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
14740 %{muser-extend-enabled}.
14742 2011-02-16 Richard Guenther <rguenther@suse.de>
14744 PR tree-optimization/47738
14745 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
14746 the TODO from tree_predictive_commoning.
14748 2011-02-15 Jeff Law <law@redhat.com>
14751 2011-01-25 Jeff Law <law@redhat.com>
14753 PR rtl-optimization/37273
14754 * ira-costs.c (scan_one_insn): Detect constants living in memory and
14755 handle them like argument loads from stack slots. Do not double
14756 count memory for memory constants and argument loads from stack slots.
14758 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
14760 PR middle-end/47725
14761 * combine.c (cant_combine_insn_p): Revert the last change.
14763 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
14766 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
14767 mode for vector constants. Remove code that checks for TImode.
14769 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
14773 * cgraph.h (compute_inline_parameters): Return void.
14774 * ipa-inline.c (compute_inline_parameters): Adjust.
14776 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
14780 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
14782 * cfgexpand.c (estimated_stack_frame_size): Likewise.
14783 * ipa-inline.c (compute_inline_parameters): Adjust.
14785 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
14789 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
14790 Adjust all users. Pass FN to...
14791 * tree-flow-inline.h (first_referenced_var): ... this. Add
14793 * ipa-struct-reorg.c: Adjust.
14794 * tree-dfa.c: Adjust.
14795 * tree-into-ssa.c: Adjust.
14796 * tree-sra.c: Adjust.
14797 * tree-ssa-alias.c: Adjust.
14798 * tree-ssa-live.c: Adjust.
14799 * tree-ssa.c: Adjust.
14800 * tree-ssanames.c: Adjust.
14801 * tree-tailcall.c: Adjust.
14803 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
14807 * tree-flow.h (referenced_var_lookup): Add fn parameter.
14808 Adjust all callers.
14809 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
14810 * tree-flow-inline.h: Adjust.
14811 * gimple-pretty-print.c: Adjust.
14812 * tree-into-ssa.c: Adjust.
14813 * tree-ssa.c: Adjust.
14814 * cfgexpand.c: Adjust.
14816 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
14818 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
14819 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14820 (EXTRA_CONSTRAINT): Delete.
14821 * config/iq2000/constraints.md: New file.
14822 * config/iq2000/iq2000.md: Include it.
14823 (define_insn ""): Delete.
14824 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
14825 unsupported constraint letters from patterns.
14826 (call_value, call_value_internal1): Likewise.
14827 (call_value_multiple_internal1): Likewise.
14829 2011-02-15 Nick Clifton <nickc@redhat.com>
14831 * config/mn10300/mn10300.c: Include tm-constrs.h.
14832 (struct liw_data): New data structure describing an LIW candidate
14834 (extract_bundle): Use struct liw_data. Allow small integer
14835 operands for some instructions.
14836 (check_liw_constraints): Use struct liw_data. Remove swapped
14837 parameter. Add comments describing the checks. Fix bug when
14838 assigning the source of liw1 to the source of liw2.
14839 (liw_candidate): Delete. Code moved into extract_bundle.
14840 (mn10300_bundle_liw): Use struct liw_data. Check constraints
14842 * config/mn10300/predicates.md (liw_operand): New predicate.
14843 Allows registers and small integer constants.
14844 * config/mn10300/constraints.md (O): New constraint. Accetps
14845 integers in the range -8 to +7 inclusive.
14846 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
14847 for moving a small integer into a register. Give this alternative
14849 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
14850 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
14851 using the J,K,L and M constraints,
14852 (liw): Remove SI mode on second operands to allow for HI and QI
14854 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
14857 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
14859 PR middle-end/47725
14860 * combine.c (cant_combine_insn_p): Check zero/sign extended
14863 2011-02-15 Richard Guenther <rguenther@suse.de>
14865 PR tree-optimization/47743
14866 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
14867 for a non-type-compatible VN lookup bail out.
14869 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
14871 * config/fr30/constraints.md: New file.
14872 * config/fr30/fr30.md: Include it.
14873 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
14874 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14875 (EXTRA_CONSTRAINT): Delete.
14877 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
14879 * config/frv/constraints.md: New file.
14880 * config/frv/predicates.md: Include it.
14881 * config/frv/frv.c (reg_class_from_letter): Delete.
14882 (frv_option_override): Don't initialize it.
14883 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
14884 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
14885 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
14886 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
14887 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
14888 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14889 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
14890 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
14891 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
14892 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
14893 (REG_CLASS_FROM_CONSTRAINT): Delete.
14895 2011-02-15 Jakub Jelinek <jakub@redhat.com>
14897 PR middle-end/47581
14898 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
14899 if frame size is 0 in a leaf function.
14901 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14904 * config/alpha/host-osf.c: New file.
14905 * config/alpha/x-osf: New file.
14906 * config.host (alpha*-dec-osf*): Use it.
14908 2011-02-14 Anatoly Sokolov <aesok@post.ru>
14910 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
14911 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
14912 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
14913 (rx_mode_dependent_address_p): ...this. Make static. Change argument
14915 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14917 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
14919 * config/stormy16/constraints.md: New file.
14920 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
14921 Use satisfies_constraint_Q and satisfies_constraint_R.
14922 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
14924 (xstormy16_legitiamte_address_p): Declare.
14925 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
14926 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14927 (EXTRA_CONSTRAINT): Delete.
14928 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
14930 (xstormy16_extra_constraint_p): Delete.
14932 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
14934 PR tree-optimization/46494
14935 * loop-unroll.c (split_edge_and_insert): Adjust comment.
14936 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
14937 (pass_rtl_loop_done): Add TODO_verify_flow.
14938 * fwprop.c (pass_rtl_fwprop): Likewise.
14939 * modulo-sched.c (pass_sms): Likewise.
14940 * tree-ssa-dom.c (pass_dominator): Likewise.
14941 * tree-ssa-loop-ch.c (pass_ch): Likewise.
14942 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
14943 (pass_tree_loop_done): Likewise.
14944 * tree-ssa-pre.c (execute_pre): Likewise.
14945 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
14946 * tree-ssa-sink.c (pass_sink_code): Likewise.
14947 * tree-vrp.c (pass_vrp): Likewise.
14949 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
14951 * config/v850/constraints.md: New file.
14952 * config/v850/v850.md: Include it.
14953 * config/v850/predicates.md (reg_or_0_operand): Use
14954 satisfies_constraint_G.
14955 (special_symbolref_operand): Use satisfies_constraint_K.
14956 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
14957 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
14958 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
14959 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
14960 (EXTRA_CONSTRAINT): Delete.
14961 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
14962 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
14963 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
14965 2011-02-14 Anatoly Sokolov <aesok@post.ru>
14968 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
14971 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
14973 * config/mcore/constraints.md: New file.
14974 * config/mcore/mcore.md: Include it.
14975 * config/mcore/mcore.c (reg_class_from_letter): Delete.
14976 * config/mcore/mcore.h (reg_class_from_letter): Delete.
14977 (REG_CLASS_FROM_LETTER): Delete.
14978 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
14979 insn_const_int_ok_for_constraint.
14980 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
14981 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
14982 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14983 (EXTRA_CONSTRAINT): Delete.
14985 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14988 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
14989 (IS_SIGHANDLER): Define.
14990 (sparc64_is_sighandler): New function, split off from
14991 sparc64_fallback_frame_state.
14992 (sparc_is_sighandler): New function, split off from
14993 sparc_fallback_frame_state.
14994 (sparc64_fallback_frame_state): Merge with ...
14995 (sparc_fallback_frame_state): ... this into ...
14996 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
14997 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
14998 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
14999 stack instead of hardcoded offsets.
15001 2011-02-14 Andriy Gapon <avg@freebsd.org>
15004 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
15006 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15008 * configure: Regenerate.
15010 2011-02-12 Joseph Myers <joseph@codesourcery.com>
15013 * gcc.c (asm_options): Correct spec matching --target-help.
15015 2011-02-12 Martin Jambor <mjambor@suse.cz>
15017 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
15018 to gimple call error.
15020 2011-02-12 Mike Stump <mikestump@comcast.net>
15022 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
15023 comments in backslash regions.
15025 2011-02-12 Mike Stump <mikestump@comcast.net>
15026 Jakub Jelinek <jakub@redhat.com>
15027 Iain Sandoe <iains@gcc.gnu.org>
15030 * dwarf2out.c (output_cfa_loc): When required, apply the
15031 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
15032 (output_loc_sequence): Likewise.
15033 (output_loc_operands_raw): Likewise.
15034 (output_loc_sequence_raw): Likewise.
15035 (output_cfa_loc): Likewise.
15036 (output_loc_list): Suppress register number adjustment when
15037 calling output_loc_sequence()
15038 (output_die): Likewise.
15040 2011-02-12 Anatoly Sokolov <aesok@post.ru>
15042 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
15044 * config/xtensa/xtensa.c (xtensa_register_move_cost,
15045 xtensa_memory_move_cost): New functions.
15046 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
15048 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
15051 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
15052 in the current directory.
15053 * configure: Rebuilt.
15055 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
15057 * config/darwin.c (darwin_override_options): Add a hunk missed
15058 from the commit of r168571. Trim comment line lengths and
15059 correct indents of the preceding block.
15061 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
15063 * gcc.c (driver_handle_option): Concatenate the argument to -F with
15066 2011-02-11 Joseph Myers <joseph@codesourcery.com>
15068 * common.opt (nostartfiles): New Driver option.
15070 2011-02-11 Xinliang David Li <davidxl@google.com>
15072 PR tree-optimization/47707
15073 * tree-chrec.c (convert_affine_scev): Keep type precision.
15075 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
15077 PR tree-optimization/47420
15078 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
15080 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
15082 PR rtl-optimization/47614
15083 * rtl.h (check_for_inc_dec): Declare.
15084 * dse.c (check_for_inc_dec): Externalize...
15085 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
15086 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
15088 2011-02-11 Joseph Myers <joseph@codesourcery.com>
15091 * gcc.c (main): Do not compile inputs if there were errors in
15093 * opts-common.c (read_cmdline_option): Check for wrong language
15094 after other error checks.
15096 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
15098 * cgraph.c: Fix comment typos.
15099 * cgraph.h: Likewise.
15100 * cgraphunit.c: Likewise.
15101 * ipa-cp.c: Likewise.
15102 * ipa-inline.c: Likewise.
15103 * ipa-prop.c: Likewise.
15104 * ipa-pure-const.c: Likewise.
15105 * ipa-ref.c: Likewise.
15106 * ipa-reference.c: Likewise.
15108 2011-02-11 Jakub Jelinek <jakub@redhat.com>
15111 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
15113 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15116 * doc/sourcebuild.texi (Require Support): Document
15117 dg-require-ascii-locale.
15119 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
15121 * doc/lto.texi (Write summary): Fix missing parentheses.
15123 2011-02-10 DJ Delorie <dj@redhat.com>
15125 * config/m32c/m32c.c (m32c_option_override): Disable
15126 -fcombine-stack-adjustments until flag value tracking and compare
15127 optimization can be rewritten.
15129 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
15131 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
15133 (PROCESSOR_DEFAULT64): Likewise.
15135 2011-02-10 Richard Henderson <rth@redhat.com>
15137 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
15138 change from 2011-02-03.
15139 * config/rx/rx.c (flags_from_code): Likewise.
15140 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
15141 is valid, n/pz otherwise.
15142 (rx_select_cc_mode): Return CCmode if Y is not zero.
15144 2011-02-10 Richard Guenther <rguenther@suse.de>
15146 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
15148 2011-02-10 Richard Guenther <rguenther@suse.de>
15150 PR tree-optimization/47677
15151 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
15153 2011-02-10 Jakub Jelinek <jakub@redhat.com>
15156 * combine.c (make_compound_operation): Only change shifts into
15157 multiplication for SCALAR_INT_MODE_P.
15159 2011-02-10 Jie Zhang <jie@codesourcery.com>
15163 2011-02-05 Jie Zhang <jie@codesourcery.com>
15165 * web.c (entry_register): Don't clobber the number of the
15166 first uninitialized reference in used[].
15168 2011-02-09 Richard Guenther <rguenther@suse.de>
15170 PR tree-optimization/47664
15171 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
15174 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
15178 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
15180 (PROCESSOR_DEFAULT64): Same.
15181 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
15183 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15185 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
15187 2011-02-09 Martin Jambor <mjambor@suse.cz>
15189 PR middle-end/45505
15190 * tree-sra.c (struct access): New flags grp_scalar_read and
15191 grp_scalar_write. Changed description of assignment read and write
15193 (dump_access): Dump new flags, reorder all of them.
15194 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
15195 to detect multiple scalar reads.
15196 (analyze_access_subtree): Use the new scalar read write flags instead
15197 of the old flags. Adjusted comments.
15199 2011-02-08 DJ Delorie <dj@redhat.com>
15202 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
15205 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15207 * config/m68k/uclinux.opt: New.
15208 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
15210 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15212 * config/cris/elf.opt (sim): New Driver option.
15214 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15216 * config/xtensa/elf.opt: New.
15217 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
15219 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15221 * config/vax/elf.opt: New.
15222 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
15224 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15226 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
15228 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15230 * config/gnu-user.opt: New.
15231 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
15232 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
15233 *-*-uclinux*): Use gnu-user.opt.
15235 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
15237 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
15238 * config/i386/gnu.h (CPP_SPEC): Likewise.
15240 2011-02-08 Ian Lance Taylor <iant@google.com>
15242 * common.opt (fcx-limited-range): Add SetByCombined flag.
15243 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
15244 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
15245 (fassociative-math, freciprocal-math): Likewise.
15246 (funsafe-math-optimizations): Likewise.
15247 * opth-gen.awk: Handle SetByCombined.
15248 * optc-gen.awk: Likewise.
15249 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
15250 (set_unsafe_math_optimizations_flags): Likewise.
15251 * doc/options.texi (Option properties): Document SetByCombined.
15253 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15255 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
15256 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
15257 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
15258 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
15259 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
15261 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
15263 PR tree-optimization/46834
15264 PR tree-optimization/46994
15265 PR tree-optimization/46995
15266 * graphite-sese-to-poly.c (used_outside_reduction): New.
15267 (detect_commutative_reduction): Call used_outside_reduction.
15268 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
15269 translate_scalar_reduction_to_array only when at least one
15270 loop-phi/close-phi tuple has been detected.
15272 2011-02-08 Richard Guenther <rguenther@suse.de>
15274 PR middle-end/47639
15275 * tree-vect-generic.c (expand_vector_operations_1): Update
15277 (expand_vector_operations): ... not here. Cleanup EH info
15278 and the CFG if required.
15280 2011-02-08 Richard Guenther <rguenther@suse.de>
15282 PR tree-optimization/47641
15283 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
15284 require type compatibility.
15286 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15288 * gimple-low.c (lower_function_body): Don't remove the location of
15289 the return statement here.
15290 (lower_gimple_return): Do it here instead but only if the return
15291 statement is actually used twice.
15293 2011-02-08 Richard Guenther <rguenther@suse.de>
15295 PR tree-optimization/47632
15296 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
15297 unused up_to_stmt parameter, return whether cfg-cleanup is
15298 necessary, remove EH info properly.
15299 (forward_propagate_into_gimple_cond): Adjust caller.
15300 (forward_propagate_into_cond): Likewise.
15301 (forward_propagate_comparison): Likewise.
15302 (tree_ssa_forward_propagate_single_use_vars): Make
15303 forward_propagate_comparison case similar to the two others.
15305 2011-02-08 Nick Clifton <nickc@redhat.com>
15307 * config/mn10300/mn10300.opt (mliw): New command line option.
15308 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
15309 (liw_bundling): New automaton.
15310 (liw): New attribute.
15311 (liw_op): New attribute.
15312 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
15313 (movsi_internal): Add LIW attributes.
15314 (andsi3): Likewise.
15315 (iorsi3): Likewise.
15316 (xorsi3): Likewise.
15317 (addsi3): Separate register and immediate alternatives.
15318 Add LIW attributes.
15319 (subsi3): Likewise.
15321 (aslsi3): Likewise.
15322 (lshrsi3): Likewise.
15323 (ashrsi3): Likewise.
15324 (liw): New pattern.
15325 * config/mn10300/mn10300.c (liw_op_names): New
15326 (mn10300_print_operand): Handle 'W' operand descriptor.
15327 (extract_bundle): New function.
15328 (check_liw_constraints): New function.
15329 (liw_candidate): New function.
15330 (mn10300_bundle_liw): New function.
15331 (mn10300_reorg): New function.
15332 (TARGET_MACHINE_DEPENDENT_REORG): Define.
15333 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
15334 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
15335 __LIW__ or __NO_LIW__.
15336 * doc/invoke.texi: Describe the -mliw command line option.
15338 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15340 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
15341 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
15342 pthread_mutex_unlock): Remove.
15343 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
15344 * config/pa/t-pa64: Likewise.
15345 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
15346 shared libc if not linking against libpthread.
15347 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
15349 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
15352 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
15353 on 10.6 and later to ensure that we always use the unwinder from
15354 the system. Only add -no_compact_unwind when tarteting darwin
15357 2011-02-07 Steve Ellcey <sje@cup.hp.com>
15360 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
15361 (vec_interleave_lowv2sf): Ditto.
15362 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
15363 (vec_extract_oddv2sf): Ditto.
15365 2011-02-07 Mike Stump <mikestump@comcast.net>
15368 Add __ieee_divdc3 entry point.
15369 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
15371 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
15372 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
15373 * config/darwin.c (darwin_rename_builtins): Add.
15374 * config/darwin-protos.h (darwin_rename_builtins): Add.
15376 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
15379 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
15382 2011-02-07 Mike Stump <mikestump@comcast.net>
15384 * config/darwin.opt (mmacosx-version-min): Update default OS version.
15386 2011-02-07 Denis Chertykov <chertykov@gmail.com>
15389 * config/avr/libgcc.S (exit): Move .endfunc
15391 2011-02-07 Richard Guenther <rguenther@suse.de>
15393 PR tree-optimization/47615
15394 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
15395 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
15396 (run_scc_vn): Initialize it.
15397 (visit_reference_op_load): Use it.
15398 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
15400 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15402 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
15403 DImode trapping arithmetic libfuncs.
15405 2011-02-07 Richard Guenther <rguenther@suse.de>
15407 PR tree-optimization/47621
15408 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
15410 (execute_update_addresses_taken): ... here. Make it more
15411 conservative in what we accept.
15413 2011-02-06 Joseph Myers <joseph@codesourcery.com>
15415 * config/sparc/freebsd.h (ASM_SPEC): Define.
15416 * config/sparc/vxworks.h (ASM_SPEC): Define.
15418 2011-02-06 Joseph Myers <joseph@codesourcery.com>
15420 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
15422 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
15424 * doc/invoke.texi: Remove reference to compiler internals from
15425 user documentation.
15427 * reg-notes.def: Remove REG_VALUE_PROFILE.
15428 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
15430 2011-02-05 Jakub Jelinek <jakub@redhat.com>
15432 PR middle-end/47610
15433 * varasm.c (default_section_type_flags): If decl is NULL,
15434 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
15436 2011-02-05 Jie Zhang <jie@codesourcery.com>
15439 * web.c (entry_register): Don't clobber the number of the
15440 first uninitialized reference in used[].
15442 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
15444 PR tree-optimization/46194
15445 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
15446 (build_classic_dist_vector_1): Do not represent classic distance
15447 vectors when the access functions are variating in different loops.
15449 2011-02-04 Joseph Myers <joseph@codesourcery.com>
15451 * config/mips/iris6.opt: New.
15452 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
15454 2011-02-04 Richard Henderson <rth@redhat.com>
15455 Steve Ellcey <sje@cup.hp.com>
15458 * config/ia64/predicates.md (mux1_brcst_element): New.
15459 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
15460 * config/ia64/ia64.c (ia64_unpack_assemble): New.
15461 (ia64_unpack_sign): New.
15462 (ia64_expand_unpack): Rewrite using new routines.
15463 (ia64_expand_widen_sum): Ditto.
15464 (ia64_expand_dot_prod_v8qi): Ditto.
15465 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
15466 routines, add endian check.
15467 (pmpy2_even): Rename from pmpy2_r, add endian check.
15468 (pmpy2_odd): Rename from pmpy2_l, add endian check.
15469 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
15470 (vec_widen_smult_hi_v4hi): Ditto.
15471 (vec_widen_umult_lo_v4hi): Ditto.
15472 (vec_widen_umult_hi_v4hi): Ditto.
15473 (mulv2si3): Change endian checks.
15474 (sdot_prodv4hi): Rewrite with new calls.
15475 (udot_prodv4hi): New.
15476 (vec_pack_ssat_v4hi): Add endian check.
15477 (vec_pack_usat_v4hi): Ditto.
15478 (vec_pack_ssat_v2si): Ditto.
15479 (max1_even): Rename from max1_r, add endian check.
15480 (max1_odd): Rename from max1_l, add endian check.
15481 (*mux1_rev): Format change.
15482 (*mux1_mix): Ditto.
15483 (*mux1_shuf): Ditto.
15484 (*mux1_alt): Ditto.
15485 (*mux1_brcst_v8qi): Use new predicate.
15486 (vec_extract_evenv8qi): Remove endian check.
15487 (vec_extract_oddv8qi): Ditto.
15488 (vec_interleave_lowv4hi): Format change.
15489 (vec_interleave_highv4hi): Ditto.
15490 (mix2_even): Rename from mix2_r, add endian check.
15491 (mix2_odd): Rename from mux2_l, add endian check.
15492 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
15493 (vec_extract_evenodd_helper): Format change.
15494 (vec_extract_evenv4hi): Remove endian check.
15495 (vec_extract_oddv4hi): Remove endian check.
15496 (vec_interleave_lowv2si): Format change.
15497 (vec_interleave_highv2si): Format change.
15498 (vec_initv2si): Remove endian check.
15499 (vecinit_v2si): Add endian check.
15500 (reduc_splus_v2sf): Add endian check.
15501 (reduc_smax_v2sf): Ditto.
15502 (reduc_smin_v2sf): Ditto.
15503 (vec_initv2sf): Remove endian check.
15504 (fpack): Add endian check.
15505 (fswap): Add endian check.
15506 (vec_interleave_highv2sf): Add endian check.
15507 (vec_interleave_lowv2sf): Add endian check.
15508 (fmix_lr): Add endian check.
15509 (vec_setv2sf): Format change.
15510 (*vec_extractv2sf_0_be): Use shift to extract operand.
15511 (*vec_extractv2sf_1_be): New.
15512 (vec_pack_trunc_v4hi): Add endian check.
15513 (vec_pack_trunc_v2si): Format change.
15515 2011-02-04 Jakub Jelinek <jakub@redhat.com>
15517 PR inline-asm/23200
15518 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
15519 do bb, locus and block comparison and disallow loads if it is not set.
15520 (stmt_is_replaceable_p): New function.
15521 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
15523 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
15524 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
15526 * tree-flow.h (stmt_is_replaceable_p): New prototype.
15528 2011-02-04 Joseph Myers <joseph@codesourcery.com>
15530 * config/rs6000/xilinx.opt: New.
15531 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
15533 2011-02-04 Joseph Myers <joseph@codesourcery.com>
15535 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
15537 2011-02-03 Anatoly Sokolov <aesok@post.ru>
15539 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
15540 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
15541 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
15542 secondary_reload_info, xtensa_secondary_reload): Remove.
15543 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
15544 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
15545 (xtensa_preferred_reload_class): Make static. Change return and
15546 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
15547 Use CONST_DOUBLE_P predicate.
15548 (xtensa_preferred_output_reload_class): New function.
15549 (xtensa_secondary_reload): Make static.
15551 2011-02-03 Joseph Myers <joseph@codesourcery.com>
15553 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
15554 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
15555 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
15557 2011-02-03 Jakub Jelinek <jakub@redhat.com>
15559 PR middle-end/31490
15560 * output.h (SECTION_RELRO): Define.
15561 (SECTION_MACH_DEP): Adjust.
15562 (get_variable_section): New prototype.
15563 * varpool.c (varpool_finalize_named_section_flags): New function.
15564 (varpool_assemble_pending_decls): Call it.
15565 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
15566 * cgraphunit.c (cgraph_output_in_order): Call
15567 varpool_finalize_named_section_flags.
15568 * varasm.c (get_section): Allow section flags conflicts between
15569 relro and read-only sections if the section hasn't been declared yet.
15570 Set SECTION_OVERRIDE after diagnosing section type conflict.
15571 (get_variable_section): No longer static.
15572 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
15573 readonly sections that need relocations.
15574 (decl_readonly_section_1): New function.
15575 (decl_readonly_section): Use it.
15578 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
15579 Steve Ellcey <sje@cup.hp.com>
15581 PR middle-end/31490
15582 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
15583 if section attribute used.
15585 2011-02-03 Jakub Jelinek <jakub@redhat.com>
15587 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
15588 * config/darwin.c (SECTION_NO_ANCHOR): Define.
15589 (darwin_init_sections): Remove assertion.
15591 2011-02-03 Nick Clifton <nickc@redhat.com>
15593 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
15595 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
15596 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
15597 instead of "n" and "pz".
15598 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
15601 2011-02-03 Jakub Jelinek <jakub@redhat.com>
15604 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
15605 fma, expand FMA_EXPR as fma{,f,l} call.
15608 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
15609 copy them into a unsigned char variable and pass address of it to
15610 lto_output_data_stream.
15613 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
15614 around backend_init_target and lang_dependent_init_target calls.
15615 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
15616 (verify_cgraph_node): Don't call set_cfun here. Use
15617 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
15618 Set error_found for incorrectly represented calls to thunks.
15620 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
15623 PR rtl-optimization/43494
15624 * rtl.h (for_each_inc_dec_fn): New type.
15625 (for_each_inc_dec): Declare.
15626 * rtlanal.c (struct for_each_inc_dec_ops): New type.
15627 (for_each_inc_dec_find_inc_dec): New fn.
15628 (for_each_inc_dec_find_mem): New fn.
15629 (for_each_inc_dec): New fn.
15630 * dse.c (struct insn_size): Remove.
15631 (replace_inc_dec, replace_inc_dec_mem): Remove.
15632 (emit_inc_dec_insn_before): New fn.
15633 (check_for_inc_dec): Use it, along with for_each_inc_dec.
15634 (canon_address): Pass mem modes to cselib_lookup.
15635 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
15636 (cselib_lookup_from_insn): Likewise.
15637 (cselib_subst_to_values): Likewise.
15638 * cselib.c (find_slot_memmode): New var.
15639 (cselib_find_slot): New fn. Use it instead of
15640 htab_find_slot_with_hash everywhere.
15641 (entry_and_rtx_equal_p): Use find_slot_memmode.
15642 (autoinc_split): New fn.
15643 (rtx_equal_for_cselib_p): Rename and implement in terms of...
15644 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
15645 Deal with autoinc. Special-case recursion into MEMs.
15646 (cselib_hash_rtx): Likewise.
15647 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
15648 address and MEM modes.
15649 (cselib_subst_to_values): Add memmode, pass it on.
15651 (cselib_lookup): Add memmode argument, pass it on.
15652 (cselib_lookup_from_insn): Add memmode.
15653 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
15654 (struct cselib_record_autoinc_data): New.
15655 (cselib_record_autoinc_cb): New fn.
15656 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
15657 mode to cselib_lookup. Reset autoinced REGs here instead of...
15658 (cselib_process_insn): ... here.
15659 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
15661 (add_uses): Likewise, also to cselib_subst_to_values.
15662 (add_stores): Likewise.
15663 * sched-deps.c (add_insn_mem_dependence): Pass mode to
15664 cselib_subst_to_values.
15665 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
15666 * gcse.c (do_local_cprop): Adjusted.
15667 * postreload.c (reload_cse_simplify_set): Adjusted.
15668 (reload_cse_simplify_operands): Adjusted.
15669 * sel-sched-dump (debug_mem_addr_value): Pass mode.
15671 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
15673 PR tree-optimization/45122
15674 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
15675 unsafe assumptions when there's more than one loop exit.
15677 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
15680 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
15681 Document using vector double with the load/store builtins, and
15682 that the load/store builtins always use Altivec instructions.
15684 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
15685 to use altivec memory instructions, even on VSX.
15686 (vector_altivec_store_<mode>): Ditto.
15688 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
15691 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
15692 V2DF, V2DI support to load/store overloaded builtins.
15694 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
15695 altivec load/store builtins for V2DF/V2DI types.
15697 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
15698 set avoid indexed addresses on power6 if -maltivec.
15699 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
15700 vector_altivec_load/vector_altivec_store builtins.
15701 (altivec_expand_st_builtin): Ditto.
15702 (altivec_expand_builtin): Add VSX memory builtins.
15703 (rs6000_init_builtins): Add V2DI types to internal types.
15704 (altivec_init_builtins): Add support for V2DF/V2DI altivec
15705 load/store builtins.
15706 (rs6000_address_for_altivec): Insure memory address is appropriate
15709 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
15710 vec_vsx_ld and vec_vsx_st.
15711 (vsx_store_<mode>): Ditto.
15713 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
15714 variables to hold long long types for VSX vector memory builtins.
15715 (RS6000_BTI_unsigned_long_long): Ditto.
15716 (long_long_integer_type_internal_node): Ditti.
15717 (long_long_unsigned_type_internal_node): Ditti.
15719 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
15720 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
15721 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
15723 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
15725 (vec_vsx_st): Ditto.
15727 2011-02-02 Joseph Myers <joseph@codesourcery.com>
15729 * config/pa/pa-hpux10.opt: New.
15730 * config/hpux11.opt (pthread): New Driver option.
15731 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
15732 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
15734 2011-02-02 Joseph Myers <joseph@codesourcery.com>
15736 * config/ia64/vms.opt: New.
15737 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
15739 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
15742 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
15743 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
15744 generator functions.
15745 (vsx_floatuns<VSi><mode>2): Ditto.
15746 (vsx_fix_trunc<mode><VSi>2): Ditto.
15747 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
15749 2011-02-02 Joseph Myers <joseph@codesourcery.com>
15751 * config/i386/djgpp.opt (posix): New Driver option.
15753 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
15755 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
15756 Move to the unsupported targets list.
15758 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
15760 PR rtl-optimization/47525
15761 * df-scan.c: Update copyright years.
15762 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
15763 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
15765 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15767 * config/i386/sysv4.h (TARGET_VERSION): Remove.
15768 (SUBTARGET_RETURN_IN_MEMORY): Remove.
15769 (ASM_OUTPUT_ASCII): Remove.
15770 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
15772 2011-02-02 Jeff Law <law@redhat.com>
15774 PR middle-end/47543
15775 * reload.c (find_reloads_address): Handle reg+d address where both
15776 components are invalid by reloading the entire address.
15778 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
15779 Richard Guenther <rguenther@suse.de>
15781 PR tree-optimization/40979
15783 * passes.c (init_optimization_passes): After LIM call copy_prop
15784 and DCE to clean up.
15785 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
15787 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
15789 PR tree-optimization/47576
15790 PR tree-optimization/47555
15791 * doc/invoke.texi (scev-max-expr-complexity): Documented.
15792 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
15793 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
15794 * tree-scalar-evolution.c (follow_ssa_edge): Use
15795 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
15797 2011-02-02 Richard Guenther <rguenther@suse.de>
15799 PR tree-optimization/47566
15800 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
15802 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
15806 * tree-inline.c (declare_return_variable): Remove unused caller
15811 * tree-flow-inline.h (clear_is_used, is_used_p): New.
15812 * cfgexpand.c (account_used_vars_for_block): Use them.
15813 * tree-nrv.c (tree_nrv): Likewise.
15814 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
15815 (dump_scope_block): Likewise.
15816 (remove_unused_locals): Likewise.
15820 * tree-inline.c (declare_return_variable): Add result decl to
15821 local decls only once.
15822 * gimple-low.c (record_vars_into): Mark newly-created variables
15825 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
15831 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
15833 (no_real_insns_p, schedule_block, set_priorities): Drop special
15834 treatment of boundary debug insns.
15835 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
15836 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
15837 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
15838 (BOUNDARY_DEBUG_INSN_P): Likewise.
15839 (SCHEDULE_DEBUG_INSN_P): Likewise.
15840 * sched-rgn.c (init_ready_list): Drop special treatment of
15841 boundary debug insns.
15842 * final.c (rest_of_clean_state): Clear notes' BB.
15844 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15846 * config/openbsd.opt (assert=): New Driver option.
15848 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15850 * config/i386/nto.opt: New.
15851 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
15853 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15855 * config/i386/netware.opt: New.
15856 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
15858 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15860 * config/interix.opt (posix): New Driver option.
15862 2011-02-01 DJ Delorie <dj@redhat.com>
15864 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
15866 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
15869 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
15871 PR tree-optimization/47561
15872 * toplev.c (process_options): Print the Graphite flags. Add
15873 flag_loop_flatten to the list of options requiring Graphite.
15875 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15877 * config/i386/cygming.opt (posix): New Driver option.
15879 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15881 * config/arm/vxworks.opt: New.
15882 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
15884 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15886 * config/alpha/elf.opt: New.
15887 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
15888 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
15890 2011-02-01 Richard Guenther <rguenther@suse.de>
15892 PR tree-optimization/47559
15893 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
15894 store-motion on references that can throw.
15896 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
15898 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
15899 * tree-pass.h (TDF_CSELIB): New macro.
15900 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
15901 cselib_lookup): Check for it rather than for TDF_DETAILS.
15903 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
15906 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
15907 is HOST_BIT_BUCKET.
15909 * opts.c (finish_options): Don't add x_aux_base_name if it is
15912 2011-02-01 Richard Guenther <rguenther@suse.de>
15914 PR tree-optimization/47555
15916 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
15918 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
15920 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
15923 * config/lm32/t-lm32: Add multilib for all CPU options.
15925 2011-02-01 Richard Guenther <rguenther@suse.de>
15927 PR tree-optimization/47541
15928 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
15929 sure to have a field at offset zero.
15931 2011-01-31 Joseph Myers <joseph@codesourcery.com>
15933 * config/arc/arc.opt (EB, EL): New Driver options.
15935 2011-01-31 Joseph Myers <joseph@codesourcery.com>
15937 * config/alpha/osf5.opt: New.
15938 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
15940 2011-01-31 Joseph Myers <joseph@codesourcery.com>
15942 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
15944 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
15946 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
15947 -floop-interchange.
15948 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
15949 is an alias of -floop-interchange and that it requires the
15950 Graphite infrastructure.
15951 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
15952 flag_loop_interchange based on the value of flag_tree_loop_linear.
15954 2011-01-31 Jakub Jelinek <jakub@redhat.com>
15955 Richard Guenther <rguenther@suse.de>
15957 PR tree-optimization/47538
15958 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
15959 type instead of r1type, except for comparisons. For right
15960 shifts and comparisons punt if there are mismatches in
15961 sizetype vs. non-sizetype types.
15963 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15965 * doc/sourcebuild.texi (Effective-Target Keywords): Document
15968 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15970 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
15972 * configure: Regenerate.
15974 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15976 * configure.ac (gcc_cv_ld_static_option): Define.
15977 (gcc_cv_ld_dynamic_option): Define.
15978 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
15980 (HAVE_LD_STATIC_DYNAMIC): Update message.
15981 (LD_STATIC_OPTION): Define.
15982 (LD_DYNAMIC_OPTION): Define.
15983 * configure: Regenerate.
15984 * config.in: Regenerate.
15985 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
15986 HAVE_LD_STATIC_DYNAMIC]: Use them.
15988 2011-01-31 Nick Clifton <nickc@redhat.com>
15990 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
15991 registers inside interrupt handlers if the handler is not a leaf
15994 2011-01-31 Nick Clifton <nickc@redhat.com>
15996 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
15997 reg_renumber returning an INVALID_REGNUM.
15999 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
16002 * doc/install.texi: Document host options discarded when cross
16003 configuring target libraries.
16005 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
16008 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
16011 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
16013 (no_real_insns_p, schedule_block, set_priorities): Drop special
16014 treatment of boundary debug insns.
16015 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
16016 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
16017 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
16018 (BOUNDARY_DEBUG_INSN_P): Likewise.
16019 (SCHEDULE_DEBUG_INSN_P): Likewise.
16020 * sched-rgn.c (init_ready_list): Drop special treatment of
16021 boundary debug insns.
16022 * final.c (rest_of_clean-state): Clear notes' BB.
16024 2011-01-31 Alan Modra <amodra@gmail.com>
16026 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
16027 toc relative expressions as we do in print_operand_address.
16029 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
16031 * doc/extend.texi: Follow spelling conventions.
16032 * doc/invoke.texi: Fix a typo.
16034 2011-01-30 Joseph Myers <joseph@codesourcery.com>
16036 * config/hpux11.opt: New.
16037 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
16038 ia64*-*-hpux*): Use hpux11.opt.
16040 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
16042 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
16045 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
16047 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
16050 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
16052 * doc/install.texi (Binaries): Remove outdated reference for
16053 Motorola 68HC11/68HC12 downloads.
16055 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
16057 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
16060 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
16063 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
16066 2011-01-28 Ahmad Sharif <asharif@google.com>
16068 * value-prof.c (check_counter): Corrected error message.
16070 2011-01-29 Jie Zhang <jie@codesourcery.com>
16072 * config/arm/arm.c (arm_legitimize_reload_address): New.
16073 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
16074 arm_legitimize_reload_address.
16075 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
16077 2011-01-28 Ian Lance Taylor <iant@google.com>
16079 * godump.c (go_define): Ignore macros whose definitions include
16080 two adjacent operands.
16082 2011-01-28 Jakub Jelinek <jakub@redhat.com>
16085 * varasm.c (force_const_mem): Store copy of x in desc->constant
16086 instead of x itself.
16087 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
16088 itself into REG_EQUAL note.
16090 2011-01-28 Joseph Myers <joseph@codesourcery.com>
16092 * config/freebsd.opt (posix, rdynamic): New Driver options.
16094 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16096 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
16097 -Bstatic/-Bdynamic.
16098 * configure: Regenerate.
16100 2011-01-27 Joseph Myers <joseph@codesourcery.com>
16102 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
16103 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
16105 2011-01-27 Anatoly Sokolov <aesok@post.ru>
16107 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
16108 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
16109 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
16110 (s390_preferred_reload_class): Make static. Change return and
16111 'rclass' argument type to reg_class_t.
16113 2011-01-27 Jan Hubicka <jh@suse.cz>
16115 PR middle-end/46949
16116 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
16117 (process_function_and_variable_attributes): Check defined weakrefs.
16119 2011-01-27 Martin Jambor <mjambor@suse.cz>
16121 PR tree-optimization/47228
16122 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
16123 build_ref_for_offset.
16125 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16127 * config/spu/spu-elf.h (ASM_SPEC): Remove.
16129 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
16131 PR rtl-optimization/46856
16132 * postreload.c (reload_combine_recognize_const_pattern): Do not
16133 separate cc0 setter and user on cc0 targets.
16135 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
16138 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
16139 passed a VOID_TYPE expression, immediately emit an error and
16140 return error_mark_node.
16142 2011-01-26 Jeff Law <law@redhat.com>
16144 PR rtl-optimization/47464
16145 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
16146 rather than may_trap_p as needed.
16148 2011-01-26 DJ Delorie <dj@redhat.com>
16150 PR rtl-optimization/46878
16151 * combine.c (insn_a_feeds_b): Check for the implicit cc0
16152 setter/user dependency as well.
16154 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
16156 PR rtl-optimization/44469
16157 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
16158 after removing trivially dead basic blocks.
16160 2011-01-26 Joseph Myers <joseph@codesourcery.com>
16162 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
16163 * config/frv/frv.h (LINK_SPEC): Likewise.
16164 * config/i386/netware.h (LINK_SPEC): Likewise.
16165 * config/m68k/linux.h (ASM_SPEC): Likewise.
16166 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
16167 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
16168 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
16169 * config/sparc/linux.h (ASM_SPEC): Likewise.
16170 * config/sparc/linux64.h (ASM_SPEC): Likewise.
16171 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
16173 2011-01-26 Joseph Myers <joseph@codesourcery.com>
16175 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
16176 * config/frv/frv.h (ASM_SPEC): Likewise.
16177 * config/m68k/linux.h (ASM_SPEC): Likewise.
16178 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
16179 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
16180 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
16181 * config/sparc/linux.h (ASM_SPEC): Likewise.
16182 * config/sparc/linux64.h (ASM_SPEC): Likewise.
16183 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
16185 2011-01-26 Joseph Myers <joseph@codesourcery.com>
16187 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
16188 * config/frv/frv.h (LINK_SPEC): Likewise.
16189 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
16191 2011-01-26 Joseph Myers <joseph@codesourcery.com>
16193 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
16194 * config/frv/frv.h (ASM_SPEC): Likewise.
16195 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
16196 * config/m68k/linux.h (ASM_SPEC): Likewise.
16197 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
16198 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
16199 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
16200 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
16201 * config/sparc/linux.h (ASM_SPEC): Likewise.
16202 * config/sparc/linux64.h (ASM_SPEC): Likewise.
16203 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
16204 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
16206 2011-01-26 Steve Ellcey <sje@cup.hp.com>
16209 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
16211 (vec_extract_evenodd_help): Ditto.
16212 (vec_extract_evenv4hi): Ditto.
16213 (vec_extract_oddv4hi): Ditto.
16214 (vec_interleave_lowv2si): Ditto.
16215 (vec_interleave_highv2si): Ditto.
16216 (vec_extract_evenv2si): Ditto.
16217 (vec_extract_oddv2si: Ditto.
16218 (vec_pack_trunc_v2si): Ditto.
16220 2011-01-22 Jan Hubicka <jh@suse.cz>
16223 * cgraph.h (cgraph_local_info): New field can_change_signature.
16224 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
16225 signature can change.
16226 (ipcp_estimate_growth): Call sequence simplify only if calle signature
16228 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
16229 (cgraph_function_versioning): We can not change signature of functions
16230 that don't allow that.
16231 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
16232 (lto_input_node): Likewise.
16233 * ipa-inline.c (compute_inline_parameters): Compute
16234 local.can_change_signature.
16235 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
16236 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
16237 functions that can not change signature.
16238 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
16239 init_cumulative_args): Do not use local calling conventions
16240 for functions that can not change signature.
16242 2011-01-22 Jan Hubicka <jh@suse.cz>
16244 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
16246 2011-01-26 Richard Guenther <rguenther@suse.de>
16248 PR tree-optimization/47190
16249 * cgraphunit.c (process_common_attributes): New function.
16250 (process_function_and_variable_attributes): Use it.
16252 2011-01-26 Richard Guenther <rguenther@suse.de>
16255 * cgraphbuild.c (record_eh_tables): Record reference to personality
16258 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
16261 * sel-sched.c (moveup_expr): Don't let debug insns prevent
16262 non-debug insns from moving up.
16264 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
16267 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
16268 t-dlldir{,-x} fragment for build and add it to tmake_file.
16269 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
16270 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
16271 * config/i386/t-dlldir: New file.
16272 (SHLIB_DLLDIR): Define.
16273 * config/i386/t-dlldir-x: New file.
16274 (SHLIB_DLLDIR): Define.
16275 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
16276 (SHLIB_INSTALL): Use it.
16278 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
16281 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
16282 lower bound of the allowed Thumb-2 coprocessor load/store
16283 index range to -256. Add explaining comment.
16285 2011-01-25 Ian Lance Taylor <iant@google.com>
16287 * godump.c (go_define): Improve lexing of macro expansion to only
16288 accept expressions which match Go spec.
16290 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
16293 * tree.c (handle_dll_attribute): Handle it.
16294 * doc/extend.texi (@item dllexport): Mention it.
16295 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
16297 2011-01-25 Ian Lance Taylor <iant@google.com>
16299 PR tree-optimization/26854
16300 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
16301 (decl_jump_unsafe): Move higher in file, with no other change.
16302 (bind): Set has_jump_unsafe_decl if appropriate.
16303 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
16304 (check_earlier_gotos): Likewise.
16305 (c_check_switch_jump_warnings): Likewise.
16307 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
16309 * doc/invoke.texi (Warning Options): Add missing hyphen.
16310 (-fprofile-dir): Minor grammatical fixes.
16311 (-fbranch-probabilities): Likewise.
16313 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
16317 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
16319 (no_real_insns_p, schedule_block, set_priorities): Drop special
16320 treatment of boundary debug insns.
16321 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
16322 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
16323 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
16324 (BOUNDARY_DEBUG_INSN_P): Likewise.
16325 (SCHEDULE_DEBUG_INSN_P): Likewise.
16326 * sched-rgn.c (init_ready_list): Drop special treatment of
16327 boundary debug insns.
16328 * final.c (rest_of_clean-state): Clear notes' BB.
16330 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16332 * Makefile.in (LAMBDA_H): Removed.
16333 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
16334 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
16335 lambda-trans.o, and tree-loop-linear.o.
16336 (lto-symtab.o): Remove dependence on LAMBDA_H.
16337 (tree-loop-linear.o): Remove rule.
16338 (lambda-mat.o): Same.
16339 (lambda-trans.o): Same.
16340 (lambda-code.o): Same.
16341 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
16342 (tree-vect-slp.o): Same.
16343 * hwint.h (gcd): Moved here.
16344 (least_common_multiple): Same.
16345 * lambda-code.c: Removed.
16346 * lambda-mat.c: Removed.
16347 * lambda-trans.c: Removed.
16348 * lambda.h: Removed.
16349 * tree-loop-linear.c: Removed.
16350 * lto-symtab.c: Do not include lambda.h.
16351 * omega.c (gcd): Removed.
16352 * passes.c (init_optimization_passes): Remove pass_linear_transform.
16353 * tree-data-ref.c (print_lambda_vector): Moved here.
16354 (lambda_vector_copy): Same.
16355 (lambda_matrix_copy): Same.
16356 (lambda_matrix_id): Same.
16357 (lambda_vector_first_nz): Same.
16358 (lambda_matrix_row_add): Same.
16359 (lambda_matrix_row_exchange): Same.
16360 (lambda_vector_mult_const): Same.
16361 (lambda_vector_negate): Same.
16362 (lambda_matrix_row_negate): Same.
16363 (lambda_vector_equal): Same.
16364 (lambda_matrix_right_hermite): Same.
16365 * tree-data-ref.h: Do not include lambda.h.
16366 (lambda_vector): Moved here.
16367 (lambda_matrix): Same.
16368 (dependence_level): Same.
16369 (lambda_transform_legal_p): Removed declaration.
16370 (lambda_collect_parameters): Same.
16371 (lambda_compute_access_matrices): Same.
16372 (lambda_vector_gcd): Same.
16373 (lambda_vector_new): Same.
16374 (lambda_vector_clear): Same.
16375 (lambda_vector_lexico_pos): Same.
16376 (lambda_vector_zerop): Same.
16377 (lambda_matrix_new): Same.
16378 * tree-flow.h (least_common_multiple): Removed declaration.
16379 * tree-parloops.c (lambda_trans_matrix): Moved here.
16380 (LTM_MATRIX): Same.
16381 (LTM_ROWSIZE): Same.
16382 (LTM_COLSIZE): Same.
16383 (LTM_DENOMINATOR): Same.
16384 (lambda_trans_matrix_new): Same.
16385 (lambda_matrix_vector_mult): Same.
16386 (lambda_transform_legal_p): Same.
16387 * tree-pass.h (pass_linear_transform): Removed declaration.
16388 * tree-ssa-loop.c (tree_linear_transform): Removed.
16389 (gate_tree_linear_transform): Removed.
16390 (pass_linear_transform): Removed.
16391 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
16392 flag_loop_interchange.
16394 2011-01-25 Jakub Jelinek <jakub@redhat.com>
16396 PR tree-optimization/47265
16397 PR tree-optimization/47443
16398 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
16399 if name still has some uses.
16401 2011-01-25 Martin Jambor <mjambor@suse.cz>
16403 PR tree-optimization/47382
16404 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
16405 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
16407 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
16409 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
16410 sjlj_except_unwind_info.
16412 2011-01-25 Richard Guenther <rguenther@suse.de>
16414 PR tree-optimization/47426
16415 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
16416 visible functions results escape.
16418 2011-01-25 Jakub Jelinek <jakub@redhat.com>
16421 * config/arm/arm.c (any_sibcall_uses_r3): New function.
16422 (arm_get_frame_offsets): Use it.
16424 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16425 Jakub Jelinek <jakub@redhat.com>
16427 PR tree-optimization/47271
16428 * tree-if-conv.c (bb_postdominates_preds): New.
16429 (if_convertible_bb_p): Call bb_postdominates_preds.
16430 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
16431 (predicate_scalar_phi): Call bb_postdominates_preds.
16433 2011-01-25 Nick Clifton <nickc@redhat.com>
16435 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
16436 * config/rx/rx.c (rx_function_value): Likewise.
16437 (rx_promote_function_mode): Likewise.
16438 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
16439 in order to make it legitimate.
16440 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
16441 make sure that the first operand is the same as the result register.
16442 (addsi3_unspec): Delete.
16443 (subdi3): Do not accept immediate operands.
16444 (subdi3_internal): Likewise.
16446 2011-01-25 Jeff Law <law@redhat.com>
16448 PR rtl-optimization/37273
16449 * ira-costs.c (scan_one_insn): Detect constants living in memory and
16450 handle them like argument loads from stack slots. Do not double
16451 count memory for memory constants and argument loads from stack slots.
16453 2011-01-25 Jakub Jelinek <jakub@redhat.com>
16455 PR tree-optimization/47427
16456 PR tree-optimization/47428
16457 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
16458 coalesce if the new root var would be TREE_READONLY.
16460 2011-01-25 Richard Guenther <rguenther@suse.de>
16462 PR middle-end/47414
16463 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
16464 correct type for TBAA.
16466 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16468 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
16469 (close_phi_written_to_memory): Call for_each_index with
16470 dr_indices_valid_in_loop.
16472 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16474 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
16475 when it is initialized.
16477 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16479 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
16480 call to graphite_find_data_references_in_stmt.
16481 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
16482 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
16483 call to graphite_find_data_references_in_stmt.
16484 (analyze_drs_in_stmts): Same.
16485 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
16486 in which the scalar analysis of indices is performed.
16487 (create_data_ref): Same. Update call to dr_analyze_indices.
16488 (find_data_references_in_stmt): Update call to create_data_ref.
16489 (graphite_find_data_references_in_stmt): Same.
16490 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
16492 (create_data_ref): Same.
16493 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
16494 call to create_data_ref.
16496 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16498 * graphite-sese-to-poly.c (build_poly_scop): Move
16499 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
16501 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16503 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
16504 VAR_DECL, PARM_DECL, and RESULT_DECL.
16506 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16508 * graphite-dependences.c (reduction_dr_1): Allow several reductions
16509 in a reduction PBB.
16510 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
16511 that have already been marked as PBB_IS_REDUCTION.
16513 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16515 * graphite-scop-detection.c (same_close_phi_node): New.
16516 (remove_duplicate_close_phi): New.
16517 (make_close_phi_nodes_unique): New.
16518 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
16520 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16522 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
16523 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
16524 of both data references to be the same.
16526 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16528 * graphite-dependences.c (build_lexicographical_constraint): Remove
16529 the gdim parameter.
16530 (build_lexicographical_constraint): Adjust call to
16531 ppl_powerset_is_empty.
16532 (dependence_polyhedron): Same.
16533 (graphite_legal_transform_dr): Same.
16534 (graphite_carried_dependence_level_k): Same.
16535 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
16537 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
16539 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16541 * graphite-sese-to-poly.c
16542 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
16543 (close_phi_written_to_memory): New.
16544 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
16547 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16549 * doc/install.texi: Update the expected version number of PPL to 0.11.
16550 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
16551 #if PPL_VERSION_MINOR < 11.
16553 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16555 * graphite-dependences.c: Include graphite-cloog-util.h.
16556 (new_poly_ddr): Inlined into dependence_polyhedron.
16557 (free_poly_ddr): Moved close by new_poly_ddr.
16558 (dependence_polyhedron_1): Renamed dependence_polyhedron.
16559 Early return NULL when ppl_powerset_is_empty returns true.
16560 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
16561 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
16562 (graphite_legal_transform_dr): Call new_poly_ddr.
16563 (graphite_carried_dependence_level_k): Same.
16564 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
16565 (dot_transformed_deps_stmt_1): Removed.
16566 (dot_deps_stmt_1): Call dot_deps_stmt_2.
16567 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
16568 (dot_deps_1): Call dot_deps_2.
16569 * Makefile.in (graphite-dependences.o): Add missing dependence on
16570 graphite-cloog-util.h.
16572 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16574 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
16575 (build_lexicographical_constraint): Same.
16576 (dependence_polyhedron_1): Same.
16577 (graphite_legal_transform_dr): Same.
16578 (graphite_carried_dependence_level_k): Same.
16579 * graphite-ppl.c (ppl_powerset_is_empty): New.
16580 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
16581 * tree-data-ref.c (dump_data_reference): Print the basic block index.
16583 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16585 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
16586 the "a followed by b" relation and document it.
16588 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16590 * graphite-dependences.c (build_lexicographical_constraint): Stop the
16591 iteration when the bag of constraints is empty.
16593 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16595 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
16597 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16599 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
16600 nest and two loop depths as parameters.
16601 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
16602 lst_perfect_nestify.
16604 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16606 * graphite-dependences.c (print_pddr): Call
16607 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
16609 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16611 * graphite-ppl.c (debug_gmp_value): New.
16612 * graphite-ppl.h (debug_gmp_value): Declared.
16614 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
16616 * doc/install.texi: Document availability of cloog-0.16.
16618 2011-01-25 Vladimir Kargov <kargov@gmail.com>
16620 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
16621 invalid postdominance info.
16623 2011-01-24 Jan Hubicka <jh@suse.cz>
16626 * doc/extend.texi (weak pragma): Drop claim that it must
16627 appear before definition.
16628 * varasm.c (merge_weak, declare_weak): Only sanity check
16629 that DECL is not output at a time it is declared weak.
16631 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
16633 * machmode.def: Fixed comments.
16635 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
16637 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
16639 2011-01-24 Paul Koning <ni1d@arrl.net>
16641 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
16644 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
16647 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
16648 (block_info): Add scanned and prev.
16649 (move_or_delete_vzeroupper_2): Return if the basic block
16650 has been scanned and the upper 128bit state is unchanged
16651 from the last scan.
16652 (move_or_delete_vzeroupper_1): Return true if the exit
16654 (move_or_delete_vzeroupper): Visit basic blocks using the
16655 work-list based algorithm based on vt_find_locations in
16658 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
16660 2011-01-24 Nick Clifton <nickc@redhat.com>
16662 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
16663 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
16664 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
16665 then define __v850e1__.
16666 * doc/invoke.texi: Document -mv850es.
16668 2011-01-24 Richard Henderson <rth@redhat.com>
16670 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
16671 compound unordered comparisons.
16672 * config/rx/rx.c (rx_split_fp_compare): Remove.
16673 * config/rx/rx-protos.h: Update.
16674 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
16675 (cbranchsf4): Don't call rx_split_fp_compare.
16676 (*cbranchsf4): Use rx_split_cbranch.
16677 (*cmpsf): Don't accept "i" constraint.
16678 (*conditional_branch): Only valid after reload.
16679 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
16681 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
16684 * config/rs6000/altivec.md (vector constant splitters): Add
16685 support for creating vector single precision constants if -mvsx is
16686 used and we would create the constant using Altivec primitives.
16688 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
16689 Richard Sandiford <rdsandiford@googlemail.com>
16691 PR rtl-optimization/47166
16692 * reload1.c (emit_reload_insns): Disable the spill_reg_store
16693 mechanism for PRE_MODIFY and POST_MODIFY.
16694 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
16697 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
16699 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
16701 2011-01-22 Jan Hubicka <jh@suse.cz>
16704 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
16706 2011-01-22 Jan Hubicka <jh@suse.cz>
16708 PR tree-optimization/43884
16710 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
16711 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
16713 2011-01-22 Anatoly Sokolov <aesok@post.ru>
16715 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
16716 * config/s390/s390.c (s390_register_move_cost,
16717 s390_memory_move_cost): New.
16718 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
16720 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16722 PR middle-end/47401
16723 * except.c (sjlj_assign_call_site_values): Move setting the
16724 crtl->uses_eh_lsda flag to ...
16725 (sjlj_mark_call_sites): ... here.
16726 (sjlj_emit_function_enter): Support NULL dispatch label.
16727 (sjlj_build_landing_pads): In a function with no landing pads
16728 that still has must-not-throw regions, generate code to register
16729 a personality function with empty LSDA.
16731 2011-01-21 Richard Henderson <rth@redhat.com>
16733 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
16735 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
16737 * compare-elim.c: New file.
16738 * Makefile.in (OBJS-common): Add it.
16739 (compare-elim.o): New.
16740 * common.opt (fcompare-elim): New.
16741 * opts.c (default_options_table): Add OPT_fcompare_elim.
16742 * tree-pass.h (pass_compare_elim_after_reload): New.
16743 * passes.c (init_optimization_passes): Add it.
16744 * recog.h: Protect against re-inclusion.
16745 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
16746 * doc/invoke.texi (-fcompare-elim): Document it.
16747 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
16748 * doc/tm.texi: Rebuild.
16750 2011-01-22 Nick Clifton <nickc@redhat.com>
16752 * config/rx/rx.md (cstoresf4): Pass comparison operator to
16753 rx_split_fp_compare.
16755 2011-01-22 Nick Clifton <nickc@redhat.com>
16757 * config/rx/rx.md (UNSPEC_CONST): New.
16758 (deallocate_and_return): Wrap the amount popped off the stack in
16759 an UNSPEC_CONST in order to stop it being rejected by
16760 -mmax-constant-size.
16761 (pop_and_return): Add a "(return)" rtx.
16762 (call): Drop the immediate operand.
16763 (call_internal): Likewise.
16764 (call_value): Likewise.
16765 (call_value_internal): Likewise.
16766 (sibcall_internal): Likewise.
16767 (sibcall_value_internal): Likewise.
16768 (sibcall): Likewise. Generate an explicit call using
16770 (sibcall_value): Likewise.
16771 (mov<>): FAIL if a constant operand is not legitimate.
16772 (addsi3_unpsec): New pattern.
16774 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
16775 (ok_for_max_constant): New function.
16776 (gen_safe_add): New function.
16777 (rx_expand_prologue): Use gen_safe_add.
16778 (rx_expand_epilogue): Likewise.
16779 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
16782 2011-01-21 Jeff Law <law@redhat.com>
16784 PR tree-optimization/47053
16785 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
16786 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
16787 statements are deleted.
16788 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
16789 is nonempty, then purge dead edges and cleanup the CFG.
16791 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
16794 Temporarily revert:
16795 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
16797 * tree-dfa.c (create_var_ann): Mark variable as used.
16799 2011-01-21 Jakub Jelinek <jakub@redhat.com>
16801 PR middle-end/45566
16802 * except.c (convert_to_eh_region_ranges): Emit queued no-region
16803 notes from other section in hot/cold partitioning even if
16804 last_action is -3. Increment call_site_base.
16806 PR rtl-optimization/47366
16807 * fwprop.c (forward_propagate_into): Return bool. If
16808 any changes are made, -fnon-call-exceptions is used and
16809 REG_EH_REGION note is present, call purge_dead_edges
16810 and return true if it purged anything.
16811 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
16812 any EH edges were purged.
16814 2011-01-21 Jeff Law <law@redhat.com>
16816 PR rtl-optimization/41619
16817 * caller-save.c (setup_save_areas): Break out code to determine
16818 which hard regs are live across calls by examining the reload chains
16819 so that it is always used.
16820 Eliminate code which checked REG_N_CALLS_CROSSED.
16822 2011-01-21 Jakub Jelinek <jakub@redhat.com>
16824 PR tree-optimization/47355
16825 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
16826 NOP has non-debug uses beyond PHIs in new_bb.
16828 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
16831 * cfgexpand.c (account_used_vars_for_block): Only account vars
16832 that are annotated as used.
16833 (estimated_stack_frame_size): Don't set TREE_USED.
16834 * tree-dfa.c (create_var_ann): Mark variable as used.
16836 2011-01-21 Richard Guenther <rguenther@suse.de>
16838 PR middle-end/47395
16839 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
16841 2011-01-21 Richard Guenther <rguenther@suse.de>
16843 PR tree-optimization/47365
16844 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
16845 (vn_reference_lookup_pieces): Adjust.
16846 (vn_reference_lookup): Likewise.
16847 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
16848 (vn_reference_lookup_3): Only look through kills if in
16849 VN_WALKREWRITE mode.
16850 (vn_reference_lookup_pieces): Adjust.
16851 (vn_reference_lookup): Likewise.
16852 (visit_reference_op_load): Likewise.
16853 (visit_reference_op_store): Likewise.
16854 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
16855 (compute_avail): Likewise.
16856 (eliminate): Likewise.
16858 2011-01-21 Jakub Jelinek <jakub@redhat.com>
16860 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
16861 DECL_IGNORED_P non-reg vars if they are used.
16863 PR tree-optimization/47391
16864 * varpool.c (const_value_known_p): Return false if
16867 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
16870 * config/i386/i386.c (ix86_local_alignment): Handle
16871 case for va_list_type_node is nil.
16872 (ix86_canonical_va_list_type): Likewise.
16874 2011-01-21 Alan Modra <amodra@gmail.com>
16876 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
16877 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
16879 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16881 * config/arm/arm.md (define_attr type): Rename f_load
16882 and f_store to f_fpa_load and f_fpa_store. Update.
16883 (write_conflict): Deal with rename fallout.
16884 (*push_fp_multi): Likewise.
16885 * config/arm/fpa.md (f_load): Use f_fpa_load.
16886 (f_store): Use f_fpa_store.
16887 (*movsf_fpa): Likewise.
16888 (*movdf_fpa): Likewise.
16889 (*movxf_fpa): Likewise.
16890 (*thumb2_movsf_fpa): Likewise.
16891 (*thumb2_movdf_fpa): Likewise.
16892 (*thumb2_movxf_fpa): Likewise.
16893 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
16894 f_loadd and f_stored.
16895 (*thumb2_movdi_vfp): Likewise.
16896 (*thumb2_movsf_vfp): Fix attribute to f_loads.
16897 (*thumb2_movsi_vfp): Likewise.
16898 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
16899 Use f_loads instead of f_load.
16900 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
16902 2011-01-20 Anatoly Sokolov <aesok@post.ru>
16904 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
16905 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
16906 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
16907 (xtensa_mode_dependent_address_p): New function.
16908 (constantpool_address_p): Make static. Change return type to bool.
16909 Change argument type to const_rtx. Use CONST_INT_P predicate.
16911 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
16914 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
16916 2011-01-20 Jakub Jelinek <jakub@redhat.com>
16919 * cfgexpand.c (expand_debug_expr): Instead of generating
16920 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
16923 2011-01-20 Richard Guenther <rguenther@suse.de>
16925 PR middle-end/47370
16926 * tree-inline.c (remap_gimple_op_r): Recurse manually for
16927 the pointer operand of MEM_REFs.
16929 2011-01-20 Jakub Jelinek <jakub@redhat.com>
16931 PR tree-optimization/46130
16932 * ipa-split.c (consider_split): If return_bb contains non-virtual
16933 PHIs other than for retval or if split_function would not adjust it,
16936 2011-01-20 Richard Guenther <rguenther@suse.de>
16938 PR tree-optimization/47167
16939 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
16940 Revert previous change, only avoid enumeral type changes.
16942 2011-01-19 Mike Stump <mikestump@comcast.net>
16944 * doc/tm.texi.in (BRANCH_COST): Englishify.
16945 * doc/tm.texi (BRANCH_COST): Likewise.
16947 2011-01-19 Dodji Seketeli <dodji@redhat.com>
16950 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
16951 (gen_scheduled_generic_parms_dies): New functions.
16952 (gen_struct_or_union_type_die): Schedule template parameters DIEs
16953 generation for the end of CU compilation.
16954 (dwarf2out_finish): Generate template parameters DIEs here.
16956 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
16959 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
16960 debug bind stmt on merge edges.
16962 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
16966 * function.c (instantiate_expr): Instantiate incoming rtl of
16967 implicit arguments, and recurse on VALUE_EXPRs.
16968 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
16969 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
16971 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
16973 * c-parser.c (c_parser_for_statement): Initialize
16974 collection_expression.
16976 2011-01-19 Joseph Myers <joseph@codesourcery.com>
16978 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
16980 2011-01-19 Joseph Myers <joseph@codesourcery.com>
16982 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
16983 (LINK_SHLIB_SPEC): Don't use %(link_path).
16984 (SUBTARGET_EXTRA_SPECS): Remove link_path.
16986 2011-01-19 Joseph Myers <joseph@codesourcery.com>
16988 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
16989 (NO_SHARED_LIB_SUPPORT): Remove.
16990 (LINK_SHLIB_SPEC): Remove one conditional definition.
16992 2011-01-19 Joseph Myers <joseph@codesourcery.com>
16994 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
16996 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
16997 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
16998 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
16999 %{call_shared} and conditionals on these options not being passed.
17000 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
17003 2011-01-19 Jakub Jelinek <jakub@redhat.com>
17005 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
17008 * ipa-split.c: Spelling fixes.
17010 2011-01-19 Richard Henderson <rth@redhat.com>
17012 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
17013 (*mulsi3): Likewise.
17015 * longlong.h [__mn10300__] (count_leading_zeros): New.
17016 [__mn10300__] (umul_ppmm, smul_ppmm): New.
17017 [__mn10300__] (add_ssaaaa, subddmmss): New.
17018 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
17019 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
17021 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17023 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
17025 2011-01-19 Richard Henderson <rth@redhat.com>
17027 * config/mn10300/mn10300.md (addsi3_flags): New.
17028 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
17029 (subsi3_flags, subc_internal, subdi3): New.
17030 (subdi3_internal, *subdi3_degenerate): New.
17031 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
17033 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
17034 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
17035 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
17036 * config/mn10300/mn10300-protos.h: Update.
17037 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
17038 (return_ret): Likewise. Rename from return_internal_regs.
17039 (return_internal): Remove.
17041 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
17042 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
17043 (mn10300_legitimate_constant_p): Likewise.
17044 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
17045 (mn10300_frame_size): New.
17046 (mn10300_expand_prologue): Use it.
17047 (mn10300_expand_epilogue): Likewise.
17048 (mn10300_initial_offset): Likewise.
17049 * config/mn10300/mn10300-protos.h: Update.
17050 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
17051 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
17052 (prologue, epilogue, return_internal): Tidy output code.
17053 (mn10300_store_multiple_operation, return): Likewise.
17054 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
17055 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
17056 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
17057 (load_pic, am33_load_pic): New.
17058 (mn10300_load_pic0, mn10300_load_pic1): New.
17060 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
17061 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
17062 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
17063 (cc_flags_for_mode, cc_flags_for_code): New.
17064 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
17065 overflow flag is not valid. Validate that the flags we need
17066 for the comparison are valid.
17067 (mn10300_output_cmp): Remove.
17068 (mn10300_output_add): New.
17069 (mn10300_select_cc_mode): Use cc_flags_for_code.
17070 (mn10300_split_cbranch): New.
17071 (mn10300_match_ccmode): New.
17072 (mn10300_split_and_operand_count): New.
17073 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
17075 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
17076 (addsi3): ... here. Use mn10300_output_add.
17077 (*addsi3_flags): New.
17078 (*am33_subsi3, *mn10300_subsi3): Merge...
17079 (subsi3): ... here. Use attribute isa.
17080 (*subsi3_flags): New.
17081 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
17083 (*am33_andsi3, *mn10300_andsi3): Merge...
17084 (andsi3): ... here.
17085 (*andsi3_flags): New.
17086 (andsi3 splitters): New.
17087 (*am33_iorsi3, *mn10300_iorsi3): Merge...
17088 (iorsi3): ... here.
17089 (*iorsi3_flags): New.
17090 (*am33_xorsi3, *mn10300_xorsi3): Merge...
17091 (xorsi3): ... here.
17092 (*xorsi3_flags): New.
17093 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
17094 (one_cmplsi2): ... here.
17095 (*one_cmplsi2_flags): New.
17096 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
17097 instead of "dax" in constraints. Use mn10300_split_cbranch.
17098 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
17099 use matching constraints to eliminate a self-comparison.
17100 (*integer_conditional_branch): Rename from integer_conditional_branch.
17101 Use int_mode_flags to match CC_REG.
17102 (*cbranchsi4_btst, *btstsi): New.
17103 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
17104 mn10300_split_cbranch.
17105 (*am33_cmpsf): Rename from am33_cmpsf.
17106 (*float_conditional_branch): Rename from float_conditional_branch.
17107 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
17108 (zero_extendqisi2): ... here.
17109 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
17110 (zero_extendhisi2): ... here.
17111 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
17112 (extendqisi2): ... here.
17113 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
17114 (extendhisi2): ... here.
17115 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
17116 (ashlsi3): ... here.
17117 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
17118 (lshrsi3): ... here.
17119 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
17120 (ashrsi3): ... here.
17121 (consecutive add peephole): Remove.
17122 * config/mn10300/predicates.md (label_ref_operand): New.
17123 (int_mode_flags): New.
17124 (CCZN_comparison_operator): New.
17126 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
17127 (throughput_42_latency_43): New reservation.
17128 (mulsidi3, umulsidi3): New expanders.
17129 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
17130 the MDR register to allocation; separately allocate the low and
17131 high parts of the DImode result.
17132 (umulsidi3_internal): Similarly.
17133 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
17134 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
17135 (udivsi3, umodsi3): Remove.
17136 (udivmodsi4, divmodsi4): New expanders.
17137 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
17138 (*divmodsi4): Simiarly.
17139 (ext_internal): New.
17141 * config/mn10300/constraints.md ("z"): New constraint.
17142 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
17143 (FIXED_REGISTERS): Don't fix MDR.
17144 (CALL_USED_REGSITERS): Reformat nicely.
17145 (REG_ALLOC_ORDER): Add MDR.
17146 (enum regclass): Add MDR_REGS.
17147 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
17148 (IRA_COVER_CLASSES): Add MDR_REGS.
17149 (REGNO_REG_CLASS): Handle MDR_REG.
17150 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
17151 (mn10300_register_move_cost): Likewise.
17152 * config/mn10300/mn10300.md (MDR_REG): New.
17153 (*movsi_internal): Handle moves to/from MDR_REGS.
17155 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
17157 (mn10300_secondary_reload): Tidy combination reload classes.
17158 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
17159 addresses for AM33. Allow symbolic offsets for reg+imm.
17160 (mn10300_regno_in_class_p): New.
17161 (mn10300_legitimize_reload_address): New.
17162 * config/mn10300/mn10300.h (enum reg_class): Remove
17163 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
17164 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
17165 SP_OR_GENERAL_REGS.
17166 (REG_CLASS_NAMES): Update to match.
17167 (REG_CLASS_CONTENTS): Likewise.
17168 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
17169 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
17170 (REGNO_IN_RANGE_P): Remove.
17171 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
17172 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
17173 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
17174 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
17175 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
17176 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
17177 (REGNO_GENERAL_P): New.
17178 (HAVE_POST_MODIFY_DISP): New.
17179 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
17180 (LEGITIMIZE_RELOAD_ADDRESS): New.
17181 * config/mn10300/mn10300-protos.h: Update.
17183 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
17184 DATA_REGS for AM33 stack-pointer destination.
17185 (mn10300_preferred_output_reload_class): Likewise.
17186 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
17187 into a form appropriate for ...
17188 (TARGET_SECONDARY_RELOAD): New.
17189 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
17190 * config/mn10300/mn10300-protos.h: Update.
17191 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
17192 reload_insi; use the "A" constraint for the scratch; handle AM33
17193 moves of sp to non-address registers.
17195 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
17196 (*movqi_internal): ... here.
17197 (*am33_movhi, *mn10300_movhi): Merge into...
17198 (*movhi_internal): ... here.
17199 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
17200 as the source/destination of moves from/to SP.
17201 (movsf): Only allow for AM33-2.
17202 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
17203 any integer constant constraint. Only allow for AM33-2. Tidy
17204 all of the alternative outputs.
17205 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
17206 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
17208 (udivsi3, umodsi3): New patterns for MN103 only.
17210 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
17212 * doc/tm.texi.in: Spell out that a lack of register class unions
17214 * doc/tm.texi: Regenerate.
17216 2011-01-19 Jakub Jelinek <jakub@redhat.com>
17218 PR rtl-optimization/47337
17219 * dce.c (check_argument_store): New function.
17220 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
17222 PR tree-optimization/47290
17223 * tree-eh.c (infinite_empty_loop_p): New function.
17224 (cleanup_empty_eh): Use it.
17226 2011-01-18 Steve Ellcey <sje@cup.hp.com>
17229 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
17230 (a64_expand_widen_sum): Ditto.
17231 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
17232 (vec_extract_evenodd_help): Ditto.
17233 (vec_extract_evenv4hi): Ditto.
17234 (vec_extract_oddv4hi): Ditto.
17235 (vec_extract_evenv2si): Ditto.
17236 (vec_extract_oddv2si): Ditto.
17237 (vec_extract_evenv2sf): Ditto.
17238 (vec_extract_oddv2sf): Ditto.
17239 (vec_pack_trunc_v4hi: Ditto.
17240 (vec_pack_trunc_v2si): Ditto.
17241 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
17242 (vec_interleave_highv8qi): Ditto.
17244 (vec_extract_oddv8qi): Ditto.
17245 (vec_interleave_lowv4hi): Ditto.
17246 (vec_interleave_highv4hi): Ditto.
17247 (vec_interleave_lowv2si): Ditto.
17248 (vec_interleave_highv2si): Ditto.
17250 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17252 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
17253 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
17254 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
17255 (pa_c_mode_for_suffix): New.
17256 (TARGET_EXPAND_BUILTIN): Define.
17257 (TARGET_C_MODE_FOR_SUFFIX): Define.
17258 (pa_builtins): Define.
17259 (pa_init_builtins): Register __float128 type and init new support
17261 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
17262 * config/pa/quadlib.c (_U_Qfcopysign): New.
17264 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
17266 PR middle-end/46894
17267 * explow.c (allocate_dynamic_stack_space): Do not assume more than
17268 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
17271 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17273 PR tree-optimization/47179
17274 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
17275 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
17277 2011-01-18 Richard Guenther <rguenther@suse.de>
17279 PR rtl-optimization/47216
17280 * emit-rtl.c: Include tree-flow.h.
17281 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
17282 of replicating it with different semantics.
17283 * Makefile.in (emit-rtl.o): Adjust.
17285 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17287 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
17288 (cortex_a9_dp): Handle neon types correctly.
17290 2011-01-18 Jakub Jelinek <jakub@redhat.com>
17292 PR rtl-optimization/47299
17293 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
17294 subtarget. Use normal multiplication if both operands are constants.
17295 * expmed.c (expand_widening_mult): Don't try to optimize constant
17296 multiplication if op0 has VOIDmode. Convert op1 constant to mode
17299 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17301 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
17302 spacing after 'e.g.', typos, comma, hyphenation.
17304 2011-01-17 Richard Henderson <rth@redhat.com>
17306 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
17307 (rx_restricted_mem_operand): New.
17308 (rx_shift_operand): Use register_operand.
17309 (rx_source_operand, rx_compare_operand): Likewise.
17310 * config/rx/rx.md (addsi3_flags): New expander.
17311 (adddi3): Rewrite as expander.
17312 (adc_internal, *adc_flags, adddi3_internal): New patterns.
17313 (subsi3_flags): New expander.
17314 (subdi3): Rewrite as expander.
17315 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
17317 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
17318 (rx_init_builtins): Remove sat builtin.
17319 (rx_expand_builtin): Likewise.
17320 * config/rx/rx.md (ssaddsi3): New.
17321 (*sat): Rename from sat. Represent the CC_REG input.
17323 * config/rx/predicates.md (rshift_operator): New.
17324 * config/rx/rx.c (rx_expand_insv): Remove.
17325 * config/rx/rx-protos.h: Update.
17326 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
17327 operand to the canonical position.
17328 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
17329 (*bitclr, *bitclr_in_memory): Similarly.
17330 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
17331 (insv): Retain the zero_extract in the expansion.
17333 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
17334 (bswaphi2, bitinvert, revw): Likewise.
17336 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
17337 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
17338 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
17339 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
17340 (bitset, bitset_in_memory): Likewise.
17341 (bitinvert, bitinvert_in_memory): Likewise.
17342 (bitclr, bitclr_in_memory): Likewise.
17343 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
17344 (rx_strend, rx_cmpstrn): Likewise.
17345 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
17346 (bitop peep2 patterns): Remove.
17348 * config/rx/rx.c (rx_match_ccmode): New.
17349 * config/rx/rx-protos.h: Update.
17350 * config/rx/rx.md (abssi2): Clobber, don't set flags.
17351 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
17352 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
17353 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
17354 (fix_truncsfsi2, floatsisf2): Likewise.
17355 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
17356 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
17357 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
17358 (*subsi3_flags, *xorsi3_flags): New.
17360 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
17362 * config/rx/rx.c (rx_print_operand): Remove workaround for
17363 unsplit comparison operations.
17365 * config/rx/rx.md (movsicc): Split after reload.
17366 (*movsicc): Merge *movsieq and *movsine via match_operator.
17367 (*stcc): New pattern.
17369 * config/rx/rx.c (rx_float_compare_mode): Remove.
17370 * config/rx/rx.h (rx_float_compare_mode): Remove.
17371 * config/rx/rx.md (cstoresi4): Split after reload.
17372 (*sccc): New pattern.
17374 * config/rx/predicates.md (label_ref_operand): New.
17375 (rx_z_comparison_operator): New.
17376 (rx_zs_comparison_operator): New.
17377 (rx_fp_comparison_operator): New.
17378 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
17379 Validate that the flags are set properly for the comparison.
17380 (rx_gen_cond_branch_template): Remove.
17381 (rx_cc_modes_compatible): Remove.
17382 (mode_from_flags): New.
17383 (flags_from_code): Rename from flags_needed_for_conditional.
17384 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
17385 (rx_select_cc_mode): Likewise.
17386 (rx_split_fp_compare): New.
17387 (rx_split_cbranch): New.
17388 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
17389 (*cbranchsi4): Use match_operator and rx_split_cbranch.
17390 (*cbranchsf4): Similarly.
17391 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
17392 match_operator and rx_split_cbranch.
17393 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
17394 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
17395 (*cmpsi): Rename from cmpsi.
17396 (*tstsi): Rename from tstsi.
17397 (*cmpsf): Rename from cmpsf; use CC_Fmode.
17398 (*conditional_branch): Rename from conditional_branch.
17399 (*reveresed_conditional_branch): Remove.
17400 (b<code>): Remove expander.
17401 * config/rx/rx-protos.h: Update.
17403 * config/rx/rx.c (rx_compare_redundant): Remove.
17404 * config/rx/rx.md (cmpsi): Don't use it.
17405 * config/rx/rx-protos.h: Update.
17407 * config/rx/rx-modes.def (CC_F): New mode.
17408 * config/rx/rx.c (rx_select_cc_mode): New.
17409 * config/rx/rx.h (SELECT_CC_MODE): Use it.
17410 * config/rx/rx-protos.h: Update.
17412 2011-01-17 Richard Henderson <rth@redhat.com>
17414 * except.c (dump_eh_tree): Fix stray ; after for statement.
17416 2011-01-17 Richard Guenther <rguenther@suse.de>
17418 PR tree-optimization/47313
17419 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
17420 handling before copying the body. Properly deal with
17421 by-reference result in SSA form.
17423 2011-01-17 Ian Lance Taylor <iant@google.com>
17426 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
17427 (struct_value_alias_set): Don't define.
17428 (sparc_option_override): Don't set sparc_sr_alias_set and
17429 struct_value_alias_set.
17430 (save_or_restore_regs): Use gen_frame_mem rather than calling
17432 (sparc_struct_value_rtx): Likewise.
17434 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
17437 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
17438 (_mm_maskstore_pd): Likewise.
17439 (_mm_maskload_ps): Likewise.
17440 (_mm_maskstore_ps): Likewise.
17441 (_mm256_maskload_pd): Change mask to __m256i.
17442 (_mm256_maskstore_pd): Likewise.
17443 (_mm256_maskload_ps): Likewise.
17444 (_mm256_maskstore_ps): Likewise.
17446 * config/i386/i386-builtin-types.def: Updated.
17447 (ix86_expand_special_args_builtin): Likewise.
17449 * config/i386/i386.c (bdesc_special_args): Update
17450 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
17451 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
17452 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
17453 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
17455 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
17456 Use <avxpermvecmode> on mask register.
17457 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
17459 2011-01-17 Olivier Hainque <hainque@adacore.com>
17460 Michael Haubenwallner <michael.haubenwallner@salomon.at>
17461 Eric Botcazou <ebotcazou@adacore.com>
17464 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
17465 if <= USHRT_MAX in 32-bit mode.
17467 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17469 * doc/install.texi (Configuration, Specific): Wrap long
17470 lines in examples. Allow line wrapping in long options
17471 and URLs where beneficial for PDF output.
17473 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
17475 * config/mips/mips.c (mips_classify_symbol): Don't return
17476 SYMBOL_PC_RELATIVE for nonlocal labels.
17478 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
17480 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
17482 2011-01-15 Jan Hubicka <jh@suse.cz>
17484 PR tree-optimization/47276
17485 * ipa.c (function_and_variable_visibility): Do not try to mark alias
17486 declarations as needed.
17488 2011-01-15 Martin Jambor <mjambor@suse.cz>
17490 * common.opt (fdevirtualize): New flag.
17491 * doc/invoke.texi (Option Summary): Document it.
17492 * opts.c (default_options_table): Add devirtualize flag.
17493 * ipa-prop.c (detect_type_change): Return immediately if
17494 devirtualize flag is not set.
17495 (detect_type_change_ssa): Likewise.
17496 (compute_known_type_jump_func): Likewise.
17497 (ipa_analyze_virtual_call_uses): Likewise.
17499 2011-01-14 Martin Jambor <mjambor@suse.cz>
17501 PR tree-optimization/45934
17502 PR tree-optimization/46302
17503 * ipa-prop.c (type_change_info): New type.
17504 (stmt_may_be_vtbl_ptr_store): New function.
17505 (check_stmt_for_type_change): Likewise.
17506 (detect_type_change): Likewise.
17507 (detect_type_change_ssa): Likewise.
17508 (compute_complex_assign_jump_func): Check for dynamic type change.
17509 (compute_complex_ancestor_jump_func): Likewise.
17510 (compute_known_type_jump_func): Likewise.
17511 (compute_scalar_jump_functions): Likewise.
17512 (ipa_analyze_virtual_call_uses): Likewise.
17513 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
17515 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17517 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
17518 * config/i386/i386.opt (msse5): New Alias.
17520 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17522 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
17523 * config/sparc/linux64.h (CC1_SPEC): Likewise.
17524 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
17525 * config/sparc/sparc.h (CC1_SPEC): Likewise.
17527 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17529 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
17531 * config/sparc/linux64.h (CC1_SPEC): Likewise.
17532 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
17533 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
17534 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
17536 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
17538 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17540 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
17542 2011-01-14 Mike Stump <mikestump@comcast.net>
17544 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
17545 * config/fr30/fr30.md: Likweise
17546 (movsi_push): Likewise.
17547 (movsi_pop): Likewise.
17548 (enter_func): Likewise.
17549 * config/moxie/moxie.md (movsi_push): Likewise.
17550 (movsi_pop): Likewise.
17552 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17554 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
17555 %{no_archive} %{exact_version}.
17556 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
17557 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
17558 %{no_archive} %{exact_version}.
17559 * config/mips/openbsd.h (LINK_SPEC): Likewise.
17560 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
17561 * config/mips/vxworks.h: Likewise.
17563 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17565 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
17567 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17569 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
17570 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
17572 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17574 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
17577 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17579 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
17581 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
17582 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
17584 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
17585 Don't handle -shlib.
17587 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17589 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
17590 (CC1_SPEC): Don't handle -profile.
17592 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17594 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
17595 * config/mips/mips.h (CC1_SPEC): Likewise.
17597 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17599 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
17600 * config/mips/mips.h (CC1_SPEC): Likewise.
17602 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17604 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
17605 * config/m32r/linux.h (LINK_SPEC): Likewise.
17606 * config/mips/linux.h (LINK_SPEC): Likewise.
17607 * config/mips/linux64.h (LINK_SPEC): Likewise.
17608 * config/sparc/linux.h (LINK_SPEC): Likewise.
17609 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
17610 LINK_SPEC): Likewise.
17611 * config/xtensa/linux.h (LINK_SPEC): Likewise.
17613 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17615 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
17617 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
17619 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17621 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
17622 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
17624 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17626 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
17628 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17630 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
17631 supports -Bstatic/-Bdynamic.
17632 * configure: Regenerate.
17634 2011-01-14 Jan Hubicka <jh@suse.cz>
17635 Jack Howarth <howarth@bromo.med.uc.edu>
17638 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
17639 when checking debug_info_level. Test write_symbols instead of
17640 debug_hooks->var_location when setting flag_var_tracking_uninit.
17642 2011-01-14 Richard Guenther <rguenther@suse.de>
17644 PR tree-optimization/47179
17645 * target.def (ref_may_alias_errno): New target hook.
17646 * targhooks.h (default_ref_may_alias_errno): Declare.
17647 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
17648 (default_ref_may_alias_errno): New function.
17649 * target.h (struct ao_ref_s): Declare.
17650 * tree-ssa-alias.c: Include target.h.
17651 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
17652 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
17653 (targhooks.o): Likewise.
17654 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
17655 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
17657 2011-01-14 Richard Guenther <rguenther@suse.de>
17659 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
17661 2011-01-14 Richard Guenther <rguenther@suse.de>
17663 PR tree-optimization/47280
17664 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
17665 return CFG changes.
17666 (tree_ssa_forward_propagate_single_use_vars): Deal with
17667 CFG changes from associate_plusminus.
17669 2011-01-14 Richard Guenther <rguenther@suse.de>
17671 PR middle-end/47281
17673 2011-01-11 Richard Guenther <rguenther@suse.de>
17675 PR tree-optimization/46076
17676 * tree-ssa.c (useless_type_conversion_p): Conversions from
17677 unprototyped to empty argument list function types are useless.
17679 2011-01-14 Richard Guenther <rguenther@suse.de>
17681 PR tree-optimization/47286
17682 * tree-ssa-structalias.c (new_var_info): Register variables are global.
17684 2011-01-14 Martin Jambor <mjambor@suse.cz>
17686 PR middle-end/46823
17687 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
17689 2011-01-13 Anatoly Sokolov <aesok@post.ru>
17691 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
17692 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
17693 * config/xtensa/xtensa.c (xtensa_libcall_value,
17694 xtensa_function_value_regno_p): New functions.
17695 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
17697 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
17700 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
17702 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
17703 New function prototype.
17704 * config/i386/winnt.c (i386_pe_assemble_visibility):
17705 Warn only if attribute was specified by user.
17707 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
17710 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
17712 (floatunsdidf2_fcfidu): Ditto.
17714 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17716 * config/s390/s390.c (print_operand_address): Replace 'error' with
17717 'output_operand_lossage'.
17718 (print_operand): Likewise.
17720 2011-01-13 Jeff Law <law@redhat.com>
17722 PR rtl-optimization/39077
17723 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
17724 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
17725 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
17726 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
17727 * gcse.c (prune_insertions_deletions): New function.
17728 (compute_pre_data): Use it.
17730 2011-01-13 Dodji Seketeli <dodji@redhat.com>
17733 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
17735 (prune_unused_types_mark): Use it.
17737 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
17739 PR rtl-optimization/45352
17740 * sel-sched.c: Update copyright years.
17741 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
17742 in the advancing loop when we have issued issue_rate insns.
17744 2011-01-12 Richard Henderson <rth@redhat.com>
17746 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
17747 (TARGET_MD_ASM_CLOBBERS): New.
17749 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
17750 (TARGET_DELEGITIMIZE_ADDRESS): New.
17752 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
17753 (clzsi2, *bsch): New patterns.
17755 * config/mn10300/mn10300.md (INT): New mode iterator.
17756 (*mov<INT>_clr): New pattern, and peep2 to generate it.
17758 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
17759 flag_split_wide_types.
17761 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
17762 (mn10300_trampoline_init): Rewrite without a template, an immediate
17763 load and a direct branch.
17764 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
17766 2011-01-12 Anatoly Sokolov <aesok@post.ru>
17768 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
17769 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
17770 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
17771 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
17773 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
17776 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
17779 2011-01-12 Jan Hubicka <jh@suse.cz>
17782 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
17783 (PLUGIN_COND_CLOSE): New macro.
17784 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
17786 2011-01-12 Richard Guenther <rguenther@suse.de>
17789 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
17790 register variables in a MEM_REF.
17792 2011-01-12 Joseph Myers <joseph@codesourcery.com>
17794 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
17795 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
17796 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
17797 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
17798 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
17799 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
17800 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
17801 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
17802 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
17803 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
17804 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
17805 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
17806 * config/gnu-user.h: New. Copied from linux.h.
17807 (LINUX_TARGET_STARTFILE_SPEC): Rename to
17808 GNU_USER_TARGET_STARTFILE_SPEC.
17809 (LINUX_TARGET_ENDFILE_SPEC): Rename to
17810 GNU_USER_TARGET_ENDFILE_SPEC.
17811 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
17812 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
17813 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
17814 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
17815 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
17816 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
17817 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
17818 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
17819 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
17820 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
17821 * config/arm/linux-eabi.h (CC1_SPEC): Use
17822 GNU_USER_TARGET_CC1_SPEC.
17823 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
17824 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
17825 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
17826 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
17827 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
17828 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
17829 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
17830 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
17832 2011-01-12 Richard Guenther <rguenther@suse.de>
17835 * doc/invoke.texi (ffast-math): Document it is turned on
17838 2011-01-12 Jan Hubicka <jh@suse.cz>
17840 PR tree-optimization/47233
17841 * opts.c (common_handle_option): Disable ipa-reference with profile
17844 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
17846 * c-parser.c (c_parser_objc_at_property_declaration): Improved
17849 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
17851 * c-parser.c (c_lex_one_token): Updated and reindented some
17852 comments. No changes in code.
17854 2011-01-11 Ian Lance Taylor <iant@google.com>
17856 * godump.c (go_output_var): Don't output the variable if there is
17857 already a type with the same name.
17859 2011-01-11 Ian Lance Taylor <iant@google.com>
17861 * godump.c (go_format_type): Don't generate float80.
17863 2011-01-11 Richard Henderson <rth@redhat.com>
17865 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
17866 declaration. Rewrite for both speed and size.
17867 (mn10300_address_cost_1): Remove.
17868 (mn10300_register_move_cost): New.
17869 (mn10300_memory_move_cost): New.
17870 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
17871 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
17872 extensions, shifts, BSWAP, CLZ.
17873 (mn10300_wide_const_load_uses_clr): Remove.
17874 (TARGET_REGISTER_MOVE_COST): New.
17875 (TARGET_MEMORY_MOVE_COST): New.
17876 * config/mn10300/mn10300-protos.h: Update.
17877 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
17879 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
17880 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
17881 * config/mn10300/mn10300-protos.h: Update.
17882 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
17883 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
17884 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
17885 (*test_int_bitfield, *test_byte_bitfield): Remove.
17886 (*bit_test, *subreg_bit_test): Remove.
17887 * config/mn10300/predicates.md (const_8bit_operand): Remove.
17889 * config/mn10300/constraints.md ("c"): Rename from "A".
17890 ("A", "D"): New constraint letters.
17891 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
17892 (fmssf4, fnmasf4, fnmssf4): Likewise.
17894 * config/mn10300/mn10300.md (isa): New attribute.
17895 (enabled): New attribute.
17897 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
17898 (abssf2, negsf2): Define only for hardware fp.
17899 (sqrtsf2): Reformat.
17900 (addsf3, subsf3, mulsf3): Merge expander and insn.
17902 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
17903 (DEBUGGER_AUTO_OFFSET): Remove.
17904 (DEBUGGER_ARG_OFFSET): Remove.
17906 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
17907 Emit register stores with the same offsets as the hardware.
17908 (mn10300_store_multiple_operation): Don't check that the register
17909 save offsets are monotonic.
17910 * config/mn10300/mn10300-protos.h: Update.
17912 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
17914 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
17915 in terms of the value on the stack, not the MDR register.
17917 2011-01-11 Jan Hubicka <jh@suse.cz>
17921 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
17922 (symbol_alias_set_destroy, symbol_alias_set_contains,
17923 propagate_aliases_backward): Declare.
17924 * lto-streamer-out.c (struct sets): New sturcture.
17925 (trivally_defined_alias): New function.
17926 (output_alias_pair_p): Rewrite.
17927 (output_unreferenced_globals): Fix output of alias pairs.
17928 (produce_symtab): Likewise.
17929 * ipa.c (function_and_variable_visibility): Set weak alias destination
17931 * varasm.c (symbol_alias_set_t): Remove.
17932 (symbol_alias_set_destroy): Export.
17933 (propagate_aliases_forward, propagate_aliases_backward): New functions
17935 (compute_visible_aliases): ... this one; remove.
17936 (trivially_visible_alias): New
17937 (trivially_defined_alias): New.
17938 (remove_unreachable_alias_pairs): Rewrite.
17939 (finish_aliases_1): Reorganize code checking if alias is defined.
17940 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
17943 2011-01-11 Richard Guenther <rguenther@suse.de>
17945 PR tree-optimization/46076
17946 * tree-ssa.c (useless_type_conversion_p): Conversions from
17947 unprototyped to empty argument list function types are useless.
17949 2011-01-11 Richard Guenther <rguenther@suse.de>
17951 PR middle-end/45235
17952 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
17953 volatile MEMs as MEM_READONLY_P.
17955 2011-01-11 Richard Guenther <rguenther@suse.de>
17957 PR tree-optimization/47239
17958 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
17960 2011-01-11 Jeff Law <law@redhat.com>
17962 PR tree-optimization/47086
17963 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
17964 IVs from statements that might throw.
17966 2011-01-10 Jan Hubicka <jh@suse.cz>
17969 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
17971 2011-01-10 Jan Hubicka <jh@suse.cz>
17974 * profile.c (read_profile_edge_counts): Ignore profile inconistency
17975 when correcting profile.
17977 2011-01-10 Jan Hubicka <jh@suse.cz>
17980 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
17981 DECL_FINI_PRIORITY.
17982 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
17983 Restore DECL_FINI_PRIORITY.
17985 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17987 * doc/gimple.texi: Fix quoting of multi-word return values in
17988 @deftypefn statements. Ensure presence of return value. Wrap
17989 overlong @deftypefn lines.
17990 (is_gimple_operand, is_gimple_min_invariant_address): Remove
17991 descriptions of removed functions.
17992 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
17993 of multi-word return value in @deftypefn statement.
17995 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17997 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
17998 (Conditional Expressions, Logical Operators)
17999 (Statement and operand traversals): Do not indent smallexample
18000 code. Fix duplicate function argument in example.
18002 2011-01-10 Jeff Law <law@redhat.com>
18004 PR tree-optimization/47141
18005 * ipa-split.c (split_function): Handle case where we are
18006 returning a value and the return block has a virtual operand phi.
18008 2011-01-10 Jan Hubicka <jh@suse.cz>
18010 PR tree-optimization/47234
18011 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
18012 (pass_feedback_split_functions): Declare.
18013 * passes.c (init_optimization_passes): Add ipa-split as subpass of
18015 * ipa-split.c (gate_split_functions): Update comments; disable
18016 split-functions for profile_arc_flag and branch_probabilities.
18017 (gate_feedback_split_functions): New function.
18018 (execute_feedback_split_functions): New function.
18019 (pass_feedback_split_functions): New global var.
18021 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
18024 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
18025 calling gimple_call_set_cannot_inline.
18027 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
18029 * config/darwin-sections.def: Remove unused section.
18031 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
18034 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
18036 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
18039 * c-parser.c (c_parser_declaration_or_fndef): Improved
18042 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
18044 * config/i386/winnt.c (i386_pe_start_function): Make sure
18045 to switch back to function's section.
18047 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
18051 * plugin.c: Move include of dlfcn.h from here...
18052 * system.h: ... to here.
18054 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18056 * doc/cpp.texi (C++ Named Operators): Fix markup for header
18058 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
18059 two extra empty pages in PDF output.
18061 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
18064 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
18065 for error recovery purposes behave as if it was not specified so
18066 that the default type is usd.
18068 2011-01-07 Jan Hubicka <jh@suse.cz>
18070 PR tree-optmization/46469
18071 * ipa.c (function_and_variable_visibility): Clear needed flags on
18072 nodes with external decls; handle weakrefs merging correctly.
18074 2011-01-07 Joseph Myers <joseph@codesourcery.com>
18076 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
18079 2011-01-07 Jan Hubicka <jh@suse.cz>
18081 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
18082 and no longer claim that gold is required for linker plugin.
18083 * configure: Regenerate.
18084 * gcc.c (PLUGIN_COND): New macro.
18085 (LINK_COMMAND_SPEC): Use it.
18086 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
18087 * config.in (HAVE_LTO_PLUGIN): New.
18088 * configure.ac (--with-lto-plugin): New parameter; autodetect
18091 2011-01-07 Jan Hubicka <jh@suse.cz>
18093 PR tree-optimization/46367
18094 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
18095 when we can update original.
18096 (cgraph_mark_inline_edge): Sanity check.
18097 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
18099 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18101 * config/spu/spu.h (ASM_COMMENT_START): Define.
18103 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
18106 * gcc.c (%>S): New.
18107 (SWITCH_KEEP_FOR_GCC): Likewise.
18108 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
18109 (do_spec_1): Handle "%>".
18111 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
18113 2011-01-07 Jakub Jelinek <jakub@redhat.com>
18116 * config/i386/i386.c (ix86_delegitimize_address): If
18117 simplify_gen_subreg fails, return orig_x.
18120 * value-prof.c (gimple_stringop_fixed_value): Handle
18121 lhs of the call properly.
18123 2011-01-07 Jan Hubicka <jh@suse.cz>
18126 * lto-opt.c (lto_reissue_options): Set flag_shlib.
18128 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
18130 * target.def (function_switched_text_sections): New hook.
18131 * doc/tm.texi: Regenerated.
18132 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
18133 * final.c (default_function_switched_text_sections): New.
18134 (final_scan_insn): Call function_switched_text_sections when a
18135 mid-function section change occurs.
18136 * output.h (default_function_switched_text_sections): Declare.
18137 * config/darwin-protos.h (darwin_function_switched_text_sections):
18139 * config/darwin.c (darwin_function_switched_text_sections): New.
18140 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
18142 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
18144 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
18145 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
18146 the secondary code fragment when outputting for DWARF == 2.
18148 2011-01-07 Anatoly Sokolov <aesok@post.ru>
18150 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
18151 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
18153 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
18154 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
18156 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
18159 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
18160 when it is not empty.
18162 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
18165 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
18166 (case ${target}): Add btver1.
18167 * config/i386/driver-i386.c (host_detect_local_cpu): Let
18168 -march=native recognize btver1 processors.
18169 * config/i386/i386-c.c (ix86_target_macros_internal): Add
18170 btver1 def_and_undef
18171 * config/i386/i386.c (struct processor_costs btver1_cost): New
18173 (m_BTVER1): New definition.
18174 (m_AMD_MULTIPLE): Includes m_BTVER1.
18175 (initial_ix86_tune_features): Add btver1 tune.
18176 (processor_target_table): Add btver1 entry.
18177 (static const char *const cpu_names): Add btver1 entry.
18178 (software_prefetching_beneficial_p): Add btver1.
18179 (ix86_option_override_internal): Add btver1 instruction sets.
18180 (ix86_issue_rate): Add btver1.
18181 (ix86_adjust_cost): Add btver1.
18182 * config/i386/i386.h (TARGET_BTVER1): New definition.
18183 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
18184 (enum processor_type): Add PROCESSOR_BTVER1.
18185 * config/i386/i386.md (define_attr "cpu"): Add btver1.
18187 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18190 * config/i386/i386.c (legitimize_tls_address)
18191 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
18192 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
18193 (tls_initial_exec_64_sun): New pattern.
18195 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
18197 * doc/invoke.texi (Overall Options): Improve wording and markup
18198 of the description of -wrapper.
18200 2011-01-06 Joseph Myers <joseph@codesourcery.com>
18202 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
18203 rdynamic, threads): New Driver options.
18205 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18208 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
18209 if coming from .tdata.
18210 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
18212 2011-01-06 Jan Hubicka <jh@suse.cz>
18215 * collect2.c (main): Do not enable LTOmode when plugin is active.
18217 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18220 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
18221 --version output if supported.
18222 * configure: Regenerate.
18224 2011-01-06 Joseph Myers <joseph@codesourcery.com>
18226 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
18229 2011-01-06 Jakub Jelinek <jakub@redhat.com>
18232 * c-convert.c (convert): When converting a complex expression
18233 other than COMPLEX_EXPR to a different complex type, ensure
18234 c_save_expr is called instead of save_expr, unless in_late_binary_op.
18235 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
18236 when converting COMPLEX_TYPE.
18238 2011-01-06 Ira Rosen <irar@il.ibm.com>
18240 PR tree-optimization/47139
18241 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
18242 only the last reduction value is used outside the loop. Update
18245 2011-01-05 Joseph Myers <joseph@codesourcery.com>
18247 * config/rtems.opt: New.
18248 * config.gcc (*-*-rtems*): Use rtems.opt.
18250 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
18252 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
18253 processors do not support 3DNow instructions.
18255 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18257 * config/spu/spu.c (spu_option_override): Set parameter
18258 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
18260 2011-01-05 Jan Hubicka <jh@suse.cz>
18262 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
18263 at the command line.
18265 2011-01-05 Martin Jambor <mjambor@suse.cz>
18268 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
18269 deltas on streamed outgoing edges.
18270 (output_node_opt_summary): Output info for outgoing edges only when
18271 the node is in new parameter set.
18272 (output_cgraph_opt_summary): New parameter set, passed to the two
18273 aforementioned functions. Update its forward declaration and its
18276 2011-01-05 Tom Tromey <tromey@redhat.com>
18278 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
18279 operator to c_finish_omp_atomic.
18280 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
18281 (build_unary_op): Update.
18282 (build_modify_expr): Update.
18283 (build_asm_expr): Update.
18285 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18287 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
18288 newly inserted insns.
18289 (pad_bb): Likewise.
18290 (spu_emit_branch_hint): Likewise.
18291 (insert_hbrp_for_ilb_runout): Likewise.
18292 (spu_machine_dependent_reorg): Call df_finish_pass after
18293 schedule_insns returns.
18295 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18297 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
18299 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
18301 PR tree-optimization/47005
18302 * tree-sra.c (struct access): Add 'non_addressable' bit.
18303 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
18304 (decide_one_param_reduction): Return 0 if the parameter is passed by
18305 reference and one of the accesses in the group is non_addressable.
18307 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
18309 PR tree-optimization/47056
18310 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
18311 (mark_load): Likewise. Handle FUNCTION_DECL specially.
18312 (mark_store): Likewise. Pass STMT to ipa_record_reference.
18314 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
18316 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
18317 initializer. Skip view conversions from aggregate types.
18319 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
18322 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
18324 2011-01-04 Philipp Thomas <pth@suse.de>
18326 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
18329 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18331 * function.c (thread_prologue_and_epilogue_insns): Do not crash
18332 on empty epilogue sequences.
18334 2011-01-04 Joseph Myers <joseph@codesourcery.com>
18336 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
18337 non-static): New Driver options.
18339 2011-01-04 Jie Zhang <jie@codesourcery.com>
18342 * gcc.c (default_compilers[]): Set combinable field to 0
18343 for all assembly languages.
18345 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
18347 * config/mips/loongson3a.md: New file.
18348 * config/mips/mips.md: Include loongson3a.md.
18349 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
18352 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
18354 PR middle-end/47017
18355 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
18356 instead of convert_memory_address_addr_space on the base expression.
18358 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18360 * config/spu/spu.c (spu_option_override): Update error text
18361 for bad -march= / -mtune= values.
18363 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18365 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
18366 if branch-hint optimization will be performed.
18368 2011-01-03 Jakub Jelinek <jakub@redhat.com>
18370 PR tree-optimization/47148
18371 * ipa-split.c (split_function): Convert arguments to
18372 DECL_ARG_TYPE if possible.
18374 PR tree-optimization/47155
18375 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
18376 when computing uns.
18378 PR rtl-optimization/47157
18379 * combine.c (try_combine): If undobuf.other_insn becomes
18380 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
18381 and set *new_direct_jump_p too.
18383 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
18385 PR tree-optimization/47021
18386 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
18388 2011-01-03 Jakub Jelinek <jakub@redhat.com>
18390 * gcc.c (process_command): Update copyright notice dates.
18391 * gcov.c (print_version): Likewise.
18392 * gcov-dump.c (print_version): Likewise.
18393 * mips-tfile.c (main): Likewise.
18394 * mips-tdump.c (main): Likewise.
18396 2011-01-03 Martin Jambor <mjambor@suse.cz>
18398 PR tree-optimization/46801
18399 * tree-sra.c (type_internals_preclude_sra_p): Check whether
18400 aggregate fields start at byte boundary instead of the bit-field flag.
18402 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
18405 * gcc.c (main): Revert revision 168407.
18407 2011-01-03 Martin Jambor <mjambor@suse.cz>
18409 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
18411 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18413 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
18414 vector optab to expand vector/scalar shift, update gimple to vector.
18416 2011-01-03 Martin Jambor <mjambor@suse.cz>
18418 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
18421 2011-01-03 Martin Jambor <mjambor@suse.cz>
18423 PR tree-optimization/46984
18424 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
18426 (cgraph_create_indirect_edge): Fixed line length.
18427 (cgraph_indirect_call_info): Declare.
18428 (cgraph_make_edge_direct) Update declaration.
18429 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
18430 (cgraph_create_indirect_edge): Use it.
18431 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
18433 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
18434 the new thunk_delta representation.
18435 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
18437 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
18438 (ipa_read_indirect_edge_info): Likewise.
18439 * lto-cgraph.c (output_edge_opt_summary): New function.
18440 (output_node_opt_summary): Call it on all outgoing edges.
18441 (input_edge_opt_summary): New function.
18442 (input_node_opt_summary): Call it on all outgoing edges.
18444 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
18447 * gcc.c (main): Don't check have_o when settting combine_inputs.
18449 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
18451 * regrename.c: Add general comment describing the pass.
18452 (struct du_head): Remove 'length' field.
18453 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
18454 (regrename_optimize): Do not sort chains. Rework comments, add others.
18455 Force renaming to the preferred class (if any) in the first pass and do
18456 not consider registers that belong to it in the second pass.
18457 (create_new_chain): Do not set 'length' field.
18458 (scan_rtx_reg): Likewise.
18460 2011-01-02 Jakub Jelinek <jakub@redhat.com>
18462 PR tree-optimization/47140
18463 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
18464 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
18465 to bit_value_binop.
18467 PR rtl-optimization/47028
18468 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
18469 parm_birth_insn instead of at the beginning of first bb.
18471 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
18473 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
18474 Remove the word "see" before "@pxref".
18475 * doc/rtl.texi: Remove the word "see" before "@pxref".
18477 2011-01-01 Jan Hubicka <jh@suse.cz>
18479 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
18482 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
18485 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
18488 Copyright (C) 2011 Free Software Foundation, Inc.
18490 Copying and distribution of this file, with or without modification,
18491 are permitted in any medium without royalty provided the copyright
18492 notice and this notice are preserved.