1 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
3 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
6 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
10 * longlong.h: Add AVR support:
11 (count_leading_zeros): New macro.
12 (count_trailing_zeros): New macro.
13 (COUNT_LEADING_ZEROS_0): New macro.
14 * config/avr/t-avr (LIB1ASMFUNCS): Add
15 _ffssi2, _ffshi2, _loop_ffsqi2,
16 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2,
17 _paritydi2, _paritysi2, _parityhi2,
18 _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
20 _ashldi3, _ashrdi3, _lshrdi3
21 (LIB2FUNCS_EXCLUDE): Add _clz.
22 * config/avr/libgcc.S (XCALL): Move up in file.
24 (DEFUN): New asm macro.
25 (ENDF): New asm macro.
26 (__ffssi2): New function.
27 (__ffshi2): New function.
28 (__loop_ffsqi2): New function.
29 (__ctzsi2): New function.
30 (__ctzhi2): New function.
31 (__clzdi2): New function.
32 (__clzsi2): New function.
33 (__clzhi2): New function.
34 (__paritydi2): New function.
35 (__paritysi2): New function.
36 (__parityhi2): New function.
37 (__parityqi2): New function.
38 (__popcounthi2): New function.
39 (__popcountsi2): New function.
40 (__popcountdi2): New function.
41 (__popcountqi2): New function.
42 (__bswapsi2): New function.
43 (__bswapdi2): New function.
44 (__ashldi3): New function.
45 (__ashrdi3): New function.
46 (__lshrdi3): New function.
49 2011-06-16 Richard Guenther <rguenther@suse.de>
51 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
53 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0 to
55 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
56 equality compares against zero for the lower bit.
58 2011-06-16 Jakub Jelinek <jakub@redhat.com>
60 PR tree-optimization/49419
61 * tree-vrp.c (execute_vrp): Call init_range_assertions
62 before estimate_numbers_of_iterations, call
63 free_number_of_iterations_estimates before calling
64 remove_range_assertions.
66 2011-06-16 Revital Eres <revital.eres@linaro.org>
68 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
69 (struct partial_schedule): Add rows_length field.
70 (verify_partial_schedule): Check rows_length.
71 (ps_insert_empty_row): Handle rows_length.
72 (create_partial_schedule): Likewise.
73 (free_partial_schedule): Likewise.
74 (reset_partial_schedule): Likewise.
75 (create_ps_insn): Remove rest_count argument.
76 (remove_node_from_ps): Update rows_length.
77 (add_node_to_ps): Update rows_length and call create_ps_insn
78 without passing row_rest_count.
79 (rotate_partial_schedule): Update rows_length.
81 2011-06-16 Revital Eres <revital.eres@linaro.org>
83 * ddg.c (add_intra_loop_mem_dep): New function.
84 (build_intra_loop_deps): Call it.
86 2011-05-06 Jeff Law <law@redhat.com>
88 * df-problems.c (df_lr_local_compute): Manually CSE
89 PIC_OFFSET_TABLE_REGNUM.
90 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
91 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
93 2011-06-13 Jan Hubicka <jh@suse.cz>
95 * cgraphunit.c (handle_alias_pairs): New function.
96 (cgraph_finalize_compilation_unit): Use it.
97 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
98 as externally visible.
100 2011-06-15 Richard Guenther <rguenther@suse.de>
102 * expr.c (expand_expr_real_2): Reduce all integral types to
104 (expand_expr_real_1): Likewise.
106 2011-06-15 Martin Jambor <mjambor@suse.cz>
108 PR tree-optimization/48613
109 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
110 ipa_node_params_vector is NULL.
112 2011-06-15 Jakub Jelinek <jakub@redhat.com>
115 * dwarf2out.c (dw_loc_list_node): Add force field.
116 (add_var_loc_to_decl): For PARM_DECL, attempt to keep
117 the incoming location in the list, even if it is modified
118 before first real insn.
119 (output_loc_list): Emit empty ranges with force flag set.
120 (dw_loc_list): If first range of a PARM_DECL is empty,
123 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
126 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
127 (fence_to_rewind). Use it to notice when bookkeeping will be placed
128 above a fence. Update comments.
129 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
130 placed just above it. Do not allow NULL place_to_insert.
132 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
134 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
135 (slpeel_tree_peel_loop_to_edge): Don't call
136 remove_dead_stmts_from_loop.
137 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
138 remove irrelevant pattern statements. For irrelevant statements
139 check if it is the last statement of a detected pattern, use
140 corresponding pattern statement instead.
141 (destroy_loop_vec_info): No need to remove pattern statements,
142 only free stmt_vec_info.
143 (vect_transform_loop): For irrelevant statements check if it is
144 the last statement of a detected pattern, use corresponding
145 pattern statement instead.
146 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
147 pattern statements. Set basic block for the new statement.
148 (vect_pattern_recog): Update documentation.
149 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
150 operands of pattern statements.
151 (vectorizable_call): Fix printing. In case of a pattern statement
152 use the lhs of the original statement when creating a dummy
153 statement to replace the original call.
154 (vect_analyze_stmt): For irrelevant statements check if it is
155 the last statement of a detected pattern, use corresponding
156 pattern statement instead.
157 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
158 statements use gsi of the original statement.
160 2011-06-14 Joseph Myers <joseph@codesourcery.com>
162 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
163 common/common-target-def.h.
164 * target.def (default_target_flags, handle_option,
165 supports_split_stack, optimization_table, init_struct,
166 except_unwind_info, unwind_tables_default, have_named_sections):
167 Move to common/common-target.def.
168 * target.h (enum opt_levels, struct default_options): Move to
169 common/common-target.h.
170 * targhooks.c (default_except_unwind_info,
171 dwarf2_except_unwind_info, sjlj_except_unwind_info,
172 default_target_handle_option, empty_optimization_table): Move to
173 common/common-targhooks.c.
174 * targhooks.h (default_except_unwind_info,
175 dwarf2_except_unwind_info, sjlj_except_unwind_info,
176 default_target_handle_option, empty_optimization_table): Move to
177 common/common-targhooks.h.
178 * common/common-target-def.h: Include common/common-targhooks.h.
179 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
181 * common/common-target.def (handle_option, option_init_struct,
182 option_optimization_table, default_target_flags,
183 except_unwind_info, supports_split_stack, unwind_tables_default,
184 have_named_sections): Move from target.def.
185 (HOOK_PREFIX): Undefine at end of file.
186 * common/common-target.h: Include input.h.
187 (enum opt_levels, struct default_options): Move from target.h.
188 * common/common-targhooks.c, common/common-targhooks.h: New.
189 * config.gcc (target_has_targetm_common): Default to yes.
190 (moxie*): Set target_has_targetm_common=no.
191 (hppa*-*-*): Don't set target_has_targetm_common=yes.
192 * doc/tm.texi: Regenerate.
193 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
194 (C_TARGET_DEF_H): Add common/common-targhooks.h.
195 (GCC_OBJS): Remove vec.o.
196 (OBJS): Remove hooks.o and vec.o.
197 (OBJS-libcommon-target): Add vec.o, hooks.o and
198 common/common-targhooks.o.
199 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
200 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
201 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
202 cfglayout.o, $(out_object_file), $(common_out_object_file)):
204 (common/common-targhooks.o): New.
205 * common/config/default-common.c: Include tm.h. Add FIXME
207 * common/config/pa/pa-common.c: Include more headers. Take
208 copyright dates from pa.c.
209 (pa_option_optimization_table, pa_handle_option,
210 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
211 TARGET_HANDLE_OPTION): Move from pa.c.
212 * common/config/alpha/alpha-common.c,
213 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
214 common/config/bfin/bfin-common.c,
215 common/config/cris/cris-common.c,
216 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
217 common/config/h8300/h8300-common.c,
218 common/config/i386/i386-common.c,
219 common/config/ia64/ia64-common.c,
220 common/config/iq2000/iq2000-common.c,
221 common/config/lm32/lm32-common.c,
222 common/config/m32c/m32c-common.c,
223 common/config/m32r/m32r-common.c,
224 common/config/m68k/m68k-common.c,
225 common/config/mcore/mcore-common.c,
226 common/config/mep/mep-common.c,
227 common/config/microblaze/microblaze-common.c,
228 common/config/mips/mips-common.c,
229 common/config/mmix/mmix-common.c,
230 common/config/mn10300/mn10300-common.c,
231 common/config/pdp11/pdp11-common.c,
232 common/config/picochip/picochip-common.c,
233 common/config/rs6000/rs6000-common.c,
234 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
235 common/config/score/score-common.c, common/config/sh/sh-common.c,
236 common/config/sparc/sparc-common.c,
237 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
238 common/config/vax/vax-common.c,
239 common/config/xstormy16/xstormy16-common.c,
240 common/config/xtensa/xtensa-common.c: New.
241 * config/alpha/alpha.c: Include common/common-target.h.
242 (alpha_option_optimization_table, alpha_handle_option,
243 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
244 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
245 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
246 * config/arm/arm.c (arm_option_optimization_table,
247 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
248 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
250 * config/avr/avr.c (avr_option_optimization_table,
251 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
253 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
254 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
255 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
256 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
257 * config/cris/cris.c (cris_option_optimization_table,
258 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
259 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
261 * config/fr30/fr30.c (fr30_option_optimization_table,
262 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
264 * config/frv/frv.c (frv_option_optimization_table,
265 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
266 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
267 * config/h8300/h8300.c (h8300_option_optimization_table,
268 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
269 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
270 * config/i386/i386-protos.h (ix86_handle_option): Declare.
271 * config/i386/i386.c: Include common/common-target.h.
272 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
273 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
274 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
275 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
276 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
277 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
278 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
279 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
280 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
281 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
282 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
283 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
284 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
285 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
286 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
287 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
288 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
289 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
290 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
291 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
292 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
293 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
294 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
295 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
296 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
297 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
298 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
299 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
300 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
301 ix86_option_optimization_table, ix86_option_init_struct,
302 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
303 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
304 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
306 * config/i386/t-i386 (i386.o): Update dependencies.
307 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
308 * config/ia64/ia64.c (ia64_option_optimization_table,
309 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
310 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
311 ia64_handle_option): Move to ia64-common.c.
312 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
313 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
314 * config/lm32/lm32.c (lm32_option_optimization_table,
315 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
317 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
319 * config/m32r/m32r.c (m32r_option_optimization_table,
320 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
321 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
322 m32r_handle_option): Move to m32r-common.c.
323 (m32r_memory_move_cost): Remove comment referring to
324 TARGET_HANDLE_OPTION.
325 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
326 Move to m68k-common.c.
327 * config/mcore/mcore.c (mcore_option_optimization_table,
328 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
329 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
330 * config/mep/mep.c (mep_option_optimization_table,
331 mep_handle_option, TARGET_HANDLE_OPTION,
332 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
333 Move to mep-common.c.
334 * config/microblaze/microblaze.c
335 (microblaze_option_optimization_table,
336 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
337 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
338 * config/mips/mips.c (mips_handle_option,
339 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
340 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
342 * config/mmix/mmix.c (mmix_option_optimization_table,
343 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
344 Move to mmix-common.c.
345 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
346 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
347 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
348 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
349 * config/pa/pa.c: Include common/common-target.h.
350 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
351 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
352 pa_handle_option): Move to pa-common.c.
353 (pa_option_override): Use targetm_common.except_unwind_info.
354 (pa_asm_output_mi_thunk, pa_function_section): Use
355 targetm_common.have_named_sections.
356 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
357 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
358 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
359 pdp11_handle_option, pdp11_option_init_struct): Move to
361 * config/picochip/picochip.c (picochip_option_optimization_table,
362 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
363 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
364 * config/rs6000/rs6000.c: Include common/common-target.h.
365 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
366 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
367 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
368 rs6000_handle_option): Move to rs6000-common.c.
369 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
370 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
371 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
372 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
373 * config/s390/s390.c (processor_flags_table,
374 s390_option_optimization_table, s390_option_init_struct,
375 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
376 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
377 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
378 * config/s390/s390.h (processor_flags_table): Declare.
379 * config/score/score.c (score_option_optimization_table,
380 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
381 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
382 score_handle_option): Move to score-common.c.
383 * config/sh/sh.c (sh_option_optimization_table,
384 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
385 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
386 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
387 * config/sparc/sparc.c: Include common/common-target.h.
388 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
389 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
390 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
391 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
392 spu_option_init_struct): Move to spu-common.c.
393 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
394 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
395 * config/v850/v850.c (small_memory_physical_max,
396 v850_handle_memory_optionn v850_handle_option,
397 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
398 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
400 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to
402 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
403 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
404 Move to xtensa-common.c.
405 * cfglayout.c: Include common/common-target.h.
406 (fixup_reorder_chain): Use targetm_common.have_named_sections.
407 * cfgrtl.c: Include common/common-target.h.
408 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
409 targetm_common.have_named_sections.
410 * dbxout.c: Include common/common-target.h.
411 (dbxout_function_end): Use targetm_common.have_named_sections.
412 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
413 targetm_common.except_unwind_info.
414 * dwarf2out.c: Include common/common-target.h.
415 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
416 dwarf2out_begin_prologue, dwarf2out_frame_init,
417 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
418 targetm_common.except_unwind_info.
419 * except.c: Include common/common-target.h.
420 (init_eh, finish_eh_generation,
421 output_one_function_exception_table): Use
422 targetm_common.except_unwind_info.
423 (switch_to_exception_section): Use
424 targetm_common.have_named_sections.
425 * explow.c: Include common/common-target.h.
426 * expr.c: Include common/common-target.h.
427 (build_personality_function): Use
428 targetm_common.except_unwind_info.
429 * function.c: Include common/common-target.h.
430 (expand_function_end): Use targetm_common.except_unwind_info.
431 * haifa-sched.c: Include common/common-target.h.
432 (sched_create_recovery_edges): Use
433 targetm_common.have_named_sections.
434 * lto-opts.c: Include common/common-target.h instead of target.h.
435 (lto_reissue_options): Use targetm_common.handle_option.
436 * opts.c: Include common/common-target.h.
437 (target_handle_option): Use targetm_common.handle_option.
438 (init_options_struct): Update comment referring to
439 targetm.target_option.optimization. Use
440 targetm_common.default_target_flags,
441 targetm_common.unwind_tables_default and
442 targetm_common.option_init_struct.
443 (default_options_optimization): Use
444 targetm_common.option_optimization_table.
445 (finish_options): Use targetm_common.except_unwind_info,
446 targetm_common.unwind_tables_default,
447 targetm_common.have_named_sections and
448 targetm_common.supports_split_stack.
449 * toplev.c: Include common/common-target.h.
450 (process_options): Use targetm_common.have_named_sections.
451 * tree-tailcall.c: Include common/common-target.h.
452 (suitable_for_tail_call_opt_p): Use
453 targetm_common.except_unwind_info.
454 * tree.c: Include common/common-target.h.
455 (build_common_builtin_nodes): Use
456 targetm_common.except_unwind_info.
457 * varasm.c: Include common/common-target.h.
458 (resolve_unique_section, hot_function_section,
459 default_function_section): Use targetm_common.have_named_sections.
461 2011-06-14 Easwaran Raman <eraman@google.com>
463 PR rtl-optimization/44194
464 * dse.c: Include tree-flow.h
465 (insn_info): Add new field non_frame_wild_read.
466 (group_info): Add new fields escaped_n and escaped_p.
467 (kill_on_calls): New variable.
468 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
469 (dse_step0): Initialize kill_on_calls.
470 (can_escape): New function.
471 (set_usage_bits): Add additional parameter; record information
472 about escaped locations.
473 (record_store): Pass EXPR corresponding to MEM to
475 (dse_step2_nospill): Set kill_on_calls based on
476 group->escaped_n and group->escaped_n.
477 (add_wild_read): Refactor into...
478 (reset_active_stores): ... New function, and
479 (free_read_records): ... New function.
480 (add_non_frame_wild_read): New function.
481 (scan_insn): Call add_non_frame_wild_read on non-const calls.
482 (scan_reads_nospill): Handle instructions with
484 (dse_step5_nospill): Call scan_reads_nospill for instructions
485 marked as non_frame_wild_read.
486 (dse_step7): Free escaped_n, escaped_p and kill_on_calls
489 2011-06-14 Joseph Myers <joseph@codesourcery.com>
491 * common/common-target-def.h, common/common-target.def,
492 common/common-target.h, common/config/default-common.c,
493 common/config/pa/pa-common.c: New files.
494 * Makefile.in (common_out_file, common_out_object_file,
495 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
496 (OBJS-libcommon-target): Include $(common_out_object_file).
497 (prefix.o): Update dependencies.
498 ($(common_out_object_file), common/common-target-hooks-def.h,
499 s-common-target-hooks-def-h): New.
500 (s-tm-texi): Also check timestamp on common-target.def.
501 (build/genhooks.o): Update dependencies.
502 * config.gcc (common_out_file, target_has_targetm_common): Define.
503 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
504 TARGET_ALWAYS_STRIP_DOTDOT.
505 * configure.ac (common_out_object_file): Define.
506 (common_out_file, common_out_object_file): Substitute.
507 (common): Create directory.
508 * configure: Regenerate.
509 * doc/tm.texi.in (targetm_common): Document.
510 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
511 * doc/tm.texi: Regenerate.
512 * genhooks.c (hook_array): Also include common/common-target.def.
513 * prefix.c (tm.h): Don't include.
514 (common/common-target.h): Include.
515 (ALWAYS_STRIP_DOTDOT): Don't define.
516 (update_path): Use targetm_common.always_strip_dotdot instead of
518 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
520 2011-06-14 David Li <davidxl@google.com>
522 * passes.c (execute_function_todo): Remove TODO_dump_func.
523 (execute_one_pass): Remove TODO_dump_func.
524 (execute_function_dump): New function.
525 * tree-vrp.c: Remove TODO_dump_func.
526 * regrename.c: Remove TODO_dump_func.
527 * fwprop.c: Remove TODO_dump_func.
528 * tree-into-ssa.c: Remove TODO_dump_func.
529 * tree-complex.c: Remove TODO_dump_func.
530 * tracer.c: Remove TODO_dump_func.
531 * tree-loop-distribution.c: Remove TODO_dump_func.
532 * postreload-gcse.c: Remove TODO_dump_func.
533 * postreload.c: Remove TODO_dump_func.
534 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
535 * tree-tailcall.c: Remove TODO_dump_func.
536 * ipa-cp.c: Remove TODO_dump_func.
537 * final.c: Remove TODO_dump_func.
538 * tree-emutls.c: Remove TODO_dump_func.
539 * omp-low.c: Remove TODO_dump_func.
540 * tree-ssa-dse.c: Remove TODO_dump_func.
541 * tree-ssa-uncprop.c: Remove TODO_dump_func.
542 * auto-inc-dec.c: Remove TODO_dump_func.
543 * reorg.c: Remove TODO_dump_func.
544 * tree-ssa-copyrename.c: Remove TODO_dump_func.
545 * tree-ssa-ccp.c: Remove TODO_dump_func.
546 * compare-elim.c: Remove TODO_dump_func.
547 * mode-switching.c: Remove TODO_dump_func.
548 * modulo-sched.c: Remove TODO_dump_func.
549 * tree-call-cdce.c: Remove TODO_dump_func.
550 * cse.c: Remove TODO_dump_func.
551 * web.c: Remove TODO_dump_func.
552 * tree-stdarg.c: Remove TODO_dump_func.
553 * lto-streamer-out.c: Remove TODO_dump_func.
554 * tree-ssa-math-opts.c: Remove TODO_dump_func.
555 * tree-ssa-dom.c: Remove TODO_dump_func.
556 * tree-nrv.c: Remove TODO_dump_func.
557 * loop-init.c: Remove TODO_dump_func.
558 * gimple-low.c: Remove TODO_dump_func.
559 * ipa-inline.c: Remove TODO_dump_func.
560 * tree-ssa-sink.c: Remove TODO_dump_func.
561 * jump.c: Remove TODO_dump_func.
562 * ifcvt.c: Remove TODO_dump_func.
563 * tree-ssa-loop.c: Remove TODO_dump_func.
564 * recog.c: Remove TODO_dump_func.
565 * dse.c: Remove TODO_dump_func.
566 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
567 * matrix-reorg.c: Remove TODO_dump_func.
568 * tree-eh.c: Remove TODO_dump_func.
569 * regmove.c: Remove TODO_dump_func.
570 * function.c: Remove TODO_dump_func.
571 * tree-vectorizer.c: Remove TODO_dump_func.
572 * ipa-split.c: Remove TODO_dump_func.
573 * gcse.c: Remove TODO_dump_func.
574 * tree-if-conv.c: Remove TODO_dump_func.
575 * init-regs.c: Remove TODO_dump_func.
576 * tree-ssa-phiopt.c: Remove TODO_dump_func.
577 * implicit-zee.c: Remove TODO_dump_func.
578 * lower-subreg.c: Remove TODO_dump_func.
579 * bt-load.c: Remove TODO_dump_func.
580 * tree-dfa.c: Remove TODO_dump_func.
581 * except.c: Remove TODO_dump_func.
582 * emit-rtl.c: Remove TODO_dump_func.
583 * store-motion.c: Remove TODO_dump_func.
584 * cfgexpand.c: Remove TODO_dump_func.
585 * tree-cfgcleanup.c: Remove TODO_dump_func.
586 * cfgcleanup.c: Remove TODO_dump_func.
587 * tree-ssa-pre.c: Remove TODO_dump_func.
588 * tree-sra.c: Remove TODO_dump_func.
589 * tree-mudflap.c: Remove TODO_dump_func.
590 * tree-ssa-copy.c: Remove TODO_dump_func.
591 * cfglayout.c: Remove TODO_dump_func.
592 * tree-ssa-forwprop.c: Remove TODO_dump_func.
593 * tree-ssa-dce.c: Remove TODO_dump_func.
594 * ira.c: Remove TODO_dump_func.
595 * tree-ssa.c: Remove TODO_dump_func.
596 * integrate.c: Remove TODO_dump_func.
597 * tree-optimize.c: Remove TODO_dump_func.
598 * tree-ssa-phiprop.c: Remove TODO_dump_func.
599 * tree-object-size.c: Remove TODO_dump_func.
600 * combine.c: Remove TODO_dump_func.
601 * bb-reorder.c: Remove TODO_dump_func.
602 * cprop.c: Remove TODO_dump_func.
603 * var-tracking.c: Remove TODO_dump_func.
604 * tree-profile.c: Remove TODO_dump_func.
605 * tree-vect-generic.c: Remove TODO_dump_func.
606 * reg-stack.c: Remove TODO_dump_func.
607 * sched-rgn.c: Remove TODO_dump_func.
608 * tree-ssa-structalias.c: Remove TODO_dump_func.
609 * tree-switch-conversion.c: Remove TODO_dump_func.
610 * tree-cfg.c: Remove TODO_dump_func.
611 * tree-ssa-reassoc.c: Remove TODO_dump_func.
612 * combine-stack-adj.c: Remove TODO_dump_func.
613 * dce.c: Remove TODO_dump_func.
614 * tree-ssanames.c: Remove TODO_dump_func.
615 * regcprop.c: Remove TODO_dump_func.
617 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
620 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
621 and properly handle result not in Pmode.
623 2011-06-14 Robert Millan <rmh@gnu.org>
625 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
626 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
629 * config/i386/kfreebsd-gnu64.h: New file.
630 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
631 with `i386/kfreebsd-gnu64.h'.
633 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
634 (GNU_USER_LINK_EMULATION64): New macros.
635 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
636 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
637 of hardcoding `elf_i386' and `elf_x86_64'.
639 2011-06-14 Nick Clifton <nickc@redhat.com>
642 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
645 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
647 2011-06-14 Jakub Jelinek <jakub@redhat.com>
650 * tree.h (DECL_NONSHAREABLE): Define.
651 (struct tree_decl_common): Change decl_common_unused to
652 decl_nonshareable_flag.
653 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
654 Ignore vars with DECL_NONSHAREABLE bit set.
655 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
656 on stores to automatic aggregate vars.
658 PR rtl-optimization/49390
660 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
662 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
665 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
666 Tom de Vries <tom@codesourcery.com>
669 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
670 Document changed semantics.
671 (max_stmt_executions, max_stmt_executions_int): Declare.
672 * tree-data-ref.c (estimated_loop_iterations)
673 (estimated_loop_iterations_int): Move functions...
674 * tree-ssa-loop-niter.c (estimated_loop_iterations)
675 (estimated_loop_iterations_int): here.
676 (record_estimate): Change nb_iterations_upper_bound and
677 nb_iterations_estimate semantics.
678 (max_stmt_executions, max_stmt_executions_int): New function.
679 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
680 (max_stmt_executions_tree): this.
681 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
682 estimated_loop_iterations_tree.
683 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
684 max_stmt_executions_int instead of estimated_loop_iterations_int.
685 * predict.c (predict_loops): Idem.
686 * tree-parloops.c (parallelize_loops): Idem.
687 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
688 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
689 (init_omega_for_ddr_1): Idem.
690 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
691 (loop_prefetch_arrays): Idem
692 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
693 max_stmt_executions instead of estimated_loop_iterations.
694 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
695 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
696 instead of nb_iterations_upper_bound.
698 2011-06-13 Jan Hubicka <jh@suse.cz>
700 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
702 2011-06-14 Richard Henderson <rth@redhat.com>
705 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
706 (based_loc_descr): Assert it's true.
707 (compute_frame_pointer_to_fb_displacement): Set it, rather than
708 aborting immediately.
710 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
711 Mingfeng Wu <mingfeng@faraday-tech.com>
713 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
715 2011-06-13 Jan Hubicka <jh@suse.cz>
717 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
719 2011-06-13 Jan Hubicka <jh@suse.cz>
721 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
722 similarly to DECL_COMDAT.
723 * cgraphunit.c (cgraph_analyze_function): Likewise.
724 * ipa.c (function_and_variable_visibility): Likewise.
726 2011-06-13 Jan Hubicka <jh@suse.cz>
728 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
729 BINFO_VIRTUALS when streaming for ltrans unit.
731 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
733 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
734 (movdi_internal64): Same.
736 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
739 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
740 a set of similar patterns, where the MATCH_OPERAND for the function
741 argument is replaced with individual references to hardware registers.
742 (save_fpregs_<mode>): Ditto
743 (restore_gpregs_<mode>): Ditto
744 (return_and_restore_gpregs_<mode>): Ditto
745 (return_and_restore_fpregs_<mode>): Ditto
746 (return_and_restore_fpregs_aix_<mode>): Ditto
748 2011-06-13 Jan Hubicka <jh@suse.cz>
750 * ipa-utils.c (postorder_stack): New structure.
751 (ipa_reverse_postorder): Handle aliases.
753 2011-06-13 Jan Hubicka <jh@suse.cz>
755 * ipa-inline.c (reset_edge_caches): Walk aliases.
756 (update_caller_keys): Do not test inlinability of aliases.
757 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
758 (do_estimate_growth): Fix typo.
760 2011-06-13 Jan Hubicka <jh@suse.cz>
762 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
763 (can_remove_node_now_p): ... here; handle same comdat groups.
764 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
765 (inline_call): Update use of can_remove_node_now_p.
767 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
769 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
770 condition to disallow non-identical memory locations.
771 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
772 preference to bit manipulation instructions.
774 2011-06-13 Jan Hubicka <jh@suse.cz>
776 * cgraph.c (cgraph_for_node_thunks_and_aliases,
777 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
778 (nonremovable_p): New function.
779 (cgraph_can_remove_if_no_direct_calls_p): New function.
780 (used_from_object_file_p): New functoin.
781 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
782 references from aliases.
783 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
784 * ipa-inline.c (check_caller_edge): New function.
785 (want_inline_function_called_once_p): Use it; accept aliases called
787 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
789 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
792 * config/arm/neon.md (vec_pack_trunc): Set the lengths
793 correctly for the case with Quad vectors.
795 2011-06-13 Jakub Jelinek <jakub@redhat.com>
796 Ira Rosen <ira.rosen@linaro.org>
798 PR tree-optimization/49352
799 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
800 all, make sure loop_use_stmt after the loop is a def stmt of a used
801 SSA_NAME that is the only one defined inside of the loop. Don't
802 check for COND_EXPR and GIMPLE_BINARY_RHS.
803 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
804 check_reduction is true.
806 2011-06-11 Jan Hubicka <jh@suse.cz>
809 * ipa.c (cgraph_externally_visible_p): Check resolution info.
811 2011-06-11 Jan Hubicka <jh@suse.cz>
814 * ipa-inline-transform.c: Include tree-pass.h
815 (inline_transform): Set TODO_update_ssa_only_virtuals.
816 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
818 2011-06-11 Jan Hubicka <jh@suse.cz>
821 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
824 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
826 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
827 Take number of iterations to peel into account for equally frequent
830 2011-06-11 Jan Hubicka <jh@suse.cz>
832 * lto-streamer-out.c (produce_symtab): Stream out the newly represented
835 2011-06-11 Jan Hubicka <jh@suse.cz>
837 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting varying
839 (ipa_update_after_lto_read): Likewise.
840 (ipa_write_node_info): Do not sream call_with_var_arguments.
841 (ipa_read_node_info): Likewise.
843 2011-06-11 Jan Hubicka <jh@suse.cz>
845 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
847 2011-06-11 Jan Hubicka <jh@suse.cz>
849 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
850 (lto_symtab_resolve_can_prevail_p): Likewise.
851 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
852 * cgraph.c (same_body_aliases_done): New global var.
853 (cgraph_same_body_alias_1): Rename to ...
854 (cgraph_create_function_alias): ... this one; reorg to new
856 (cgraph_same_body_alias): Use cgraph_create_function_alias;
857 record references when asked to.
858 (cgraph_add_thunk): Fix formating.
859 (cgraph_get_node): Kill same body alias code.
860 (cgraph_node_for_asm): Likewise.
861 (cgraph_remove_same_body_alias): Remove.
862 (cgraph_remove_node): Kill same body alias code.
863 (cgraph_mark_address_taken_node): Mark also the aliased function
864 as having address taken.
865 (dump_cgraph_node): Dump same body aliases.
866 (cgraph_for_node_thunks_and_aliases): Update for new alias
868 (cgraph_for_node_and_aliases): Likewise.
869 * cgraph.h (same_body): Kll pointer.
870 (same_body_alias): Update comment.
871 (same_body_aliases_done): Declare.
872 (cgraph_remove_same_body_alias): Remove declaration.
873 (cgraph_create_function_alias): Declare.
874 (cgraph_process_same_body_aliases): Declare.
875 (cgraph_function_with_gimple_body_p): Check for alias.
876 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
877 (cgraph_alias_aliased_node): New function.
878 (cgraph_function_node): Update for new aliases.
879 (cgraph_function_or_thunk_node): Likewise.
880 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
881 (inline_call): Remove dead aliases.
882 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
883 name hack for same body aliases.
884 (clone_of_p): Look through aliases.
885 (verify_cgraph_node): Verify aliases.
886 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
887 (cgraph_process_same_body_aliases): New function.
888 (process_function_and_variable_attributes): Disable weakref warning on
890 (cgraph_analyze_functions): Handle aliases.
891 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
892 (assemble_thunks): Rename to ...
893 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
894 (cgraph_expand_function): Remove alias output code.
895 (cgraph_output_in_order): Skip aliases.
896 (cgraph_preserve_function_body_p): Aliases don't need preserving.
897 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
898 (ipa_record_reference): Do not assert on alias references.
899 (ipa_ref_has_aliases_p): New function.
900 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
901 (ipa_ref_has_aliases_p): Declare.
902 * lto-cgraph.c (lto_output_node): Handle aliases.
903 (input_node): Likewise.
904 * lto-streamer-out.c (lto_output): Skip aliases.
905 (produce_symtab): Kill same_body_alias code.
906 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
907 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
908 * ipa-inline.c (update_caller_keys): Walk aliases.
909 (inline_small_functions): Fix thinko in previous patch.
910 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
911 (function_and_variable_visibility): Do not walk same body aliases.
912 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
913 (ipa_pta_execute): Use it.
915 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
917 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
918 (*vec_dupv2df): Rename from vec_dupv2df.
919 (vec_dupv2df): New expander.
921 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
923 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
925 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
927 * config/i386/i386.md: Use default value in "isa" attribute.
928 * config/i386/sse.md: Ditto.
929 * config/i386/mmx.md: Ditto.
931 2011-06-10 Wei Guozhi <carrot@google.com>
934 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
935 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
936 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
938 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
940 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
941 (arm_legitimate_ldrd_p): New prototype.
942 (arm_output_ldrd): New prototype.
943 * config/arm/arm.c (arm_check_ldrd_operands): New function.
944 (arm_legitimate_ldrd_p): New function.
945 (arm_output_ldrd): New function.
947 2011-06-10 David Li <davidxl@google.com>
949 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
950 * passes.c (passr_eq): New function.
951 (create_pass_tab): New function.
952 (pass_traverse): New function.
953 (dump_one_pass): New function.
954 (dump_pass_list): New function.
955 (dump_passes): New function.
957 2011-06-10 Jan Hubicka <jh@suse.cz>
959 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
960 setting the nothrow flag.
961 * ipa-reference.c (propagate): Skip aliases.
962 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
963 (propagate_nothrow): Skip aliases; do not update cgraph.
964 (local_pure_const): Do not update cgraph.
965 * tree-profile.c (tree_profiling): Do fixup_cfg.
967 2011-06-10 Jan Hubicka <jh@suse.cz>
969 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
970 (cgraph_local_node_p): ... here; handle aliases.
971 (has_addr_references_p): Break out from ...;
972 (cgraph_remove_unreachable_nodes) ... here.
974 2011-06-10 Jan Hubicka <jh@suse.cz>
976 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
977 * common.opt (flag_inline_functions_called_once): Do not
980 2011-06-10 Jan Hubicka <jh@suse.cz>
982 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
983 (ipcp_initialize_node_lattices): Do not deal with aliases;
984 Do not try to propagate through thunks.
985 (ipcp_change_tops_to_bottom): Do not deal with aliases.
987 2011-06-10 Jan Hubicka <jh@suse.cz>
989 * ipa-prop.c (ipa_write_node_info): Stream jump functions
991 (ipa_read_node_info): Likewise.
993 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
996 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
997 (build_and_insert_call): Likewise.
998 (build_and_insert_ref): New.
999 (gimple_expand_builtin_pow): Minor cleanup.
1000 (gimple_expand_builtin_cabs): New.
1001 (execute_cse_sincos): Add case for BUILT_IN_CABS.
1003 2011-06-10 Jan Hubicka <jh@suse.cz>
1005 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
1006 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
1007 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
1008 (ipcp_propagate_stage): Skip aliases when propagating.
1009 (ipcp_need_redirect_p): Skip aliases.
1010 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
1011 collect_callers_of_node.
1012 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
1014 (ipa_compute_jump_functions): Look through aliases.
1016 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1018 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
1020 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
1022 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
1024 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
1026 2011-06-10 Jan Hubicka <jh@suse.cz>
1028 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
1029 Update call of gimple_get_virt_method_for_binfo.
1030 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
1031 refuse_thunks parameter.
1032 (gimple_fold_call): Update.
1033 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
1035 2011-06-10 Jan Hubicka <jh@suse.cz>
1037 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
1038 (not_all_callers_have_enough_arguments_p): ... this one; turn into
1039 worker for cgraph_for_node_and_aliases.
1040 (convert_callers_for_node): Break out from ...
1041 (convert_callers): ... here.
1042 (modify_function): Use collect_callers_of_node.
1043 (ipa_early_sra): Use cgraph_for_node_and_aliases.
1045 2011-06-10 Richard Guenther <rguenther@suse.de>
1047 PR tree-optimization/49361
1048 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
1049 when not already in gimple form.
1051 2011-06-10 Richard Guenther <rguenther@suse.de>
1054 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
1055 FOR_EACH_PHI_OR_STMT_USE.
1057 2011-06-10 Jan Hubicka <jh@suse.cz>
1059 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
1060 (clone_inlined_nodes): ... here.
1061 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
1062 to real destination prior inlining.
1063 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
1064 can_early_inline_edge_p, want_early_inline_function_p,
1065 want_early_inline_function_p, want_inline_small_function_p,
1066 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
1067 edge_badness, update_all_callee_keys, lookup_recursive_calls,
1068 add_new_edges_to_heap, inline_small_functions, flatten_function,
1069 inline_always_inline_functions, early_inline_small_functions): Use
1070 cgraph_function_or_thunk_node.
1071 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
1072 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
1073 (do_estimate_edge_growth_1): Break out from ...
1074 (do_estimate_growth) ... here; walk aliases.
1075 (inline_generate_summary): Skip aliases.
1077 2011-06-10 Richard Guenther <rguenther@suse.de>
1079 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
1080 forward when combining, visit inserted stmts when a stmt was changed.
1082 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
1084 * tree.h (error_operand_p): Add.
1085 * dbxout.c (dbxout_type_fields): Use the latter.
1086 * c-decl.c (add_stmt): Likewise.
1087 * gimplify.c (omp_add_variable, omp_notice_variable,
1088 gimplify_scan_omp_clauses): Likewise.
1090 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
1092 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
1093 when a value is actually passed in regs.
1095 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
1096 Laurent Rougé <laurent.rouge@menta.fr>
1098 * doc/invoke.texi (SPARC options): Add -mflat.
1099 * config/sparc/sparc.opt: Likewise.
1100 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
1101 (sparc_flat_expand_prologue): Declare.
1102 (sparc_flat_expand_epilogue): Likewise.
1103 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
1104 (CPP_ENDIAN_SPEC): Replace with...
1105 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
1106 (CPP_SPEC): Adjust to above change.
1107 (EXTRA_SPECS): Likewise.
1108 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
1109 (INCOMING_REGNO): Likewise.
1110 (OUTGOING_REGNO): Likewise.
1111 (LOCAL_REGNO): Likewise.
1112 (SETUP_FRAME_ADDRESSES): Likewise.
1113 (FIXED_REGISTERS): Set 0 for %fp.
1114 (CALL_USED_REGISTERS): Likewise.
1115 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
1116 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
1117 (RETURN_ADDR_REGNUM): Define.
1118 (RETURN_ADDR_RTX): Use it.
1119 (INCOMING_RETURN_ADDR_REGNUM): Define.
1120 (INCOMING_RETURN_ADDR_RTX): Use it.
1121 (DWARF_FRAME_RETURN_COLUMN): Likewise.
1122 (EH_RETURN_REGNUM): Define.
1123 (EH_RETURN_STACKADJ_RTX): Use it.
1124 (EH_RETURN_HANDLER_RTX): Delete.
1125 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
1126 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
1128 (struct machine_function): Add frame_size, apparent_frame_size,
1129 frame_base_reg, frame_base_offset, n_global_fp_regs and
1130 save_local_in_regs_p fields.
1131 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
1132 sparc_frame_base_offset, sparc_n_global_fp_regs,
1133 sparc_save_local_in_regs_p): New macros.
1134 (sparc_option_override): Error out if -fcall-saved-REG is specified
1136 (eligible_for_restore_insn): Fix formatting.
1137 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
1138 (eligible_for_sibcall_delay): Likewise.
1139 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
1140 (sparc_legitimate_address_p): Adjust to above change.
1141 (save_global_or_fp_reg_p): New predicate.
1142 (return_addr_reg_needed_p): Likewise.
1143 (save_local_or_in_reg_p): Likewise.
1144 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
1145 (SORR_SAVE, SORR_RESTORE): Delete.
1146 (sorr_pred_t): New typedef.
1147 (sorr_act_t): New enum.
1148 (save_or_restore_regs): Rename to...
1149 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
1150 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
1151 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
1152 mechanism. Add CFI information for double-word saves in 32-bit mode.
1153 (emit_adjust_base_to_offset): New function extracted from...
1154 (emit_save_or_restore_regs): ...this. Rename the rest to...
1155 (emit_save_or_restore_regs_global_fp_regs): ...this.
1156 (emit_save_or_restore_regs_local_in_regs): New function.
1157 (gen_create_flat_frame_[123]): New functions.
1158 (sparc_expand_prologue): Use SIZE local variable. Adjust.
1159 (sparc_flat_expand_prologue): New function.
1160 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
1161 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
1162 (sparc_flat_expand_epilogue): New function.
1163 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
1164 (output_return): Likewise.
1165 (output_sibcall): Likewise.
1166 (sparc_output_mi_thunk): Likewise.
1167 (sparc_frame_pointer_required): Likewise.
1168 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
1169 function optimization.
1170 * config/sparc/sparc.md (flat): New attribute.
1171 (prologue): Add TARGET_FLAT handling.
1172 (save_register_window): Disable if TARGET_FLAT.
1173 (create_flat_frame_[123]): New patterns.
1174 (epilogue): Add TARGET_FLAT handling.
1175 (sibcall_epilogue): Likewise.
1176 (eh_return): New expander.
1177 (eh_return_internal): New insn and splitter.
1178 (return_internal): Add TARGET_FLAT handling.
1179 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
1180 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
1181 (nonlocal_goto): Add TARGET_FLAT handling.
1182 * config/sparc/t-elf: Add -mflat multilib.
1183 * config/sparc/t-leon: Likewise.
1185 2011-06-10 Jan Hubicka <jh@suse.cz>
1187 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
1188 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
1189 (self_recursive_p): Use cgraph_function_node.
1190 (propagate_pure_const): Likewise.
1191 (propagate_nothrow): Likewise.
1192 * ipa-reference.c (ipa_reference_get_not_read_global): Use
1193 cgraph_function_node.
1194 (propagate_bits): Likewise.
1195 (propagate): Likewise.
1197 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1198 Richard Earnshaw <rearnsha@arm.com>
1200 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
1201 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
1202 (*thumb2_movdi_vfp): Delete.
1203 (*arm_movdi_vfp_cortexa8): Delete.
1204 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
1205 (*movdi_vfp_cortexa8): Likewise.
1207 2011-06-10 Richard Guenther <rguenther@suse.de>
1209 * stor-layout.c (initialize_sizetypes): Give names to all
1212 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
1214 PR tree-optimization/49318
1215 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
1216 irrelevant pattern statements.
1218 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
1220 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
1223 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
1226 2011-06-09 Jan Hubicka <jh@suse.cz>
1228 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
1229 do not recompute reachable flag.
1230 (cgraph_finalize_function, cgraph_analyze_functions): Set
1231 redefined_extern_inline here.
1233 2011-06-09 Jan Hubicka <jh@suse.cz>
1235 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
1236 (cgraph_only_called_directly_p): ... this one; bring offline.
1237 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
1238 varpool_used_from_object_file_p): Drop names from the declaratoin.
1239 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
1240 collect_callers_of_node): New.
1241 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
1242 (cgraph_edge_recursive_p): Use cgraph_function_node.
1243 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
1244 (cgraph_node_cannot_be_local_p_1): Break out from ...
1245 (cgraph_node_can_be_local_p): ... here; walk aliases.
1246 (cgraph_for_node_thunks_and_aliases): New function.
1247 (cgraph_for_node_and_aliases): New function.
1248 (cgraph_make_node_local_1): Break out from ...
1249 (cgraph_make_node_local) ... here; use
1250 cgraph_for_node_thunks_and_aliases.
1251 (cgraph_set_nothrow_flag_1): Break out from ...
1252 (cgraph_set_nothrow_flag) ... here;
1253 use cgraph_for_node_thunks_and_aliases.
1254 (cgraph_set_const_flag_1): Break out from ...
1255 (cgraph_set_const_flag) ... here;
1256 use cgraph_for_node_thunks_and_aliases.
1257 (cgraph_set_pure_flag_1): Break out from ...
1258 (cgraph_set_pure_flag) ... here;
1259 use cgraph_for_node_thunks_and_aliases.
1260 (cgraph_propagate_frequency_1): Break out from ...
1261 (cgraph_propagate_frequency) ... here; use
1262 cgraph_for_node_thunks_and_aliases.
1263 (cgraph_used_from_object_file_p): Do not care about aliases.
1264 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
1266 (collect_callers_of_node_1, collect_callers_of_node): New functions.
1268 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
1270 PR rtl-optimization/49154
1271 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
1272 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
1273 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
1274 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
1275 * config/cris/cris.h (cris_register_move_cost): Remove
1276 !TARGET_V32 code. Tweak comments.
1278 2011-06-09 Jan Hubicka <jh@suse.cz>
1280 * cgraphbuild.c (record_eh_tables): Mark personality function as having
1283 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
1285 PR rtl-optimization/49154
1286 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
1287 is a matching slot in the hashtable, assign it to classes_ptr.
1289 PR rtl-optimization/49154
1290 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
1292 * doc/tm.texi: Regenerate.
1294 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
1297 * config/sh/sh.md (UNSPEC_CHKADD): New.
1298 (chk_guard_add): New define_insn_and_split.
1299 (symGOT_load): Use chk_guard_add instead of blockage.
1301 2011-06-09 Kai Tietz <ktietz@redhat.com>
1303 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
1305 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
1307 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
1309 2011-06-09 Wei Guozhi <carrot@google.com>
1312 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
1313 (peephole2 for conditional move): Generate 16 bit instructions.
1315 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
1317 * config/i386/i386.md (*movdi_internal_rex64): Merge
1318 alternatives 6 and 8.
1320 2011-06-09 David Li <davidxl@google.com>
1322 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
1323 * passes.c (passr_eq): New function.
1324 (create_pass_tab): New function.
1325 (pass_traverse): New function.
1326 (dump_one_pass): New function.
1327 (dump_pass_list): New function.
1328 (dump_passes): New function.
1330 2011-06-09 David Li <davidxl@google.com>
1332 * tree-complex.c (tree_lower_complex): Gate cleanup.
1333 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
1334 (execute_optimize_stdarg): Ditto.
1335 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
1336 (execute_cleanup_eh_1): Ditto.
1337 (execute_cleanup_eh): Ditto.
1338 * gcse.c (gate_rtl_pre): Ditto.
1339 (execute_rtl_pre): Ditto.
1340 * except.c (finish_eh_generation): Ditto.
1341 (convert_to_eh_region_ranges): Ditto.
1342 * cprop.c (one_cprop_pass): Ditto.
1344 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
1347 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
1348 in all basic blocks.
1350 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1352 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
1353 (HAVE_ENABLE_EXECUTE_STACK): Define.
1354 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
1355 (HAVE_ENABLE_EXECUTE_STACK): Define.
1356 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
1357 (HAVE_ENABLE_EXECUTE_STACK): Define.
1358 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
1359 (ENABLE_EXECUTE_STACK): Remove.
1360 (HAVE_ENABLE_EXECUTE_STACK): Define.
1361 [IN_LIBGCC2]: Don't include <windows.h>.
1362 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
1363 (HAVE_ENABLE_EXECUTE_STACK): Define.
1364 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
1365 (HAVE_ENABLE_EXECUTE_STACK): Define.
1366 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
1367 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
1368 (HAVE_ENABLE_EXECUTE_STACK): Define.
1369 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
1370 (HAVE_ENABLE_EXECUTE_STACK): Define.
1371 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
1372 (HAVE_ENABLE_EXECUTE_STACK): Define.
1373 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
1374 (HAVE_ENABLE_EXECUTE_STACK): Define.
1375 * config/alpha/alpha.c (alpha_trampoline_init): Test
1376 HAVE_ENABLE_EXECUTE_STACK.
1377 * config/i386/i386.c (ix86_trampoline_init): Likewise.
1378 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
1379 (sparc64_initialize_trampoline): Likewise.
1380 * libgcc2.c [L_enable_execute_stack]: Remove.
1381 * system.h (ENABLE_EXECUTE_STACK): Poison.
1382 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
1383 * doc/tm.texi: Regenerate.
1384 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
1386 2011-06-09 Jakub Jelinek <jakub@redhat.com>
1389 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
1390 variable. After resetting and rescanning insn continue with previous
1393 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1395 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
1396 (gcc_cv_ld_hidden): Likewise.
1397 * configure: Regenerate.
1398 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
1399 (ix86_stack_protect_fail): Mark unused.
1400 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
1401 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
1402 [TARGET_MACHO]: Don't define.
1403 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
1404 (TARGET_STACK_PROTECT_FAIL): Likewise.
1405 (rs6000_stack_protect_fail): Mark unused.
1406 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
1407 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
1409 2011-06-08 Andi Kleen <ak@linux.intel.com>
1411 * varasm.c (get_section): Print location of other conflict
1412 for section conflicts.
1414 2011-06-08 Andi Kleen <ak@linux.intel.com>
1416 * config/i386/driver-i386.c (host_detect_local_cpu):
1417 Add model 0x2d Intel CPU.
1419 2011-06-08 Andi Kleen <ak@linux.intel.com>
1421 * reginfo.c (global_regs_decl): Add.
1422 (globalize_reg): Add decl parameter. Compute location. Pass location
1423 to warnings and add inform. Store decl in global_regs_decl.
1424 * rtl.h (globalize_reg): Update prototype.
1425 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
1427 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
1429 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
1431 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
1434 * config/sh/predicates.md (general_movsrc_operand): Check
1435 mode for memory with indexed address for QI and HImode.
1436 (general_movdst_operand): Likewise.
1438 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
1440 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
1442 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
1444 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
1445 (num_ssa_operands): Likewise.
1446 (op_iter_init_phiuse): Forward-declare.
1447 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
1449 2011-06-08 Nick Clifton <nickc@redhat.com>
1451 * doc/invoke.texi (ARM Options): Update description of
1454 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
1456 * config/i386/driver-i386.c (host_detect_local_cpu): Support
1457 unknown Intel family 0x6 CPUs.
1459 2011-06-08 Martin Jambor <mjambor@suse.cz>
1461 * tree-sra.c (mark_rw_status): Removed.
1462 (analyze_access_subtree): New parameter parent instead of
1463 mark_read and mark_write, propagate from that.
1465 2011-06-08 Julian Brown <julian@codesourcery.com>
1467 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
1468 for double-precision helper functions in hard-float mode if only
1469 single-precision arithmetic is supported in hardware.
1471 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
1473 PR rtl-optimization/49303
1474 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
1475 code_motion_path_driver returned 0 or 1.
1476 (sel_region_finish): Clear h_d_i_d.
1478 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
1480 * config/sh/sh.c (prepare_move_operands): Set pic register
1481 appropriately for global and local dynamic tls models even
1482 if flag_pic is unset.
1484 2011-06-07 Jason Merrill <jason@redhat.com>
1486 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
1488 2011-06-07 Xinliang David Li <davidxl@google.com>
1489 * passes.c (enable_disable_pass): Handle assembler name.
1490 (is_pass_explicitly_enabled_or_disabled): Ditto.
1492 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1494 PR tree-optimization/48497
1495 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
1497 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1499 PR tree-optimization/46728
1500 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
1501 to use gimple_val_nonnegative_real_p.
1502 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
1503 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
1505 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
1507 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
1509 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
1511 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
1514 2011-06-07 Richard Guenther <rguenther@suse.de>
1516 * stor-layout.c (initialize_sizetypes): Initialize all
1517 sizetypes based on target definitions.
1518 (set_sizetype): Remove.
1519 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
1520 * tree.h (set_sizetype): Remove.
1522 2011-06-07 Nick Clifton <nickc@redhat.com>
1524 * config.gcc: Unify V850 architecture options and add support for
1525 newer V850 architectures.
1526 * config/v850/t-v850e: Delete.
1528 2011-06-07 Richard Guenther <rguenther@suse.de>
1530 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
1531 Call set_sizetype from here.
1533 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
1535 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
1536 (*maddhisi4tb, *maddhisi4tt): New define_insns.
1538 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
1539 Andrew Stubbs <ams@codesourcery.com>
1541 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
1543 * doc/md.texi (Canonicalization of Instructions): Document widening
1544 multiply canonicalization.
1546 2011-06-07 Jakub Jelinek <jakub@redhat.com>
1548 PR gcov-profile/49299
1549 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
1551 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
1553 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
1555 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
1556 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
1557 vect_recog_pow_pattern): Likewise.
1558 (vect_pattern_recog_1): Remove declaration.
1559 (widened_name_p): Remove declaration. Add new argument to specify
1560 whether to check that both types are either signed or unsigned.
1561 (vect_recog_widen_mult_pattern): Update documentation. Handle
1562 unsigned patterns and multiplication by constants.
1563 (vect_pattern_recog_1): Update vect_recog_func references. Use
1564 statement information from the statement returned from pattern
1565 detection functions.
1566 (vect_pattern_recog): Update vect_recog_func reference.
1567 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
1568 multiplication by a constant use the type of the other operand.
1570 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
1572 PR rtl-optimization/49145
1573 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
1575 2011-06-06 Jakub Jelinek <jakub@redhat.com>
1578 * dwarf2out.c (native_encode_initializer): Decrement count in each
1582 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
1586 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
1587 if stmt folded into nothing.
1588 * tree-inline.c (fold_marked_statements): If a builtin at the end of
1589 a bb folded into nothing, just update cgraph edges and move to next bb.
1590 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
1591 to be NULL. Don't compute count and frequency if new_call is NULL.
1593 2011-06-04 Diego Novillo <dnovillo@google.com>
1595 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
1596 (cgraph.o): Likewise.
1597 (cgraphunit.o): Likewise.
1598 * cgraphunit.c: Include lto-streamer.h
1599 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
1601 * lto-streamer-in.c (unpack_value_fields): Call
1602 streamer_hooks.unpack_value_fields if set.
1603 (lto_materialize_tree): For unhandled nodes, first try to
1604 call lto_streamer_hooks.alloc_tree, if it exists.
1605 (lto_input_ts_decl_common_tree_pointers): Move reading of
1606 DECL_INITIAL to lto_streamer_read_tree.
1607 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
1608 (lto_streamer_read_tree): New.
1609 (lto_reader_init): Rename from lto_init_reader.
1610 Move initialization code to lto/lto.c.
1611 * lto-streamer-out.c (pack_value_fields): Call
1612 streamer_hooks.pack_value_fields if set.
1613 (lto_output_tree_ref): For tree nodes that are not normally indexable,
1614 call streamer_hooks.indexable_with_decls_p before giving up.
1615 (lto_output_ts_decl_common_tree_pointers): Move handling
1616 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
1617 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
1618 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
1619 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
1620 (lto_streamer_write_tree): New.
1621 (lto_output): Call lto_streamer_init directly.
1622 (lto_writer_init): Remove.
1623 * lto-streamer.c (streamer_hooks): New.
1624 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
1625 instead of lto_preload_common_nodes.
1626 (lto_is_streamable): Move from lto-streamer.h
1627 (lto_streamer_hooks_init): New.
1628 (streamer_hooks): New.
1629 (streamer_hooks_init): New.
1630 * lto-streamer.h (struct output_block): Forward declare.
1631 (struct lto_input_block): Likewise.
1632 (struct data_in): Likewise.
1633 (struct bitpack_d): Likewise.
1634 (struct streamer_hooks): Declare.
1635 (streamer_hooks): Declare.
1636 (lto_streamer_hooks_init): Declare.
1637 (lto_streamer_write_tree): Declare.
1638 (lto_streamer_read_tree): Declare.
1639 (streamer_hooks_init): Declare.
1640 (lto_is_streamable): Move to lto-streamer.c
1642 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1644 * longlong.h (smul_ppmm): The resulting register pair contains the
1645 higher order word first.
1647 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1649 PR tree-optimization/46728
1650 * builtins.c (powi_table): Remove.
1651 (powi_lookup_cost): Remove.
1652 (powi_cost): Remove.
1653 (expand_powi_1): Remove.
1654 (expand_powi): Remove.
1655 (expand_builtin_pow_root): Remove.
1656 (expand_builtin_pow): Remove.
1657 (expand_builtin_powi): Eliminate handling of constant exponent.
1658 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
1660 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
1662 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
1664 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
1666 * dce.c (reset_unmarked_insns_debug_uses): New.
1667 (delete_unmarked_insns): Skip debug insns.
1668 (prescan_insns_for_dce): Likewise.
1669 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
1670 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
1671 active reg can be found.
1672 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
1673 (convert_regs_1): Use it.
1675 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
1677 * tree-pretty-print.c (dump_function_header): Add flags.
1678 Don't dump decl_uid with nouid.
1679 * tree-pretty-print.h (dump_function_header): Adjust.
1680 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
1681 * passes.c (pass_init_dump_file): Pass dump_flags on.
1682 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
1684 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
1687 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
1689 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
1691 PR tree-optimization/49243
1692 * calls.c (setjmp_call_p): Also check if fndecl has the
1693 returns_twice attribute.
1695 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1697 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
1700 2011-06-06 Richard Henderson <rth@redhat.com>
1701 Georg-Johann Lay <avr@gjlay.de>
1704 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
1706 * config/avr/avr.md ("insv"): New insn expander.
1707 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
1708 "*insv.not.io", "*insv.reg"): New insns.
1710 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
1713 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
1714 to nonimmediate_operand from memory_operand for the operand that is to
1715 be forced to memory by the expander. Lose the constraints.
1717 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
1719 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
1720 EH return when delayed branches are disabled.
1722 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
1724 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
1725 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
1727 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
1728 Simplify MODE_V1DF and MODE_V2SF handling.
1729 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
1730 Simplify MODE_SF handling.
1732 2011-06-04 Jan Hubicka <jh@suse.cz>
1734 PR tree-optimization/48893
1735 PR tree-optimization/49091
1736 PR tree-optimization/49179
1737 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
1740 2011-06-04 Jan Hubicka <jh@suse.cz>
1743 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
1746 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
1748 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
1750 2011-06-04 Jakub Jelinek <jakub@redhat.com>
1753 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
1754 to be strictly smaller than 1 << shiftcount.
1756 2011-06-04 Jan Hubicka <jh@suse.cz>
1758 PR tree-optimize/48929
1759 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
1762 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
1765 * calls.c (emit_call_1): Prefer the __builtin declaration of
1768 2011-06-03 Diego Novillo <dnovillo@google.com>
1770 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
1771 (lto_input_tree_pointers): Likewise.
1772 * lto-streamer-out.c (pack_value_fields): Likewise.
1773 (lto_output_tree_pointers): Likewise.
1774 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
1775 and OPTIMIZATION_NODE.
1777 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1779 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
1780 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
1781 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
1782 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
1783 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
1784 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
1785 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
1786 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
1787 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
1788 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
1789 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
1790 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
1791 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
1792 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
1793 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
1794 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
1795 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
1796 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
1797 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
1798 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
1799 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
1800 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
1801 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
1802 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
1803 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
1804 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
1805 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
1806 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
1807 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
1808 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
1809 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
1810 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
1811 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
1812 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
1813 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
1814 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
1815 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
1816 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
1817 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
1818 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
1819 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
1820 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
1821 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
1822 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
1823 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
1824 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
1825 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
1826 * system.h (MD_UNWIND_SUPPORT): Poison.
1827 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
1828 * doc/tm.texi: Regenerate.
1829 * unwind-dw2.c: Include md-unwind-support.h instead of
1831 * config/ia64/unwind-ia64.c: Likewise.
1832 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
1834 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
1836 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
1838 2011-06-03 Richard Henderson <rth@redhat.com>
1839 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1841 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
1842 (sigill_hdlr): Correct insn, insn size.
1843 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
1845 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1847 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
1849 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
1850 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
1851 * config/mips/t-iris: Remove.
1852 * config/mips/t-irix6: New file.
1853 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
1855 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1857 * Makefile.in (LIB2ADDEHDEP): Remove.
1858 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
1859 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
1860 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
1861 * config/t-darwin (LIB2ADDEHDEP): Remove.
1862 * config/t-freebsd (LIB2ADDEHDEP): Remove.
1863 * config/t-linux (LIB2ADDEHDEP): Remove.
1865 2011-06-03 Diego Novillo <dnovillo@google.com>
1867 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
1868 (lto_register_var_decl_in_symtab): Likewise.
1869 (lto_register_function_decl_in_symtab): Likewise.
1870 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
1871 logic to uniquify_nodes.
1873 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1875 * config/alpha/t-osf5: Remove.
1876 * config/alpha/t-osf-pthread: Remove.
1877 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
1878 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
1880 2011-06-03 Julian Brown <julian@codesourcery.com>
1882 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
1883 (strongarm1110): Use strongarm tuning.
1884 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
1885 * config/arm/arm.c (arm_strongarm_tune): New.
1886 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
1887 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
1888 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
1889 setting, using previous defaults or 1 for Cortex-A5.
1890 (arm_option_override): Set max_insns_skipped from current tuning.
1892 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
1894 * doc/install.texi (Options specification): Document --with-specs.
1896 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1898 * config/arm/neon.md (orndi3_neon): Actually split it.
1900 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
1902 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
1903 * var-tracking.c (reverse_op): Limite recurse depth to 5.
1905 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
1908 * target.def (delay_sched2, delay_vartrack): New.
1909 * doc/tm.texi.in: Update.
1910 * doc/tm.texi: Rebuild.
1911 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
1912 * var-tracking.c (gate_handle_var_tracking): Likewise.
1913 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
1914 (bfin_flag_var_tracking): Drop.
1915 (output_file_start): Don't save and override flag_var_tracking.
1916 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
1917 (bfin_reorg): Test original variables.
1918 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
1919 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
1920 (ia64_flag_var_tracking): Drop.
1921 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
1922 (ia64_file_start): Don't save and override flag_var_tracking.
1923 (ia64_override_options_after_change): Ditto
1924 flag_schedule_insns_after_reload.
1925 (ia64_reorg): Test original variables.
1926 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
1927 (picochip_flag_var_tracking): Drop.
1928 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
1929 (picochip_option_override): Don't save and override
1930 flag_schedule_insns_after_reload.
1931 (picochip_asm_file_start): Ditto flag_var_tracking.
1932 (picochip_reorg): Test original variables.
1933 * config/spu/spu.c (spu_flag_var_tracking): Drop.
1934 (TARGET_DELAY_VARTRACK): Define.
1935 (spu_var_tracking): New.
1936 (spu_machine_dependent_reorg): Call it.
1937 (asm_file_start): Don't save and override flag_var_tracking.
1939 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
1942 * config/sh/predicates.md (general_movsrc_operand): Return 0
1943 for memory and memory subreg of which address is an invalid
1944 indexed address for QI and HImode.
1945 (general_movdst_operand): Likewise.
1947 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
1949 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
1950 edges only, when there is a non-local label in the function.
1951 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
1953 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
1955 * config/i386/constraints.md (Y3): New register constraint.
1956 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
1957 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
1958 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
1959 *sse2_interleave_lowv2df.
1961 2011-06-02 Julian Brown <julian@codesourcery.com>
1963 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
1964 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
1965 (arm_cortex_a5_tune): New.
1967 2011-06-02 Julian Brown <julian@codesourcery.com>
1969 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
1970 * config/arm/arm.c (arm_default_branch_cost): New.
1971 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
1972 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
1973 (arm_fa726_tune): Set branch_cost field using
1974 arm_default_branch_cost.
1975 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
1976 current_tune structure.
1977 * dojump.c (tm_p.h): Include file.
1979 2011-06-02 Julian Brown <julian@codesourcery.com>
1981 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
1983 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
1984 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
1985 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
1987 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
1988 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
1989 (arm_fa726te_tune): Add prefer_constant_pool setting.
1990 (arm_v6t2_tune, arm_cortex_tune): New.
1991 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
1992 prefer_constant_pool setting.
1994 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
1996 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
1998 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
1999 (*movdf_internal) <case 6,7,8>: Ditto.
2001 * config/i386/constraints.md (Y4): New register constraint.
2002 * config/i386/sse.md (vec_set<mode>_0): Merge with
2003 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
2004 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
2005 *vec_extractv2di_1_sse.
2006 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
2007 and *vec_concatv2di_rex64_sse.
2009 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
2012 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
2013 of cgraph_local_info for null before attempting to use it.
2015 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
2017 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
2018 (current_function_dynamic_alloc_count): Delete.
2019 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
2020 (expand_builtin_nonlocal_goto): Remove obsolete comment.
2021 (expand_builtin_update_setjmp_buf): Remove dead code.
2022 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
2023 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
2025 * function.c (instantiate_virtual_regs): Likewise.
2026 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
2027 for a block with a single abnormal incoming edge.
2028 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
2029 (SETJMP_VIA_SAVE_AREA): Delete.
2030 * config/sparc/sparc-protos.h (load_got_register): Declare.
2031 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
2032 (load_got_register): Make global.
2033 (sparc_frame_pointer_required): Add 'static'.
2034 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
2035 (sparc_builtin_setjmp_frame_value): New function.
2036 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
2037 (save_stack_nonlocal): New expander.
2038 (restore_stack_nonlocal): Likewise.
2039 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
2040 (nonlocal_goto_internal): New insn.
2041 (goto_handler_and_restore): Delete.
2042 (builtin_setjmp_setup): Likewise.
2043 (do_builtin_setjmp_setup): Likewise.
2045 (builtin_setjmp_receiver): New expander.
2047 2011-06-01 David Li <davidxl@google.com>
2050 * tree-pretty-print.c (dump_function_header): Format cleanup.
2052 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
2055 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
2056 needed when original operands are used for msw_skip comparison.
2058 2011-06-01 Jakub Jelinek <jakub@redhat.com>
2061 * var-tracking.c (add_uses, add_stores): Don't call
2062 cselib_subst_to_values on ENTRY_VALUE.
2064 2011-06-01 Diego Novillo <dnovillo@google.com>
2066 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
2067 output_record_start with LTO_null instead of output_zero.
2068 (lto_output_ts_binfo_tree_pointers): Likewise.
2069 (lto_output_tree): Likewise.
2070 (output_eh_try_list): Likewise.
2071 (output_eh_region): Likewise.
2072 (output_eh_lp): Likewise.
2073 (output_eh_regions): Likewise.
2074 (output_bb): Likewise.
2075 (output_function): Likewise.
2076 (output_unreferenced_globals): Likewise.
2077 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
2078 instead of NUM_TREE_CODES.
2079 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
2080 (lto_output_int_in_range): Change << to >> when shifting VAL.
2082 2011-06-01 Diego Novillo <dnovillo@google.com>
2084 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
2085 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
2087 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
2090 * optabs.h (valid_multiword_target_p): Declare.
2091 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
2092 doing multi-word operations.
2093 * optabs.c (expand_binop): Likewise.
2094 (expand_doubleword_bswap): Likewise.
2095 (expand_absneg_bit): Likewise.
2096 (expand_unop): Likewise.
2097 (expand_copysign_bit): Likewise.
2098 (multiword_target_p): New function.
2100 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
2102 PR rtl-optimization/48830
2103 PR rtl-optimization/48808
2104 PR rtl-optimization/48792
2105 * reload.c (push_reload): Check contains_reg_of_mode.
2106 * reload1.c (strip_paradoxical_subreg): New function.
2107 (gen_reload_chain_without_interm_reg_p): Use it to handle
2108 paradoxical subregs.
2109 (emit_output_reload_insns, gen_reload): Likewise.
2111 2011-06-01 David Li <davidxl@google.com>
2113 * predict.c : Change pass name
2116 * tree-profile.c: Ditto.
2119 2011-06-01 David Li <davidxl@google.com>
2121 * tree-pretty-print.c (dump_function_header): New function.
2122 * final.c (rest_of_clean_state): Use header dumper.
2123 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
2124 * passes.c (pass_init_dump_file): Use header dumper.
2126 2011-06-01 Jakub Jelinek <jakub@redhat.com>
2128 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
2129 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
2130 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
2132 (mem_loc_descriptor): Use them.
2134 * var-tracking.c (create_entry_value): New function.
2135 (vt_add_function_parameter): Use it.
2137 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2139 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
2140 Include <signal.h>, <ucontext.h>.
2141 (sigill_caught): Define.
2142 (sigill_hdlr): New function.
2143 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
2144 insns can be executed.
2145 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
2146 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
2148 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2150 * config/t-slibgcc-darwin: Move to ...
2151 * config/t-slibgcc-dummy: ... this. Clarify comments.
2152 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
2153 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
2154 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
2155 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
2156 Remove i386/t-crtstuff from tmake_file.
2157 (i[34567]86-*-solaris2*): Remove t-svr4,
2158 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
2160 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
2161 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
2162 sparc/t-crtfm from tmake_file.
2163 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
2164 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
2166 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
2167 * config/i386/t-nwld (SHLIB_LINK): Remove.
2168 * config/i386/t-rtems-i386: Rename to ...
2169 * config/i386/t-rtems: ... this.
2170 ($(T)crti.o, $(T)crtn.o): Remove.
2171 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
2172 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
2173 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
2174 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
2175 EXTRA_MULTILIB_PARTS): Remove.
2176 * config/sparc/t-sol2-64: Likewise.
2177 * config/sparc/t-sol2: Remove.
2178 * config/sparc/t-crtin: Remove.
2179 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
2180 * config/i386/gmon-sol2.c: Remove.
2181 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
2182 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
2183 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
2184 * config/i386/sol2-gc1.asm: Remove.
2185 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
2186 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
2187 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
2188 * config/t-slibgcc-sld: Remove.
2190 2011-06-01 Jakub Jelinek <jakub@redhat.com>
2192 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
2193 base_type_for_mode with op_mode instead of mode.
2195 2011-06-01 Paul Brook <paul@cpodesourcery.com>
2197 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
2199 * config/arm/arm-tune.md: Regenerate.
2200 * config/arm/arm-tables.opt: Regenerate.
2201 * config/arm/arm.c (FL_DIV): Rename...
2202 (FL_THUMB_DIV): ... to this.
2203 (FL_ARM_DIV): Define.
2204 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
2205 (arm_arch_hwdiv): Remove.
2206 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
2207 (arm_issue_rate): Add cortexr5.
2208 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
2209 __ARM_ARCH_EXT_IDIV__.
2210 (TARGET_IDIV): Define.
2211 (arm_arch_hwdiv): Remove.
2212 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
2213 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
2214 (divsi3, udivsi3): New patterns.
2215 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
2216 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
2218 2011-06-01 Martin Jambor <mjambor@suse.cz>
2220 * ipa-utils.c (ipa_dfs_info): New field scc_no.
2221 * ipa-utils.c (searchc): Set scc_no.
2223 2011-06-01 Martin Jambor <mjambor@suse.cz>
2225 * ipa-utils.c (searchc_env): New field allow_overwritable.
2226 (searchc): do not ignore edges to overwritable nodes if indicated
2227 by env->allow_overwritable.
2228 (ipa_reduced_postorder): Set env.allow_overwritable.
2230 2011-06-01 Richard Guenther <rguenther@suse.de>
2232 * tree.c (free_lang_data): Do not reset boolean_type_node nor
2234 * lto-streamer.c (lto_record_common_node): Take node pointer,
2235 do not register types.
2236 (lto_preload_common_nodes): Explicitly skip preloading nodes
2237 that differ between frontends.
2239 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
2241 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
2244 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
2246 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
2247 parameter value for dump. Dump cost on outermost call only.
2248 (rs6000_memory_move_cost): Dump cost on outermost call only.
2250 2011-05-31 Jakub Jelinek <jakub@redhat.com>
2252 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
2253 DW_OP_GNU_convert ops.
2255 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
2256 cselib_preserve_constants.
2257 (cselib_lookup_1): If cselib_preserve_constants,
2258 a new VALUE is being created for REG and there is a VALUE for the
2259 same register in wider mode, add another loc with lowpart SUBREG of
2261 (cselib_subst_to_values): Handle ENTRY_VALUE.
2262 * var-tracking.c (replace_expr_with_values): Return NULL for
2264 * dwarf2out.c (convert_descriptor_to_signed): New function.
2265 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
2266 instead of two shifts.
2267 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
2268 the right mode if needed.
2269 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
2270 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
2271 convert_descriptor_to_signed.
2272 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
2273 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
2276 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
2278 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
2280 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
2281 of X87MODEI12 and SWI48x instead of SSEMODEI24.
2282 (SWI248x): New mode iterator, rename from X87MODEI.
2283 (X87MODEI): Remove mode iterator.
2284 (X87MODEI12): Ditto.
2285 (SSEMODEI24): Ditto.
2287 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
2289 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
2290 * doc/invoke.texi: Document max-vartrack-expr-depth.
2291 * var-tracking.c (EXPR_DEPTH): New.
2292 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
2294 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
2296 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
2297 * config/i386/sse.md: Add n to negated FMA pattern names.
2299 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
2301 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
2303 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
2305 * gengtype-state.c (read_state_params_structs): Initialize previous.
2307 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
2309 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
2310 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
2312 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
2314 * config/i386/i386.md (*movtf_internal): Avoid allocating general
2315 registers. Penalize F*r->o alternative to prevent partial memory
2316 stalls. Slightly penalize *roF->*r alternative. Generate SSE
2317 CONST_DOUBLE immediates when optimizing function for size. Do not move
2318 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
2319 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
2320 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
2321 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
2323 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
2325 (fp_register_operand splitters): Use fp_register_operand
2326 constraint. Do not use FP_REG_P in insn condition.
2327 (any_fp_register_operand splitters): Use any_fp_register_operand
2328 constraint. Do not use ANY_FP_REG_P in insn condition.
2330 2011-05-31 Jan Hubicka <jh@suse.cz>
2332 * cgraph.h (cgraph_inline_failed_t): Give enum a name
2333 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
2334 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
2335 (lto_output_edge): Use output_enum and var_len_unsigned.
2336 (lto_output_varpool_node): Likewise.
2337 (input_overwrite_node): Do not take resolution parameter;
2338 extract it from a bitpack.
2339 (input_node): Do not read resolution; use input_enum and
2341 (input_varpool_node): Likewise.
2342 (input_edge): Likewise.
2343 (input_cgraph_1): Likewise.
2345 2011-05-31 Richard Guenther <rguenther@suse.de>
2347 * gimple.c (gimple_register_canonical_type): Do not register
2348 any types via gimple_register_type.
2350 2011-05-31 Jan Hubicka <jh@suse.cz>
2352 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
2355 2011-05-31 Jakub Jelinek <jakub@redhat.com>
2357 PR rtl-optimization/49235
2358 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
2359 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
2361 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
2363 PR tree-optimization/49093
2364 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
2367 2011-05-31 Dodji Seketeli <dodji@redhat.com>
2370 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
2371 for concrete functions containing the code of cloned functions.
2373 2011-05-31 Richard Guenther <rguenther@suse.de>
2375 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
2377 (forward_propagate_into_comparison_1): ... this.
2378 (forward_propagate_comparison): Rename to ...
2379 (forward_propagate_into_comparison): ... this. Split out
2380 real forward propagation code to ...
2381 (forward_propagate_comparison): ... this.
2382 (forward_propagate_into_gimple_cond): Remove looping.
2383 (forward_propagate_into_cond): Likewise.
2384 (simplify_not_neg_expr): Return whether we have done something.
2385 (simplify_gimple_switch): Likewise.
2386 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
2387 (ssa_forward_propagate_and_combine): ... this. Re-structure
2388 to do a forward forward-propagation walk on BBs and a backward
2389 stmt combining walk on BBs. Consistently re-scan changed statements.
2390 (pass_forwprop): Adjust.
2392 2011-05-30 Ian Lance Taylor <iant@google.com>
2394 * godump.c (go_format_type): Correct length of name added to
2395 obstack for anonymous field.
2397 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
2400 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
2401 part of the second operand is 0.
2403 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
2405 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
2406 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
2407 to memory for !TARGET_MEMORY_MISMATCH_STALL.
2408 (*movdf_internal_rex64): Do not penalize F->r alternative.
2409 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
2410 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
2411 when optimizing function for size. Do not move CONST_DOUBLEs
2412 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
2413 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
2414 SUBREGs. Do not check for MEM_P operands in the insn condition,
2415 check for ANY_FP_REGNO_P instead.
2416 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
2417 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
2419 * config/i386/i386.c (ix86_option_override_internal): Do not
2420 set TARGET_INTEGER_DFMODE_MOVES here.
2422 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
2425 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
2427 2011-05-30 Jakub Jelinek <jakub@redhat.com>
2429 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
2430 DW_TAG_rvalue_reference_type even for
2431 -gdwarf-4 -fno-debug-types-section.
2433 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2435 PR tree-optimization/46728
2436 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
2437 (build_and_insert_binop): New.
2438 (gimple_expand_builtin_pow): Reorder args for
2439 build_and_insert_call; use build_and_insert_binop; add more
2440 optimizations for fractional exponents.
2442 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
2447 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2449 * tree.h (struct tree_identifier): Inherit from tree_typed, not
2451 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
2452 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
2453 TS_BASE instead of TS_COMMON.
2454 * varasm.c (assemble_name): Remove assert.
2456 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
2458 * config.gcc: Keep obselete list sorted.
2460 2011-05-30 Jakub Jelinek <jakub@redhat.com>
2461 Eric Botcazou <ebotcazou@adacore.com>
2463 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
2464 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
2465 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
2466 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
2467 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
2469 2011-05-30 Richard Guenther <rguenther@suse.de>
2471 * gimple.c (gimple_types_compatible_p_1): Compare record
2472 and union type members properly.
2474 2011-05-30 Richard Guenther <rguenther@suse.de>
2476 PR tree-optimization/49210
2477 * ipa-split.c (split_function): Care for the case where the call
2478 result is not trivially convertible to the result holding variable.
2480 2011-05-30 Richard Guenther <rguenther@suse.de>
2482 PR tree-optimization/49218
2483 * tree-vrp.c (adjust_range_with_scev): Properly check whether
2486 2011-05-30 Richard Guenther <rguenther@suse.de>
2488 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
2489 New function split out from ...
2490 (forward_propagate_into_gimple_cond): ... here. Adjust.
2491 (forward_propagate_into_cond): Likewise.
2492 (forward_propagate_comparison): Also propagate into
2493 comparisons on assignment RHS. Change return value to
2494 behave similar to forward_propagate_into_cond.
2495 (tree_ssa_forward_propagate_single_use_vars): Handle
2496 strict-overflow warnings properly for forward_propagate_comparison.
2498 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2500 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
2502 * configure: Regenerate.
2504 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
2506 PR tree-optimization/49199
2507 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
2508 non-reduction operands are either defined in the loop or by induction.
2510 2011-05-29 Xinliang David Li <davidxl@google.com>
2512 * opts-global.c (handle_common_deferred_options): Handle new options.
2513 * passes.c (register_one_dump_file): Call register_pass_name.
2514 (execute_one_pass): Check explicit enable/disable flag.
2515 (passr_hash): New function.
2517 (register_pass_name): Ditto.
2518 (get_pass_by_name): Ditto.
2521 (enable_pass): Ditto.
2522 (disable_pass): Ditto.
2523 (is_pass_explicitly_enabled_or_disabled): Ditto.
2525 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
2527 * config/i386/i386.md (*movoi_internal_avx): Use
2528 standard_sse_constant_opcode for alternative 0.
2529 (*movti_internal_sse): Ditto.
2530 (*movti_internal_rex64): Use standard_sse_constant_opcode for
2532 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
2534 (*movsi_internal): Ditto.
2535 (*movdi_internal): Ditto. Add ssecvt type moves.
2537 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
2540 * rtlanal.c (simplify_subreg_regno): Adjust comment.
2542 2011-05-29 Jakub Jelinek <jakub@redhat.com>
2544 PR rtl-optimization/49095
2545 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
2546 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
2548 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
2551 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
2552 recurse_p argument. Only follow register copies if it is set,
2553 and prevent mips_find_pic_call_symbol from recursing.
2554 (mips_find_pic_call_symbol): Add a recurse_p argument.
2555 Pass it to mips_pic_call_symbol_from_set.
2556 (mips_annotate_pic_calls): Update accordingly.
2558 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
2560 * emit-rtl.c (try_split): Use a loop to search for
2561 NOTE_INSN_CALL_ARG_LOCATIONs.
2563 2011-05-29 Richard Guenther <rguenther@suse.de>
2565 PR tree-optimization/49217
2566 * ipa-pure-const.c (propagate_pure_const): Fix typos.
2568 2011-05-28 Jan Hubicka <jh@suse.cz>
2570 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
2572 (string_slot_free): Remove
2573 (create_output_block): Initialize obstack.
2574 (destroy_output_block): Free obstack.
2575 (lto_string_index): Add PERSISTENT parameter; do not duplicate
2576 the string unless it needs to be added into the hash.
2577 (lto_output_string_with_length): Add persistent attribute;
2578 handle NULL strings.
2579 (lto_output_string): Add PERSISTENT parameter.
2580 (output_string_cst, output_identifier): Simplify.
2581 (lto_output_location_bitpack): Update.
2582 (lto_output_builtin_tree): Update.
2583 * lto-streamer.h (struct output_block): Add obstack.
2584 (lto_output_string, lto_output_string_with_length): Remove
2585 declarations; functions are static now.
2587 2011-05-28 Jan Hubicka <jh@suse.cz>
2589 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
2590 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
2591 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
2592 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
2593 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
2594 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
2595 unpack_ts_decl_with_vis_value_fields,
2596 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
2597 lto_get_builtin_tree): Use enum and variable length i/o.
2598 * basic-block.h (profile_status_d): Add PROFILE_LAST.
2599 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
2601 (bp_pack_enum, bp_unpack_enum): New macros.
2603 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
2605 * genrecog.c: Remove redundant forward declarations.
2607 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
2609 * config.gcc: Deprecate mips*-*-openbsd*.
2611 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
2614 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
2617 2011-05-27 Andrew Pinski <pinskia@gmail.com>
2620 * gengtype.c (vec_prefix_type): New function.
2621 (note_def_vec): Use vec_prefix_type and change the length
2622 attribute to be based on the prefix.
2623 * vec.c: Include coretypes.h before vec.h.
2624 (struct vec_prefix): Remove.
2625 (vec_gc_p_reserve): Change the offsetof to sizeof.
2626 (vec_gc_p_reserve_exact): Likewise.
2627 (vec_heap_p_reserve): Likewise.
2628 (vec_heap_p_reserve_exact): Likewise.
2629 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
2630 (vec_stack_p_reserve): Change the offsetof to sizeof.
2631 (vec_stack_p_reserve_exact): Likewise.
2632 * vec.h (struct vec_prefix): New struct definition.
2633 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
2634 (VEC_T_GTY(T,B)): Likewise.
2635 (DEF_VEC_FUNC_P(T)): Use prefix field.
2636 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
2637 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
2639 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2641 PR tree-optimization/46728
2642 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
2643 (powi_as_mults): Add gimple_set_location.
2644 (build_and_insert_call): New.
2645 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
2646 0.5, 0.25, 0.75, 1./3., or 1./6.
2648 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
2650 * doc/contrib.texi: Update copyright years.
2651 (Contributors): Add Zdenek Sojka.
2653 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
2655 * c-decl.c (c_push_function_context): Copy the current statement
2657 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
2658 (finish_struct): Call building_stmt_list_p instead of checking
2660 * c-parser.c (c_parser_postfix_expression): Likewise.
2661 * c-typeck.c (c_end_compound_stmt): Likewise.
2662 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
2663 * tree-iterator.c (stmt_list_cache): Change to a VEC.
2664 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
2665 (free_stmt_list): Likewise.
2666 * tree.h (struct tree_statement_list): Include typed_tree instead
2668 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
2669 as TS_TYPED instead of TS_COMMON.
2671 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2672 Uros Bizjak <ubizjak@gmail.com>
2674 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
2675 (HAVE_AS_IX86_TLSGDPTL): Define.
2676 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
2677 (HAVE_AS_IX86_TLSLDMPLT): Define.
2678 * configure: Regenerate.
2679 * config.in: Regenerate.
2680 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
2681 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
2682 TARGET_SUN_TLS, use @tlsgdplt or @plt.
2683 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
2684 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
2686 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
2688 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
2690 * sched-int.h (struct _haifa_deps_insn_data): New members cond
2692 (INSN_COND, INSN_REVERSE_COND): New macros.
2693 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
2695 (sched_get_condition_with_rev): Cache the results, and look them up
2697 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
2698 are clobbered by the current insn.
2699 * target.def (exposed_pipline): New sched data hook.
2700 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
2701 * doc/tm.texi: Regenerate.
2703 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2705 PR tree-optimization/49170
2706 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
2709 2011-05-27 Richard Guenther <rguenther@suse.de>
2712 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
2715 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
2717 * haifa-sched.c (sched_scan_info): Remove.
2718 (schedule_block): Call sched_extend_luids rather than sched_init_luids
2720 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
2722 (sched_scan): Remove.
2723 (sched_extend_luids): Renamed from luids_extend_insn and no longer
2724 static. All callers changed.
2725 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
2726 static. All callers changed.
2727 (sched_init_luids): Remove all arguments except the first. All
2728 callers changed. Don't use sched_scan.
2729 (haifa_init_h_i_d): Likewise.
2730 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
2731 manually rather than using sched_init_luids. Likewise with
2732 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
2733 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
2734 rather than sched_init_luids with NULL args.
2735 * sel-sched-ir.c (new_insns): Remove variable.
2736 (sched_scan): New static function, previously in haifa-sched.c. Remove
2737 all arguments but the first two; all callers changed.
2738 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
2739 rather than sched_init_luids.
2740 (sel_init_bbs): Remove second argument. All callers changed.
2741 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
2742 with NULL arguments.
2743 (create_insn_rtx_from_pattern): Likewise.
2744 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
2745 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
2746 (sched_init_insn_luid, sched_extend_luids): Declare.
2747 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
2750 2011-05-27 Richard Guenther <rguenther@suse.de>
2753 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
2754 A CMP B ? (T) true : (T) false for non-integral types T again.
2756 2011-05-27 Jan Hubicka <jh@suse.cz>
2758 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
2759 so 0 means NULL string.
2760 (lto_output_string_with_length): ... here.
2761 (lto_output_string, output_string_cst, output_identifier): Update
2762 handling of NULL strings.
2763 (lto_output_location_bitpack): New function.
2764 (lto_output_location): Use it.
2765 (lto_output_tree_ref): Use output_record_start.
2766 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
2768 * lto-streamer-in.c (string_for_index): Break out from ...; offset
2770 (input_string_internal): ... here;
2771 (input_string_cst, input_identifier, lto_input_string): Update handling
2773 (lto_input_location_bitpack): New function
2774 (lto_input_location): Use it.
2775 (unpack_ts_type_common_value_fields): Pack align & alias in var len
2777 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
2778 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
2779 (bp_pack_value): Sanity check the value range.
2780 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
2782 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
2785 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
2787 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
2788 call_arg_location instructions down the floor.
2790 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
2792 PR rtl-optimization/49154
2793 * ira.c (setup_pressure_classes): Process class without sublcasses
2794 as a candidate for pressure classes.
2796 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
2798 PR rtl-optimization/48575
2799 * genrecog.c (position_type): New enum.
2800 (position): New structure.
2801 (decision): Use position structure instead of a string.
2802 (root_pos, peep2_insn_pos_list): New variables.
2803 (next_position, compare_positions): New functions.
2804 (new_decision): Use position structures instead of strings.
2805 (maybe_both_true): Likewise.
2806 (change_state): Likewise.
2807 (write_tree): Likewise.
2808 (make_insn_sequence): Likewise.
2810 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2812 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
2813 TS_BASE instead of TS_COMMON.
2814 (find_decls_types_r): Check for TS_TYPED structure before looking at
2816 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
2818 (BLOCK_CHAIN): Use new chain field.
2820 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
2822 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
2823 moves expensive on Power7 also.
2825 2011-05-26 Richard Guenther <rguenther@suse.de>
2827 * fold-const.c (fold_unary_loc): Remove bogus code.
2829 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2831 * tree.h (struct tree_identifier): Inherit from tree_typed, not
2833 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
2834 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
2835 TS_BASE instead of TS_COMMON.
2836 * varasm.c (assemble_name): Remove assert.
2838 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
2840 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
2842 * libgcc-std.ver: Delete file.
2844 2011-05-26 Richard Guenther <rguenther@suse.de>
2846 PR tree-optimization/48702
2847 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
2848 only when we know the base address is within bounds.
2849 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
2850 assume the base address of TARGET_MEM_REFs is in bounds.
2852 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2855 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
2856 declaration in TARGET_SOLARIS.
2858 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
2860 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
2861 The instruction is then expanded explicitly.
2862 (supported_compare): Callable instruction.
2863 (compare): Likewise.
2865 2011-05-26 Jakub Jelinek <jakub@redhat.com>
2868 * gimplify.c (shortcut_cond_r): Don't special case
2869 COND_EXPRs if they have void type on one of their arms.
2871 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
2873 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
2874 to reduce duplication, and to achieve a slightly more logical order
2877 2011-05-26 Jakub Jelinek <jakub@redhat.com>
2879 PR tree-optimization/49161
2880 * tree-vrp.c (struct case_info): New type.
2881 (compare_case_labels): Sort case_info structs instead of
2882 trees, and not primarily by CASE_LABEL uids but by
2883 label_for_block indexes.
2884 (find_switch_asserts): Put case labels into struct case_info
2885 array instead of TREE_VEC, adjust sorting, compare label_for_block
2886 values instead of CASE_LABELs.
2888 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2890 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
2891 ("orndi3_neon"): Likewise.
2892 ("bic<mode>3_neon"): Likewise.
2894 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
2896 PR tree-optimization/49038
2897 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
2898 Ensure at least one epilogue iteration if required by data
2900 * tree-vectorizer.h (struct _loop_vec_info): Add new field
2901 to mark loops that require peeling for gaps.
2902 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
2903 (vect_get_known_peeling_cost): Take peeling for gaps into
2905 (vect_transform_loop): Generate epilogue if required by data
2907 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
2908 loop as requiring an epilogue if there are gaps in the end of
2911 2011-05-25 Ian Lance Taylor <iant@google.com>
2913 * godump.c (go_format_type): Output the first field with a usable
2916 2011-05-25 Ian Lance Taylor <iant@google.com>
2918 * godump.c (go_format_type): Check for invalid type names, pointer
2919 target types, and struct field types.
2921 2011-05-25 Jason Merrill <jason@redhat.com>
2923 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
2925 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
2927 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
2929 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
2931 * config/i386/i386.md (*movqi_extv_1)): Put back
2932 "register_operand" check in "type" calculation.
2933 (*movqi_extzv_2): Likewise.
2935 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
2937 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
2939 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
2942 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
2943 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
2944 __divxc3, __divtc3): Wrap definitions in #ifndef.
2946 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
2949 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
2950 "register_operand" check and replace q_regs_operand with
2951 QIreg_operand in "type" calculation.
2952 (*movqi_extv_1): Likewise.
2953 (*movqi_extzv_2_rex64): Likewise.
2954 (*movqi_extzv_2): Likewise.
2956 * config/i386/predicates.md (QIreg_operand): New.
2958 2011-05-25 Richard Guenther <rguenther@suse.de>
2960 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
2961 type-based offset disambiguation, streamline MEM_REF and
2962 TARGET_MEM_REF handling.
2964 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
2966 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
2967 (bdesc_special_args): Add pause intrinsic.
2969 * config/i386/i386.md (UNSPEC_PAUSE): New.
2972 * config/i386/ia32intrin.h (__pause): Likewise.
2974 * doc/extend.texi (X86 Built-in Functions): Add documentation for
2977 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2979 PR tree-optimization/46728
2980 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
2981 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
2983 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
2985 * tree.h (struct tree_exp): Inherit from struct tree_typed.
2986 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
2987 instead of TS_COMMON.
2989 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
2991 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
2992 LIBGCC2_GNU_PREFIX is defined.
2994 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
2995 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
2996 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
2997 __clz_tab): Define using __N.
2998 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
2999 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
3000 * target.def (libfunc_gnu_prefix): New hook.
3001 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
3002 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
3003 * doc/tm.texi: Regenerate.
3004 * system.h (LIBGCC2_GNU_PREFIX): Poison.
3005 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
3007 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
3008 (init_optabs): Likewise for the bswap libfuncs.
3009 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
3011 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
3012 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
3013 * libgcc-std.ver: Remove.
3014 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
3015 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
3017 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
3018 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
3019 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
3020 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
3021 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
3022 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
3023 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
3024 * config/fixed-bit.h (FIXED_OP): Define differently depending on
3025 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
3026 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
3028 2011-05-25 Jan Hubicka <jh@suse.cz>
3030 * lto-streamer-out.c (output_record_start): Use lto_output_enum
3031 (lto_output_tree): Use output_record_start.
3032 * lto-streamer-in.c (input_record_start): Use lto_input_enum
3033 (lto_get_pickled_tree): Use input_record_start.
3034 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
3035 (lto_value_range_error): New function.
3036 * lto-streamer.h (lto_value_range_error): Declare.
3037 (lto_output_int_in_range, lto_input_int_in_range): New functions.
3038 (lto_output_enum, lto_input_enum): New macros.
3040 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
3042 * common.opt (flag_stack_usage_info): New variable.
3043 (-Wstack-usage): New option.
3044 * doc/invoke.texi (Warning options): Document -Wstack-usage.
3045 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
3046 <OPT_fstack_usage>: Likewise.
3047 * toplev.c (output_stack_usage): Handle -Wstack-usage.
3048 * calls.c (expand_call): Test flag_stack_usage_info variable instead
3049 of flag_stack_usage.
3050 (emit_library_call_value_1): Likewise.
3051 * explow.c (allocate_dynamic_stack_space): Likewise.
3052 * function.c (instantiate_virtual_regs ): Likewise.
3053 (prepare_function_start): Likewise.
3054 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
3055 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
3056 * config/arm/arm.c (arm_expand_prologue): Likewise.
3057 (thumb1_expand_prologue): Likewise.
3058 * config/avr/avr.c (expand_prologue): Likewise.
3059 * config/i386/i386.c (ix86_expand_prologue): Likewise.
3060 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
3061 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
3062 * config/mips/mips.c (mips_expand_prologue): Likewise.
3063 * config/pa/pa.c (hppa_expand_prologue): Likewise.
3064 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
3065 * config/s390/s390.c (s390_emit_prologue): Likewise.
3066 * config/sh/sh.c (sh_expand_prologue): Likewise.
3067 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
3068 * config/spu/spu.c (spu_expand_prologue): Likewise.
3070 2011-05-25 Richard Guenther <rguenther@suse.de>
3072 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
3073 (gimple_canonical_types_compatible_p): Likewise.
3075 2011-05-25 Jan Hubicka <jh@suse.cz>
3078 * ipa.c (function_and_variable_visibility): Only add to same
3079 comdat group list if DECL_ONE_ONLY.
3081 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
3083 PR rtl-optimization/49014
3084 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
3086 2011-05-25 Jakub Jelinek <jakub@redhat.com>
3089 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
3091 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
3093 PR rtl-optimization/48757
3094 * ira-build.c (loop_with_eh_edge_p): Rename to
3095 loop_with_complex_edge_p, check edges on complexity, make function
3097 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
3100 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
3102 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
3103 force flag_ira_share_save_slots to 0.
3105 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
3107 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
3108 (vt_initialize): Set PROLOGUE_BB unconditionally.
3109 Add block comment about CFA_BASE_RTX machinery.
3110 Reset FP_CFA_OFFSET to -1 on all invalid paths.
3111 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
3113 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
3116 * c-parser.c (c_parser_objc_class_instance_variables): More robust
3117 parsing of syntax error in ObjC instance variable lists. In
3118 particular, avoid an infinite loop if there is a stray ']'.
3119 Updated error message.
3121 2011-05-24 Ian Lance Taylor <iant@google.com>
3123 * godump.c (go_define): Don't accept a string immediately after
3126 2011-05-24 Ian Lance Taylor <iant@google.com>
3128 * godump.c (struct godump_container): Add invalid_hash field.
3129 (go_format_type): Return false if type is found in invalid_hash.
3130 (go_output_typedef): Add invalid type to invalid_hash.
3131 (go_finish): Create and delete invalid_hash.
3133 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3135 PR tree-optimization/46728
3136 * tree-ssa-math-opts.c (powi_table): New.
3137 (powi_lookup_cost): New.
3139 (powi_as_mults_1): New.
3140 (powi_as_mults): New.
3141 (gimple_expand_builtin_powi): New.
3142 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
3143 (gate_cse_sincos): Remove sincos/cexp restriction.
3145 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3148 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
3150 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
3151 * mips-tdump.c: Likewise.
3153 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
3156 * config/i386/driver-i386.c (host_detect_local_cpu): Always
3157 add -mno-XXX. Handle FMA.
3159 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
3161 PR rtl-optimization/48633
3162 * ira-build.c (loop_with_eh_edge_p): New function.
3163 (mark_loops_for_removal): Use it.
3165 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
3167 PR rtl-optimization/48971
3168 * ira.c (setup_pressure_classes): Don't check register move cost
3169 for classes with one registers. Don't add pressure class if there
3170 is a pressure class with the same available hard registers.
3171 Check contains_reg_of_mode. Fix a typo in collecting
3172 temp_hard_regset. Ignore hard registers not belonging to a class.
3174 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
3177 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
3179 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
3180 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3182 PR gcov-profile/48845
3183 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
3185 2011-05-24 Richard Guenther <rguenther@suse.de>
3187 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
3188 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
3189 (gimple_types_compatible_p_1): Adjust.
3190 (iterative_hash_canonical_type): Do not bother about complete vs.
3192 (gimple_canonical_types_compatible_p): Likewise.
3194 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3196 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
3198 2011-05-24 Richard Guenther <rguenther@suse.de>
3201 * gimple.c (gimple_register_canonical_type): Revert
3203 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
3204 does not for a tree for the case where it matters. Cache
3205 pointer-type alias-sets.
3207 2011-05-24 Joseph Myers <joseph@codesourcery.com>
3209 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
3210 (OBJS): Remove options.o, opts-common.o and prefix.o.
3211 (OBJS-libcommon-target): New.
3212 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
3213 (BACKEND): Include libcommon-target.a.
3214 (MOSTLYCLEANFILES): Include libcommon-target.a.
3215 (libcommon-target.a): New.
3216 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
3219 2011-05-23 Joseph Myers <joseph@codesourcery.com>
3221 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
3222 parts of output shared with the driver.
3223 * optc-gen.awk: Don't generate parts of output not shared with the
3225 * opth-gen.awk: Remove GCC_DRIVER conditionals.
3226 * doc/options.texi (SourcerInclude): Mention options-save.c.
3227 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
3228 (OBJS): Add options-save.o.
3229 (options-save.c, options-save.o): New.
3230 (options.o): Update dependencies.
3231 (gcc-options.o): Remove.
3232 (mostlyclean): Remove options-save.c.
3234 2011-05-23 Jakub Jelinek <jakub@redhat.com>
3237 * dbxout.c: Include cgraph.h.
3238 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
3239 and without value expr, return NULL if no varpool node exists for
3240 it or if it is not needed.
3241 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
3244 * c-decl.c (start_decl): Convert expr to void_type_node.
3246 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
3248 PR rtl-optimization/48826
3249 * emit-rtl.c (try_split): When splitting a call that is followed
3250 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
3252 2011-05-23 Jakub Jelinek <jakub@redhat.com>
3254 * cfgexpand.c (expand_debug_expr): For unused non-addressable
3255 parameters passed in memory prefer using DECL_INCOMING_RTL over
3256 the pseudos it will be copied into.
3258 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
3261 * config/i386/i386.c (ix86_option_override_internal): Save the
3262 initial options after checking vzeroupper.
3264 2011-05-23 David Li <davidxl@google.com>
3266 PR tree-optimization/48988
3267 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
3268 Initialize has_valid_pred for each pred chain.
3270 2011-05-23 Richard Guenther <rguenther@suse.de>
3272 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
3273 (iterative_hash_gimple_type): Always hash type names.
3275 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
3277 * c-typeck.c (build_function_call_vec): Tweak call to
3278 check_function_arguments.
3280 2011-05-23 Richard Guenther <rguenther@suse.de>
3282 PR tree-optimization/49115
3283 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
3284 is not necessarily carried out, do not claim it kills the ref.
3285 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
3287 2011-05-23 Richard Guenther <rguenther@suse.de>
3290 * builtins.c (fold_builtin_memory_op): Be less restrictive about
3291 what pointer types we accept for folding.
3293 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3295 * gthr-gnat.c: Remove.
3296 * gthr-gnat.h: Remove.
3297 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
3298 * config/t-freebsd (LIB2ADDEH): Likewise.
3299 * config/t-linux (LIB2ADDEH): Likewise.
3300 * config/t-sol2 (LIB2ADDEH): Likewise.
3301 * config/ia64/t-vms (LIB2ADDEH): Likewise.
3302 * configure.ac (target_thread_file): Remove gnat handling.
3303 * configure: Regenerate.
3304 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
3306 2011-05-23 Tristan Gingold <gingold@adacore.com>
3307 Eric Botcazou <ebotcazou@adacore.com>
3309 * gcov.c (create_file_names): If no object directory is specified,
3310 keep the directory of the file.
3312 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3314 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
3315 * configure: Regenerate.
3317 2011-05-23 Jakub Jelinek <jakub@redhat.com>
3320 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
3321 failed and the comparison has a single bit signed type, use
3322 constm1_rtx instead of const1_rtx for true value.
3323 (do_store_flag): If ops->type is single bit signed type, disable
3324 signel bit test optimization and pass -1 instead of 1 as last
3325 parameter to emit_store_flag_force.
3327 2011-05-23 Tom de Vries <tom@codesourcery.com>
3330 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
3332 (infer_loop_bounds_from_undefined): Use new function.
3334 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
3336 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
3337 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
3338 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
3340 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
3342 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
3344 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
3345 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
3348 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
3350 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
3352 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
3354 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
3355 UNSPEC_MOVE_PIC pattern.
3357 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
3359 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
3360 (sparc-*-rtems*): Likewise.
3361 (sparc64-*-elf*): Likewise.
3362 (sparc64-*-rtems*): Likewise.
3363 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
3364 * config/sparc/t-crtin: New file.
3365 * config/sparc/t-sol2 (crti.o): Delete rule.
3367 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
3368 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
3369 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
3370 (ENDFILE_SPEC): Add crtn.o.
3372 2011-05-22 Tom de Vries <tom@codesourcery.com>
3375 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
3376 CODE_CONTAINS_STRUCT (TS_COMMON).
3378 2011-05-22 Jakub Jelinek <jakub@redhat.com>
3381 * expmed.c (extract_fixed_bit_field): Test whether target can be used
3382 only after deciding which mode to use.
3384 2011-05-22 Tom de Vries <tom@codesourcery.com>
3387 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
3388 for call to get_shiftadd_cost.
3390 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
3393 * config/i386/cpuid.h (bit_MMXEXT): New define.
3395 2011-05-22 Nick Clifton <nickc@redhat.com>
3397 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
3398 initialisation of non-existant args[2] element. Use args[] array
3399 not arg[] array to pass arguments to build_function_type_list.
3401 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
3403 PR tree-optimization/49087
3404 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
3406 2011-05-21 Jason Merrill <jason@redhat.com>
3409 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
3410 static storage duration.
3412 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
3414 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
3417 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
3419 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
3420 false if there are call-saved registers here...
3421 (sparc_can_use_return_insn_p): ...but here instead.
3422 (save_or_restore_regs): Fix thinko.
3423 (sparc_expand_prologue): Use current_function_is_leaf.
3424 (sparc_frame_pointer_required): Likewise.
3426 2011-05-21 Nick Clifton <nickc@redhat.com>
3429 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
3431 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
3433 * gengtype.c (walk_type): Implemented "atomic" GTY option.
3434 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
3436 2011-05-21 Joseph Myers <joseph@codesourcery.com>
3438 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
3439 * optc-gen.awk: Move common code to opt-read.awk.
3440 * opth-gen.awk: Likewise.
3441 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
3443 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
3445 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
3447 2011-05-20 Tom de Vries <tom@codesourcery.com>
3450 * tree-ssa-loop-ivopts.c: Include expmed.h.
3451 (get_shiftadd_cost): New function.
3452 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
3454 2011-05-20 Jakub Jelinek <jakub@redhat.com>
3457 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
3458 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
3460 2011-05-20 Joseph Myers <joseph@codesourcery.com>
3462 * Makefile.in: Update comment referring to $(OBJS-common).
3464 2011-05-20 Ian Lance Taylor <iant@google.com>
3466 * godump.c (go_output_typedef): Put enum constants in the macro
3467 hash table to avoid duplicate Go const definitions.
3469 2011-05-20 Joseph Myers <joseph@codesourcery.com>
3471 * Makefile.in (LIBDEPS): Add libcommon.a.
3473 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
3474 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
3475 pretty-print.o and version.o.
3476 (OBJS-libcommon): New.
3477 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
3478 (BACKEND): Add libcommon.a.
3479 (MOSTLYCLEANFILES): Likewise.
3481 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
3482 (cpp$(exeext)): Likewise.
3483 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
3484 pretty-print.o and input.o.
3485 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
3486 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
3488 (mips-tfile): Don't explicitly use version.o.
3489 (mips-tdump): Likewise.
3490 (gcov.o): Depend on $(DIAGNOSTIC_H).
3491 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
3492 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
3493 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
3494 * gcov-dump.c: Include intl.h and diagnostic.h.
3495 (main): Initialize diagnostics.
3496 * gcov.c: Include diagnostic.h.
3498 (main): Initialize diagnostics.
3499 * lto-wrapper.c: Include diagnostic.h.
3500 (main): Initialize diagnostics.
3502 2011-05-20 Michael Matz <matz@suse.de>
3504 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
3506 2011-05-20 Michael Matz <matz@suse.de>
3507 Richard Guenther <rguenther@suse.de>
3509 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
3510 use lto_streamer_cache_append directly instead of returning a VEC.
3511 (preload_common_node): Remove.
3512 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
3514 (lto_streamer_cache_create): Call lto_preload_common_nodes.
3516 2011-05-20 Richard Guenther <rguenther@suse.de>
3518 PR tree-optimization/49079
3519 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
3520 MEM_REFs correctly for the trailing array access detection.
3521 Special case constants the same way as decls for overall size
3524 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
3526 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
3529 2011-05-20 Jakub Jelinek <jakub@redhat.com>
3531 PR tree-optimization/49073
3532 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
3533 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
3534 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
3536 2011-05-20 Richard Guenther <rguenther@suse.de>
3539 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
3540 of pointer types the same way the middle-end does.
3542 2011-05-20 Richard Guenther <rguenther@suse.de>
3544 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
3545 or pointer-to chains. Delay all fixup to uniquify_nodes.
3547 2011-05-19 Quentin Neill <quentin.neill@amd.com>
3549 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
3550 (fma4_fmaddsub): Likewise
3552 2011-05-19 Jan Hubicka <jh@suse.cz>
3554 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
3555 (GIMPLE_TYPE_PAIR_SIZE): New macro.
3556 (type_pair_cache): New static var.
3557 (lookup_type_pair): Use fixed sized custom hash; make inline.
3558 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
3559 calls of lookup_type_pair.
3560 (print_gimple_types_stats): Remove cache stats.
3561 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
3564 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
3566 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
3567 when TARGET_RDRND is active.
3568 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
3569 Generate dummy SImode target register when target is NULL.
3571 2011-05-19 Joseph Myers <joseph@codesourcery.com>
3573 * config/arm/arm-fpus.def: New.
3574 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
3576 * config/arm/arm-tables.opt: Regenerate.
3577 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
3578 (arm_option_override): Don't decode FPU name to string here.
3579 * config/arm/arm.opt (mfpu=): Use Enum.
3580 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
3581 Update dependencies.
3583 2011-05-19 Joseph Myers <joseph@codesourcery.com>
3585 * collect2.c: Include diagnostic.h.
3586 (fatal_perror, fatal, error, fancy_abort): Remove.
3587 (main): Set progname. Call xmalloc_set_program_name and
3588 diagnostic_initialize.
3589 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
3590 scan_libraries, resolve_lib_name): Call fatal_error instead of
3591 fatal and fatal_perror.
3592 * collect2.h (error, fatal, fatal_perror): Don't declare.
3593 * tlink.c: Include diagnostic-core.h.
3594 (recompile_files): Call fatal_error instead of fatal_perror.
3595 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
3596 pretty-print.o and input.o.
3597 (collect2.o, tlink.o): Update dependencies.
3599 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3601 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
3603 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3606 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
3607 COMDAT group syntax, both SPARC and x86 variants.
3608 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
3609 * configure: Regenerate.
3610 * config/sol2.h (TARGET_SOLARIS): Define.
3611 (PUSHSECTION_FORMAT): Remove.
3612 (SECTION_NAME_FORMAT): Define.
3613 * config/sol2.c: Include hashtab.h.
3614 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
3615 expansion, using SECTION_NAME_FORMAT.
3616 (solaris_comdat_htab): New variable.
3617 (struct comdat_entry): Define.
3618 (comdat_hash): New function.
3619 (comdat_eq): New function.
3620 (solaris_elf_asm_comdat_section): New function.
3621 (solaris_define_comdat_signature): New function.
3622 (solaris_code_end): New function.
3623 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
3624 (solaris_code_end): Declare.
3625 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
3626 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
3628 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
3629 Remove ATTRIBUTE_UNUSED.
3630 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
3631 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
3632 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
3633 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
3634 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
3635 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
3636 (PUSHSECTION_FORMAT): Remove.
3637 (SECTION_NAME_FORMAT): Redefine.
3639 2011-05-19 Kai Tietz <ktietz@redhat.com>
3641 * tree-cfg.c (verify_gimple_assign_binary): Barf on
3642 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
3643 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
3645 2011-05-19 Anatoly Sokolov <aesok@post.ru>
3646 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3648 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
3650 2011-05-19 Richard Guenther <rguenther@suse.de>
3653 * tree-object-size.c (addr_object_size): If the pointed-to
3654 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
3656 2011-05-19 Richard Guenther <rguenther@suse.de>
3658 * gimple.c (gimple_types_compatible_p_1): Compare names of
3659 the types themselves.
3660 (iterative_hash_gimple_type): And hash them that way.
3661 (gimple_register_type_1): If we register a main variant properly
3662 initialize the leader to ourselves.
3664 2011-05-19 Tom de Vries <tom@codesourcery.com>
3667 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
3668 get_loop_invariant_expr_id.
3669 (get_loop_invariant_expr_id): Use get_expr_id.
3670 (parm_decl_cost): New function.
3671 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
3672 Improve bound cost estimation. Use different inv_expr_id for elim and
3675 2011-05-19 Tom de Vries <tom@codesourcery.com>
3678 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
3679 cost_base.cost == 0.
3681 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
3684 * config/i386/sse.md
3685 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
3688 2011-05-18 Jakub Jelinek <jakub@redhat.com>
3690 PR tree-optimization/49039
3691 * tree-vrp.c (extract_range_from_binary_expr): For
3692 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
3693 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
3695 2011-05-18 Tom de Vries <tom@codesourcery.com>
3698 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
3700 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
3702 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
3703 (*tls_global_dynamic_64): Ditto.
3704 (*tls_local_dynamic_base_32_gnu): Ditto.
3705 (*tls_local_dynamic_base_64): Ditto.
3706 (tls_initial_exec_64_sun): Ditto.
3708 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
3710 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
3711 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
3713 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
3714 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
3715 * config/bfin/bfin.c (bfin_cpus): Add bf592.
3716 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
3717 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
3718 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
3719 * config/bfin/elf.h (LIB_SPEC): Add bf592.
3721 2011-05-18 Joseph Myers <joseph@codesourcery.com>
3723 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
3724 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
3725 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
3726 target_thread_pointer, arm_structure_size_boundary, struct
3727 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
3728 struct abi_name, arm_all_abis): Remove.
3729 (arm_option_override) Don't process most enumerated option values here.
3730 Don't process target_fpe_name here. Work with integer not string for
3731 structure size boundary; use separate diagnostics for each case.
3732 * config/arm/arm.h (enum float_abi_type, enum
3733 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
3735 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
3736 arm_structure_size_boundary): Remove.
3737 * config/arm/arm.opt (mabi=): Use Enum and Init.
3738 (arm_abi_type): New Enum and EnumValue entries.
3739 (mfloat-abi=): Use Enum and Init.
3740 (float_abi_type): New Enum and EnumValue entries.
3741 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
3742 (mfp16-format=): Use Enum and Init.
3743 (arm_fp16_format_type): New Enum and EnumValue entries.
3744 (mstructure-size-boundary=): Use UInteger and Init.
3745 (mtp=): Use Enum and Init.
3746 (arm_tp_type): New Enum and EnumValue entries.
3748 2011-05-18 Richard Guenther <rguenther@suse.de>
3750 PR tree-optimization/49018
3751 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
3752 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
3753 gimple_has_side_effects.
3755 2011-05-18 Richard Guenther <rguenther@suse.de>
3757 * gimple.c (gimple_register_type_1): New function, split out from ...
3758 (gimple_register_type): ... here. Avoid infinite recursion.
3760 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
3762 PR tree-optimization/41881
3763 * tree-vectorizer.h (struct _loop_vec_info): Add new field
3764 reduction_chains along with a macro for its access.
3765 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
3766 (destroy_loop_vec_info): Free reduction chains.
3767 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
3768 (vect_is_slp_reduction): New function.
3769 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
3770 (vect_create_epilog_for_reduction): Support SLP reduction chains.
3771 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
3772 definition types for reduction chains.
3773 (vect_supported_load_permutation_p): Don't allow permutations for
3775 (vect_analyze_slp_instance): Support reduction chains.
3776 (vect_analyze_slp): Try to build SLP instance from reduction chains.
3777 (vect_get_constant_vectors): Handle reduction chains.
3778 (vect_schedule_slp_instance): Mark the first statement of the
3779 reduction chain as reduction.
3781 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
3783 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
3784 names for group elements access.
3785 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
3786 reduction chains as well. Remove data reference and interleaving
3787 related words from the fields names.
3788 * tree-vect-loop.c (vect_transform_loop): Use new names for group
3790 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
3791 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
3792 vect_update_interleaving_chain, vect_same_range_drs,
3793 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
3794 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
3795 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
3796 vect_analyze_group_access, vect_analyze_data_ref_access,
3797 vect_create_data_ref_ptr, vect_transform_strided_load,
3798 vect_record_strided_load_vectors): Likewise.
3799 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
3800 vect_model_load_cost, vectorizable_store, vectorizable_load,
3801 vect_remove_stores, new_stmt_vec_info): Likewise.
3802 * tree-vect-slp.c (vect_build_slp_tree,
3803 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
3805 2011-05-18 Richard Guenther <rguenther@suse.de>
3808 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
3809 operand verification.
3810 (verify_gimple_assign_binary): Likewise.
3811 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
3812 to non-1-precision BOOLEAN_TYPEs.
3814 2011-05-18 Tom de Vries <tom@codesourcery.com>
3817 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
3819 2011-05-18 Jakub Jelinek <jakub@redhat.com>
3821 PR tree-optimization/49000
3822 * tree-ssa.c (execute_update_addresses_taken): Call
3823 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
3824 be rewritten and decl has been marked for renaming, reset
3827 2011-05-17 Joseph Myers <joseph@codesourcery.com>
3829 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
3830 enum_opts_set when testing if attributes have set -mfpmath=.
3832 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
3834 * config/mips/mips.c (mips_handle_option): Remove unused variable.
3836 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
3838 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
3840 * tree-inline.c (maybe_inline_call_in_expr): Initialize
3841 id.transform_lang_insert_block with NULL.
3843 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
3845 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
3846 (output_fp_compare): Change args 3 and 4 to bool.
3847 (ix86_expand_call): Change arg 6 to bool.
3848 (ix86_attr_length_immediate_default): Change arg 2 to bool.
3849 (ix86_attr_length_vex_default): Change arg 3 to bool.
3850 * config/i386/i386.md: Update all uses.
3851 * config/i386/i386.c: Ditto.
3852 (ix86_flags_dependent): Change return type to bool.
3854 2011-05-17 Richard Guenther <rguenther@suse.de>
3856 * gimple.c (type_hash_pair_compare): Fix comparison.
3858 2011-05-17 Richard Guenther <rguenther@suse.de>
3860 * gimple.c (iterative_hash_gimple_type): Simplify singleton
3861 case some more, fix final hash value of the non-singleton case.
3863 2011-05-17 Richard Guenther <rguenther@suse.de>
3867 2011-05-16 Richard Guenther <rguenther@suse.de>
3869 * gimple.c (gimple_types_compatible_p_1): Use names of the
3870 type itself, not its main variant.
3871 (iterative_hash_gimple_type): Likewise.
3873 2011-05-17 Richard Guenther <rguenther@suse.de>
3875 * gimple.c (gimple_register_canonical_type): Use the main-variant
3876 leader for computing the canonical type.
3878 2011-05-17 Nick Clifton <nickc@redhat.com>
3880 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
3883 * config/rx/rx.md: Add peephole to remove redundant extensions
3885 (bitset_in_memory): Use rx_restricted_mem_operand.
3886 (bitinvert_in_memory): Likewise.
3887 (bitclr_in_memory): Likewise.
3889 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
3890 Nick Clifton <nickc@redhat.com>
3892 * config/rx/rx.md: Add peepholes to match a register move followed
3893 by a comparison of the moved register. Replace these with an
3894 addition of zero that does both actions in one instruction.
3896 2011-05-17 Jakub Jelinek <jakub@redhat.com>
3899 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
3900 predicate to allow CONST_INT.
3901 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
3903 2011-05-16 Joseph Myers <joseph@codesourcery.com>
3905 * opts-common.c (opt_enum_arg_to_value): New.
3906 * opts.h (opt_enum_arg_to_value): Declare.
3907 * config/i386/i386.opt (fpmath): Remove.
3908 (mfpmath=): Use Enum, Init and Save.
3909 (fpmath_unit): New Enum and EnumValue entries.
3910 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
3911 name for function fpmath state.
3912 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
3913 * config/i386/i386.c: Include diagnostic.h.
3914 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
3915 (ix86_target_string): Take enum fpmath_unit value instead of string.
3916 (ix86_debug_options): Update call to ix86_target_string.
3917 (ix86_option_override_internal): Don't process fpmath strings here.
3918 (x86_function_specific_save, ix86_function_specific_restore):
3919 Don't handle fpmath state specially.
3920 (ix86_function_specific_print): Pass fpmath state to
3921 ix86_target_string instead of printing in this function.
3922 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
3923 Handle enum attributes.
3924 (IX86_ATTR_ENUM, ix86_opt_enum): New.
3925 (ix86_valid_target_attribute_tree): Update option_strings
3926 handling. Handle fpmath as enum option.
3927 (ix86_can_inline_p): Update field names for function fpmath state.
3928 (ix86_expand_builtin): Update call to ix86_target_string.
3929 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
3930 (ix86_fpmath): Remove.
3931 * config/i386/t-i386 (i386.o): Update dependencies.
3933 2011-05-16 Joseph Myers <joseph@codesourcery.com>
3935 PR preprocessor/48677
3936 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
3937 from decoded_options[0], not from itself.
3939 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
3941 * config/i386/constraints.md (z): New constraint.
3942 * config/i386/i386.c (c): New mode attribute.
3943 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
3944 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
3945 constraint for operand 0.
3946 (*call_vzeroupper): Ditto.
3947 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
3948 (*call_rex64_ms_sysv_vzeroupper): Ditto.
3949 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
3950 Use "lzm" constraint for operand 0.
3951 (*call_pop_vzeroupper): Ditto.
3952 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
3953 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
3954 constraint for operand 0.
3955 (*sibcall_vzeroupper): Ditto.
3956 (*sibcall_rex64_ms_sysv): Ditto.
3957 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
3958 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
3959 *sibcall_pop_1. Use "Uz" constraint for operand 0.
3960 (*sibcall_pop_vzeroupper): Ditto.
3961 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
3962 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
3963 mode iterator. Use "<c>zm" constraint for operand 1.
3964 (*call_value_vzeroupper): Ditto.
3965 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
3967 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
3968 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
3969 *call_value_pop_1. Use "lzm" constraint for operand 1.
3970 (*call_value_pop_vzeroupper): Ditto.
3971 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
3972 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
3973 mode iterator. Use "Uz" constraint for operand 1.
3974 (*sibcall_value_vzeroupper): Ditto.
3975 (*sibcall_value_rex64_ms_sysv): Ditto.
3976 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
3977 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
3978 constraint for operand 1.
3979 (*sibcall_value_pop_vzeroupper): Ditto.
3980 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
3981 and "z" constraint for operand 2.
3982 (*tls_global_dynamic_32_gnu): Ditto.
3983 (*tls_local_dynamic_base_32_gnu): Ditto.
3984 (*tls_local_dynamic_base_64): Ditto.
3985 (*tls_local_dynamic_32_once): Ditto.
3986 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
3988 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
3990 2011-05-16 Richard Guenther <rguenther@suse.de>
3992 * gimple.c (gimple_types_compatible_p_1): Use names of the
3993 type itself, not its main variant.
3994 (iterative_hash_gimple_type): Likewise.
3996 2011-05-16 Richard Guenther <rguenther@suse.de>
3998 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
3999 always visit pointer target and function result and argument types.
4001 2011-05-16 Jason Merrill <jason@redhat.com>
4004 * tree-inline.c (copy_statement_list): Put back recursion.
4006 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
4010 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
4011 * config/avr/avr.md ("*ior<mode>qi.byte0",
4012 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
4014 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
4017 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
4018 register is needed for a function argument.
4020 2011-05-16 Richard Guenther <rguenther@suse.de>
4022 * gimple.c (struct type_hash_pair): New type.
4023 (type_hash_pair_compare): New function.
4024 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
4026 2011-05-16 Revital Eres <revital.eres@linaro.org>
4028 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
4030 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
4032 * config/i386/i386.md (floating point move splitters): Fix
4033 usage of standard_80387_constant_p.
4034 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
4036 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
4038 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
4040 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
4042 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
4043 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
4044 (tree_ssa_lim_finalize): Likewise.
4046 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
4048 * config/i386/constraint.md (Yd, Yx): New register constraints.
4049 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
4050 Yd conditional register constraint.
4051 (*movtf_internal): Use standard_sse_constant_opcode.
4052 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
4053 Yx conditional register constraint.
4054 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
4055 Yd conditional register constraint. Use standard_sse_constant_p to
4056 check for valid SSE constants and call standard_sse_constant_opcode to
4058 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
4059 constants and call standard_sse_constant_opcode to output SSE insn.
4060 * config/i386/i386.c (ix86_option_ovverride_internal): Set
4061 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
4062 optimize_size is set.
4063 (standard_sse_constant_opcode): Output conditional AVX insn templates.
4065 2011-05-14 Tobias Burnus <burnus@net-b.de>
4067 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
4069 2011-05-13 Martin Jambor <mjambor@suse.cz>
4071 * ipa-prop.c (ipa_cst_from_jfunc): New function.
4072 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
4073 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
4074 (evaluate_conditions_for_ipcp_clone): Removed.
4075 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
4076 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
4077 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
4079 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
4081 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
4082 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
4083 lieu of MAY_HAVE_DEBUG_STMTS.
4084 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
4085 debug statements if !MAY_HAVE_DEBUG_STMTS.
4087 2011-05-13 Martin Thuresson <martint@google.com>
4089 PR gcov-profile/47793
4090 * libgcov.c (gcov_exit): Support relative profile paths.
4091 * doc/invoke.texi (-fprofile-dir): Update for above change.
4093 2011-05-13 Richard Guenther <rguenther@suse.de>
4095 * gimple.c (gimple_canonical_types_compatible_p): Do not use
4096 type-pair caching, do not compare hashes.
4098 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
4101 * tree-cfg.c (edge_to_cases_cleanup): Return true.
4102 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
4104 2011-05-13 Kai Tietz <ktietz@redhat.com>
4106 * gimplify.c (gimplify_expr): Make sure operand is boolified.
4107 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
4108 compatible type for TRUTH_NOT_EXPR.
4110 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
4112 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
4113 (ix86_hard_regno_mode_ok): Change return value to bool. Use
4114 can_create_pseudo_p ().
4116 2011-05-13 Richard Guenther <rguenther@suse.de>
4119 * gimple.c (iterative_hash_gimple_type): Revert change in
4120 pointer target and function result and argument hashing.
4122 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
4124 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
4125 (*movxf_internal_nointeger): Ditto.
4126 (*movdf_internal_rex64): Ditto.
4127 (*movdf_internal): Ditto.
4128 (*movdf_internal_nointeger): Ditto.
4129 (*movsf_internal): Ditto.
4130 (sincos splitters): Use can_create_pseudo ().
4132 2011-05-13 Joseph Myers <joseph@codesourcery.com>
4134 * config/i386/i386-opts.h: New.
4135 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
4136 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
4137 ix86_section_threshold): Remove.
4138 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
4139 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
4141 (ix86_option_override_internal): Don't decode strings for options
4142 other than -march=, -mtune= and -mfpmath=. Don't allow for
4143 __attribute__ uses in remaining diagnostics for options with
4144 string arguments. Don't check for integer arguments being negative.
4145 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
4146 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
4147 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
4148 ix86_branch_cost, ix86_section_threshold): Remove.
4149 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
4151 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
4153 (masm=): Use Enum and Init.
4154 (asm_dialect): New Enum and EnumValue entries.
4155 (mbranch-cost=): Use UInteger.
4156 (mlarge-data-threshold=): Use UInteger and Init.
4157 (mcmodel=): Use Enum and Init.
4158 (cmodel): New Enum and EnumValue entries.
4159 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
4160 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
4161 mregparm=): Use UInteger.
4162 (mstringop-strategy=): Use Enum and Init.
4163 (stringop_alg): New Enum and EnumValue entries.
4164 (mtls-dialect=): Use Enum and Init.
4165 (tls_dialect): New Enum and EnumValue entries.
4166 (mabi=): Use Enum and Init.
4167 (calling_abi): New Enum and EnumValue entries.
4168 (mveclibabi=): Use Enum and Init.
4169 (ix86_veclibabi): New Enum and EnumValue entries.
4171 2011-05-13 Nick Clifton <nickc@redhat.com>
4173 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
4174 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
4176 2011-05-13 Kai Tietz <ktietz@redhat.com>
4179 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
4180 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
4181 (gimple_boolify): Check for cast for boolean_type_node instead for
4184 2011-05-13 Richard Guenther <rguenther@suse.de>
4186 PR tree-optimization/48172
4187 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
4188 multiplying by number of iterations for equal step.
4189 (vect_create_cond_for_alias_checks): Likewise.
4191 2011-05-13 Andreas Schwab <schwab@redhat.com>
4193 * configure.ac: Use AS_HELP_STRING throughout.
4194 * configure: Regenerate.
4196 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
4198 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
4199 (ix86_emit_restore_regs_using_mov): Likewise.
4200 (ix86_emit_restore_sse_regs_using_mov): Likewise.
4202 2011-05-12 Anatoly Sokolov <aesok@post.ru>
4204 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
4205 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
4206 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
4207 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
4208 RTX_OK_FOR_OLO10_P): ...here.
4209 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
4212 2011-05-12 Kai Tietz <ktietz@redhat.com>
4214 * gimplify.c (gimple_boolify): Re-boolify expression
4215 arguments even if expression type is of kind BOOLEAN_TYPE.
4216 (gimplify_boolean_expr): Removed.
4217 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
4218 and XOR. Additional take care that we keep expression's type.
4219 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
4220 of TRUTH_AND|OR|XOR_EXPR.
4222 2011-05-12 Jakub Jelinek <jakub@redhat.com>
4224 PR tree-optimization/48975
4225 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
4226 on all bbs here and free and clear ifc_bbs at the end.
4228 2011-05-12 Richard Guenther <rguenther@suse.de>
4230 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
4231 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
4232 until after simple checks.
4233 (gimple_types_compatible_p): Likewise.
4234 (iterative_hash_gimple_type): Always hash pointer targets
4235 and function return and argument types.
4236 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
4237 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
4238 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
4239 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
4240 completely in the simple compare section.
4241 (gimple_register_canonical_type): Query the cache again after
4244 2011-05-12 Richard Guenther <rguenther@suse.de>
4246 PR tree-optimization/48172
4247 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
4248 the number of iterations from the segment size calculation.
4249 (vect_create_cond_for_alias_checks): Adjust.
4251 2011-05-12 Jakub Jelinek <jakub@redhat.com>
4254 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
4255 if validate_subreg fails.
4257 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
4259 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
4260 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
4263 2011-05-12 DJ Delorie <dj@redhat.com>
4265 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
4266 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
4267 created builtin into rx_builtins array.
4268 (rx_builtin_decl): New function.
4269 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
4271 2011-05-12 DJ Delorie <dj@redhat.com>
4272 Nick Clifton <nickc@redhat.com>
4274 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
4275 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
4276 (rx_is_legitimate_address): Add pre-decrement and post-increment
4277 addressing in HImode and QImode. Fix test for out of range
4279 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
4280 (rx_align_for_label): Test label before extracting its usage count.
4281 (rx_adjust_insn_lengths): Fix selection of insn codes.
4282 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
4284 2011-05-11 Jason Merrill <jason@redhat.com>
4286 * tree.c (type_hash_canon): Use struct tree_type_non_common.
4288 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
4290 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
4291 reindent the subsequent block.
4293 2011-05-11 Satoru Takabayashi <satorux@google.com>
4294 Paul Pluzhnikov <ppluzhnikov@google.com>
4296 * doc/install.texi (Configuration): Document --with-linker-hash-style.
4297 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
4298 * config.in: Add LINKER_HASH_STYLE.
4299 * configure.ac: Add --with-linker-hash-style.
4300 * configure: Regenerate.
4302 2011-05-11 Richard Guenther <rguenther@suse.de>
4305 * gimple.c (iterative_hash_canonical_type): Fix typo.
4307 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
4309 * config/i386/i386.c (legitimize_tls_address)
4310 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
4311 expanders directly for TARGET_GNU2_TLS. Determine pic and
4312 __tls_get_addr symbol reference here. Update call to
4313 gen_tls_global_dynamic_{32,64} for added arguments.
4314 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
4315 expanders directly for TARGET_GNU2_TLS. Determine
4316 __tls_get_addr symbol reference here. Update call to
4317 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
4318 unique UNSPEC REG_EQUIV to libcall block.
4319 (ix86_tls_get_addr): Declare static.
4320 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
4321 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
4322 Do not determine pic and __tls_get_addr symbol reference here. Do not
4323 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
4324 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
4325 (tls_global_dynamic_64): Add operand 2. Do not determine
4326 __tls_get_addr symbol reference here. Do not call
4327 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
4328 (tls_local_dynamic_base64): Ditto for operand 1.
4330 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
4332 * function.c (expand_function_start): Initialize stack_check_probe_note
4333 only if the generic stack checking mechanism is used.
4335 2011-05-11 Richard Guenther <rguenther@suse.de>
4337 PR tree-optimization/15256
4338 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
4339 (A & B) | C, combine (A op CST1) op CST2.
4340 (tree_ssa_forward_propagate_single_use_vars): Only bother to
4341 visit assigns that have uses.
4343 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
4345 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
4346 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
4347 (unpack_ts_type_common_value_fields): ...this. Update comment.
4348 (unpack_value_fields): Adjust for renaming.
4349 (lto_input_ts_type_tree_pointers): Split into...
4350 (lto_input_ts_type_common_tree_pointer): ...this and...
4351 (lto_input_ts_type_non_common_tree_pointers): ...this.
4352 (lto_input_tree_pointers): Adjust for above split.
4353 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
4354 (pack_ts_type_common_value_fields): ...this. Update comment.
4355 (lto_output_ts_type_tree_pointers): Split into...
4356 (lto_output_ts_type_common_tree_pointers): ...this and...
4357 (lto_output_ts_type_non_common_tree_pointers): ...this.
4358 (lto_output_tree_pointers): Adjust for above split.
4359 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
4360 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
4361 * stor-layout.c (vector_type_mode): Adjust location of mode field.
4362 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
4364 (struct tree_type): Split into...
4365 (struct tree_type_common: ...this and...
4366 (struct tree_type_with_lang_specific): ...this and...
4367 (struct tree_type_non_common): ...this. Adjust accessor macros
4369 (TYPE_VALUES_RAW): Define.
4370 (union tree_node): Update for above changes.
4371 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
4373 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
4374 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
4375 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
4376 * treestructu.def (TS_TYPE): Remove.
4377 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
4380 2011-05-11 Jakub Jelinek <jakub@redhat.com>
4383 * tree-ssa.c (reset_debug_uses): New function.
4384 * tree-flow.h (reset_debug_uses): New prototype.
4385 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
4386 * tree-loop-distribution.c (generate_loops_for_partition): Call
4387 reset_debug_uses on the stmts that will be removed. Keep around
4388 all debug stmts, don't count them as bits in partition bitmap.
4389 (generate_builtin): Don't count debug stmts or labels as bits in
4392 2011-05-11 Richard Guenther <rguenther@suse.de>
4394 * gimple.c (gimple_type_hash_1): Merge with ...
4395 (gimple_type_hash): ... this.
4396 (gtc_visit): Remove mode parameter and simplify accordingly.
4397 (gimple_types_compatible_p_1): Likewise.
4398 (gimple_types_compatible_p): Likewise.
4399 (iterative_hash_gimple_type): Likewise.
4401 (gimple_type_eq): Adjust.
4403 2011-05-11 Revital Eres <revital.eres@linaro.org>
4405 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
4406 enters the branch create an anti edge in the opposite direction
4407 to prevent the creation of reg-moves.
4408 * modulo-sched.c: Adjust comment to reflect the fact we are
4409 scheduling closing branch.
4410 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
4411 (stage_count): New field in struct partial_schedule.
4412 (calculate_stage_count): New function.
4413 (normalize_sched_times): Rename to reset_sched_times and handle
4414 incrementing the sched time of the nodes by a constant value
4415 passed as parameter.
4416 (duplicate_insns_of_cycles): Skip closing branch.
4417 (sms_schedule_by_order): Schedule closing branch.
4418 (ps_insn_find_column): Handle closing branch.
4419 (sms_schedule): Call reset_sched_times and adjust the code to
4420 support scheduling of the closing branch.
4421 (ps_insert_empty_row): Update calls to normalize_sched_times
4422 and rotate_partial_schedule functions.
4424 2011-05-11 Richard Guenther <rguenther@suse.de>
4427 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
4429 2011-05-11 Joseph Myers <joseph@codesourcery.com>
4431 * opts.c (finish_options): Move warning settings from process_options.
4432 * toplev.c (process_options): Move warning settings to finish_options.
4434 2011-05-11 Richard Guenther <rguenther@suse.de>
4436 PR tree-optimization/18041
4437 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
4438 (simplify_bitwise_binary): ... this. Handle operand conversions
4439 by applying them to the result instead.
4440 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
4442 2011-05-11 Richard Guenther <rguenther@suse.de>
4444 * gimple.c (gimple_canonical_types_compatible_p): Split out
4445 from gimple_types_compatible_p and friends. Do not recurse
4446 to pointed-to types.
4447 (gimple_canonical_type_eq): Use it.
4448 (iterative_hash_canonical_type): Split out from
4449 iterative_hash_gimple_type and friends. Do not recurse
4450 to pointed-to types.
4451 (gimple_canonical_type_hash): Use it, allocate the hash here.
4453 2011-05-11 Revital Eres <revital.eres@linaro.org>
4455 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
4458 2011-05-11 Revital Eres <revital.eres@linaro.org>
4460 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
4461 instead of PREV_INSN.
4463 2011-05-11 Revital Eres <revital.eres@linaro.org>
4465 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
4466 * loop-doloop.c (doloop_condition_get): Likewise.
4467 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
4469 * config/arm/arm.md (*addsi3_compare0): Remove "*".
4471 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
4473 * tree.def (CASE_LABEL_EXPR): Add an operand.
4474 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
4476 2011-05-10 Joseph Myers <joseph@codesourcery.com>
4478 * c-decl.c (c_override_global_bindings_to_false): Remove.
4479 (global_bindings_p): Don't check
4480 c_override_global_bindings_to_false.
4481 * c-tree.h (c_override_global_bindings_to_false): Remove.
4482 * c-typeck.c (composite_type): Don't set
4483 c_override_global_bindings_to_false.
4485 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
4487 PR target/48857, 48495
4488 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
4490 (VSX_MOVE_MODE): Ditto.
4491 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
4492 VSX vector types. Add V2DImode.
4493 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
4494 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
4495 (MODES_TIEABLE_P): Ditto.
4497 * config/rs6000/rs6000.c (rs6000_emit_move): Use
4498 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
4500 (init_cumulative_args): Ditto.
4501 (rs6000_function_arg_boundary): Ditto.
4502 (rs6000_function_arg_advance_1): Ditto.
4503 (rs6000_function_arg): Ditto.
4504 (rs6000_function_ok_for_sibcall): Ditto.
4505 (emit_frame_save): Ditto.
4506 (rs6000_function_value): Ditto.
4507 (rs6000_libcall_value): Ditto.
4509 2011-05-10 Joseph Myers <joseph@codesourcery.com>
4511 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
4512 i386/darwin-lib.h to $libgcc_tm_file.
4513 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
4515 2011-05-10 Joseph Myers <joseph@codesourcery.com>
4517 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
4519 2011-05-10 Joseph Myers <joseph@codesourcery.com>
4521 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
4522 * config/rs6000/rs6000-tables.opt: New file (generated).
4523 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
4524 rs6000/rs6000-tables.opt to extra_options.
4525 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
4526 * config/rs6000/rs6000.c (rs6000_select): Remove.
4527 (processor_target_table): Move contents to rs6000-cpus.def.
4528 (darwin_rs6000_override_options): Check
4529 global_options_set.x_rs6000_cpu_index instead of
4530 rs6000_select[1].string.
4531 (rs6000_option_override_internal): Likewise.
4532 (rs6000_handle_option): Don't assert that global structures are in
4533 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
4534 (rs6000_default_cpu): New variable.
4535 (rs6000_file_start): Set it instead of local default_cpu. Check
4536 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
4537 global_options_set.x_rs6000_tune_index instead of rs6000_select.
4538 (rs6000_darwin_file_start): Check rs6000_default_cpu and
4539 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
4540 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
4541 rs6000_select): Remove.
4542 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
4544 (mcpu=, mtune=): Use Var, Init, Enum and Save.
4545 * config/rs6000/t-rs6000
4546 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
4547 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
4548 global_options_set.x_rs6000_cpu_index instead of
4549 rs6000_select[1].string.
4550 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
4551 global_options_set.x_rs6000_cpu_index instead of
4552 rs6000_select[1].string.
4554 2011-05-10 Joseph Myers <joseph@codesourcery.com>
4556 * config.gcc (libgcc_tm_file): Define instead of including files
4557 from ../../libgcc/config/ in tm_file.
4558 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
4559 * configure: Regenerate.
4560 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
4561 libgcc_tm.h, cs-libgcc_tm.h): New.
4562 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
4563 (clean): Remove libgcc_tm.h.
4564 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
4565 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
4566 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
4568 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
4571 * config/avr/avr.c (avr_ret_register): Return unsigned int
4573 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
4574 it to avr_libcall_value.
4575 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
4577 (avr_expand_binop_builtin): Ditto.
4578 (avr_expand_unop_builtin): Ditto.
4580 2011-05-10 DJ Delorie <dj@redhat.com>
4582 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
4583 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
4584 * config/rx/rx.c (rx_align_for_label): Add label and
4585 uses_threshold parameters. Do not align when the label is not
4587 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
4589 2011-05-10 Richard Guenther <rguenther@suse.de>
4591 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
4592 a series of conversions and apply foldings similar to what
4594 (tree_ssa_forward_propagate_single_use_vars): Call it.
4596 2011-05-10 Jakub Jelinek <jakub@redhat.com>
4598 PR tree-optimization/48611
4599 PR tree-optimization/48794
4600 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
4601 referenced from RESX or EH_DISPATCH arguments.
4604 * dfp.c (decimal_to_decnumber): Handle conversion from
4605 dconst{1,2,m1,half}.
4607 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
4609 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
4610 for !flag_prefer_avx128.
4611 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
4613 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
4615 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
4616 (fold_ternary_loc): Use expr_location_or.
4618 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
4621 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
4622 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
4623 Pmode and mem_mode is not VOIDmode.
4625 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
4627 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
4628 TYPE_QUAL_RESTRICT): Convert to enum.
4630 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
4632 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
4633 (const_pow2_1_to_8_operand): Ditto.
4634 (const_pow2_1_to_128_operand): Ditto.
4635 (const_pow2_1_to_32768_operand): Ditto.
4636 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
4637 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
4638 in insn constraint to check integer value of operand 3.
4639 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
4641 (PINSR_MODE): New mode iterator.
4642 (sse2p4_1): New mode attribute.
4643 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
4644 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
4645 iterator. Use const_int_operand instead of
4646 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
4647 exact_log2 in insn constraint to check integer value of operand 3.
4649 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
4651 * config/i386/sse.md (blendbits): Remove mode attribute.
4652 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
4653 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
4654 Check integer value of operand 3 in insn constraint.
4656 2011-05-09 Richard Guenther <rguenther@suse.de>
4658 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
4660 (lto_symtab_merge): Likewise. Do not register types here.
4661 (lto_symtab_merge_decls_2): Likewise.
4662 (lto_symtab_merge_decls_1): Likewise.
4663 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
4664 * gimple.c (enum gtc_mode): Declare.
4665 (gimple_types_compatible_p): Make static.
4667 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4669 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
4670 temporary register to match Pmode.
4672 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
4674 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
4675 and *vec_concatv4si_1_avx.
4677 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
4679 PR rtl-optimization/48927
4680 * ira-conflicts.c (commutative_constraint_p): Use
4681 recog_data.alternative_enabled_p to disable alternatives where
4682 "enabled" attribute is false.
4683 (get_dup_num): Ditto.
4684 * ira-lives.c (single_reg_class): Ditto.
4685 (ira_implicitly_set_insn_hard_regs): Ditto.
4687 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
4689 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
4690 (dataflow_set_preserve_mem_locs): Likewise.
4692 2011-05-09 Philipp Thomas <pth@suse.de>
4694 * config/mep/mep.c (mep_validate_vliw): Syntax description
4695 should not be translated.
4697 2011-05-09 Joseph Myers <joseph@codesourcery.com>
4699 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
4700 * config/mips/mips-tables.opt: New file (generated).
4701 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
4702 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
4703 MIPS_ARCH_OPTION_NATIVE): Define.
4704 * config/mips/mips.c (mips_cpu_info_table): Move contents to
4706 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
4707 mips_parse_cpu): Remove.
4708 (mips_cpu_info_from_opt, mips_default_arch): New.
4709 (mips_handle_option): Don't assert that global structures are in
4710 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
4711 (mips_option_override): Use new variables and functions to set
4712 state of these options. Use strcmp to check for individual CPU names.
4713 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
4715 * config/mips/mips.opt (march=): Use ToLower and Enum.
4716 (mips): Use ToLower, Enum and Var.
4717 (mtune=): Use ToLower and Enum.
4718 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
4720 2011-05-08 Jan Hubicka <jh@suse.cz>
4722 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
4723 Arrange type pairs to be UID ordered.
4724 (gimple_lookup_type_leader): Make inline.
4726 2011-05-09 Nick Clifton <nickc@redhat.com>
4729 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
4733 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
4736 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
4738 * combine.c (simplify_comparison): Abstract out parts into...
4739 (simplify_compare_const): ... new function.
4740 (try_combine): Generalize parallel arithmetic/compare combining
4741 to call simplify_compare_const() and CANONICALIZE_COMPARE().
4743 2011-05-08 Jan Hubicka <jh@suse.cz>
4745 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
4746 (cgraph_create_virtual_clone): Call hooks once virtual clone
4748 * cgraph.h (cgraph_clone_node): Update prototype.
4749 * ipa-cp.c (ipcp_estimate_growth): Use
4750 estimate_ipcp_clone_size_and_time.
4751 * ipa-inline-transform.c (clone_inlined_nodes): Update.
4752 * lto-cgraph.c (input_node): Update.
4753 * ipa-inline.c (recursive_inlining): Update.
4754 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
4755 (evaluate_conditions_for_known_args): Break out from ...
4756 (evaluate_conditions_for_edge): ... here.
4757 (evaluate_conditions_for_ipcp_clone): New function.
4758 (inline_node_duplication_hook): Update clone summary based
4760 (estimate_callee_size_and_time): Rename to ...
4761 (estimate_node_size_and_time): take NODE instead of EDGE;
4762 take POSSIBLE_TRUTHS as argument.
4763 (estimate_callee_size_and_time): Update.
4764 (estimate_ipcp_clone_size_and_time): New function.
4765 (do_estimate_edge_time): Update.
4767 2011-05-08 Richard Guenther <rguenther@suse.de>
4771 * expmed.c (expand_shift_1): Compute adjusted constant shift
4774 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
4776 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
4778 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
4780 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
4782 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
4784 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
4786 2011-05-07 Jan Hubicka <jh@suse.cz>
4788 * ipa-inline-transform.c (inline_call): Account when program size
4790 * ipa-inline.c (relative_time_benefit): New function.
4791 (edge_badness): Reorganize to be power 2 based; fix thinko when
4792 computing badness for negative growth; update comments to match
4793 reality; better dumps.
4795 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
4797 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
4798 type to bool and adjust comment.
4799 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
4800 (fold_mathfn_compare): Remove calls to global_bindings_p.
4801 (fold_inf_compare): Likewise.
4802 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
4803 * c-tree.h (global_bindings_p): Adjust prototype.
4804 * c-decl.c (global_bindings_p): Return bool and simplify.
4806 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
4808 PR tree-optimization/48837
4809 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
4810 when accumulator transformation is performed.
4812 2011-05-06 Jan Hubicka <jh@suse.cz>
4814 * i386.h (ix86_tune_indices): Add
4815 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
4816 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
4817 * i386.c (initial_ix86_tune_features): Add
4818 X86_SOFTARE_PREFETCHING_BENEFICIAL.
4819 (software_prefetching_beneficial_p): Remove predicate.
4820 (ix86_option_override_internal): Use new macro.
4822 2011-05-06 Jan Hubicka <jh@suse.cz>
4824 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
4826 2011-05-06 Jan Hubicka <jh@suse.cz>
4828 * cgraph.c (cgraph_add_thunk): Create real function node instead
4829 of alias node; finalize it and mark needed/reachale; arrange visibility
4830 to be right and add it into the corresponding same comdat group list.
4831 (dump_cgraph_node): Dump thunks.
4832 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
4833 cgraph_function_with_gimple_body_p,
4834 cgraph_first_function_with_gimple_body,
4835 cgraph_next_function_with_gimple_body): New functions.
4836 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
4838 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
4839 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
4840 * cgraphunit.c (cgraph_finalize_function): Only look into possible
4841 devirtualization when optimizing.
4842 (verify_cgraph_node): Verify thunks.
4843 (cgraph_analyze_function): Analyze thunks.
4844 (cgraph_mark_functions_to_output): Output thunks only in combination
4845 with function they are assigned to.
4846 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
4847 alias into normal node.
4848 (assemble_thunks): New functoin.
4849 (cgraph_expand_function): Use it.
4850 * lto-cgraph.c (lto_output_node): Stream thunks.
4851 (input_overwrite_node): Stream in thunks.
4852 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
4853 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
4854 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
4855 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
4856 (inline_analyze_function): Do not care about thunk jump functions.
4857 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
4858 * ipa-prop.c (ipa_prop_write_jump_functions): Use
4859 cgraph_function_with_gimple_body_p.
4860 * passes.c (do_per_function_toporder): Use
4861 cgraph_function_with_gimple_body_p.
4862 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
4863 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
4864 (function_called_by_processed_nodes_p): Likewise.
4866 2011-05-06 Joseph Myers <joseph@codesourcery.com>
4868 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
4869 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
4871 (mabi=): Replace with separate entries for mabi=altivec,
4872 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
4873 mabi=ieeelongdouble and mabi=ibmlongdouble.
4874 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
4875 check for -mabi=spe without SPE ABI support here.
4876 (rs6000_handle_option): Replace OPT_mabi_ handling with
4877 OPT_mabi_altivec and OPT_mabi_spe handling.
4879 2011-05-06 Cary Coutant <ccoutant@google.com>
4881 * dwarf2out.c (contains_subprogram_definition): New function.
4882 (should_move_die_to_comdat): Call it.
4884 2011-05-06 Jeff Law <law@redhat.com>
4886 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
4887 remove_ctrl_stmt_and_useless_edges.
4888 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
4889 (fixup_template_block, thread_single_edge): Likewise.
4890 (mark_threaded_blocks): Use THREAD_TARGET.
4892 2011-05-06 Alan Modra <amodra@gmail.com>
4895 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
4896 const0_rtx as the arg to the dummy __tls_get_addr libcall.
4898 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
4900 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
4901 constraint modifier to "r".
4903 2011-05-06 Joseph Myers <joseph@codesourcery.com>
4905 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
4906 fall through for OPT_mcmodel_.
4908 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4910 * config/s390/s390.c (s390_asm_trampoline_template): Comment
4912 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
4914 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4917 * config/arm/arm.opt (marm): Document it.
4918 (mthumb): Reject negative variant.
4920 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
4923 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
4924 Fix typo in "ccvt" variable name.
4926 2011-05-06 Tristan Gingold <gingold@adacore.com>
4929 * config/vms/vms-ar.c (main): Remove cwd variable.
4931 2011-05-06 Jakub Jelinek <jakub@redhat.com>
4934 * var-tracking.c (prepare_call_arguments): Move else before #endif.
4936 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
4938 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
4939 * gimplify.c (gimplify_switch_expr): Likewise.
4940 * omp-low.c (expand_omp_sections): Likewise.
4941 * tree-eh.c (lower_try_finally_switch): Likewise.
4942 (lower_eh_dispatch): Likewise.
4943 * tree.h (build_case_label): Declare.
4944 * tree.c (build_case_label): Define.
4946 2011-05-05 Jason Merrill <jason@redhat.com>
4949 * tree-inline.c (copy_tree_r): Use copy_statement_list.
4950 (copy_statement_list): Don't recurse.
4951 * stor-layout.c (copy_self_referential_tree_r): Don't allow
4954 2011-05-05 Joseph Myers <joseph@codesourcery.com>
4956 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
4957 through from -mfpu= handling.
4958 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
4960 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
4962 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
4965 2011-05-05 Steve Ellcey <sje@cup.hp.com>
4967 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
4969 (hppa[12]*-*-hpux11*): Ditto.
4970 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
4971 * config/ia64/hpux-unix2003.h: New.
4972 * config/pa/pa-hpux1131.opt: New.
4973 * config/pa/pa-hpux1131.h: New.
4974 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
4975 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
4976 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
4978 2011-05-05 Jakub Jelinek <jakub@redhat.com>
4981 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
4982 instead of mode as 3rd argument to recursive call.
4983 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
4984 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
4986 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
4987 don't give up if mode is Pmode and mem_mode is not VOIDmode.
4988 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
4989 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
4991 2011-05-05 Julian Brown <julian@codesourcery.com>
4993 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
4994 parenthesis in D-register case.
4996 2011-05-05 Joseph Myers <joseph@codesourcery.com>
4998 * opt-functions.awk (var_type_struct): Handle Enum options.
4999 * optc-gen.awk: Don't check range of variables of character type.
5000 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
5001 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
5002 rs6000_sdata_name, rs6000_explicit_options): Remove.
5003 (rs6000_option_override_internal): Check for -malign-power here.
5004 Use global_options_set instead of rs6000_explicit_options.
5005 (rs6000_parse_fpu_option): Remove.
5006 (rs6000_handle_option): Access variables via opts and opts_set
5007 pointers. Use error_at and warning_at. Add fall-through
5008 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
5009 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
5010 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
5011 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
5012 here. Don't use rs6000_parse_fpu_option.
5013 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
5014 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
5015 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
5017 (mspe): Use Var and Save.
5018 (mtraceback=): Use Enum and Var.
5019 (rs6000_traceback_type): New Enum and EnumValue entries.
5020 (mfloat-gprs=): Use Enum, Var and Save.
5021 (rs6000_float_gprs): New Enum and EnumValue entries.
5022 (mlong-double-): use Var and Save.
5023 (msched-costly-dep=, minsert-sched-nops=): Use Var.
5024 (malign-): Use Enum and Var.
5025 (rs6000_alignment_flags): New Enum and EnumValue entries.
5027 (fpu_type_t): New Enum and EnumValue entries.
5028 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
5029 global_options_set instead of rs6000_explicit_options.
5030 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
5031 global_options_set instead of rs6000_explicit_options.
5032 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
5033 global_options_set instead of rs6000_explicit_options.
5034 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
5035 global_options_set instead of rs6000_explicit_options.
5036 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
5037 global_options_set instead of rs6000_explicit_options.
5038 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
5039 global_options_set instead of rs6000_explicit_options.
5040 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
5042 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
5043 global_options_set instead of rs6000_explicit_options.
5044 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
5045 (rs6000_cmodel): New Enum and EnumValue entries.
5046 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
5047 global_options_set instead of rs6000_explicit_options.
5048 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
5049 (mtls-size=): Use Enum and Var.
5050 (rs6000_tls_size): New Enum and EnumValue entries.
5052 2011-05-05 Michael Matz <matz@suse.de>
5054 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
5055 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
5056 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
5057 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
5058 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
5059 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
5060 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
5061 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
5062 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
5063 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
5064 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
5065 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
5066 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
5067 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
5068 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
5069 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
5071 2011-05-05 Richard Guenther <rguenther@suse.de>
5073 * expmed.c (expand_variable_shift): Rename to ...
5074 (expand_shift_1): ... this. Take an expanded shift amount.
5075 For rotates recurse directly not building trees for the shift amount.
5076 (expand_variable_shift): Wrap around expand_shift_1.
5077 (expand_shift): Adjust.
5079 2011-05-05 Jakub Jelinek <jakub@redhat.com>
5081 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
5083 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
5085 * tree.h (get_pending_sizes): Remove prototype.
5086 (put_pending_size): Likewise.
5087 (put_pending_sizes): Likewise.
5088 * stor-layout.c (pending_sizes): Delete.
5089 (get_pending_sizes): Likewise.
5090 (put_pending_size): Likewise.
5091 (put_pending_sizes): Likewise.
5092 (variable_size): Do not call put_pending_size and tidy up.
5093 * function.h (struct function): Remove dont_save_pending_sizes_p.
5094 * lto-streamer-in.c (input_function): Do not stream it.
5095 * lto-streamer-out.c (output_function): Likewise.
5096 * tree-inline.c (initialize_cfun): Do not copy it.
5097 * c-decl.c (store_parm_decls): Do not set it.
5098 * omp-low.c (create_task_copyfn): Likewise.
5099 * tree-optimize.c (tree_rest_of_compilation): Likewise.
5101 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
5103 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
5105 (*movdf_internal): Ditto.
5106 (*movdf_internal_nointeger): Ditto.
5107 (*movsf_internal): Ditto.
5109 2011-05-05 Joseph Myers <joseph@codesourcery.com>
5111 * c-decl.c (finish_decl): Don't call get_pending_sizes.
5112 (grokparm): Add parameter expr. Pass it to grokdeclarator.
5113 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
5114 (c_variable_size): Remove.
5115 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
5116 call put_pending_sizes.
5117 (get_parm_info): Add parameter expr. Use it to set
5118 arg_info->pending_sizes.
5119 (store_parm_decls): Use arg_info->pending_sizes instead or calling
5121 * c-parser.c (c_parser_parms_declarator): Update call to
5122 c_parser_parms_list_declarator.
5123 (c_parser_parms_list_declarator): Take parameter expr. Update
5124 call to push_parm_decl. Update recursive call. Don't call
5125 get_pending_sizes. Update calls to get_parm_info.
5126 (c_parser_objc_method_definition): Update calls to
5127 c_parser_objc_method_decl and objc_start_method_definition.
5128 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
5129 (c_parser_objc_method_decl): Add parameter expr. Update call to
5131 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
5132 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
5133 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
5135 2011-05-05 Michael Hope <michael.hope@linaro.org>
5138 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
5141 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5143 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
5144 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
5145 (spu_output_mi_thunk): New function.
5147 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5149 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
5150 targetm.asm_out.print_operand.
5151 * config/sol2.c: Include target.h.
5153 2011-05-04 Jan Hubicka <jh@suse.cz>
5155 * ipa-inline.c (reset_edge_caches): New function.
5156 (update_caller_keys): Add check_inlinablity_for; do not
5157 reset edge caches; remove now unnecesary loop.
5158 (update_callee_keys): Add comments; reset node_growth_cache of callee.
5159 (update_all_callee_keys): Likewise.
5160 (inline_small_functions): Sanity check cache; update code
5163 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
5165 PR rtl-optimization/47612
5166 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
5167 as the last insn of the sequence to be moved.
5169 2011-05-04 Tobias Burnus <burnus@net-b.de>
5172 * doc/invoke.texi (Ofast): Document that it
5173 enables Fortran's -fno-protect-parens.
5175 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
5177 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
5179 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
5181 * stor-layout.c (variable_size): Do not issue errors.
5183 2011-05-04 Richard Guenther <rguenther@suse.de>
5185 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
5186 for array-ref indices.
5187 (tree_coverage_counter_addr): Likewise.
5188 (build_fn_info_type): Use size_int for index types.
5189 (build_gcov_info): Likewise.
5191 2011-05-04 Richard Guenther <rguenther@suse.de>
5193 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
5195 * c-typeck.c (really_start_incremental_init): Use bitsize_int
5196 for constructor indices.
5197 (push_init_level): Likewise.
5199 2011-05-04 Richard Guenther <rguenther@suse.de>
5201 * explow.c (promote_mode): Move variable declarations before code.
5203 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
5205 * tree.h (build_function_type_array): Declare.
5206 (build_varargs_function_type_array): Declare.
5207 (build_function_type_vec, build_varargs_function_type_vec): Define.
5208 * tree.c (build_function_type_array_1): New function.
5209 (build_function_type_array): New function.
5210 (build_varargs_function_type_array): New function.
5212 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
5214 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
5215 before setting STMT_VINFO_TYPE.
5217 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5219 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
5220 instead of spu_pass_by_reference.
5222 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5224 * calls.c (emit_library_call_value_1): Invoke
5225 promote_function_mode hook on libcall arguments.
5226 * explow.c (promote_function_mode, promote_mode): Handle TYPE
5227 argument being NULL.
5228 * targhooks.c (default_promote_function_mode): Lisewise.
5229 * config/s390/s390.c (s390_promote_function_mode): Likewise.
5230 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
5232 * doc/tm.texi: Document that TYPE argument might be NULL.
5234 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
5236 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
5238 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
5241 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
5243 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5245 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
5246 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
5248 * mips-tfile.c: ... here.
5249 Don't include coretypes.h, tm.h, filenames.h.
5250 (saber_stop): Remove definition and all calls.
5251 [__SABER__]: Remove.
5252 (__LINE__): Remove default.
5253 (Size_t, Ptrdiff_t): Remove definitions.
5254 Replace by size_t, ptrdiff_t.
5255 [!MIPS_DEBUGGING_INFO]: Remove.
5256 (SHASH_SIZE, THASH_SIZE): Remove defaults.
5257 (progname): Add const.
5259 Replace all uses by static.
5260 (ALIGN_SYMTABLE_OFFSET): Remove default.
5261 * mips-tdump.c: Don't include coretypes.h, tm.h.
5262 Remove !MIPS_IS_STAB guard.
5263 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
5264 $(TM_H), filenames.h dependencies.
5265 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
5267 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
5270 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
5271 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
5273 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
5276 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
5277 account and save/restore RETS.
5278 (PROFILE_BEFORE_PROLOGUE): Define.
5279 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
5280 the push insn to use predecrement.
5282 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
5285 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
5287 2011-05-04 Nick Clifton <nickc@redhat.com>
5289 * config/mn10300/mn10300.c: Include cfgloop.h.
5291 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
5292 Lcc or a FLcc insn into the instruction stream.
5293 (mn10300_block_contains_call): New function. Returns true if the
5294 given basic block contains a CALL insn.
5295 (mn10300_loop_contains_call_insn): New function. Returns true if
5296 the given loop contains a CALL insn.
5297 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
5298 to use the SETLB and Lcc or FLcc insns.
5299 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
5300 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
5301 * config/mn10300/mn10300.opt (msetlb): New option. Used to
5302 disable the SETLB optimization.
5303 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
5304 __SETLB__ or __NO_SETLB__.
5305 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
5306 (movsf_internal): Handle MDR register.
5307 (cmpsi): Make visible.
5308 (setlb): New pattern.
5310 (FLcc): New pattern.
5312 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
5315 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
5316 for reg<->xmm moves.
5317 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
5318 (vec_concatv2di_rex64_sse): Ditto.
5319 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
5320 (*vec_extractv2di_1_rex64): Ditto.
5323 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
5325 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
5327 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
5329 2011-05-04 Richard Guenther <rguenther@suse.de>
5331 * tree.h (int_const_binop): Remove notrunc argument.
5332 * fold-const.c (int_const_binop): Remove notrunc argument. Always
5333 create integer constants that are properly truncated.
5334 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
5335 (const_binop): Remove zero notrunc argument to int_const_binop.
5336 (size_binop_loc): Likewise.
5337 (fold_div_compare): Likewise.
5338 (maybe_canonicalize_comparison_1): Likewise.
5339 (fold_comparison): Likewise.
5340 (fold_binary_loc): Likewise.
5341 (multiple_of_p): Likewise.
5342 * expr.c (store_constructor): Likewise.
5343 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
5344 (maybe_fold_stmt_addition): Likewise.
5345 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
5346 * stor-layout.c (layout_type): Likewise.
5347 * tree-data-ref.c (tree_fold_divides_p): Likewise.
5348 * tree-sra.c (build_ref_for_offset): Likewise.
5349 (build_user_friendly_ref_for_offset): Likewise.
5350 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
5351 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
5352 * tree-ssa-loop-niter.c (inverse): Likewise.
5353 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
5354 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
5355 * tree-switch-conversion.c (check_range): Likewise.
5356 (build_constructors): Likewise.
5357 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
5358 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
5359 (extract_range_from_assert): Likewise.
5360 (vrp_int_const_binop): Likewise.
5361 (extract_range_from_binary_expr): Likewise.
5362 (extract_range_from_unary_expr): Likewise.
5363 (check_array_ref): Likewise.
5364 (find_case_label_range): Likewise.
5365 (simplify_div_or_mod_using_ranges): Likewise.
5366 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
5367 comparing case labels for merging.
5369 2011-05-03 Mark Wielaard <mjw@redhat.com>
5371 * dwarf2out.c (debug_str_hash_forced): Removed.
5372 (gen_label_for_indirect_string): Removed.
5373 (get_debug_string_label): Removed.
5374 (AT_string_form): Generate label directly.
5375 (output_indirect_string): Test indirect_string_node for
5376 DW_FORM_strp instead of checking label and refcount.
5377 (prune_indirect_string): Removed.
5378 (prune_unused_types): Don't check debug_str_hash_forced or
5379 call prune_indirect_string.
5381 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
5384 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
5386 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
5390 * combine.c (try_combine): Skip debug insns at m_split tests.
5392 2011-04-26 Mark Wielaard <mjw@redhat.com>
5395 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
5396 when info_section_emitted.
5398 2011-05-03 Joseph Myers <joseph@codesourcery.com>
5400 * config/mips/mips-opts.h: New.
5401 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
5403 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
5404 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
5405 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
5407 * config/mips/mips.h (enum mips_code_readable_setting): Move to
5409 (mips_abi, mips_code_readable): Don't declare.
5410 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
5411 (mabi=): Use Enum and Var.
5412 (mips_abi): New Enum and EnumValue entries.
5413 (mcode-readable=): Use Enum and Var.
5414 (mips_code_readable_setting): New Enum and EnumValue entries.
5415 (mr10k-cache-barrier=): Use Enum and Var.
5416 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
5418 2011-05-03 Jan Hubicka <jh@suse.cz>
5420 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
5421 replace hash by pointer map.
5422 (cgraph_node_set_element_def, cgraph_node_set_element,
5423 const_cgraph_node_set_element, varpool_node_set_element_def,
5424 varpool_node_set_element, const_varpool_node_set_element): Remove.
5425 (free_cgraph_node_set, free_varpool_node_set): New function.
5426 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
5427 * tree-emutls.c: Free varpool node set.
5428 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
5429 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
5430 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
5431 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
5432 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
5433 Move here from ipa.c; implement using pointer_map
5434 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
5435 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
5436 debug_cgraph_node_set, varpool_node_set_new,
5437 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
5438 dump_varpool_node_set, debug_varpool_node_set):
5439 Move to ipa-uitls.c.
5440 * passes.c (ipa_write_summaries): Update.
5442 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5444 From Mike Frysinger:
5445 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
5446 bf542/bf544/bf547/bf548/bf549.
5448 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
5450 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
5452 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5455 * config/bfin/bfin.md (MOVCC): New mode_macro.
5456 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
5457 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
5458 comments from generated assembly.
5460 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5463 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
5464 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
5465 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
5466 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
5467 * config/bfin/lib1funcs.asm (___muldi3): New function.
5469 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5471 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
5472 build_function_type_list instead of build_function_type.
5473 Rearrange initialization of `args' to do so.
5475 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5477 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
5478 instead of build_function_type.
5480 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5482 * config/rs6000/rs6000.c (spe_init_builtins): Call
5483 build_function_type_list instead of build_function_type.
5484 (paired_init_builtins, altivec_init_builtins): Likewise.
5485 (builtin_function_type): Likewise.
5487 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5489 * config/sh/sh.c (sh_media_init_builtins): Call
5490 build_function_type_list instead of build_function_type.
5492 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5494 * config/sparc/sparc.c (sparc_file_end): Call
5495 build_function_type_list instead of build_function_type.
5497 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5499 * config/alpha/alpha.c (alpha_init_builtins): Call
5500 build_function_type_list instead of build_function_type.
5502 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5504 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
5505 build_function_type_list instead of build_function_type.
5507 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5509 * config/iq2000/i2000.c (iq2000_init_builtins): Call
5510 build_function_type_list instead of build_function_type.
5511 Delete `endlink' variable.
5513 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5515 * config/avr/avr.c (avr_init_builtins): Call
5516 build_function_type_list instead of build_function_type.
5518 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5520 * config/picochip/picochip.c (picochip_init_builtins): Call
5521 build_function_type_list instead of build_function_type.
5522 Delete `endlink' variable.
5524 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5526 * config/bfin/bfin.c (bfin_init_builtins): Call
5527 build_function_type_list instead of build_function_type.
5529 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5532 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
5533 that's not CONST_INT. Seemingly redundant check is due to PR39768.
5535 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5538 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
5539 libbffastfp overrides libgcc when -mfast-fp.
5541 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5543 Originally from Bernd Schmidt
5544 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
5545 * config/bfin/bfin.c (override_options): Test it and error if
5548 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5550 Originally From Bernd Schmidt
5551 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
5554 2011-05-03 Jeff Law <law@redhat.com>
5556 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
5557 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
5558 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
5559 than accessing AUX field directly. Free the AUX field before
5561 (thread_block, thread_through_loop_header): Likewise.
5562 (thread_single_edge, mark_threaded_blocks): Likewise.
5563 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
5564 (register_jump_thread): Do not attempt to thread to a NULL edge.
5566 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
5568 * function.c (init_function_start): Call decide_function_section.
5569 * varasm.c (decide_function_section): New function.
5570 (assemble_start_function): When not using
5571 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
5572 or first_function_block_is_cold.
5573 * rtl.h (decide_function_section): Declare.
5575 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
5576 Jakub Jelinek <jakub@redhat.com>
5579 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
5580 only succeed if req_mode is the same as set_mode.
5582 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
5584 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
5585 * genemit.c (gen_exp): Handle RETURN.
5586 * emit-rtl.c (verify_rtx_sharing): Likewise.
5587 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
5588 * rtl.c (copy_rtx): RETURN is shared.
5589 * rtl.h (enum global_rtl_index): Add GR_RETURN.
5591 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
5592 * config/s390/s390.c (s390_emit_epilogue): Likewise.
5593 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
5594 * config/cris/cris.c (cris_expand_return): Likewise.
5595 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
5596 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
5597 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
5598 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
5599 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
5601 * config/v850/v850.c (expand_epilogue): Likewise.
5602 * config/bfin/bfin.c (bfin_expand_call): Likewise.
5603 * config/arm/arm.md (epilogue): Likewise.
5604 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
5605 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
5606 variable to ret_reg.
5608 2011-05-03 Richard Guenther <rguenther@suse.de>
5611 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
5612 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
5613 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
5615 2011-05-03 Richard Guenther <rguenther@suse.de>
5617 * c-decl.c (grokdeclarator): Instead of looking at
5618 TREE_OVERFLOW check if the constant fits in the index type.
5620 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
5622 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
5623 (vec_store_lanes<mode><mode>): Likewise.
5625 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
5627 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
5628 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
5629 convert_optab_index values.
5630 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
5631 * genopinit.c (optabs): Initialize the new optabs.
5632 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
5633 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
5634 (expand_STORE_LANES): New functions.
5635 * tree.h (build_array_type_nelts): Declare.
5636 * tree.c (build_array_type_nelts): New function.
5637 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
5638 (vect_model_load_cost): Likewise.
5639 (vect_store_lanes_supported, vect_load_lanes_supported)
5640 (vect_record_strided_load_vectors): Declare.
5641 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
5642 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
5643 (vect_transform_strided_load): Split out statement recording into...
5644 (vect_record_strided_load_vectors): ...this new function.
5645 * tree-vect-stmts.c (create_vector_array, read_vector_array)
5646 (write_vector_array, create_array_ref): New functions.
5647 (vect_model_store_cost): Add store_lanes_p argument.
5648 (vect_model_load_cost): Add load_lanes_p argument.
5649 (vectorizable_store): Try to use store-lanes functions for
5651 (vectorizable_load): Likewise load-lanes and loads.
5652 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
5653 to vect_model_store_cost.
5654 (vect_build_slp_tree): Likewise vect_model_load_cost.
5656 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
5658 * hooks.h (hook_bool_mode_uhwi_false): Declare.
5659 * hooks.c (hook_bool_mode_uhwi_false): New function.
5660 * target.def (array_mode_supported_p): New hook.
5661 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
5662 * doc/tm.texi: Regenerate.
5663 * stor-layout.c (mode_for_array): New function.
5664 (layout_type): Use it.
5665 * config/arm/arm.c (arm_array_mode_supported_p): New function.
5666 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
5668 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
5671 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
5672 for -fstack-check if the size to allocate is negative.
5674 2011-05-02 Lawrence Crowl <crowl@google.com>
5676 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
5677 (timevar_cond_start): New for starting a timer only when it is not
5679 (timevar_cond_stop): New for stopping a timer when it was not already
5682 * timevar.c (timevar_stop): Enable start/stop timers to start again.
5683 (timevar_cond_start): New as above.
5684 (timevar_cond_stop): New as above.
5686 * timevar.def: Add start/stop timers for compiler phases,
5687 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
5688 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
5689 and TV_PHASE_FINALIZE.
5690 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
5691 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
5692 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
5693 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
5694 Make unused TV_OVERLOAD into a start/stop timer.
5696 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
5697 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
5698 to indicate that they are start/stop timers.
5700 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
5701 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
5702 Move initialization to do_compile.
5703 (do_compile): Add initialization from above.
5704 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
5706 * c-decl.c (c_write_global_declarations): Add start/stop of
5707 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
5709 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
5710 or TV_PARSE_INLINE, as appropriate.
5711 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
5712 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
5714 2011-05-02 Jason Merrill <jason@redhat.com>
5717 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
5719 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
5722 * c-decl.c (finish_decl): Only create a composite if the types are
5725 2011-05-02 Joseph Myers <joseph@codesourcery.com>
5727 * config/fr30/fr30-protos.h (Mmode): Don't define.
5728 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
5729 definition where used.
5730 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
5731 define. Expand definitions where used.
5732 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
5733 Expand definitions where used.
5734 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
5735 rx_function_arg, rx_function_arg_advance,
5736 rx_function_arg_boundary): Expand definitions of those macros.
5737 * config/v850/v850-protos.h (Mmode): Don't define. Expand
5738 definition where used.
5740 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
5742 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
5744 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
5745 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
5746 with *movv2sf_internal_rex64_avx.
5747 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
5748 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
5749 Use %v prefix in insn mnemonic to handle TARGET_AVX.
5750 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
5751 "vex" in "prefix" attribute calculation.
5752 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
5754 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
5757 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
5758 inputs match the output.
5760 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
5763 * config/m68k/m68k.c (m68k_expand_prologue): Set
5764 current_function_static_stack_size.
5766 2011-05-02 Jan Hubicka <jh@suse.cz>
5768 * lto-streamer.c (lto_streamer_cache_insert_1,
5769 lto_streamer_cache_lookup, lto_streamer_cache_create,
5770 lto_streamer_cache_delete): Use pointer map instead of hashtable.
5771 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
5773 2011-05-02 Joseph Myers <joseph@codesourcery.com>
5775 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
5776 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
5777 config/m68k/t-opts: New files.
5778 * config/m68k/m68k-tables.opt: New file (generated).
5779 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
5780 extra_options and m68k/t-opts to tmake_file.
5781 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
5782 (all_isas): Initialize using m68k-isas.def.
5783 (all_microarchs): Initialize using m68k-microarchs.def.
5784 (m68k_find_selection): Remove.
5785 (m68k_handle_option): Don't assert that global structures are in
5786 use. Use error_at. Access variables via opts pointer. Don't
5787 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
5788 directly for -m68020-40 and -m68020-60.
5789 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
5790 m68k_tune_entry here.
5791 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
5793 (m68k_library_id_string): Remove declaration.
5794 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
5795 (m68k_library_id_string): New Variable.
5796 (march=, mcpu=, mtune=): Use Enum and Var.
5798 2011-05-02 Richard Guenther <rguenther@suse.de>
5800 * varasm.c (output_constructor_regular_field): Compute zero-based
5801 index with double-ints. Make sure to ICE instead of producing
5803 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
5804 in asserts. Properly use a signed type.
5806 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
5808 * config/i386/sse.md (V): New mode iterator.
5809 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
5811 (V_256): Rename from AVX256MODE.
5812 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
5813 condition to all users.
5815 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
5816 condition to all users.
5817 (VF_128): Make V4SF mode unconditional.
5818 (VF_256): Rename from AVX256MODEF2P.
5819 (VI4F_128): Rename from SSEMODE4S.
5820 (VI8F_128): Rename from SSEMODE2D.
5821 (VI4F_256): Rename from AVX256MODE8P.
5822 (VI8F_256): Rename from AVX256MODE4P.
5823 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
5824 (ssescalarmodesuffix): Remove SF and DF modes.
5825 (SSEMODE124): Remove.
5826 (SSEMODE1248): Ditto.
5827 (SSEMODEF2P): Ditto.
5828 (AVXMODEF2P): Ditto.
5829 (AVXMODEFDP): Ditto.
5830 (AVXMODEFSP): Ditto.
5831 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
5833 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
5835 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
5836 xop_pcmov_<mode>256. Use V mode iterator.
5838 Adjust RTX patterns globally for renamed mode attributes.
5840 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5842 * haifa-sched.c (sched_emit_insn): Emit insn before first
5843 non-scheduled insn. Inform back-end about new insn. Add
5844 new insn to scheduled_insns list.
5846 2011-05-02 Richard Guenther <rguenther@suse.de>
5848 PR tree-optimization/48822
5849 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
5850 (process_scc): Indicate which iteration we start.
5852 2011-05-02 Jan Hubicka <jh@suse.cz>
5854 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
5855 (lto_section_overrun): New.
5856 * lto-section-out.c (append_block): Rename to ...
5857 (lto_append_block): ... this one; export.
5858 (lto_output_1_stream): Move lto lto-streamer.h
5859 (lto_output_data_stream): Update.
5860 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
5861 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
5864 2011-05-02 Richard Guenther <rguenther@suse.de>
5866 * tree.c (tree_code_counts): New global array.
5867 (record_node_allocation_statistics): Count individual tree codes.
5868 (dump_tree_statistics): Dump individual code stats.
5870 2011-05-01 Jan Hubicka <jh@suse.cz>
5872 * ipa-inline.c (caller_growth_limits): Fix thinko when
5873 looking for largest stack frame.
5874 * ipa-inline.h (dump_inline_summary): Declare.
5875 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
5877 (dump_inline_summary): Export.
5878 (debug_inline_summary): Declare as DEBUG_FUNCTION.
5880 2011-05-01 Anatoly Sokolov <aesok@post.ru>
5882 * reginfo.c (memory_move_cost): Change rclass argument type form
5883 'enum reg_class' to reg_class_t.
5884 * reload.h (memory_move_cost): Update prototype.
5885 * postreload.c reload_cse_simplify_set): Change type dclass var to
5887 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
5889 (ira_allocate_and_set_costs): Change aclass argument type form
5890 'enum reg_class' to reg_class_t.
5891 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
5892 Change aclass argument type to reg_class_t.
5893 (update_conflict_hard_reg_costs): Change type aclass and pref vars
5895 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
5896 memory_move_cost call.
5898 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
5899 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
5900 Change type tmp var to reg_class_t.
5902 2011-04-30 Jan Hubicka <jh@suse.cz>
5904 * ipa-inline.c (can_inline_edge_p): Disregard limits when
5905 inlining into function with flatten attribute.
5906 (want_inline_small_function_p): Be more realistic about inlining
5907 cold calls where callee size grows.
5909 2011-04-30 Jan Hubicka <jh@suse.cz>
5911 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
5914 2011-04-30 Anatoly Sokolov <aesok@post.ru>
5916 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
5917 PRINT_OPERAND_PUNCT_VALID_P): Remove.
5918 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
5919 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
5920 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
5921 (print_operand): Rename to...
5922 (sparc_print_operand): ...this. Make static. Adjust
5923 sparc_print_operand function call.
5924 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
5927 2011-04-30 Jan Hubicka <jh@suse.cz>
5930 * ipa-inline.c (early_inliner): Disable when doing late
5931 addition of function.
5933 2011-04-30 Jakub Jelinek <jakub@redhat.com>
5935 * dwarf2out.c (get_address_mode): New inline.
5936 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
5937 if not dwarf_strict emit
5938 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
5939 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
5940 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
5941 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
5942 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
5943 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
5944 mem_loc_descriptor callers.
5945 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
5946 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
5947 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
5948 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
5949 (base_types): New variable.
5950 (get_base_type_offset, calc_base_type_die_sizes,
5951 base_type_for_mode, mark_base_types, base_type_cmp,
5952 move_marked_base_types): New functions.
5953 (calc_die_sizes): Assert that die_offset is 0 or equal to
5955 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
5956 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
5957 callers. If not dwarf_strict, call mem_loc_descriptor even for
5958 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
5959 (gen_subprogram_die): Don't give up on call site parameters
5960 with non-integral or large integral modes. Adjust
5961 mem_loc_descriptor callers.
5962 (prune_unused_types): Call prune_unused_types_mark on base_types
5964 (resolve_addr): Call mark_base_types.
5965 (dwarf2out_finish): Call move_marked_base_types.
5967 PR tree-optimization/48809
5968 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
5970 (gen_inbound_check): Don't compute index_expr - range_min in utype
5971 again, instead reuse SSA_NAME initialized in build_arrays.
5972 Remove two useless gsi_for_stmt calls.
5974 2011-04-29 Jeff Law <law@redhat.com>
5976 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
5978 2011-04-29 Martin Jambor <mjambor@suse.cz>
5980 * cgraph.h (cgraph_postorder): Remove declaration.
5981 * ipa-utils.h (ipa_free_postorder_info): Declare.
5982 (ipa_reverse_postorder): Likewise.
5983 * cgraphunit.c: Include ipa-utils.h.
5984 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
5985 * ipa-inline.c: Include ipa-utils.h.
5986 (ipa_inline): Update call to ipa_reverse_postorder.
5987 * ipa-pure-const.c (propagate_pure_const): Update call to
5988 ipa_reduced_postorder and ipa_print_order. Call
5989 ipa_free_postorder_info to clean up.
5990 (propagate_nothrow): Likewise.
5991 * ipa-reference.c (propagate): Removed a useless call to
5992 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
5993 and ipa_print_order. Call ipa_free_postorder_info to clean up.
5994 * ipa.c: Include ipa-utils.h.
5995 (ipa_profile): Update call to ipa_reverse_postorder.
5996 (cgraph_postorder): Moved to...
5997 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
5998 (ipa_utils_print_order): Renamed to ipa_print_order.
5999 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
6001 (ipa_free_postorder_info): New function.
6002 * passes.c: Include ipa-utils.h.
6003 (do_per_function_toporder): Update call to ipa_reverse_postorder.
6004 (ipa_write_summaries): Likewise.
6005 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
6006 (cgraphunit.o): Likewise.
6008 (ipa-inline.o): Likewise.
6010 2011-04-29 Jan Hubicka <jh@suse.cz>
6012 * gcc.dg/tree-ssa/inline-10.c: New testcase.
6013 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
6014 * ipa-inline.h (clause_t): Turn into unsigned int.
6015 * ipa-inline-analysis.c (add_clause): Do more simplification.
6016 (and_predicates): Shortcut more cases.
6017 (predicates_equal_p): Move forward; check that clauses are properly
6019 (or_predicates): Shortcut more cases.
6020 (edge_execution_predicate): Rewrite as...
6021 (set_cond_stmt_execution_predicate): ... this function; handle
6022 __builtin_constant_p.
6023 (set_switch_stmt_execution_predicate): New .
6024 (compute_bb_predicates): New.
6025 (will_be_nonconstant_predicate): Update TODO.
6026 (estimate_function_body_sizes): Use compute_bb_predicates
6027 and free them later, always try to estimate if stmt is constant.
6028 (estimate_time_after_inlining, estimate_size_after_inlining):
6029 Gracefully handle optimized out edges.
6030 (read_predicate): Fix off by one error.
6032 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
6034 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
6036 2011-04-27 Xinliang David Li <davidxl@google.com>
6038 * tree-profile.c (init_ic_make_global_vars): Set
6039 tls attribute on ic vars.
6040 * coverage.c (coverage_end_function): Initialize
6041 function_list with zero.
6043 2011-04-29 Richard Guenther <rguenther@suse.de>
6045 * builtins.c (fold_builtin_classify_type): Use integer_type_node
6046 for the type of the result.
6047 (fold_builtin_isascii): Likewise.
6048 (fold_builtin_toascii): Use integer_type_node where appropriate.
6049 (fold_builtin_logb): Likewise.
6050 (fold_builtin_frexp): Likewise.
6051 (fold_builtin_strstr): Likewise.
6052 (fold_builtin_strpbrk): Likewise.
6053 (fold_builtin_fputs): Likewise.
6054 (fold_builtin_sprintf): Likewise.
6055 (fold_builtin_snprintf): Likewise.
6056 (fold_builtin_printf): Likewise.
6057 (do_mpfr_remquo): Use a proper type for the assigned constant.
6058 (do_mpfr_lgamma_r): Likewise.
6059 * dwarf2out.c (resolve_one_addr): Use size_int.
6060 * except.c (init_eh): Likewise.
6061 (assign_filter_values): Use integer_type_node for filter values.
6062 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
6064 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
6065 for EH region numbers.
6066 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
6067 for the shift amount.
6069 2011-04-29 Richard Guenther <rguenther@suse.de>
6071 * expr.h (expand_shift): Rename to ...
6072 (expand_variable_shift): ... this.
6073 (expand_shift): Take a constant shift amount.
6074 * expmed.c (expand_shift): Rename to ...
6075 (expand_variable_shift): ... this.
6076 (expand_shift): New wrapper around expand_variable_shift.
6077 * expr.c (convert_move, emit_group_load_1, emit_group_store,
6078 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
6079 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
6080 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
6081 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
6082 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
6083 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
6084 emit_store_flag_1, emit_store_flag): Likewise.
6085 * builtins.c (expand_builtin_signbit): Likewise.
6086 * calls.c (load_register_parameters): Likewise.
6087 * function.c (assign_parm_setup_block): Likewise.
6088 * lower-subreg.c (resolve_shift_zext): Likewise.
6089 * optabs.c (widen_bswap, expand_abs_nojump,
6090 expand_one_cmpl_abs_nojump, expand_float): Likewise.
6091 * spu/spu.c (spu_expand_extv): Likewise.
6092 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
6094 2011-04-29 Richard Guenther <rguenther@suse.de>
6096 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
6097 for the remapped region number.
6098 * predict.c (build_predict_expr): Use integer_type_node for the
6100 * fold-const.c (fold_binary_loc): Use integer_type_node for
6101 the shift amount. Use a proper type for the PLUS_EXPR operand.
6103 2011-04-29 Michael Matz <matz@suse.de>
6105 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
6106 other trees that just builtins.
6107 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
6109 2011-04-29 Richard Guenther <rguenther@suse.de>
6111 * tree-nested.c (get_trampoline_type): Use size_int.
6112 (get_nl_goto_field): Likewise.
6113 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
6115 (lower_eh_constructs_2): Likewise.
6116 (lower_resx): Likewise.
6117 (lower_eh_dispatch): Likewise.
6118 * tree-mudflap.c (mf_build_string): Use size_int.
6119 (mudflap_register_call): Use integer_type_node for the flag.
6120 (mudflap_enqueue_constant): Use size_int.
6121 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
6122 instead of rebuilding it.
6124 2011-04-29 Richard Guenther <rguenther@suse.de>
6126 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
6127 Handle OBJ_TYPE_REF.
6128 (find_func_aliases_for_call): Use it more consistently.
6130 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
6132 * haifa-sched.c (last_nondebug_scheduled_insn): New.
6133 (rank_for_schedule): Use it.
6134 (schedule_block): Set it.
6136 2011-04-28 David Li <davidxl@google.com>
6138 * tree.c (crc32_string): Use crc32_byte.
6139 (crc32_byte): New function.
6140 * tree.h (crc32_byte): New function.
6141 * gcov.c (read_graph_file): Handle new cfg_cksum.
6142 (read_count_file): Ditto.
6143 * profile.c (instrument_values): Ditto.
6144 (get_exec_counts): Ditto.
6145 (read_profile_edge_counts): Ditto.
6146 (compute_branch_probabilities): Ditto.
6147 (compute_value_histograms): Ditto.
6148 (branch_prob): Ditto.
6149 (end_branch_prob): Ditto.
6150 * coverage.c (read_counts_file): Ditto.
6151 (get_coverage_counts): Ditto.
6152 (tree_coverage_counter_addr): Ditto.
6153 (coverage_checksum_string): Ditto.
6154 (coverage_begin_output): Ditto.
6155 (coverage_end_function): Ditto.
6156 (build_fn_info_type): Ditto.
6157 (build_fn_info_value): Ditto.
6158 * libgcov.c (gcov_exit): Ditto.
6159 * gcov-dump.c (tag_function): Ditto.
6160 (compute_checksum): Remove.
6162 2011-04-29 Alan Modra <amodra@gmail.com>
6164 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
6165 unspec plus offset. Tidy macho code.
6167 2011-04-29 Martin Jambor <mjambor@suse.cz>
6169 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
6170 node instead of a decl. Update all callers.
6171 * cgraph.h: Update declaration.
6173 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
6175 PR tree-optimization/48765
6176 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
6177 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
6178 to indicate if loop aware SLP is being used. Scan the statements
6179 and update the vectorization factor according to the type of
6180 vectorization before statement analysis.
6181 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
6182 pass it to vect_analyze_loop_operations.
6183 (vectorizable_reduction): Set number of copies to 1 in case of pure
6185 * tree-vect-stmts.c (vectorizable_conversion,
6186 vectorizable_assignment, vectorizable_shift,
6187 vectorizable_operation, vectorizable_type_demotion,
6188 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
6190 (vectorizable_condition): Move the check that it is not SLP
6191 vectorization before the number of copies check.
6192 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
6193 to vectorize the loop using SLP.
6195 2011-04-28 Jakub Jelinek <jakub@redhat.com>
6198 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
6201 2011-04-28 Joseph Myers <joseph@codesourcery.com>
6203 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
6204 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
6205 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
6206 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
6207 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
6209 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
6210 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6211 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6212 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6213 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6214 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
6216 * config/i386/linux.h (REG_NAME): Don't define.
6217 * config/i386/linux64.h (REG_NAME): Don't define.
6218 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
6219 Undefine before defining.
6221 2011-04-28 Jan Hubicka <jh@suse.cz>
6223 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
6224 nonconstant_names array.
6225 (estimate_function_body_sizes): Build nonconstant_names array; handle
6226 BUILT_IN_CONSTANT_P.
6228 2011-04-28 Richard Guenther <rguenther@suse.de>
6232 2011-04-28 Richard Guenther <rguenther@suse.de>
6234 * tree-ssa-structalias.c (solve_constraints): Build succ graph
6235 as late as possible.
6237 2011-04-28 Richard Guenther <rguenther@suse.de>
6239 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
6240 (debug_constraint): Do it here.
6241 (dump_constraints): And here.
6242 (rewrite_constraints): And here.
6243 (dump_constraint_edge): Remove.
6244 (dump_constraint_graph): Rewrite to produce DOT output.
6245 (solve_constraints): Build succ graph as late as possible.
6246 Dump constraint graphs before and after solving.
6248 2011-04-28 Richard Guenther <rguenther@suse.de>
6250 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
6251 New function split out from ...
6252 (find_func_aliases): ... here. Call it.
6253 (find_func_aliases_for_call): Likewise.
6255 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
6257 * internal-fn.h (internal_fn_name_array): Declare.
6258 (internal_fn_flags_array): Likewise.
6260 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
6262 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
6263 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
6265 (ssemodefsuffix): Remove.
6266 (ssevecmodesuffix): New mode attribute.
6267 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
6268 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
6269 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
6270 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
6271 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
6272 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
6273 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
6274 ssemodesuffix mode attribute.
6275 (float splitters): Use ssevecmodesuffix mode attribute.
6276 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
6277 (sseinsmode): Rename from avxvecmode.
6278 (avxsizesuffix): Rename from avxmodesuffix.
6279 (sseintvecmode): Rename from avxpermvecmode.
6280 (ssedoublevecmode): Rename from ssedoublesizemode.
6281 (ssehalfvecmode): Rename from avxhalfvecmode.
6282 (ssescalarmode): Rename from avxscalarmode.
6283 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
6284 templates for ssemodesuffix mode attribute.
6285 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
6288 Adjust RTX patterns globally for renamed mode attributes.
6290 2011-04-27 Jan Hubcika <jh@suse.cz>
6292 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
6293 * ipa-inline-analysis.c: Include alloc-pool.h.
6294 (edge_predicate_pool): New.
6295 (trye_predicate_p): New function
6296 (false_predicate_p): New function.
6297 (add_clause): Sanity check that false clauses are "optimized";
6298 never add clauses to predicate that is already known to be false.
6299 (and_predicate): Use flase_predicate_p.
6300 (evaulate_predicate): Rename to ...
6301 (evaluate_predicate): ... this one; update all callers; assert
6302 that false is not listed among possible truths.
6303 (dump_predicate): Use true_predicate_p.
6304 (account_size_time): Use false_predicate_p.
6305 (evaulate_conditions_for_edge): Rename to ...
6306 (evaluate_conditions_for_edge) ... this one.
6307 (edge_set_predicate): New function.
6308 (inline_edge_duplication_hook): Duplicate edge predicates.
6309 (inline_edge_removal_hook): Free edge predicates.
6310 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
6311 (dump_inline_summary): Update.
6312 (estimate_function_body_sizes): Set edge predicates.
6313 (estimate_calls_size_and_time): Handle predicates.
6314 (estimate_callee_size_and_time): Update.
6315 (remap_predicate): Add toplev_predicate; update comment.
6316 (remap_edge_predicates): New function.
6317 (inline_merge_summary): Compute toplev predicate; update.
6318 (read_predicate): New function.
6319 (read_inline_edge_summary): Use it.
6320 (inline_read_section): Likewise.
6321 (write_predicate): New function.
6322 (write_inline_edge_summary): Use it.
6323 (inline_write_summary): Likewise.
6324 (inline_free_summary): Free alloc pool and edge summary vec.
6326 2011-04-27 Richard Guenther <rguenther@suse.de>
6328 * tree-ssa-structalias.c (changed_count): Remove.
6329 (changed): Use a bitmap.
6330 (unify_nodes): Adjust.
6331 (do_sd_constraint): Likewise.
6332 (do_ds_constraint): Likewise.
6333 (do_complex_constraint): Likewise.
6334 (solve_graph): Likewise.
6336 2011-04-27 Jan Hubicka <jh@suse.cz>
6338 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
6340 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
6342 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
6343 (avx_vperm2f128_*_operand): Ditto.
6344 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
6345 Use avx_vpermilp_parallel in insn condition.
6346 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
6347 Use avx_vperm2f128_parallel in insn condition.
6349 2011-04-27 Richard Guenther <rguenther@suse.de>
6351 * Makefile.in (tree-ssa-structalias.o): Remove
6352 gt-tree-ssa-structalias.h dependency.
6353 (GTFILES): Remove tree-ssa-structalias.c.
6354 * tree.c (allocate_decl_uid): New function.
6355 (make_node_stat): Use it.
6356 (copy_node_stat): Likewise.
6357 * tree.h (allocate_decl_uid): Declare.
6358 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
6359 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
6360 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
6361 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
6362 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
6363 (struct heapvar_map): Likewise.
6364 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
6365 heapvar_insert): Likewise.
6366 (make_heapvar_for): Rename to ...
6367 (make_heapvar): ... this. Simplify.
6368 (fake_var_decl_obstack): New global var.
6369 (build_fake_var_decl): New function.
6370 (make_constraint_from_heapvar): Adjust.
6371 (handle_lhs_call): Likewise.
6372 (create_function_info_for): Likewise.
6373 (intra_create_variable_infos): Likewise.
6374 (init_alias_vars): Allocate fake_var_decl_obstack.
6375 (init_alias_heapvars, delete_alias_heapvars): Remove.
6376 (compute_points_to_sets): Do not call init_alias_heapvars.
6377 (ipa_pta_execute): Likewise.
6378 (delete_points_to_sets): Free fake_var_decl_obstack.
6380 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6382 * config/spu/divmovti4.c (union qword_UTItype): New data type.
6383 (si_from_UTItype, si_to_UTItype): New functions.
6384 (__udivmodti4): Use them to implement type-punning.
6385 * config/spu/multi3.c (union qword_TItype): New data type.
6386 (si_from_TItype, si_to_TItype): New functions.
6387 (__multi3): Use them to implement type-punning.
6389 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6391 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
6393 2011-04-27 Jan Hubicka <jh@suse.cz>
6395 * ipa-prop.c (function_insertion_hook_holder): New holder.
6396 (ipa_add_new_function): New function.
6397 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
6398 Register/deregister holder.
6400 2011-04-27 Richard Guenther <rguenther@suse.de>
6402 PR tree-optimization/48772
6403 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
6405 2011-04-27 Richard Guenther <rguenther@suse.de>
6407 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
6408 TARGET_MEM_REF handling.
6410 2011-04-27 Nick Clifton <nickc@redhat.com>
6412 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
6413 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
6414 (REG_CLASS_NAMES): Likewise.
6415 (REG_CLASS_CONTENTS): Likewise.
6416 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
6417 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
6418 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
6419 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
6420 (EVEN_REGS): New macro. Alias for QUAD_REGS.
6421 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
6422 duplicate register classes.
6423 (frv_class_likely_spilled_p): Likewise.
6424 (frv_register_move_cost): Likewise.
6426 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
6427 end of the regno_reg_class array.
6429 2011-04-27 Jakub Jelinek <jakub@redhat.com>
6432 * c-typeck.c (build_binary_op): Don't wrap arguments if
6433 int_operands is true.
6435 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
6438 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
6439 targetm.calls.must_pass_in_stack for void type.
6441 2011-04-26 Jan Hubicka <jh@suse.cz>
6443 * cgraphbuild.c (build_cgraph_edges): Update call
6444 of cgraph_create_edge and cgraph_create_indirect_edge.
6445 * cgraph.c (cgraph_create_edge_including_clones,
6446 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
6447 cgraph_update_edges_for_call_stmt_node): Do not take nest
6448 argument; do not initialize call_stmt_size/time.
6449 (dump_cgraph_node): Do not dump nest.
6450 (cgraph_clone_edge): Do not take loop_nest argument;
6451 do not propagate it; do not clone call_stmt_size/time.
6452 (cgraph_clone_node): Likewise.
6453 (cgraph_create_virtual_clone): Update.
6454 * cgraph.h (struct cgraph_edge): Remove
6455 call_stmt_size/call_stmt_time/loop_nest.
6456 (cgraph_create_edge, cgraph_create_indirect_edge,
6457 cgraph_create_edge_including_clones, cgraph_clone_node): Update
6459 * tree-emutls.c (gen_emutls_addr): Update.
6460 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
6461 loop_nest; handle indirect calls, too.
6462 (clone_inlined_nodes): Do not care about updating inline summaries.
6463 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
6464 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
6465 stream call_stmt_size/call_stmt_time/loop_nest.
6466 * ipa-inline.c (edge_badness): Update.
6467 (ipa_inline): dump summaries after inlining.
6468 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
6470 (inline_edge_summary): New function.
6471 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
6472 (inline_edge_removal_hook): Handle edge summaries.
6473 (inline_edge_duplication_hook): New hook.
6474 (inline_summary_alloc): Alloc hooks.
6475 (initialize_growth_caches): Do not register removal hooks.
6476 (free_growth_caches); Do not free removal hook.
6477 (dump_inline_edge_summary): New function.
6478 (dump_inline_summary): Use it.
6479 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
6480 (inline_update_callee_summaries): New function.
6481 (inline_merge_summary): Use it.
6482 (do_estimate_edge_time, do_estimate_edge_growth): Update.
6483 (read_inline_edge_summary): New function.
6484 (inline_read_section): Use it.
6485 (write_inline_edge_summary): New function.
6486 (inline_write_summary): Use it.
6487 (inline_free_summary): Free edge new holders.
6488 * tree-inline.c (copy_bb): Update.
6490 2011-04-26 Jason Merrill <jason@redhat.com>
6492 * tree-eh.c (lower_try_finally_switch): Create the label along with
6493 the CASE_LABEL_EXPR.
6495 2011-04-26 David S. Miller <davem@davemloft.net>
6496 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6498 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
6499 * configure: Regenerate.
6501 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
6504 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
6506 (VEC_reduc): New code iterator and splitters for vector reduction.
6507 (VEC_reduc_name): Ditto.
6508 (VEC_reduc_rtx): Ditto.
6509 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
6510 (reduc_<VEC_reduc_name>_v4sf): Ditto.
6512 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
6513 support for extracting SF on VSX.
6515 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
6516 generating xscvspdp.
6517 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
6518 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
6519 double add, minimum, maximum vector reduction.
6520 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
6521 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
6522 optimize double vector reduction.
6523 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
6525 2011-04-26 Joseph Myers <joseph@codesourcery.com>
6527 * config/fr30/fr30.h (inhibit_libc): Don't define.
6528 * config/m32r/m32r-protos.h: Correct comment.
6529 * config/v850/v850.h (GHS_default_section_names,
6530 GHS_current_section_names): Use tree, not union tree_node *.
6532 2011-04-26 Xinliang David Li <davidxl@google.com>
6534 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
6535 * c-family/c-opts.c (c_common_handle_option): Set
6536 warn_maybe_uninitialized.
6537 * opts.c (common_handle_option): Ditto.
6538 * common.opt: New option.
6539 * tree-ssa.c (warn_uninit): Add one more parameter.
6540 (warn_uninitialized_var): Pass warning code.
6541 * tree-flow.h: Interface change.
6543 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6545 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
6546 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
6547 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
6549 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6551 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
6552 * config/mips/mips.opt (mmips-tfile): Remove.
6554 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
6555 mips-tdump reference to ...
6556 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
6557 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
6558 reference by Tru64 UNIX.
6560 2011-04-26 Jakub Jelinek <jakub@redhat.com>
6563 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
6564 is error_mark_node, set value to NULL.
6566 PR tree-optimization/48734
6567 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
6568 if return value from maybe_fold_*_comparsions isn't something
6569 the code is prepared to handle.
6571 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
6573 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
6575 (ext_QIreg_nomode_operands): Remove.
6576 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
6580 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
6582 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
6584 2011-04-26 Richard Guenther <rguenther@suse.de>
6586 * c-typeck.c (build_unary_op): Do not expand array-refs via
6587 pointer arithmetic. Only adjust qualifiers for function types.
6589 2011-04-26 Richard Guenther <rguenther@suse.de>
6592 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
6593 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
6594 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
6595 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
6597 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
6599 * doc/extend.texi: Document __underlying_type.
6601 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
6603 * config/rs6000/titan.md (automata_option "progress"): Remove.
6605 2011-04-25 Jeff Law <law@redhat.com>
6607 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
6609 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6611 * system.h (ENUM_BITFIELD): Remove.
6613 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
6614 Eric Botcazou <ebotcazou@adacore.com>
6616 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
6617 for STORE_FLAG_VALUE==-1 case.
6619 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
6622 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
6623 LEGITIMATE_PIC_OPERAND_P.
6625 2011-04-24 Jan Hubicka <jh@suse.cz>
6627 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
6629 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
6630 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
6631 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
6632 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
6633 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
6634 Sanity check predicate length.
6635 (remap_predicate): Likewise; sanity check jump functions.
6636 (inline_read_section, inline_write_summary): Sanity check
6639 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
6642 * doc/extend.texi (Type Traits): Document __is_standard_layout,
6643 __is_literal_type, and __is_trivial; update throughout about
6644 possibly cv-qualified void types.
6646 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
6648 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
6649 testsuite and make it version agnostic.
6651 2011-04-22 Jan Hubicka <jh@suse.cz>
6653 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
6655 2011-04-23 Jakub Jelinek <jakub@redhat.com>
6658 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
6659 to VOID_TYPE even around MODIFY_EXPR.
6661 2011-04-22 Mike Stump <mikestump@comcast.net>
6663 * gensupport.c (read_md_rtx): Fix typo in comment.
6664 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
6667 2011-04-22 Jan Hubicka <jh@suse.cz>
6669 * gengtype.c (open_base_files): Add ipa-inline.h include.
6670 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
6671 ipa-prop.c; update all uses.
6672 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
6673 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
6674 merge summary of inlined function into former caller.
6675 * ipa-inline.c (max_benefit): Remove.
6676 (edge_badness): Compensate for removal of benefits.
6677 (update_caller_keys): Use
6678 reset_node_growth_cache/reset_edge_growth_cache.
6679 (update_callee_keys): Likewise.
6680 (update_all_callee_keys): Likewise.
6681 (inline_small_functions): Do not collect max_benefit; do not reset
6682 estimated_growth; call free_growth_caches and initialize_growth_caches.
6683 * ipa-inline.h (struct condition, type clause_t, struct predicate,
6684 struct size_time_entry): New structures.
6685 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
6686 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
6687 and estimated_growth.
6688 (edge_growth_cache_entry): New structure.
6689 (node_growth_cache, edge_growth_cache): New global vars.
6690 (estimate_growth): Turn into inline.
6691 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
6692 initialize_growth_caches, free_growth_caches): Declare.
6693 (estimate_edge_growth): Rewrite.
6694 (estimate_edge_time): Implement as inline cache lookup.
6695 (reset_node_growth_cache, reset_edge_growth_cache): New inline
6697 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
6698 (NUM_CONDITIONS): New constant.
6699 (predicate_conditions): New enum.
6700 (IS_NOT_CONSTANT): New constant.
6701 (edge_removal_hook_holder): New var.
6702 (node_growth_cache, edge_growth_cache): New global vars.
6703 (true_predicate, single_cond_predicate, false_predicate,
6704 not_inlined_predicate, add_condition, add_clause, and_predicates,
6705 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
6706 dump_clause, dump_predicate, account_size_time,
6707 evaulate_conditions_for_edge): New functions.
6708 (inline_summary_alloc): Move to heap.
6709 (inline_node_removal_hook): Clear condition and entry vectors.
6710 (inline_edge_removal_hook): New function.
6711 (initialize_growth_caches, free_growth_caches): New function.
6712 (dump_inline_summary): Update.
6713 (edge_execution_predicate): New function.
6714 (will_be_nonconstant_predicate): New function.
6715 (estimate_function_body_sizes): Compute BB and constantness predicates.
6716 (compute_inline_parameters): Do not clear estimated_growth.
6717 (estimate_edge_size_and_time): New function.
6718 (estimate_calls_size_and_time): New function.
6719 (estimate_callee_size_and_time): New function.
6720 (remap_predicate): New function.
6721 (inline_merge_summary): New function.
6722 (do_estimate_edge_time): New function based on...
6723 (estimate_edge_time): ... this one.
6724 (do_estimate_edge_growth): New function.
6725 (do_estimate_growth): New function based on....
6726 (estimate_growth): ... this one.
6727 (inline_analyze_function): Analyze after deciding on jump functions.
6728 (inline_read_section): New function.
6729 (inline_read_summary): Use it.
6730 (inline_write_summary): Write all the new data.
6731 * ipa-prop.c (ipa_get_param_decl_index): Export.
6732 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
6733 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
6735 (ipa_get_lattice): Move here from ipa-cp.c
6736 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
6737 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
6738 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
6739 cgraph_edge_inlinable_p): Remove.
6740 * cgraphunit.c: Include ipainline.h
6741 (cgraph_process_new_functions): Update call of
6742 compute_inline_parameters.
6744 2011-04-22 Richard Guenther <rguenther@suse.de>
6746 * tree.c (build_int_cst): Properly create canonicalized integer
6748 (build_int_cst_type): Remove scary comments.
6750 2011-04-22 Xinliang David Li <davidxl@google.com>
6752 * toplev.c (process_options): Enable -Werror=coverage-mismatch
6753 by default when -Wno-error is not specified.
6754 * opts-global.c (decode_options): Remove call to
6755 control_warning_options.
6757 2011-04-22 Jakub Jelinek <jakub@redhat.com>
6759 PR tree-optimization/48717
6760 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
6761 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
6763 2011-04-22 Joseph Myers <joseph@codesourcery.com>
6765 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
6766 definition where used.
6768 2011-04-22 Jakub Jelinek <jakub@redhat.com>
6771 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
6772 TREE_STATIC variables declared inside of some OpenMP construct.
6774 2011-04-22 Martin Jambor <mjambor@suse.cz>
6777 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
6779 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
6782 * c-typeck.c (pop_init_level): Do not warn about initializing
6785 2011-04-22 Alan Modra <amodra@gmail.com>
6787 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
6788 when returning call_cookie.
6789 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
6790 pointers, to functions with no more vector args than the current
6791 function, and some non-local calls for ABI_V4.
6792 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
6793 sibcall_nonlocal_aix64): Combine to ..
6794 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
6795 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
6796 (sibcall_value_nonlocal_aix<mode>): ..likewise.
6797 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
6798 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
6800 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
6801 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
6802 sibcall_value_symbolic_64): Delete.
6804 2011-04-21 Xinliang David Li <davidxl@google.com>
6806 * cgraph.h: Remove pid.
6807 * cgraph.c: Remove pid.
6808 * value-prof.c (init_node_map): New function.
6809 (del_node_map): New function.
6810 (find_func_by_funcdef_no): New function.
6811 (gimple_ic_transform): Call new function.
6812 * cgraphunit.c (cgraph_finalize_function): Remove pid.
6813 * function.c (get_last_funcdef_no): New function.
6814 * function.h (get_last_funcdef_no): New function.
6815 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
6816 to libgcov function.
6817 (tree-profiling): Call node map init and delete function.
6819 2011-04-21 Ian Lance Taylor <iant@google.com>
6821 * godump.c (go_format_type): Use exported Go name for anonymous
6824 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
6826 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
6827 Call builtin_function_type_list instead of builtin_function_type.
6828 (UNARY, BINARY, TRINARY, QUAD): Likewise.
6830 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
6832 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
6833 build_function_type_list instead of build_function_type.
6834 Delete variable `endlink'.
6836 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
6838 * config/s390/s390.c (s390_init_builtins): Call
6839 build_function_type_list instead of build_function_type.
6841 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
6843 * config/ia64/ia64.c (ia64_init_builtins): Call
6844 build_function_type_list instead of builtin_function_type.
6846 2011-04-21 Easwaran Raman <eraman@google.com>
6848 * cfgexpand.c (stack_var): Remove OFFSET...
6849 (add_stack_var): ...and its reference here...
6850 (expand_stack_vars): ...and here.
6851 (stack_var_cmp): Sort by descending order of size.
6852 (partition_stack_vars): Change heuristic.
6853 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
6854 (dump_stack_var_partition): Add newline after each partition.
6856 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
6857 Jeff Law <law@redhat.com>
6859 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
6860 * gengtype.c (matching_file_name_substitute): Likewise.
6862 2011-04-21 Richard Guenther <rguenther@suse.de>
6865 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
6867 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
6869 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
6871 2011-04-21 Richard Guenther <rguenther@suse.de>
6873 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
6876 2011-04-21 Richard Guenther <rguenther@suse.de>
6878 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
6879 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
6880 Use DECL_P, not SSA_VAR_P.
6881 (ptr_derefs_may_alias_p): Likewise.
6882 (ptr_deref_may_alias_ref_p_1): Likewise.
6883 (decl_refs_may_alias_p): Likewise.
6884 (refs_may_alias_p_1): Likewise.
6885 (ref_maybe_used_by_call_p_1): Likewise.
6886 (call_may_clobber_ref_p_1): Likewise.
6887 (indirect_ref_may_alias_decl_p): Assume indirect refrences
6888 are either MEM_REF or TARGET_MEM_REF.
6889 (indirect_refs_may_alias_p): Likewise.
6890 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
6891 for MEM_EXPR of indirect calls.
6893 2011-04-21 Tristan Gingold <gingold@adacore.com>
6895 * vmsdbgout.c (write_srccorr): Compute file length from the string.
6896 (dst_file_info_struct): Remove flen field.
6897 (lookup_filename): Remove code that set flen field.
6899 2011-04-21 Tristan Gingold <gingold@adacore.com>
6901 * config/ia64/ia64.c (ia64_start_function): Add a guard.
6903 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
6906 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
6907 vec_extract and vec_concat for non-SSE4_1 targets.
6909 2011-04-21 Richard Guenther <rguenther@suse.de>
6911 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
6914 2011-04-21 Joseph Myers <joseph@codesourcery.com>
6916 * config/i386/cygming.h (union tree_node, TREE): Don't define or
6918 (FILE): Don't undefine.
6920 2011-04-21 Joseph Myers <joseph@codesourcery.com>
6922 * config/alpha/alpha.c (struct machine_function): Use rtx, not
6924 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
6926 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
6927 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
6928 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
6930 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
6931 definitions where used.
6932 * config/microblaze/microblaze.h (struct microblaze_args): Use
6933 rtx, not struct rtx_def *.
6934 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
6936 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
6937 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
6938 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
6939 not struct rtx_def *.
6940 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
6942 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
6944 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
6946 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
6948 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
6949 operand_equal_p to compare DR_BASE_ADDRESSes.
6950 (vect_check_interleaving): Likewise.
6952 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
6955 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
6956 for all Neon struct constants.
6958 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
6960 * target.def (legitimate_constant_p): New hook.
6961 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
6962 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
6963 * doc/tm.texi: Regenerate.
6964 * hooks.h (hook_bool_mode_rtx_true): Declare.
6965 * hooks.c (hook_bool_mode_rtx_true): Define.
6966 * system.h (LEGITIMATE_CONSTANT_P): Poison.
6967 * calls.c (precompute_register_parameters): Replace uses of
6968 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
6969 (emit_library_call_value_1): Likewise.
6970 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
6971 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
6972 * ira-costs.c (scan_one_insn): Likewise.
6973 * recog.c (general_operand, immediate_operand): Likewise.
6974 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
6975 * reload1.c (init_eliminable_invariants): Likewise.
6977 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
6979 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
6980 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
6982 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6983 * config/alpha/predicates.md (input_operand): Update call to
6984 alpha_legitimate_constant_p.
6986 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
6987 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
6988 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
6989 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6990 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
6991 (arm_legitimate_constant_p): New functions.
6992 (arm_cannot_force_const_mem): Make static.
6994 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
6996 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
6997 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
6998 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
6999 instead of bfin_legitimate_constant_p.
7000 (bfin_legitimate_constant_p): Make static. Add a mode argument.
7001 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7003 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
7005 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
7007 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
7008 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
7009 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7010 (frv_legitimate_constant_p): Make static. Add a mode argument.
7012 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
7013 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
7014 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
7016 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
7017 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
7018 * config/i386/i386.c (legitimate_constant_p): Rename to...
7019 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
7021 (ix86_cannot_force_const_mem): Update accordingly.
7022 (ix86_legitimate_address_p): Likewise.
7023 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7024 * config/i386/i386.md: Update commentary.
7026 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
7027 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
7028 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7029 (ia64_legitimate_constant_p): Make static. Add a mode argument.
7031 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
7033 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
7034 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
7035 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7036 (lm32_legitimate_constant_p): Make static. Add a mode argument.
7038 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
7039 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
7040 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
7042 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
7043 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7044 (m32r_legitimate_constant_p): New function.
7046 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
7047 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
7048 LEGITIMATE_CONSTANT_P.
7049 (LEGITIMATE_CONSTANT_P): Delete.
7050 * config/m68k/m68k.c (m68k_expand_prologue): Call
7051 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
7052 (m68k_legitimate_constant_p): New function.
7053 * config/m68k/m68k.md: Update comments.
7055 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
7056 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7057 (mcore_legitimate_constant_p): New function.
7059 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
7060 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
7061 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
7062 Add a mode argument.
7063 (mep_legitimate_address): Update accordingly.
7064 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7066 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
7068 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
7069 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
7070 static. Check OP's mode for VOIDmode.
7071 (microblaze_legitimate_constant_p): New function.
7072 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7074 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
7075 * config/mips/mips.c (mips_legitimate_constant_p): New function.
7076 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
7077 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7078 * config/mips/predicates.md: Update comments.
7080 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
7081 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
7082 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7083 (mmix_legitimate_constant_p): Make static, return a bool, and take
7085 (mmix_print_operand_address): Update accordingly.
7087 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
7089 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
7090 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
7091 static. Add a mode argument.
7092 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7094 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
7096 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
7097 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7098 (pa_legitimate_constant_p): New function.
7100 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
7102 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
7103 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7104 (pdp11_legitimate_constant_p): New function.
7106 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
7107 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7108 (rs6000_legitimate_constant_p): New function.
7110 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
7111 (rx_legitimate_constant_p): ...this.
7112 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
7113 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
7114 (rx_legitimate_constant_p): ...this.
7115 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7116 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
7118 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
7119 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
7120 * config/s390/s390.c (legitimate_constant_p): Rename to...
7121 (s390_legitimate_constant_p): ...this. Make static, return a bool,
7122 and add a mode argument.
7123 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7125 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
7127 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
7128 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7129 (sh_legitimate_constant_p): New function.
7131 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
7132 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
7133 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7134 (legitimate_constant_p): Rename to...
7135 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
7137 (constant_address_p): Update accordingly.
7139 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
7140 argument and return a bool.
7141 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
7142 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7143 (spu_legitimate_constant_p): Add a mode argument and return a bool.
7144 (spu_rtx_costs): Update accordingly.
7145 * config/spu/predicates.md (vec_imm_operand): Likewise.
7147 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
7149 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
7150 * config/v850/v850.c (v850_legitimate_constant_p): New function.
7151 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7153 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
7154 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
7155 * config/vax/vax.c (legitimate_constant_p): Likewise.
7157 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
7158 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7159 (xtensa_legitimate_constant_p): New function.
7161 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
7163 * target.def (cannot_force_const_mem): Add a mode argument.
7164 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
7165 * doc/tm.texi: Regenerate.
7166 * hooks.h (hook_bool_mode_rtx_false): Declare.
7167 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
7168 (hook_bool_mode_const_rtx_true): Likewise.
7169 (hook_bool_mode_rtx_false): New function.
7170 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
7171 to be non-VOID. Update call to cannot_force_const_mem.
7172 (find_reloads): Update accordingly.
7173 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
7174 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
7176 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
7177 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
7178 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
7179 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
7180 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
7181 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
7182 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
7183 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
7184 (m68k_cannot_force_const_mem): ...this new function.
7185 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
7187 (mips_const_insns, mips_legitimize_const_move): Update calls.
7188 (mips_secondary_reload_class): Likewise.
7189 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
7190 (pa_cannot_force_const_mem): ...this new function.
7191 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
7192 (rs6000_cannot_force_const_mem): ...this new function.
7193 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
7195 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
7196 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
7198 (xtensa_cannot_force_const_mem): ...this new function.
7200 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
7202 * config/mips/mips.c (mips16_build_function_stub): Call
7203 build_function_type_list instead of build_function_type.
7204 (mips16_build_call_stub): Likewise.
7206 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
7208 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
7209 instead of build_function_type.
7211 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
7213 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
7214 instead of build_function_type.
7216 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
7219 * config/i386/i386.md (insv): Change operand 0 constraint to
7220 "register_operand". Change operand 1 and 2 constraint to
7221 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
7222 * config/i386/sse.md (sse4_1_pinsrb): Export.
7223 (sse2_pinsrw): Ditto.
7224 (sse4_1_pinsrd): Ditto.
7225 (sse4_1_pinsrq): Ditto.
7226 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
7227 * config/i386/i386.c (ix86_expand_pinsr): New.
7229 2011-04-20 Easwaran Raman <eraman@google.com>
7231 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
7232 containing union type only with -fstrict-aliasing.
7234 2011-04-20 Jim Meyering <meyering@redhat.com>
7236 Remove useless if-before-free tests.
7237 * calls.c (expand_call, save_area): Likewise.
7238 * cfgcleanup.c (try_forward_edges): Likewise.
7239 * collect2.c (collect_execute): Likewise.
7240 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
7241 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
7242 * coverage.c (coverage_checksum_string): Likewise.
7243 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
7244 * cselib.c (cselib_init): Likewise.
7245 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
7246 (df_set_clean_cfg): Likewise.
7247 * function.c (free_after_compilation): Likewise.
7248 * gcc.c (do_spec_1, main): Likewise.
7249 * gcov.c (create_file_names): Likewise.
7250 * gensupport.c (identify_predicable_attribute): Likewise.
7251 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
7252 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
7253 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
7254 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
7255 * ipa-pure-const.c (local_pure_const): Likewise.
7256 * ipa-reference.c (propagate): Likewise.
7257 * ira-costs.c (free_ira_costs): Likewise.
7258 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
7259 * matrix-reorg.c (mat_free): Likewise.
7260 * prefix.c (get_key_value): Likewise.
7261 * profile.c (compute_value_histograms): Likewise.
7262 * reload1.c (free_reg_equiv): Likewise.
7263 * sched-deps.c (free_deps): Likewise.
7264 * sel-sched-ir.c (fence_clear): Likewise.
7265 * sese.c (set_rename, if_region_set_false_region): Likewise.
7266 * tree-data-ref.c (free_rdg): Likewise.
7267 * tree-eh.c (lower_try_finally): Likewise.
7268 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
7269 * tree-ssa-live.c (delete_var_map): Likewise.
7270 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
7271 * tree-ssa-pre.c (phi_trans_add): Likewise.
7273 2011-04-20 Jakub Jelinek <jakub@redhat.com>
7275 PR tree-optimization/48611
7276 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
7277 beyond ERT_MUST_NOT_THROW region.
7279 2011-04-20 Catherine Moore <clm@codesourcery.com>
7281 * config/mips/mips.opt (mfix-24k): New.
7282 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
7283 * config/mips/mips.md (length): Increase by 4 for stores if
7285 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
7286 all noreorder if fixing 24K errata.
7287 * doc/invoke.texi: Document mfix-24k.
7289 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
7291 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
7292 quad-word modes, reduce to 9-bit index range when above 1016 limit.
7294 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
7296 * config/arm/arm.c (arm_gen_constant): Move movw support ....
7297 (const_ok_for_op): ... to here.
7299 2011-04-20 Kai Tietz <ktietz@redhat.com>
7301 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
7302 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
7304 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
7306 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
7308 2011-04-20 Richard Guenther <rguenther@suse.de>
7310 PR tree-optimization/47892
7311 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
7314 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
7316 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
7318 2011-04-20 Tristan Gingold <gingold@adacore.com>
7320 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
7322 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
7326 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
7327 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
7328 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
7329 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
7330 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
7332 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
7335 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
7336 (avr_asm_named_section, avr_asm_output_aligned_common,
7337 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
7338 New functions to update...
7339 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
7340 (avr_asm_init_sections): Overwrite section callbacks for
7341 data_section, bss_section.
7342 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
7344 (avr_file_end): ...here.
7346 2011-04-20 Richard Guenther <rguenther@suse.de>
7349 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
7350 objects and types here. Adjust for their offset before comparing.
7352 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
7354 * tree-vect-stmts.c (vectorizable_store): Only chain one related
7357 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
7359 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
7360 (GIMPLE_H): Include $(INTERNAL_FN_H).
7361 (OBJS-common): Add internal-fn.o.
7362 (internal-fn.o): New rule.
7363 * internal-fn.def: New file.
7364 * internal-fn.h: Likewise.
7365 * internal-fn.c: Likewise.
7366 * gimple.h: Include internal-fn.h.
7367 (GF_CALL_INTERNAL): New gf_mask.
7368 (gimple_statement_call): Put fntype into a union with a new
7370 (gimple_build_call_internal): Declare.
7371 (gimple_build_call_internal_vec): Likewise.
7372 (gimple_call_same_target_p): Likewise.
7373 (gimple_call_internal_p): New function.
7374 (gimple_call_internal_fn): Likewise.
7375 (gimple_call_fntype): Return null for internal calls.
7376 (gimple_call_set_fntype): Assert that the function is not internal.
7377 (gimple_call_set_fn): Likewise.
7378 (gimple_call_set_fndecl): Likewise.
7379 (gimple_call_set_internal_fn): New function.
7380 (gimple_call_addr_fndecl): Handle null functions.
7381 (gimple_call_return_type): Likewise null types.
7382 * gimple.c (gimple_build_call_internal_1): New function.
7383 (gimple_build_call_internal): Likewise.
7384 (gimple_build_call_internal_vec): Likewise.
7385 (gimple_call_same_target_p): Likewise.
7386 (gimple_call_flags): Handle calls to internal functions.
7387 (gimple_call_fnspec): New function.
7388 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
7389 (gimple_has_side_effects): Handle null functions.
7390 (gimple_rhs_has_side_effects): Likewise.
7391 (gimple_call_copy_skip_args): Handle calls to internal functions.
7392 * cfgexpand.c (expand_call_stmt): Likewise.
7393 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
7394 * gimple-fold.c (gimple_fold_call): Handle null functions.
7395 (gimple_fold_stmt_to_constant_1): Don't fold
7396 calls to internal functions.
7397 * gimple-low.c (gimple_check_call_args): Handle calls to internal
7399 * gimple-pretty-print.c (dump_gimple_call): Likewise.
7400 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
7401 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
7402 (do_warn_unused_result): Likewise.
7403 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
7404 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
7405 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
7406 the target of a call.
7407 (initialize_hash_element): Update accordingly.
7408 (hashable_expr_equal_p): Use gimple_call_same_target_p.
7409 (iterative_hash_hashable_expr): Handle calls to internal functions.
7410 (print_expr_hash_elt): Likewise.
7411 * tree-ssa-pre.c (can_value_number_call): Likewise.
7412 (eliminate): Handle null functions.
7413 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
7414 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
7415 (find_func_aliases): Likewise.
7416 * value-prof.c (gimple_ic_transform): Likewise.
7417 (gimple_indirect_call_to_profile): Likewise.
7418 * lto-streamer-in.c (input_gimple_stmt): Likewise.
7419 * lto-streamer-out.c (output_gimple_stmt): Likewise.
7421 2011-04-19 Jan Hubicka <jh@suse.cz>
7423 * ipa-inline-transform.c (save_inline_function_body): Add comments.
7424 * ipa-inline.c (inline_small_functions): Compute summaries first,
7425 populate heap later.
7427 2011-04-19 Jan Hubicka <jh@suse.cz>
7429 * cgraph.h (save_inline_function_body): Remove.
7430 * ipa-inline-transform.c: New file, broke out of...
7431 * ipa-inline.c: ... this one; Update toplevel comment.
7432 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
7434 (update_noncloned_frequencies): Move to ipa-inline-transform.c
7435 (cgraph_mark_inline_edge): Rename to inline_call; move to
7436 ipa-inline-transform.c.
7437 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
7438 move to ipa-inline-transform.c
7439 (recursive_inlining, inline_small_functions, flatten_function,
7440 ipa_inline, inline_always_inline_functions,
7441 early_inline_small_functions): Update.
7442 (inline_transform): Move to ipa-inline-transform.c.
7443 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
7445 * Makefile.in (ipa-inline-transform.o): New file.
7446 * cgraphunit.c (save_inline_function_body): Move to
7447 ipa-inline-transform.c
7449 2011-04-19 DJ Delorie <dj@redhat.com>
7451 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
7452 registers if we already know there aren't any.
7453 (m32c_emit_epilogue): Don't emit a barrier here.
7454 (m32c_emit_eh_epilogue): Likewise.
7455 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
7456 operands at expand time.
7457 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
7459 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
7460 duplicates. Provide aliases instead.
7461 * config/m32c/prologue.md (eh_return): Emit a barrier here.
7462 (eh_epilogue): Add a "(return)" here as a hint to other parts of
7465 2011-04-19 Anatoly Sokolov <aesok@post.ru>
7467 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
7468 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
7469 (general_or_i64_p, sparc_register_move_cost): New function.
7471 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7473 * doc/install.texi (Configuration, --enable-threads): Remove mach.
7474 Add lynx, mipssde. Sort table.
7476 2011-04-19 Xinliang David Li <davidxl@google.com>
7478 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
7481 2011-04-19 Jakub Jelinek <jakub@redhat.com>
7484 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
7485 is a SUBREG with non-MODE_INT mode inside of it.
7487 2011-04-19 Martin Jambor <mjambor@suse.cz>
7489 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
7490 also according to actual contants.
7491 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
7492 (gimple_fold_call): Use it.
7493 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
7495 2011-04-19 Martin Jambor <mjambor@suse.cz>
7497 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
7498 non-pointer assignments.
7500 2011-04-19 Martin Jambor <mjambor@suse.cz>
7502 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
7503 account anc_offset and otr_type from the indirect edge info.
7504 * ipa-prop.c (get_ancestor_addr_info): New function.
7505 (compute_complex_ancestor_jump_func): Assignment analysis moved to
7506 get_ancestor_addr_info, call it.
7507 (ipa_note_param_call): Do not initialize information about polymorphic
7508 calls, return the indirect call graph edge. Remove the last
7509 parameter, adjust all callers.
7510 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
7511 parameters. Initialize polymorphic information in the indirect edge.
7513 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
7516 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
7517 the types if they have different enumeration identifiers.
7519 2011-04-19 Jan Hubicka <jh@suse.cz>
7521 * cgraph.h (cgraph_optimize_for_size_p): Declare.
7522 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
7523 * predict.c (cgraph_optimize_for_size_p): Break out from ...
7524 (optimize_function_for_size_p) ... here.
7526 2011-04-19 Richard Guenther <rguenther@suse.de>
7529 * tree.c (free_lang_data): Do not reset the decl-assembler-name
7532 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
7534 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
7535 if DECL_NO_INLINE_WARNING_P is set on the function.
7537 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
7540 * reload1.c (inc_for_reload): Return void. All callers changed.
7541 (emit_input_reload_insns): Don't try to delete previous output
7542 reloads to a register, or record spill_reg_store for autoincs.
7544 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
7546 * gengtype.h: Updated copyright year.
7547 (struct input_file_st): Add inpisplugin field.
7548 (type_fileloc): New function.
7550 (write_typed_struct_alloc_def): Add gcc_assert.
7551 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
7552 (write_typed_alloc_defns): Don't output for plugin files.
7553 (input_file_by_name): Clear inpisplugin field.
7554 (main): Set inpisplugin field for plugin files.
7556 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
7558 * gengtype-state.c (string_eq): New.
7559 (read_state): Use string_eq instead of strcmp when creating the
7562 2011-04-19 Wei Guozhi <carrot@google.com>
7565 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
7566 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
7568 * config/arm/constraints.md (Uu): New constraint.
7569 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
7571 2011-04-19 Tristan Gingold <gingold@adacore.com>
7573 * config.gcc (-*-*-*vms): Added.
7574 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
7576 * config/vms/vms-ld.c: New file.
7577 * config/vms/vms-ar.c: New file.
7578 * config/vms/t-vmsnative: New file.
7580 2011-04-18 Xinliang David Li <davidxl@google.com>
7582 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
7584 2011-04-18 Jakub Jelinek <jakub@redhat.com>
7587 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
7588 if TREE_TYPE (v) is non-NULL.
7590 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
7591 gimple_get_virt_mehtod_for_binfo.
7592 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
7593 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
7595 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
7597 2011-04-18 Michael Matz <matz@suse.de>
7598 Steve Ellcey <sje@cup.hp.com>
7600 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
7601 use its mode as source mode if it isn't VOIDmode.
7603 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
7605 * doc/passes.texi: Fill crossref nodes.
7607 2011-04-18 Jim Meyering <meyering@redhat.com>
7609 Fix doubled-word typos in comments and strings
7610 * config/alpha/vms-unwind.h: s/for for/for/
7611 * config/arm/unwind-arm.h: Likewise.
7612 * config/microblaze/microblaze.c: Likewise.
7613 * config/sh/constraints.md: s/in in/in/
7614 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
7616 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
7618 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
7619 (AVX_FLOAT_MODE_P): Ditto.
7620 (AVX128_VEC_FLOAT_MODE_P): Ditto.
7621 (AVX256_VEC_FLOAT_MODE_P): Ditto.
7622 (AVX_VEC_FLOAT_MODE_P): Ditto.
7623 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
7624 (UNSPEC_MASKSTORE): Ditto.
7625 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
7626 Merge from <sse>_movmsk<ssemodesuffix> and
7627 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
7628 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
7630 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
7631 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
7632 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
7634 2011-04-18 Jan Hubicka <jh@suse.cz>
7636 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
7638 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
7639 (want_inline_function_called_once_p): Break out the logic from
7641 (edge_badness): Ensure that profile is not misupdated.
7642 (lookup_recursive_calls): Prioritize by call frequencies.
7643 (inline_small_functions): Move program size estimates here;
7644 actually process whole queue even when unit growth has been
7645 met. (to properly compute inline_failed reasons and for the
7646 case unit size decrease.) Revisit comments on recursive inlining.
7647 (ipa_inline): Remove unit summary code; first inline hot calls
7648 of functions called once, cold calls next.
7649 (order, nnodes): Remove unused variables.
7650 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
7651 (GTFILES): Remove ipa-inline.c
7652 * sel-sched.c (fill_insns): Silence uninitialized var warning.
7654 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
7656 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
7658 2011-04-18 Jie Zhang <jie@codesourcery.com>
7659 Richard Earnshaw <rearnsha@arm.com>
7661 * arm.c (neon_builtin_type_bits): Remove.
7662 (typedef enum neon_builtin_mode): New.
7663 (T_MAX): Don't define.
7664 (typedef enum neon_builtin_datum): Remove bits, codes[],
7665 num_vars and base_fcode. Add mode, code and fcode.
7666 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
7667 VAR10): Change accordingly.
7668 (neon_builtin_data[]): Change accordingly
7669 (arm_init_neon_builtins): Change accordingly.
7670 (neon_builtin_compare): Remove.
7671 (locate_neon_builtin_icode): Remove.
7672 (arm_expand_neon_builtin): Change accordingly.
7674 * arm.h (enum arm_builtins): Move to ...
7675 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
7677 * arm.c (arm_builtin_decl): Declare.
7678 (TARGET_BUILTIN_DECL): Define.
7679 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
7680 (arm_builtin_decls[]): New.
7681 (arm_init_neon_builtins): Store builtin declarations in
7682 arm_builtin_decls[].
7683 (arm_init_tls_builtins): Likewise.
7684 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
7685 (arm_builtin_decl): New.
7687 2011-04-18 Richard Guenther <rguenther@suse.de>
7689 * tree.c (upper_bound_in_type): Build properly canonicalized
7691 (lower_bound_in_type): Likewise.
7693 2011-04-18 Richard Guenther <rguenther@suse.de>
7695 * gimple.h (gimple_call_addr_fndecl): New function.
7696 (gimple_call_fndecl): Use it.
7697 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
7699 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
7700 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
7702 2011-04-18 Richard Guenther <rguenther@suse.de>
7705 * tree.c (build_string): STRING_CST is now derived from tree_typed.
7707 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
7710 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
7711 DECL_IN_CONSTANT_POOL without RTL.
7713 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
7714 Ira Rosen <ira.rosen@linaro.org>
7717 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
7718 to match neon_vzip/vuzp/vtrn_internal.
7719 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
7720 outputs explicitly dependent on both inputs.
7721 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
7723 2011-04-18 Jakub Jelinek <jakub@redhat.com>
7725 PR tree-optimization/48616
7726 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
7727 whether the shift is by scalar or vector based on whether all SLP
7728 scalar stmts have the same rhs.
7730 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
7732 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
7735 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
7738 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
7741 2011-04-17 Jan Hubicka <jh@suse.cz>
7743 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
7744 * cgrpahunit.c (cgraph_finalize_function): Do not set
7745 finalized_by_frontend.
7746 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
7747 finalized_by_frontend.
7749 2011-04-17 Jan Hubicka <jh@suse.cz>
7751 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
7752 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
7753 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
7754 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
7756 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
7758 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
7760 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
7763 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
7764 is non-null before accessing it.
7765 (input_cgraph): Remove trailing spaces.
7767 2011-04-17 Revital Eres <revital.eres@linaro.org>
7769 * params.def (sms-min-sc): New param flag.
7770 * modulo-sched.c (sms_schedule): Use it.
7771 * doc/invoke.texi (sms-min-sc): Document it.
7773 2011-04-17 Jan Hubicka <jh@suse.cz>
7775 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
7776 present, also set gimple_call_set_cannot_inline.
7777 * ipa-inline.c: Update toplevel comment.
7779 (cgraph_clone_inlined_nodes): Fix linebreaks.
7780 (cgraph_check_inline_limits): Restructure to ...
7781 (caller_growth_limits): ... this one; be more tolerant
7782 on growth in nested inline chains; add explanatory comment;
7783 fix stack accounting thinko introduced by previous patch.
7784 (cgraph_default_inline_p): Remove.
7785 (report_inline_failed_reason): New function.
7786 (can_inline_edge_p): New function.
7787 (can_early_inline_edge_p): New function.
7788 (leaf_node_p): Move upwards in file.
7789 (want_early_inline_function_p): New function.
7790 (want_inline_small_function_p): New function.
7791 (want_inline_self_recursive_call_p): New function.
7792 (cgraph_edge_badness): Rename to ...
7793 (edge_badness) ... this one; fix linebreaks.
7794 (update_edge_key): Update call of edge_baddness; add
7795 detailed dump about queue updates.
7796 (update_caller_keys): Use can_inline_edge_p and
7797 want_inline_small_function_p.
7798 (cgraph_decide_recursive_inlining): Rename to...
7799 (recursive_inlining): Use can_inline_edge_p and
7800 want_inline_self_recursive_call_p; simplify and remove no longer
7802 (cgraph_set_inline_failed): Remove.
7803 (add_new_edges_to_heap): Use can_inline_edge_p and
7804 want_inline_small_function_p.
7805 (cgraph_decide_inlining_of_small_functions): Rename to ...
7806 (inline_small_functions): ... this one; cleanup; use
7807 can/want predicates; cleanup debug ouput; work edges till fibheap
7808 is exhausted and do not stop once unit growth is reached; remove
7809 later loop processing remaining edges.
7810 (cgraph_flatten): Rename to ...
7811 (flatten_function): ... this one; use can_inline_edge_p
7812 and can_early_inline_edge_p predicates.
7813 (cgraph_decide_inlining): Rename to ...
7814 (ipa_inline): ... this one; remove unreachable nodes before
7815 inlining functions called once; simplify the pass.
7816 (cgraph_perform_always_inlining): Rename to ...
7817 (inline_always_inline_functions): ... this one; use
7818 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
7819 (cgraph_decide_inlining_incrementally): Rename to ...
7820 (early_inline_small_functions): ... this one; simplify
7821 using new predicates; cleanup; make dumps prettier.
7822 (cgraph_early_inlining): Rename to ...
7823 (early_inliner): newer inline regular functions into always-inlines;
7824 fix updating of call stmt summaries.
7825 (pass_early_inline): Update for new names.
7826 (inline_transform): Fix formating.
7827 (gate_cgraph_decide_inlining): Rename to ...
7828 (pass_ipa_inline): ... this one.
7829 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
7830 * ipa-inline-analysis.c (dump_inline_summary): Update.
7831 (compute_inline_parameters): Do not compute disregard_inline_limits;
7832 look for mismatching arguments.
7833 (estimate_growth): Fix handlig of non-trivial self recursion.
7834 (inline_read_summary): Do not read info->disregard_inline_limits.
7835 (inline_write_summary): Do not write info->disregard_inline_limits.
7836 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
7837 and move all checks into can_inline_edge_p predicate; re-enable code
7838 comparing optimization levels.
7839 (expand_call_inline): Do not test inline_forbidden_into_p.
7840 * Makefile.in (ipa-inline.o): Update arguments.
7842 2011-04-17 Revital Eres <revital.eres@linaro.org>
7844 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
7846 2011-04-17 Revital Eres <revital.eres@linaro.org>
7848 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
7850 2011-04-17 Michael Matz <matz@suse.de>
7852 PR tree-optimization/48622
7854 * ipa-inline-analysis.c (inline_read_summary): Read size/time
7855 in same order as they're written.
7857 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7859 * config/pa/predicates.md: Reorganize and simplify predicates.
7860 Eliminate duplicate code checks.
7861 (arith_operand): Rename to arith14_operand
7862 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
7863 * config/pa/pa.md: Use renamed operands.
7864 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
7865 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
7866 arith11_operand, adddi3_operand, indexed_memory_operand,
7867 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
7868 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
7869 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
7870 move_dest_operand, move_src_operand, prefetch_cc_operand,
7871 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
7872 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
7873 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
7874 div_operand, int5_operand, movb_comparison_operator,
7875 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
7876 arith_double_operand, ireg_operand, lhs_lshift_operand,
7877 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
7878 integer_store_memory_operand): Likewise.
7879 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
7880 (integer_store_memory_operand, read_only_operand,
7881 function_label_operand, borx_reg_operand,
7882 non_hard_reg_operand): Likewise.
7883 (eq_neq_comparison_operator): Delete unused operator.
7884 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
7885 function_label_operand.
7886 (emit_move_sequence): Likewise.
7888 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
7890 * config/i386/sse.md (sseunpackmode): New mode attribute.
7891 (ssepackmode): Ditto.
7892 (vec_pack_trunc_<mode>): Macroize expander from
7893 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
7894 (vec_unpacks_lo_<mode>): Macroize expander from
7895 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
7896 (vec_unpacks_hi_<mode>): Macroize expander from
7897 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
7898 (vec_unpacku_lo_<mode>): Macroize expander from
7899 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
7900 (vec_unpacku_hi_<mode>): Macroize expander from
7901 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
7902 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
7903 ix86_expand_sse4_unpack.
7904 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
7906 2011-04-16 Jan Hubicka <jh@suse.cz>
7908 * cgraphbuild.c: Include ipa-inline.h.
7909 (reset_inline_failed): Use initialize_inline_failed.
7910 * cgraph.c: Include ipa-inline.h.
7911 (cgraph_create_node_1): Do not initialize estimated_growth.
7912 (initialize_inline_failed): More to ipa-inline-analysis.c
7913 (dump_cgraph_node): Do not dump inline flags.
7914 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
7915 and disregard_inline_limits flags.
7916 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
7917 time, size, estimated_growth.
7918 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
7920 * cgraphunit.c (cgraph_decide_is_function_needed): Use
7921 DECL_DISREGARD_INLINE_LIMITS.
7922 (cgraph_analyze_function): Do not initialize
7923 node->local.disregard_inline_limits.
7924 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
7925 inlinable, versionable and disregard_inline_limits.
7926 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
7927 cgraph_check_inline_limits, cgraph_default_inline_p,
7928 cgraph_edge_badness, update_caller_keys, update_callee_keys,
7929 add_new_edges_to_heap): Update.
7930 (cgraph_decide_inlining_of_small_function): Update; set
7931 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
7932 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
7933 cgraph_decide_inlining_incrementally): Update.
7934 * ipa-inline.h (inline_summary): Add inlinable, versionable,
7935 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
7936 time, size and estimated_growth parameters.
7937 (estimate_edge_growth): Update.
7938 (initialize_inline_failed): Declare.
7939 * ipa-split.c: Include ipa-inline.h
7940 (execute_split_functions): Update.
7941 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
7942 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
7943 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
7944 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
7945 estimated_growth to INT_MIN.
7946 (inline_node_duplication_hook): Likewise.
7947 (dump_inline_summary): Dump new fields.
7948 (compute_inline_parameters): Update.
7949 (estimate_edge_time, estimate_time_after_inlining,
7950 estimate_size_after_inlining, estimate_growth, inline_read_summary,
7951 inline_write_summary):
7952 (initialize_inline_failed): Move here from cgraph.c.
7953 * tree-sra.c: Include ipa-inline.h.
7954 (ipa_sra_preliminary_function_checks): Update.
7955 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
7958 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
7960 * config/i386/sse.md (V16): New mode iterator.
7962 (AVXMODEQI, AVXMODEDI): Remove.
7963 (sse2, sse3): New mode attribute.
7964 (mov<mode>): Use V16 mode iterator.
7965 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
7966 (push<mode>1): Use V16 mode iterator.
7967 (movmisalign<mode>): Ditto.
7968 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
7969 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
7970 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
7971 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
7972 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
7973 avx_movdqu<avxmodesuffix>.
7974 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
7975 *avx_movdqu<avxmodesuffix>.
7976 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
7977 avx_lddqu<avxmodesuffix>.
7978 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
7979 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
7980 avx_movnt<AVXMODEDI:mode>.
7981 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
7982 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
7984 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
7987 * haifa-sched.c (prune_ready_list, schedule_block): Use
7988 sched_pressure_p rather than flag_sched_pressure.
7990 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
7992 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
7993 cgraph_get_node instead of cgraph_get_create_node.
7995 2011-04-15 Jakub Jelinek <jakub@redhat.com>
7997 * cfgexpand.c (expand_debug_expr): Use
7998 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
8000 2011-04-15 Michael Matz <matz@suse.de>
8002 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
8003 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
8004 * function.c (gimplify_parameters): Ditto.
8005 * gimplify.c (gimplify_vla_decl): Ditto.
8007 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
8008 (gimple_call_set_alloca_for_var): New inline function.
8009 (gimple_call_alloca_for_var_p): Ditto.
8010 * gimple.c (gimple_build_call_from_tree): Remember
8011 CALL_ALLOCA_FOR_VAR_P state.
8012 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
8014 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
8015 calls if they were for VLA objects.
8017 2011-04-15 Martin Jambor <mjambor@suse.cz>
8019 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
8022 2011-04-15 Martin Jambor <mjambor@suse.cz>
8025 * tree-emutls.c (lower_emutls_function_body): Call
8026 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
8029 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
8031 * c-decl.c (detect_field_duplicates): Call
8032 objc_detect_field_duplicates instead of objc_get_interface_ivars.
8034 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
8036 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
8037 * gimple.c (gimple_asm_clobbers_memory_p): Define.
8038 * ipa-pure-const.c (check_stmt): Call it.
8039 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
8041 2011-04-15 Richard Guenther <rguenther@suse.de>
8043 PR tree-optimization/48290
8044 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
8045 Properly decide inhibiting propagation based on the valueized
8046 operand. Do loop-closed SSA form preserving here ...
8047 (init_copy_prop): ... not here.
8049 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
8052 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
8053 (*ieee_smax<mode>3): Likewise.
8055 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8057 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
8058 Replace match_operand with match_dup for the third operand in
8061 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
8063 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
8064 to track processing of conditionals. Update all callers.
8065 (try_combine, simplify_if_then_else): Update.
8067 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
8069 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
8072 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
8074 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
8075 instead of match_operand for operand 3.
8077 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
8079 * recog.h (insn_operand_data): Add an "allows_mem" field.
8080 * genoutput.c (output_operand_data): Initialize it.
8081 * optabs.c (maybe_legitimize_operand_same_code): New function.
8082 (maybe_legitimize_operand): Use it when matching the original
8085 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
8087 * gimplify.c: Fix issues in comments throughout.
8088 (voidify_wrapper_expr): Fix long line.
8089 (build_stack_save_restore): Likewise.
8090 (gimplify_loop_expr): Likewise.
8091 (gimplify_compound_lval): Likewise.
8092 (gimplify_init_ctor_eval): Likewise.
8093 (gimplify_modify_expr_rhs): Likewise.
8094 (omp_notice_threadprivate_variable): Likewise.
8096 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
8098 * cfgexpand.c (expand_call_stmt): Convert the function type to the
8099 original one if this is not a builtin function.
8101 2011-04-14 Jakub Jelinek <jakub@redhat.com>
8104 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
8105 offset it as needed based on top 2 bits in operands[3], change
8106 MEM mode to SFmode and mask those 2 bits away from operands[3].
8108 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
8110 * c-parser.c (c_parser_objc_protocol_definition): Updated for
8111 change from objc_declare_protocols() to objc_declare_protocol().
8113 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
8115 * config/i386/sse.md (sse4_1): New mode attribute.
8116 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
8117 avx_blend<ssemodesuffix><avxmodesuffix> and
8118 sse4_1_blend<ssemodesuffix> using VF mode iterator.
8119 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
8120 avx_blendv<ssemodesuffix><avxmodesuffix> and
8121 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
8122 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
8123 avx_dp<ssemodesuffix><avxmodesuffix> and
8124 sse4_1_dp<ssemodesuffix> using VF mode iterator.
8125 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
8126 (sse4_1_packusdw): Merge with *avx_packusdw.
8127 (sse4_1_pblendvb): Merge with *avx_pblendvb.
8128 (sse4_1_pblendw): Merge with *avx_pblendw.
8129 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
8130 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
8131 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
8133 (sse4_1_round<ssescalarmodesuffix>): Merge with
8134 *avx_round<ssescalarmodesuffix>.
8135 (aesenc): Merge with *avx_aesenc.
8136 (aesenclast): Merge with *avx_aesenclast.
8137 (aesdec): Merge with *avx_aesdec.
8138 (aesdeclast): Merge with *avx_aesdeclast.
8139 (pclmulqdq): Merge with *pclmulqdq.
8140 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
8142 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
8144 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
8147 * cfgexpand.c (get_decl_align_unit): Renamed to ...
8148 (align_local_variable): This. Update DECL_ALIGN.
8149 (add_stack_var): Updated.
8150 (expand_one_stack_var): Likewise.
8152 2011-04-14 Richard Guenther <rguenther@suse.de>
8154 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
8156 (dse_initialize_block_local_data, dse_leave_block,
8157 record_voperand_set, get_stmt_uid): Likewise.
8158 (dse_possible_dead_store_p): Allow any kind of killing stmt.
8159 (dse_optimize_stmt): Remove voperand set handling code.
8160 Simplify and improve to handle any kind of killing stmt.
8161 (dse_record_phi): Remove.
8162 (dse_enter_block): Simplify.
8163 (tree_ssa_dse): Likewise.
8164 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
8166 2011-04-14 Jan Hubicka <jh@suse.cz>
8168 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
8169 * cgraph.h (struct inline_summary): Move to ipa-inline.h
8170 (cgraph_local_info): Remove inline_summary.
8171 * ipa-cp.c: Include ipa-inline.h.
8172 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
8173 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
8175 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
8176 (input_overwrite_node): Do not set inline summary.
8177 (input_node): Do not stream inline summary.
8178 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
8179 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
8180 growth; we do not have inline parameters computed for that anyway.
8181 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
8182 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
8183 (inline_summary_t): New type and VECtor.
8184 (debug_inline_summary, dump_inline_summaries): Declare.
8185 (inline_summary): Use VOCtor.
8186 (estimate_edge_growth): Kill hack computing call stmt size directly.
8187 * lto-section-in.c (lto_section_name): Add inline section.
8188 * ipa-inline-analysis.c: Include lto-streamer.h
8189 (node_removal_hook_holder, node_duplication_hook_holder): New holders
8190 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
8191 (inline_summary_vec): Define.
8192 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
8193 dump_inline_summaries): New functions.
8194 (estimate_function_body_sizes): Properly compute size/time of outgoing
8196 (compute_inline_parameters): Alloc inline_summary; do not compute
8197 size/time of incomming calls.
8198 (estimate_edge_time): Avoid missing time summary hack.
8199 (inline_read_summary): Read inline summary info.
8200 (inline_write_summary): Write inline summary info.
8201 (inline_free_summary): Free all hooks and inline summary vector.
8202 * lto-streamer.h: Add LTO_section_inline_summary section.
8203 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
8204 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
8206 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
8208 * tree-vectorizer.h (vect_strided_store_supported): Add a
8209 HOST_WIDE_INT argument.
8210 (vect_strided_load_supported): Likewise.
8211 (vect_permute_store_chain): Return void.
8212 (vect_transform_strided_load): Likewise.
8213 (vect_permute_load_chain): Delete.
8214 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
8215 count argument. Check that the count is a power of two.
8216 (vect_strided_load_supported): Likewise.
8217 (vect_permute_store_chain): Return void. Update after above changes.
8218 Assert that the access is supported.
8219 (vect_permute_load_chain): Likewise.
8220 (vect_transform_strided_load): Return void.
8221 * tree-vect-stmts.c (vectorizable_store): Update calls after
8222 above interface changes.
8223 (vectorizable_load): Likewise.
8224 (vect_analyze_stmt): Don't check for strided powers of two here.
8226 2011-04-14 Richard Guenther <rguenther@suse.de>
8228 PR tree-optimization/48590
8229 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
8230 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
8231 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
8232 BUILT_IN_STACK_SAVE.
8233 * tree-ssa-dce.c (propagate_necessity): Handle
8234 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
8236 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
8238 * c-parser.c (c_parser_objc_class_declaration): Updated call to
8241 2011-04-14 Richard Guenther <rguenther@suse.de>
8243 * tree.h (get_object_alignment_1): Declare.
8244 * builtins.c (get_object_alignment_1): Split out worker from ...
8245 (get_object_alignment): ... here.
8246 * fold-const.c (get_pointer_modulus_and_residue): Use
8247 get_object_alignment_1.
8249 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
8251 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
8253 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
8254 parameter. Generalise code to handle arrays as well as vectors.
8255 (vect_setup_realignment): Update accordingly.
8256 * tree-vect-stmts.c (vectorizable_store): Likewise.
8257 (vectorizable_load): Likewise.
8259 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
8261 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
8262 within the per-copy loop.
8264 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
8266 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
8269 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
8271 * doc/options.texi (Negative): Explicitly mention that the
8272 Negative chain must be circular.
8274 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
8276 * function.h (block_chainon): Declare.
8277 * function.c (block_chainon): Define.
8279 2011-04-14 Anatoly Sokolov <aesok@post.ru>
8280 Eric Weddington <eric.weddington@atmel.com>
8281 Georg-Johann Lay <avr@gjlay.de>
8283 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
8285 (avr_init_builtins, avr_expand_builtin,
8286 avr_expand_delay_cycles, avr_expand_unop_builtin,
8287 avr_expand_binop_builtin ): New functions.
8288 (avr_builtin_id): New enum
8289 (struct avr_builtin_description): New struct
8290 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
8291 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
8293 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
8294 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
8295 UNSPECV_DELAY_CYCLES): new enumeration values
8296 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
8297 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
8298 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
8299 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
8300 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
8301 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
8302 "fmulsu"): New insns
8304 * config/avr/avr-c.c: fix line endings
8305 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
8306 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
8307 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
8308 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
8309 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
8311 * doc/extend.texi (AVR Built-in Functions): New node
8312 (Target Builtins): Add documentation of AVR
8315 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
8318 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
8319 alone. Error if non-const data has attribute progmem.
8321 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
8323 * tree.h (struct tree_constructor): Include tree_typed instead of
8325 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
8326 TS_TYPED instead of TS_COMMON.
8328 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
8330 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
8331 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
8332 (sse2_psadbw): Merge with *avx_psadbw.
8333 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
8334 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
8335 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
8336 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
8337 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
8338 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
8339 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
8340 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
8341 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
8342 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
8343 (ssse3_palignrti): Merge with *avx_palignrti.
8345 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
8347 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
8348 * tree-ssanames.c (fini_ssanames): VEC_free it.
8349 (make_ssa_name_fn): Update for VECness of free_ssanames.
8350 (release_ssa_name, release_dead_ssa_names): Likewise.
8351 * tree.h (struct tree_ssa_name): Include tree_typed instead of
8353 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
8354 TS_TYPED instead of TS_COMMON.
8356 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
8358 * postreload-gcse.c (gcse_after_reload_main): Add calls to
8359 statistics_counter_event.
8360 * tree-ssa-copyrename.c (stats): Define.
8361 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
8362 statistics_counter_event.
8363 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
8364 (bswap_stats, widen_mul_stats): Define.
8365 (insert_reciprocals): Increment rdivs_inserted.
8366 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
8367 rfuncs_inserted. Add calls to statistics_counter_event.
8368 (execute_cse_sincos_1): Increment inserted.
8369 (execute_cse_sincos): Zeroize sincos_stats. Add call to
8370 statistics_counter_event.
8371 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
8372 of bswap_stats. Add calls to statistics_counter_event.
8373 (convert_mult_to_widen): Increment widen_mults_inserted.
8374 (convert_plusminus_to_widen): Increment maccs_inserted.
8375 (convert_mult_to_fma): Increment fmas_inserted.
8376 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
8377 calls to statistics_counter_event.
8379 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
8381 PR rtl-optimization/48455
8382 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
8383 `temp_costs->mem_cost'.
8385 2011-04-13 Jan Hubicka <jh@suse.cz>
8387 * ipa-inline.h: New file.
8388 * ipa-inline-analysis.c: New file. Broken out of ...
8389 * ipa-inline.c: ... this file; update toplevel comment;
8390 include ipa-inline.h
8391 (inline_summary): Move to ipa-inline.h
8392 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
8393 ipa-inline-analysis.c.
8394 (cgraph_estimate_time_after_inlining): Rename to
8395 estiamte_time_after_inlining; move to ipa-inline-analysis.c
8396 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
8397 to estimate_edge_growth.
8398 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
8399 rename to estimate_size_after_inlining.
8400 (cgraph_mark_inline_edge): Update for new naming convention.
8401 (cgraph_check_inline_limits): Likewise.
8402 (cgraph_edge_badness): Likewise.
8403 (cgraph_decide_recursive_inlining): Likewise.
8404 (cgraph_decide_inlining_of_small_functions): Likewise.
8405 (cgraph_decide_inlining_incrementally): Likewise.
8406 (cgraph_estimate_growth): Rename to estimate_growth; move to
8407 ipa-inline-analysis.c.
8408 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
8409 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
8410 (compute_inline_parameters): Likewise.
8411 (compute_inline_parameters_for_current): Likewise.
8412 (pass_inline_parameters): Likewise.
8413 (inline_indirect_intraprocedural_analysis): Likewise.
8414 (analyze_function): Rename to inline_analyze_function; likewise.
8415 (add_new_function): Move to ipa-inline-analysis.c.
8416 (inline_generate_summary): Likewise.
8417 (inline_read_summary): Likewise.
8418 (inline_write_summary): Likewise.
8419 * Makefile.in (ipa-inline-analysis.c): New file.
8421 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8423 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
8424 * configure: Regenerate.
8426 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
8428 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
8429 instead of tree_common.
8430 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
8432 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
8433 TS_TYPED rather than TS_COMMON.
8434 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
8436 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
8439 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
8440 r20 around calls of __tablejump_elpm__
8442 2011-04-13 Jakub Jelinek <jakub@redhat.com>
8445 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
8447 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
8449 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
8451 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
8452 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
8453 (cfi_vec): New typedef.
8454 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
8455 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
8456 (cie_cfi_vec): New static variable.
8457 (cie_cfi_head): Delete.
8458 (add_cfi): Accept a cfi_vec * as first argument. All callers and
8459 declaration changed. Use vector rather than list operations.
8460 (new_cfi): Don't initialize the dw_cfi_next field.
8461 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
8462 rather than list operations.
8463 (lookup_cfa): Use vector rather than list operations.
8464 (output_cfis): New argument upto. Accept a cfi_vec rather than
8465 a dw_cfi_ref list head as argument. All callers changed.
8466 Iterate over the vector using upto as a maximum index.
8467 (output_all_cfis): New static function.
8468 (output_fde): Use vector rather than list operations. Use the
8469 new upto argument for output_cfis rather than manipulating a
8471 (dwarf2out_begin_prologue): Change initializations to match
8473 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
8474 from the vector length rather than searching for the end of a list.
8475 Use output_all_cfis.
8476 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
8478 2011-04-13 Nick Clifton <nickc@redhat.com>
8480 * config/rx/rx.md (movmemsi): Do not use this pattern when
8481 volatile pointers are involved.
8483 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
8485 * config/i386/sse.md (pinsrbits): Remove.
8486 (sse2_packsswb): Merge with *avx_packsswb.
8487 (sse2_packssdw): Merge with *avx_packssdw.
8488 (sse2_packuswb): Merge with *avx_packuswb.
8489 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
8490 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
8491 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
8492 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
8493 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
8494 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
8495 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
8496 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
8497 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
8498 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
8499 (sse2_loadld): Merge with *avx_loadld.
8500 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
8501 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
8502 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
8503 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
8504 (vec_concatv2di): Merge with *vec_concatv2di_avx.
8506 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
8508 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
8510 * print-tree.c (print_node): Likewise.
8511 * tree-inline.c (copy_tree_r): Likewise.
8512 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
8513 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
8514 instead of TS_COMMON.
8515 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
8516 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
8517 (copy_node_stat): Zero TREE_CHAIN only if necessary.
8518 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
8519 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
8521 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
8523 (TREE_CHAIN): Check for a TS_COMMON structure.
8524 (TREE_TYPE): Check for a TS_TYPED structure.
8526 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
8528 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
8529 cgraph_get_create_node instead of cgraph_node.
8531 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
8533 * c-parser.c (c_parser_initelt): Updated call to
8534 objc_build_message_expr.
8535 (c_parser_postfix_expression): Likewise.
8537 2011-04-12 Kai Tietz <ktietz@redhat.com>
8539 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
8540 MASK_MS_BITFIELD_LAYOUT bit.
8542 2011-04-12 Jakub Jelinek <jakub@redhat.com>
8544 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
8545 assert it is always true.
8546 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
8549 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
8551 * c-parser.c (c_lex_one_token): Rewritten conditional used when
8552 compiling Objective-C to be more efficient.
8554 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
8556 * opts-common.c (decode_cmdline_options_to_array): Remove variable
8559 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
8561 * recog.h, genoutput.c, optabs.c: Revert last patch.
8563 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8566 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
8568 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
8570 * recog.h (insn_operand_data): Add an "allows_mem" field.
8571 * genoutput.c (output_operand_data): Initialize it.
8572 * optabs.c (maybe_legitimize_operand_same_code): New function.
8573 (maybe_legitimize_operand): Use it when matching the original
8576 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
8578 * genpreds.c (process_define_predicate): Move most processing
8579 to gensupport.c. Continue to validate the expression.
8580 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
8581 (process_define_predicate): Move processing to gensupport.c.
8582 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
8583 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
8584 (compute_predicate_codes): Moved from genrecog.c. Add lineno
8586 (valid_predicate_name_p): New function, split out from old
8587 genpreds.c:process_define_predicate.
8588 (process_define_predicate): New function, combining code from
8589 old genpreds.c and genrecog.c functions.
8590 (process_rtx): Call it for DEFINE_PREDICATE and
8591 DEFINE_SPECIAL_PREDICATE.
8593 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
8595 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
8596 size of a '%A' memory reference.
8597 (T_DREG, T_QREG): New neon_builtin_type_bits.
8598 (arm_init_neon_builtins): Assert that the load and store operands
8599 are neon_struct_operands.
8600 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
8601 (NEON_ARG_MEMORY): New builtin_arg.
8602 (neon_dereference_pointer): New function.
8603 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
8604 Handle NEON_ARG_MEMORY.
8605 (arm_expand_neon_builtin): Update after above interface changes.
8606 Use NEON_ARG_MEMORY for loads and stores.
8607 * config/arm/predicates.md (neon_struct_operand): New predicate.
8608 * config/arm/iterators.md (V_two_elem): Tweak formatting.
8609 (V_three_elem): Use BLKmode for accesses that have no associated mode.
8610 (V_four_elem): Tweak formatting.
8611 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
8612 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
8613 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
8614 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
8615 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
8616 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
8617 (neon_vst4<mode>): Replace pointer operand with a memory operand.
8618 Use %A in the output template.
8619 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
8620 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
8621 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
8622 the width of the memory access. Remove post-increment.
8623 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
8625 2011-04-12 Nick Clifton <nickc@redhat.com>
8627 * config/v850/v850.c (expand_prologue): Do not use the CALLT
8628 instruction for interrupt handlers if the target is the basic V850
8630 (expand_epilogue): Likewise.
8632 2011-04-12 Jakub Jelinek <jakub@redhat.com>
8634 PR rtl-optimization/48549
8635 * combine.c (propagate_for_debug): Also stop after BB_END of
8636 this_basic_block. Process LAST and just stop processing after it.
8637 (combine_instructions): If last_combined_insn has been deleted,
8638 set last_combined_insn to its PREV_INSN.
8640 2011-04-12 Richard Guenther <rguenther@suse.de>
8642 PR tree-optimization/46076
8643 * gimple.h (struct gimple_statement_call): Add fntype field.
8644 (gimple_call_fntype): Adjust.
8645 (gimple_call_set_fntype): New function.
8646 * gimple.c (gimple_build_call_1): Set the call function type.
8647 * gimplify.c (gimplify_call_expr): Preserve the function
8648 type the frontend used for the call.
8649 (gimplify_modify_expr): Likewise.
8650 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
8652 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
8654 * tree-ssa.c (useless_type_conversion_p): Function pointer
8655 conversions are useless.
8657 2011-04-12 Martin Jambor <mjambor@suse.cz>
8659 * cgraph.h (cgraph_node): Remove function declaration.
8660 (cgraph_create_node): Declare.
8661 (cgraph_get_create_node): Likewise.
8662 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
8663 Updated all callers.
8664 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
8665 the decl does not already exist. Call cgraph_get_create_node instead
8667 (cgraph_get_create_node): New function.
8668 (cgraph_same_body_alias): Update comment.
8669 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
8670 assert it does not return NULL.
8671 (cgraph_update_edges_for_call_stmt): Likewise.
8672 (cgraph_clone_edge): Likewise.
8673 (cgraph_create_virtual_clone): Likewise.
8674 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
8675 instead of cgraph_node.
8676 (cgraph_add_new_function): Call cgraph_create_node or
8677 cgraph_get_create_node instead of cgraph_node.
8678 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
8679 instead of cgraph_node.
8680 (record_eh_tables): Likewise.
8681 (mark_address): Likewise.
8682 (mark_load): Likewise.
8683 (build_cgraph_edges): Call cgraph_get_create_node instead
8685 (rebuild_cgraph_edges): Likewise.
8686 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
8687 instead of cgraph_node.
8688 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
8690 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
8691 cgraph_create_node instead of cgraph_node.
8692 * c-decl.c (finish_function): Call cgraph_get_create_node instead
8694 * lto-cgraph.c (input_node): Likewise.
8695 * lto-streamer-in.c (input_function): Likewise.
8696 * varasm.c (mark_decl_referenced): Likewise.
8697 (assemble_alias): Likewise.
8699 2011-04-12 Martin Jambor <mjambor@suse.cz>
8701 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
8702 instead of cgraph_node and assert it does not return NULL.
8703 * lto-streamer-in.c (lto_read_body): Likewise.
8704 * omp-low.c (new_omp_context): Likewise.
8705 (create_task_copyfn): Likewise.
8706 * tree-emutls.c (lower_emutls_function_body): Likewise.
8707 * matrix-reorg.c (transform_allocation_sites): Likewise.
8709 2011-04-12 Jakub Jelinek <jakub@redhat.com>
8712 * c-typeck.c (build_asm_expr): Error out on attempts to use
8713 void type outputs or inputs for constraints that allow reg or
8716 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
8717 Richard Earnshaw <rearnsha@arm.com>
8720 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
8721 to use sign-magnitude offsets. Reject unsupported unaligned
8722 cases. Add detailed description in comments.
8723 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
8724 condition from TARGET_32BIT to TARGET_ARM.
8726 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
8728 * tree.h (struct typed_tree): New.
8729 (struct tree_common): Include it instead of tree_base.
8730 (TREE_TYPE): Update for new location of type field.
8731 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
8732 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
8733 (union tree_node): Add typed field.
8734 * treestruct.def (TS_TYPED): New.
8735 * lto-streamer.c (check_handled_ts_structures): Handle it.
8736 * tree.c (MARK_TS_TYPED): New macro.
8737 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
8739 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
8741 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
8742 (force_nonfallthru): Do not alter the loop nest if no basic block
8745 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
8747 * config/i386/sse.md (VI): New mode iterator.
8749 (AVX256MODEI): Ditto.
8750 (AVXMODEF4P): Ditto.
8751 (avxvecpsmode): Ditto.
8752 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
8753 (sse2_andnot<mode>3): New expander.
8754 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
8755 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
8756 (<any_logic:code><mode>3): Use VI mode iterator.
8757 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
8758 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
8759 (*andnottf3): Handle AVX three-operand constraints.
8760 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
8762 2011-04-11 Joseph Myers <joseph@codesourcery.com>
8763 Robert Millan <rmh@gnu.org>
8765 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
8766 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
8767 GNU_USER_DYNAMIC_LINKER64): Define.
8768 (REG_NAME): Don't undefine.
8769 (MD_UNWIND_SUPPORT): Undefine.
8770 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
8771 (REG_NAME): Don't undefine.
8772 (MD_UNWIND_SUPPORT): Undefine.
8773 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
8775 2011-04-11 Joseph Myers <joseph@codesourcery.com>
8777 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
8778 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
8780 2011-04-11 Xinliang David Li <davidxl@google.com>
8782 * value-profile.c (check_ic_target): New function.
8783 (gimple_ic_transform): Sanity check indirect call target.
8784 * gimple-low.c (gimple_check_call_args): Interface change.
8785 (gimple_check_call_matching_types): New function.
8786 * tree-inline.c (tree_can_inline_p): Call new function.
8788 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
8790 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
8791 tree-pretty-print.h & realmpfr.h.
8793 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
8796 * ira.c (setup_pressure_classes): Fix typo in loop condition.
8797 (setup_allocno_and_important_classes): Ditto.
8799 2011-04-11 Joseph Myers <joseph@codesourcery.com>
8801 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
8802 GNU_USER_DYNAMIC_LINKER.
8803 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
8804 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8805 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
8806 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
8807 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
8808 GNU_USER_TARGET_OS_CPP_BUILTINS.
8809 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
8810 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8811 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
8812 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8813 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
8814 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
8815 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
8816 GNU_USER_TARGET_OS_CPP_BUILTINS.
8817 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8818 GNU_USER_DYNAMIC_LINKER.
8819 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
8820 GNU_USER_TARGET_OS_CPP_BUILTINS.
8821 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
8822 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8823 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
8824 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8825 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
8826 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
8827 GNU_USER_DYNAMIC_LINKER64): Remove.
8828 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
8829 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8830 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8831 GNU_USER_DYNAMIC_LINKER.
8832 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
8833 GNU_USER_TARGET_OS_CPP_BUILTINS.
8834 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
8835 GNU_USER_TARGET_OS_CPP_BUILTINS.
8836 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
8837 to GNU_USER_TARGET_OS_CPP_BUILTINS.
8838 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
8839 GNU_USER_TARGET_OS_CPP_BUILTINS.
8840 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
8841 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
8842 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
8843 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
8844 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8845 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8846 GNU_USER_DYNAMIC_LINKER.
8847 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
8848 GNU_USER_TARGET_OS_CPP_BUILTINS.
8849 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
8850 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8851 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8852 GNU_USER_DYNAMIC_LINKER.
8853 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
8854 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8855 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
8856 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8857 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8858 GNU_USER_DYNAMIC_LINKER.
8859 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
8860 GNU_USER_DYNAMIC_LINKERN32.
8861 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
8862 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
8863 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
8864 GNU_USER_DYNAMIC_LINKER32.
8865 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
8866 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8867 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8868 GNU_USER_DYNAMIC_LINKER.
8869 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
8870 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8871 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
8872 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8873 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
8874 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
8875 GNU_USER_DYNAMIC_LINKER32.
8876 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
8877 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
8878 GNU_USER_DYNAMIC_LINKER.
8879 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
8880 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8881 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
8882 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
8883 GNU_USER_DYNAMIC_LINKER64.
8884 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
8885 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8886 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8887 GNU_USER_DYNAMIC_LINKER.
8888 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
8889 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8890 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8891 GNU_USER_DYNAMIC_LINKER.
8892 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
8893 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8894 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
8895 GNU_USER_DYNAMIC_LINKER32.
8896 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
8897 GNU_USER_DYNAMIC_LINKER64.
8898 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
8899 GNU_USER_DYNAMIC_LINKER64.
8900 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
8901 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8902 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
8903 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8904 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
8906 2011-04-11 Joseph Myers <joseph@codesourcery.com>
8908 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
8909 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
8910 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
8911 GNU_USER_DYNAMIC_LINKER.
8912 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
8913 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
8914 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
8915 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
8916 GNU_USER_DYNAMIC_LINKER64.
8917 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
8918 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
8919 GNU_USER_LINK_EMULATION.
8920 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
8921 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
8922 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
8923 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
8924 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
8925 CPP_SPEC, CC1_SPEC): Remove.
8926 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
8927 (GNU_USER_DYNAMIC_LINKER): Define.
8928 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
8929 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
8930 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
8931 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
8932 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
8933 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
8934 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
8935 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
8936 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
8937 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
8938 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
8939 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
8940 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
8941 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
8942 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
8943 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
8944 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
8945 GNU_USER_DYNAMIC_LINKER.
8946 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
8947 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
8948 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
8949 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
8950 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
8951 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
8952 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
8953 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
8954 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
8955 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
8957 2011-04-11 Kai Tietz <ktietz@redhat.com>
8961 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
8962 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
8964 (ix86_is_msabi_thiscall): Removed.
8965 (ix86_is_type_thiscall): Likewise.
8966 (ix86_get_callcvt): New function.
8967 (ix86_comp_type_attributes): Simplify check.
8968 (ix86_function_regparm): Use ix86_get_callcvt for calling
8969 convention attribute checks.
8970 (ix86_return_pops_args): Likewise.
8971 (ix86_static_chain): Likewise.
8972 (x86_this_parameter): Likewise.
8973 (x86_output_mi_thunk): Likewise.
8974 (ix86_function_type_abi): Optimize check for types without attributes.
8975 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
8976 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
8977 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
8979 (IX86_BASE_CALLCVT): Helper macro.
8980 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
8981 Use ix86_get_callcvt for calling convention attribute checks and avoid
8982 symbol-decoration for stdcall in TARGET_RTD case.
8983 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
8985 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
8988 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
8990 * config/i386/sse.md (VI_128): New mode iterator.
8991 (VI12_128): Rename from SSEMODE12.
8992 (VI14_128): Rename from SSEMODE14.
8993 (VI124_128): New mode iterator.
8994 (VI24_128): Rename from SSEMODE248.
8995 (VI248_128): Rename from SSEMODE248.
8996 (SSEMODE124C8): Remove.
8997 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
8998 (*sse2_<plusminus_insn><mode>3): Merge with
8999 *avx_<plusminus_insn><mode>3.
9000 (*mulv8hi3): Merge with *avx_mulv8hi3.
9001 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
9002 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
9003 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
9004 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
9005 (ashr<mode>3): Merge with *avx_ashr<mode>3.
9006 (lshr<mode>3): Merge with *avx_lshr<mode>3.
9007 (ashl<mode>3): Merge with *avx_ashl<mode>3.
9008 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
9009 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
9010 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
9011 (*<smaxmin:code>v8hi3): Ditto.
9012 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
9013 (*<smaxmin:code>v16qi3): Ditto.
9014 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
9015 (*sse2_eq<mode>3): Ditto.
9016 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
9017 (*sse2_gt<mode>3): Ditto.
9018 (vcondv2di): Split out of vcond<mode>.
9019 (vconduv2di): Split out of vcondu<mode>.
9021 2011-04-11 Richard Guenther <rguenther@suse.de>
9023 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
9024 before calling tree_low_cst.
9026 2011-04-11 Richard Guenther <rguenther@suse.de>
9028 * stor-layout.c (layout_type): Compute all array index size operations
9029 in the original type.
9030 (initialize_sizetypes): Add comment.
9031 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
9033 2011-04-11 Joseph Myers <joseph@codesourcery.com>
9035 * common.opt (Tbss=, Tdata=, Ttext=): New options.
9037 2011-04-11 Martin Jambor <mjambor@suse.cz>
9039 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
9040 of cgraph_node, handle NULL return value.
9041 (cgraph_global_info): Likewise.
9042 (cgraph_rtl_info): Likewise.
9043 * tree-inline.c (estimate_num_insns): Likewise.
9044 * gimplify.c (unshare_body): Likewise.
9045 (unvisit_body): Likewise.
9046 (gimplify_body): Likewise.
9047 * predict.c (optimize_function_for_size_p): Likewise.
9048 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
9049 (call_may_clobber_ref_p_1): Likewise.
9050 * varasm.c (function_section_1): Likewise.
9051 (assemble_start_function): Likewise.
9053 2011-04-11 Martin Jambor <mjambor@suse.cz>
9055 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
9057 * final.c (rest_of_clean_state): Likewise.
9058 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
9059 * passes.c (pass_init_dump_file): Likewise.
9060 (execute_all_ipa_transforms): Likewise.
9061 (function_called_by_processed_nodes_p): Likewise.
9062 * predict.c (maybe_hot_frequency_p): Likewise.
9063 (probably_never_executed_bb_p): Likewise.
9064 (compute_function_frequency): Likewise.
9065 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
9066 (unnest_nesting_tree_1): Likewise.
9067 (lower_nested_functions): Likewise.
9068 * tree-optimize.c (execute_fixup_cfg): Likewise.
9069 (tree_rest_of_compilation): Likewise.
9070 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
9071 * tree-sra.c (ipa_early_sra): Likewise.
9072 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
9073 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
9074 * ipa.c (record_cdtor_fn): Likewise.
9075 * ipa-inline.c (cgraph_early_inlining): Likewise.
9076 (compute_inline_parameters_for_current): Likewise.
9077 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
9078 * ipa-pure-const.c (local_pure_const): Likewise.
9079 * ipa-split.c (split_function): Likewise.
9080 (execute_split_functions): Likewise.
9081 * cgraphbuild.c (build_cgraph_edges): Likewise.
9082 (rebuild_cgraph_edges): Likewise.
9083 (cgraph_rebuild_references): Likewise.
9084 (remove_cgraph_callee_edges): Likewise.
9085 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
9086 (verify_cgraph_node): Likewise.
9087 (cgraph_analyze_functions): Likewise.
9088 (cgraph_preserve_function_body_p): Likewise.
9089 (save_inline_function_body): Likewise.
9090 (save_inline_function_body): Likewise.
9091 * tree-inline.c (copy_bb): Likewise.
9092 (optimize_inline_calls): Likewise.
9094 2011-04-11 Martin Jambor <mjambor@suse.cz>
9096 PR tree-optimization/48195
9097 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
9098 ipa_check_create_edge_args.
9099 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
9100 ipa_check_create_edge_args.
9101 * ipa-inline.c (inline_generate_summary): Do not call
9102 ipa_check_create_node_params and ipa_check_create_edge_args.
9103 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
9104 ipa_check_create_edge_args.
9106 2011-04-09 Anatoly Sokolov <aesok@post.ru>
9108 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
9110 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
9111 * function.c (record_hard_reg_sets): Likewise.
9112 * ira.c (compute_regs_asm_clobbered): Likewise.
9113 * sched-deps.c (sched_analyze_1): Likewise.
9114 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
9116 2011-04-09 Xinliang David Li <davidxl@google.com>
9118 PR tree-optimization/PR48484
9119 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
9120 has_valid_pred lazily
9122 2011-04-09 Duncan Sands <baldrick@free.fr>
9124 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
9126 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
9128 * combine.c (combine_validate_cost): Adjust comments. Set registered
9129 cost of I0 to zero at the end, if any.
9131 2011-04-08 Xinliang David Li <davidxl@google.com>
9133 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
9134 to insane profile data.
9136 2011-04-08 Xinliang David Li <davidxl@google.com>
9138 * ipa-cp.c (ipcp_update_profiling): Correct
9139 negative scale factor due to insane profile data.
9141 2011-04-08 Xinliang David Li <davidxl@google.com>
9143 * final.c (dump_basic_block_info): New function.
9144 (final): Dump basic block.
9145 (final_scan_insn): Remove old dump.
9147 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
9150 * config.gcc (i386-*-freebsd): Disable unwind table generation for
9153 2011-04-08 Michael Matz <matz@suse.de>
9156 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
9158 (rebuild_jump_labels): Call rebuild_jump_labels_1.
9159 * rtl.h (rebuild_jump_labels_chain): Declare.
9160 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
9161 insns inserted on edges.
9163 2011-04-08 Joseph Myers <joseph@codesourcery.com>
9165 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
9166 * config/arm/arm-arches.def: New.
9167 * config/arm/arm-opts.h: New.
9168 * config/arm/genopt.sh: New.
9169 * config/arm/arm-tables.opt: New (generated).
9170 * config/arm/arm.c (arm_handle_option, arm_target_help,
9171 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
9172 (all_architectures): Get most table contents from arm-arches.def.
9173 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
9174 arm_selected_tune here.
9175 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
9176 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
9177 (march=, mcpu=, mtune=): Use Enum and Var.
9178 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
9179 (arm.o): Update dependencies.
9181 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
9183 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
9185 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
9186 (write_typed_alloc_defns): Likewise.
9187 (main): Calls write_typed_alloc_defns with output_header.
9189 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
9192 * ira-color.c (setup_profitable_hard_regs): Add comments.
9193 Don't take prohibited hard regs into account.
9194 (setup_conflict_profitable_regs): Rename to
9195 get_conflict_profitable_regs.
9196 (check_hard_reg_p): Check prohibited hard regs.
9198 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
9200 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
9201 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
9202 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
9204 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9207 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
9208 move from floating point to shift amount register.
9209 (emit_move_sequence): Remove secondary reload support for floating
9210 point to shift amount amount register copies.
9211 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
9212 amount register copies.
9213 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
9214 register, return false if mode isn't a scalar integer mode.
9215 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
9217 2011-04-08 Richard Guenther <rguenther@suse.de>
9219 * gimple.c (gimple_call_flags): Remove kludge.
9221 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
9223 * sel-sched.c (sel_region_init): Move call to
9224 sel_setup_region_sched_flags after setup_current_loop_nest.
9226 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
9228 PR rtl-optimization/48272
9229 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
9230 init_insn_reg_pressure_info. Adjust a caller.
9231 * sched-int.h (init_insn_reg_pressure_info): Declare.
9232 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
9233 when sched-pressure is enabled.
9235 2011-04-08 Richard Guenther <rguenther@suse.de>
9237 * gimple.c (gimple_set_modified): Do not queue calls to
9238 MODIFIED_NORETURN_CALLS here ...
9239 * tree-ssa-operands.c (update_stmt_operands): ... but here.
9241 2011-04-08 Richard Guenther <rguenther@suse.de>
9244 * toplev.c (lang_dependent_init): Do not open asm_out_file
9245 in WPA mode, nor perform debug machinery initialization.
9246 (finalize): Do not unlink asm_out_file in WPA mode.
9248 2011-04-08 Richard Guenther <rguenther@suse.de>
9250 * gimple.h (gimple_call_fntype): New function.
9251 (gimple_call_return_type): Use it.
9252 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
9253 * gimple-low.c (gimple_check_call_args): Likewise.
9254 * gimple.c (gimple_call_flags): Likewise.
9255 (gimple_call_arg_flags): Likewise.
9256 (gimple_call_return_flags): Likewise.
9257 * tree-cfg.c (verify_gimple_call): Likewise.
9258 (do_warn_unused_result): Likewise.
9259 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
9260 * value-prof.c (gimple_ic_transform): Fix fndecl check.
9262 2011-04-08 Dmitry Melnik <dm@ispras.ru>
9264 PR rtl-optimization/48235
9265 * sel-sched.c (code_motion_process_successors): Recompute the last
9266 insn in basic block if control flow changed.
9267 (code_motion_path_driver): Ditto. Recompute the first insn as well.
9268 Update condition for ilist_remove.
9270 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
9272 PR rtl-optimization/48302
9273 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
9274 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
9275 it to record added preheader blocks.
9276 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
9277 on to sel_add_loop_preheaders.
9278 (sel_region_init): Move call to setup_current_loop_nest after
9281 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
9284 * cfgloop.h (loop_has_exit_edges): New helper.
9285 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
9287 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
9288 that have no exit edges.
9290 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
9292 PR rtl-optimization/48442
9293 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
9294 all callers. Adjust assert.
9296 2011-04-08 Jakub Jelinek <jakub@redhat.com>
9298 PR tree-optimization/48377
9299 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
9300 is_packed to true even for types with smaller TYPE_ALIGN than
9303 2011-04-08 Richard Guenther <rguenther@suse.de>
9306 * doc/tm.texi: Re-generate.
9308 2011-04-08 Wei Guozhi <carrot@google.com>
9311 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
9312 * config/arm/arm.c (arm_attr_length_push_multi): New function.
9313 * config/arm/arm.md (*push_multi): Change the length computation to
9316 2011-04-08 Anatoly Sokolov <aesok@post.ru>
9318 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
9319 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
9320 * doc/tm.texi: Regenerate.
9321 * system.h (ASM_OUTPUT_BSS): Poison.
9322 * varasm.c (asm_output_bss): Remove function.
9323 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
9325 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
9326 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
9327 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
9328 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
9330 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
9332 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
9334 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
9336 2011-04-07 Joseph Myers <joseph@codesourcery.com>
9338 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
9341 2011-04-07 Joseph Myers <joseph@codesourcery.com>
9343 * config/m68k/m68k.c (m68k_handle_option): Don't handle
9344 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
9345 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
9347 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
9348 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
9349 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
9350 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
9351 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
9352 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
9353 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
9354 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
9355 options. Don't map other m68k options manually. Don't handle
9356 old-style options as canonical.
9357 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
9358 * doc/install.texi (m68k-*-*): Document binutils version requirement.
9360 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
9362 * basic-block.h (force_nonfallthru): Move to...
9363 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
9364 (force_nonfallthru): ...here.
9365 * cfghooks.c (force_nonfallthru): New function.
9366 * cfgrtl.c (force_nonfallthru): Rename into...
9367 (rtl_force_nonfallthru): ...this.
9368 (commit_one_edge_insertion): Do not set AUX field.
9369 (commit_edge_insertions): Do not discover new basic blocks.
9370 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
9371 (cfg_layout_rtl_cfg_hooks): Likewise.
9372 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
9373 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
9374 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
9376 2011-04-07 Anatoly Sokolov <aesok@post.ru>
9378 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
9381 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
9383 * config/i386/sse.md: Update copyright year.
9384 (avxcvtvecmode): Remove.
9385 (sse_movhlps): Merge with *avx_movhlps.
9386 (sse_movlhps): Merge with *avx_movlhps.
9387 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
9388 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
9389 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
9390 (sse_loadhps): Merge with *avx_loadhps.
9391 (sse_storelps): Merge with *avx_storelps.
9392 (sse_loadlps): Merge with *avx_loadlps.
9393 (sse_movss): Merge with *avx_movss.
9394 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
9395 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
9396 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
9397 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
9398 (vec_set<mode>_0): Ditto.
9399 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
9400 (sse4_1_insertps): Merge with *avx_insertps.
9401 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
9402 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
9403 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
9404 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
9405 (sse2_storehpd): Merge with *avx_storehpd.
9406 (sse2_loadhpd): Merge with *avx_loadhpd.
9407 (sse2_loadlpd): Merge with *avx_loadlpd.
9408 (sse2_movsd): Merge with *avx_movsd.
9409 (*vec_concatv2df): Merge with *vec_concatv2df.
9411 2011-04-07 Jakub Jelinek <jakub@redhat.com>
9414 * combine.c (combine_instructions): Add last_combined_insn,
9415 update it if insn is after it, pass it to all try_combine calls.
9416 (try_combine): Add last_combined_insn parameter, pass it instead of
9417 i3 to propagate_for_debug.
9419 2011-04-07 Nick Clifton <nickc@redhat.com>
9421 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
9422 to handle MDR <-> data register transfers.
9423 (movhi_internal): Likewise.
9425 2011-04-07 Alan Modra <amodra@gmail.com>
9427 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
9428 previous stack info.
9430 2011-04-07 Tom de Vries <tom@codesourcery.com>
9433 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
9434 flow_find_cross_jump. Swap variables to implement backward replacement.
9435 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
9437 2011-04-07 Tom de Vries <tom@codesourcery.com>
9440 * cfgcleanup.c (walk_to_nondebug_insn): New function.
9441 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
9443 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
9444 src1 or src2. Redirect edges to the last basic block. Update
9445 frequency and count on multiple basic blocks in case of fallthru.
9447 2011-04-07 Tom de Vries <tom@codesourcery.com>
9450 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
9452 (old_insns_match_p): Change return type. Replace return false/true
9453 with return dir_none/dir_both. Use can_replace_by.
9454 (flow_find_cross_jump): Add dir_p parameter. Init replacement
9455 direction from dir_p. Register replacement direction in dir, last_dir
9456 and afterlast_dir. Handle new return type of old_insns_match_p using
9457 merge_dir. Return replacement direction in dir_p.
9458 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
9459 return type of old_insns_match_p.
9460 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
9461 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
9462 flow_find_cross_jump.
9463 * basic-block.h (enum replace_direction): New type.
9464 (flow_find_cross_jump): Add parameter to declaration.
9466 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
9468 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
9469 (AVXMODEDCVTPS2DQ): Ditto.
9470 (VEC_FLOAT_MODE): Ditto.
9471 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
9472 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
9473 (<any_logic:code><mode>3): Use VF mode iterator.
9474 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
9475 Use VF mode iterator.
9476 (copysign<mode>3): Use VF mode iterator.
9477 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
9478 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
9479 (*<any_logic:code><MODEF:mode>3): Merge with
9480 *avx_<any_logic:code><MODEF:mode>3.
9481 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
9482 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
9483 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
9484 (avx_cvtdq2ps<avxmodesuffix>): Remove.
9485 (sse2_cvtdq2ps): Use %v modifier.
9486 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
9487 (avx_cvtps2dq<avxmodesuffix>): Remove.
9488 (sse2_cvtps2dq): Use %v modifier.
9489 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
9490 (avx_cvttps2dq<avxmodesuffix>): Remove.
9491 (sse2_cvttps2dq): Use %v modifier.
9492 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
9493 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
9494 (sse2_cvtsd2siq): Fix insn template.
9495 (sse2_cvtsd2siq_2): Ditto.
9496 (sse2_cvttsd2siq): Ditto.
9497 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
9498 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
9500 2011-04-06 Joseph Myers <joseph@codesourcery.com>
9502 * gcov-io.c: Use GCC Runtime Library Exception.
9504 2011-04-06 Jakub Jelinek <jakub@redhat.com>
9507 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
9508 as base_reg whatever register reg has been eliminated to, instead
9509 of hardcoding STACK_POINTER_REGNUM.
9511 2011-04-06 Joseph Myers <joseph@codesourcery.com>
9513 * doc/tm.texi.in: Document C target hooks as separate from general
9515 * doc/tm.texi: Regenerate.
9516 * genhooks.c (struct hook_desc): Add docname field.
9517 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
9519 (hook_array): Include c-target.def.
9520 (emit_documentation): Use docname field in output.
9521 (emit_init_macros): Take docname argument. Only emit definitions
9522 for hooks matching docname.
9523 (main): Expect additional arguments in all cases. Pass argument
9524 to emit_init_macros.
9525 * target.def: Move initial macro definitions and comments to
9526 target-hooks-macros.h.
9527 (gcc_targetcm): Move to c-family/c-target.def.
9528 * target.h (targetcm): Move declaration to c-family/c-target.h.
9529 * targhooks.c (default_handle_c_option): Move to
9531 * targhooks.h (default_handle_c_option): Move declaration to
9532 c-family/c-common.h.
9533 * target-hooks-macros.h: New file.
9534 * config.gcc (target_has_targetcm): Define and use to add to
9535 c_target_objs and cxx_target_objs.
9536 * config/default-c.c: New file.
9537 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
9538 of target.h and target-def.h.
9539 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
9540 (darwin_objc_construct_string, darwin_cfstring_ref_p,
9541 darwin_check_cfstring_format_arg): Make static.
9542 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
9543 TARGET_STRING_OBJECT_REF_TYPE_P,
9544 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
9545 * config/darwin-protos.h (darwin_objc_construct_string,
9546 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
9548 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
9549 TARGET_STRING_OBJECT_REF_TYPE_P,
9550 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
9551 * config/t-darwin (darwin-c.o): Update dependencies.
9552 * system.h (TARGET_HAS_TARGETCM): Poison.
9553 * Makefile.in (TARGET_H): Update.
9554 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
9555 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
9556 (default-c.o): New target.
9557 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
9558 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
9559 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
9561 (build/genhooks.o): Update dependencies.
9563 2011-04-06 Richard Guenther <rguenther@suse.de>
9565 * ipa-inline.c (enum inlining_mode): Remove.
9566 (cgraph_flatten): Use some other token.
9567 (cgraph_edge_early_inlinable_p): New function, split out from ...
9568 (cgraph_perform_always_inlining): New function, split out from ...
9569 (cgraph_decide_inlining_incrementally): ... here.
9570 (cgraph_mark_inline_edge): Adjust.
9571 (cgraph_early_inlining): Re-structure.
9572 (pass_early_inline): Require SSA form.
9574 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
9575 Julian Brown <julian@codesourcery.com>
9576 Mark Shinwell <shinwell@codesourcery.com>
9578 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
9579 LO_REGS only for Thumb-1.
9580 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
9581 be used in short instructions when optimising for size on Thumb-2.
9583 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
9585 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
9586 associated with user returns to be preserved.
9588 2011-04-06 Tristan Gingold <gingold@adacore.com>
9590 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
9591 symbol_queue_size, DBXOUT_DECR_NESTING,
9592 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
9593 if XCOFF_DEBUGGING_INFO.
9595 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
9597 * config/i386/i386.md (attribute isa): New.
9598 (attribute enabled): New.
9599 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
9600 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
9601 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
9602 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
9603 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
9604 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
9605 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
9606 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
9608 * config/i386/sse.md (VF): New mode iterator.
9612 (SSEMODEF4): Remove.
9613 (attribute sse): Handle V8SF and V4DF modes.
9614 (<absneg:code><mode>2): Use VF mode iterator.
9615 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
9617 (<plusminus_insn><mode>3): Use VF mode iterator.
9618 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
9619 Use VF mode iterator.
9620 (<sse>_vm<plusminus_insn><mode>3): Merge with
9621 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
9622 (mul<mode>3): Use VF mode iterator.
9623 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
9624 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
9626 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
9627 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
9628 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
9629 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
9631 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
9632 Use VF1 mode iterator.
9633 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
9634 (sqrt<VF2:mode>2): New expander.
9635 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
9636 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
9637 and sqrtv2df2. Use VF mode iterator.
9638 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
9640 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
9641 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
9642 Use VF1 mode iterator.
9643 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
9644 (<smaxmin:code><mode>3): Use VF mode iterator.
9645 (*<smaxmin:code><mode>3_finite): Merge with
9646 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
9647 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
9648 (<sse>_vm<smaxmin:code><mode>2): Merge with
9649 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
9650 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
9652 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
9654 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
9655 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
9656 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
9657 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
9658 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
9660 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
9661 Use VF_128 mode iterator.
9662 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
9664 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
9665 VF_128 mode iterator.
9666 (vcond<mode>): Use VF mode iterator.
9667 * config/i386/predicates.md (sse_comparison_operator): Merge with
9668 avx_comparison_float_operator. Do not declare as special_predicate.
9669 * config/i386/i386.c (struct builtin_description): Update for renamed
9671 (ix86_expand_args_builtin): Ditto.
9672 (ix86_expand_sse_compare_mask): Ditto.
9674 2011-04-06 Richard Guenther <rguenther@suse.de>
9676 * tree-inline.c (estimate_num_insns): For calls simply account
9677 for all passed arguments and a used return value.
9679 2011-04-06 Richard Guenther <rguenther@suse.de>
9681 PR tree-optimization/47663
9682 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
9683 call_stmt_time fields.
9684 (cgraph_edge_inlinable_p): Declare.
9685 (cgraph_edge_recursive_p): New inline function.
9686 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
9687 (cgraph_clone_edge): Copy it.
9688 * ipa-inline.c (cgraph_estimate_edge_time): New function.
9689 Account for call stmt time.
9690 (cgraph_estimate_time_after_inlining): Take edge argument.
9691 (cgraph_estimate_edge_growth): Account call stmt size.
9692 (cgraph_estimate_size_after_inlining): Take edge argument.
9693 (cgraph_mark_inline_edge): Adjust.
9694 (cgraph_check_inline_limits): Likewise.
9695 (cgraph_recursive_inlining_p): Remove.
9696 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
9697 (cgraph_decide_recursive_inlining): Take edge argument and
9699 (cgraph_decide_inlining_of_small_functions): Do not avoid
9700 diags for recursive inlining here.
9701 (cgraph_flatten): Adjust.
9702 (cgraph_decide_inlining_incrementally): Likewise.
9703 (estimate_function_body_sizes): Remove call cost handling.
9704 (compute_inline_parameters): Initialize caller edge call costs.
9705 (cgraph_estimate_edge_growth): New function.
9706 (cgraph_estimate_growth): Use it.
9707 (cgraph_edge_badness): Likewise.
9708 (cgraph_check_inline_limits): Take an edge argument.
9709 (cgraph_decide_inlining_of_small_functions): Adjust.
9710 (cgraph_decide_inlining): Likewise.
9711 * tree-inline.c (estimate_num_insns): Only account for call
9712 return value if it is used.
9713 (expand_call_inline): Avoid diagnostics on recursive inline
9715 * lto-cgraph.c (lto_output_edge): Output edge call costs.
9716 (input_edge): Input edge call costs.
9718 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9720 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
9722 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
9724 * doc/invoke.texi (Spec Files): Fix typo.
9726 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
9728 * profile.c (branch_prob): Move declaration of local variable. Remove
9729 obsolete ??? comment. Expand the location explicitly instead of using
9730 the LOCATION_FILE and LOCATION_LINE macros.
9732 2011-04-06 Wei Guozhi <carrot@google.com>
9735 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
9736 (arm_cond_branch): Likewise.
9737 (arm_cond_branch_reversed): Likewise.
9738 (arm_jump): Likewise.
9739 (push_multi): Likewise.
9740 * config/arm/constraints.md (Py): New constraint.
9742 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9745 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
9747 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
9748 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
9749 #ifdef DBX_DEBUGGING_INFO.
9751 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
9754 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
9755 if old and new states differ.
9757 2011-04-05 Joseph Myers <joseph@codesourcery.com>
9759 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
9760 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
9761 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
9762 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
9763 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
9765 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
9766 ColdFire options to -mcpu= options.
9768 2011-04-05 Jeff Law <law@redhat.com>
9770 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
9771 check if BB is a successor of LOOP->header and return
9772 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
9774 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
9776 * cprop.c (struct reg_use): Remove.
9777 (reg_use_table): Make an array of RTX.
9778 (find_used_regs, constprop_register, local_cprop_pass,
9779 bypass_block): Simplify users of reg_use_table.
9780 (cprop_insn): Likewise. Iterate if copy propagation succeeded
9781 on one of the uses found by find_used_regs.
9783 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9786 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
9789 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9791 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
9793 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
9795 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
9798 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
9800 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9802 * combine.c: Include obstack.h.
9803 (struct insn_link): Define.
9804 (uid_log_links): Adjust type.
9805 (FOR_EACH_LOG_LINK): New macro.
9806 (insn_link_obstack): Declare.
9807 (alloc_insn_link): Define.
9808 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
9809 type of link variables.
9810 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
9811 (try_combine, record_promoted_values, distribute_notes): Likewise.
9812 (distribute_links): Likewise. Tweak prototype.
9813 (clear_log_links): Delete.
9814 (adjust_for_new_dest): Call alloc_insn_link.
9815 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
9817 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9819 * gcse.c (modify_mem_list): Convert to an array of VECs.
9820 (canon_modify_mem_list, compute_transp): Tweak formatting.
9821 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
9822 (load_killed_in_block_p): Likewise.
9823 (record_last_mem_set_info): Likewise.
9824 (clear_modify_mem_tables): Likewise.
9826 2011-04-05 Tom de Vries <tom@codesourcery.com>
9829 * function.c (emit_use_return_register_into_block): Only define if
9832 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
9834 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
9836 2011-04-05 Joseph Myers <joseph@codesourcery.com>
9838 * config/rx/rx-opts.h: New.
9839 * config/rx/rx.c (rx_cpu_type): Remove.
9840 (rx_handle_option): Don't assert that global structures are in
9841 use. Access variables via opts pointer. Defer most handling of
9842 OPT_mint_register_. Use error_at.
9843 (rx_option_override): Handle deferred OPT_mint_register_ here.
9844 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
9845 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
9846 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
9847 (rx_cpu_types): New Enum and EnumValue entries.
9848 (mint-register=): Use Defer and use Var accordingly.
9850 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9852 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
9853 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
9854 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
9856 (debug_free_queue, debug_nesting, symbol_queue_index):
9858 * dbxout.c: ...to here. Make static.
9860 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9862 * gcse.c (modify_pair): Define. Define a VEC of it.
9863 (canon_modify_mem_list): Convert to an array of VECs.
9864 (free_insn_expr_list_list): Delete.
9865 (clear_modify_mem_tables): Call VEC_free instead.
9866 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
9867 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
9868 (canon_list_insert, compute_transp): Likewise.
9870 2011-04-05 Tom de Vries <tom@codesourcery.com>
9873 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
9876 2011-04-05 Tom de Vries <tom@codesourcery.com>
9879 * function.c (emit_use_return_register_into_block): New function.
9880 (thread_prologue_and_epilogue_insns): Use
9881 emit_use_return_register_into_block.
9883 2011-04-05 Tom de Vries <tom@codesourcery.com>
9886 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
9889 2011-04-05 Tom de Vries <tom@codesourcery.com>
9891 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
9893 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
9895 * config/arm/arm.md (define_constants for unspec): Replace with
9897 (define_constants for unspecv): Replace with define_c_enum.
9898 * config/arm/neon.md (define_constants for unspec): Replace with
9901 2011-04-04 Richard Henderson <rth@redhat.com>
9904 * dwarf2out.c (output_line_info): Always emit line info from
9905 at least one section.
9906 (dwarf2out_init): Create text_section_line_info here ...
9907 (set_cur_line_info_table): ... not here.
9909 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
9912 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
9915 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
9917 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
9919 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
9920 (expr_equiv_p): Remove.
9921 (insert_set_in_table): Look at <dest, src> pair instead of expr.
9922 (hash_scan_set): Update call to insert_set_in_table.
9923 (dump_hash_table): Dump <dest, src> pair.
9924 (lookup_set): Simplify. Lookup <dest, src> pair.
9925 (compute_transp): Remove, fold heavily simplified code into...
9926 (compute_local_properties): ...here. Expect COMP and TRANSP
9928 (find_avail_set): Take set directly from struct expr.
9929 (find_bypass-set): Likewise.
9930 (bypass_block): Likewise.
9931 (cprop_insn): Likewise. Remove redundant INSN_P test.
9933 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
9934 checks on form of COND from find_implicit_sets to here.
9935 (find_implicit_sets): Cleanup control flow. Split critical edges
9936 if it exposes implicit sets. Allocate/resize implicit_sets as
9938 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
9939 changed something. Run df_analyze after find_implicit_sets if any
9940 edges were split. Do not allocate implicit_sets here.
9942 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
9943 (gcse_obstack): Renamed to cprop_obstack.
9944 (GNEW, GNEWVEC, GNEWVAR): Remove.
9946 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
9947 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
9948 (gcse_alloc): Likewise, and rename to cprop_alloc.
9949 (alloc_gcse_men, free_gcse_mem): Remove.
9950 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
9951 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
9952 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
9954 * cprop.c (oprs_not_set_p): Remove.
9955 (mark_set, mark_clobber): Remove.
9956 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
9957 (reg_not_set_p): New function.
9958 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
9959 (cprop_insn): Likewise.
9960 (cprop_jump): Use FOR_EACH_EDGE.
9962 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
9965 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
9966 (rank_for_schedule): Use scheduled_insns vector instead of
9967 last_scheduled_insn.
9968 (ok_for_early_queue_removal): Likewise.
9969 (queue_to_ready): Search forward in nonscheduled_insns_begin if
9971 (choose_ready): Likewise.
9972 (commit_schedule): Use VEC_iterate.
9973 (schedule_block): Initialize nonscheduled_insns_begin. If we have
9974 a dbg_cnt, use it and ensure the first insn is in the ready list.
9975 (haifa_sched_init): Allocate scheduled_insns.
9976 (sched_extend_ready_list): Don't allocate it; reserve space.
9977 (haifa_sched_finish): Free it.
9979 2011-04-04 Joseph Myers <joseph@codesourcery.com>
9981 * optc-gen.awk: Always remove type from Variable entry before
9982 recording in var_seen.
9984 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
9986 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
9987 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
9988 call to tidy_fallthru_edges.
9990 2011-04-04 Joseph Myers <joseph@codesourcery.com>
9992 * doc/options.texi (ToLower): Document.
9993 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
9994 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
9995 * opts.h (cl_option): Add cl_tolower field.
9996 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
9997 arguments with lowercase strings.
9998 * config/rx/rx.opt (mcpu=): Add ToLower.
9999 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
10002 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
10004 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
10006 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
10008 * config/vax/vax.c: Include reload.h.
10010 2011-04-04 Anatoly Sokolov <aesok@post.ru>
10012 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
10013 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
10014 (sparc_preferred_reload_class): New function.
10016 2011-04-04 Jakub Jelinek <jakub@redhat.com>
10019 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
10020 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
10022 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
10024 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
10025 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
10027 2011-04-03 Anatoly Sokolov <aesok@post.ru>
10029 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
10030 (ASM_OUTPUT_ALIGNED_BSS): Define.
10032 2011-04-03 Michael Matz <matz@suse.de>
10034 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
10035 and next_slot members.
10036 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
10037 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
10038 (lto_streamer_cache_append): Declare.
10039 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
10040 unsigned index, remove offset parameter, ensure that we append
10041 or update existing entries.
10042 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
10043 parameter, update next_slot for append.
10044 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
10046 (lto_streamer_cache_insert_at): Likewise.
10047 (lto_streamer_cache_append): New function.
10048 (lto_streamer_cache_lookup): Use unsigned index.
10049 (lto_streamer_cache_get): Likewise.
10050 (lto_record_common_node): Don't test tree_node_can_be_shared.
10051 (preload_common_node): Adjust call to lto_streamer_cache_insert.
10052 (lto_streamer_cache_delete): Don't free offsets member.
10053 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
10054 (lto_output_string_with_length): Use lto_output_data_stream.
10055 (lto_output_tree_header): Remove ix parameter, don't write it.
10056 (lto_output_builtin_tree): Likewise.
10057 (lto_write_tree): Adjust callers to above, don't track and write
10058 offset, write unsigned index.
10059 (output_unreferenced_globals): Don't emit all global vars.
10060 (write_global_references): Use unsigned indices.
10061 (lto_output_decl_state_refs): Likewise.
10062 (write_symbol): Likewise.
10063 * lto-streamer-in.c (lto_input_chain): Move earlier.
10064 (input_function): Use unsigned index.
10065 (input_alias_pairs): Don't read and then ignore all global vars.
10066 (lto_materialize_tree): Remove ix_p parameter, don't read index,
10067 don't pass it back, use lto_streamer_cache_append.
10068 (lto_register_var_decl_in_symtab): Use unsigned index.
10069 (lto_register_function_decl_in_symtab): Likewise.
10070 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
10072 (lto_get_builtin_tree): Don't read index, use
10073 lto_streamer_cache_append.
10074 (lto_read_tree): Adjust call to lto_materialize_tree.
10076 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
10077 don't use function calls in arguments to MIN.
10079 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
10082 * gimple.c (gimple_type_leader_entry): Mark deletable.
10084 2011-04-03 Alan Modra <amodra@gmail.com>
10086 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
10088 2011-04-03 Michael Matz <matz@suse.de>
10090 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
10092 * tree.h (tree_decl_non_common.vindex): Adjust comment.
10094 2011-04-03 Michael Matz <matz@suse.de>
10096 * cgraphbuild.c (record_reference): Canonicalize constructor values.
10097 * gimple-fold.c (canonicalize_constructor_val): Accept being called
10098 without function context.
10099 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
10100 current_function_decl and cfun.
10102 2011-04-03 Michael Matz <matz@suse.de>
10104 * tree.c (decl_init_priority_insert): Don't create entry for
10106 (decl_fini_priority_insert): Ditto.
10107 (fields_compatible_p, find_compatible_field): Remove.
10108 * tree.h (fields_compatible_p, find_compatible_field): Remove.
10109 * gimple.c (gimple_compare_field_offset): Adjust block comment.
10111 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
10113 * combine.c (try_combine): Remove useless local variable.
10115 2011-04-03 Richard Guenther <rguenther@suse.de>
10116 Ira Rosen <ira.rosen@linaro.org>
10118 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
10119 non-variable offsets and compare the remaining bases of the two
10120 accesses instead of looking for exact same data-ref.
10122 2011-04-02 Kai Tietz <ktietz@redhat.com>
10125 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
10127 * i386.c (ix86_is_msabi_thiscall): New helper function.
10128 (ix86_is_type_thiscall): New helper function.
10129 (ix86_comp_type_attributes): Handle thiscall for method-functions
10131 (init_cumulative_args): Likewise.
10132 (find_drap_reg): Likewise.
10133 (ix86_static_chain): Likewise.
10134 (x86_this_parameter): Likewise.
10135 (x86_output_mi_thunk): Likewise.
10137 2011-04-01 Olivier Hainque <hainque@adacore.com>
10138 Nicolas Setton <setton@adacore.com>
10139 Eric Botcazou <ebotcazou@adacore.com>
10141 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
10142 (add_gnat_descriptive_type_attribute): New function.
10143 (gen_array_type_die): Call it.
10144 (gen_enumeration_type_die): Likewise.
10145 (gen_struct_or_union_type_die): Likewise.
10146 (modified_type_die): Likewise.
10147 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
10148 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
10149 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
10151 2011-04-01 Jakub Jelinek <jakub@redhat.com>
10154 * dwarf2out.c (resolve_addr): Don't call force_decl_die
10155 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
10158 2011-03-17 Richard Guenther <rguenther@suse.de>
10161 * lto-cgraph.c (input_overwrite_node): Clear the abstract
10162 origin for decls in other ltrans units.
10163 (input_varpool_node): Likewise.
10165 2011-04-01 Jakub Jelinek <jakub@redhat.com>
10167 PR middle-end/48335
10168 * expr.c (expand_assignment): Handle all possibilities
10169 if TO_RTX is CONCAT.
10170 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
10171 (store_split_bit_field): If SUBREG_REG (op0) or
10172 op0 itself has smaller mode than word, return it
10173 for offset 0 and const0_rtx for out-of-bounds stores.
10174 If word is const0_rtx, skip it.
10176 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
10178 * config/h8300/h8300.c (print_operand_address): Rename to...
10179 (h8300_print_operand_address): ...this. Make static. Adjust comments.
10180 Call h8300_print_operand and h8300_print_operand_address instead of
10181 print_operand and print_operand_address. Declare.
10182 (print_operand): Renake to...
10183 (h8300_print_operand): ...this. Make static. Adjust comments.
10184 Call h8300_print_operand instead of print_operand. Declare.
10185 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
10186 (h8300_register_move_cost): Likewise.
10187 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
10188 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
10189 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
10190 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
10191 * config/h8300/h8300-protos.h (print_operand): Delete.
10192 (print_operand_address): Delete.
10194 2011-04-01 Richard Henderson <rth@redhat.com>
10197 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
10198 in strict mode before dwarf4. Re-order tests to early out
10199 before switching sections.
10201 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
10203 * config/h8300/constraints.md: New file.
10204 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
10205 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
10206 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
10207 * config/h8300/predicates.md (bit_operand): Likewise.
10208 (incdec_operand): Use satisfies_constraint_M and
10209 satisfies_constraint_O. Don't use C code block.
10210 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
10211 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
10212 (compute_mov_length): Use satisfies_constraint_G.
10213 (fix_bit_operand): Use satisfies_constraint_U.
10214 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
10215 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
10216 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
10217 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
10218 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
10219 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
10220 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10221 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
10222 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
10223 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
10224 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
10225 (EXTRA_MEMORY_CONSTRAINT): Delete.
10227 2011-04-01 Andrew Pinski <pinskia@gmail.com>
10228 Michael Meissner <meissner@linux.vnet.ibm.com>
10231 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
10232 operands, as per the specifications.
10234 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
10235 (vec_extract_evenv4sf): Ditto.
10236 (vec_extract_evenv8hi): Ditto.
10237 (vec_extract_evenv16qi): Ditto.
10238 (vec_extract_oddv4si): Ditto.
10240 2011-03-31 Mark Wielaard <mjw@redhat.com>
10242 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
10243 high_pc attribute if the CU has no associated code. Only output
10244 DW_AT_entry_pc for CU if not generating strict dwarf and
10247 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
10249 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
10250 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
10252 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
10253 * final.c (final_start_function): Call the new function rather
10254 than using a NULL argument for dwarf2out_frame_debug.
10256 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
10257 that contains the prologue.
10259 * haifa-sched.c (queue_insn): New arg REASON. All callers
10260 changed. Print it in debugging output.
10262 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
10264 * sched-ebb.c (begin_schedule_ready): Remove second argument.
10265 Split most of the code into...
10266 (begin_move_insn): ... here. New function.
10267 (ebb_sched_info): Add a pointer to it.
10268 * haifa-sched.c (scheduled_insns): New static variable.
10269 (sched_extend_ready_list): Allocate it.
10270 (schedule_block): Use it to record the order of scheduled insns.
10271 Perform RTL changes to move insns only after all scheduling
10272 decisions have been made.
10273 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
10274 begin_move_insn field.
10275 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
10276 * sched-int.h (struct haifa_sched_info): Remove second argument
10277 from begin_schedule_ready hook. Add new member begin_move_insn.
10278 * sched-rgn.c (begin_schedule_ready): Remove second argument.
10279 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
10281 * haifa-sched.c (prune_ready_list): New function, broken out of
10283 (schedule_block): Use it.
10285 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10287 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
10289 2011-04-01 Kai Tietz <ktietz@redhat.com>
10291 * config.gcc (*-*-mingw*): Allow as option the
10292 posix threading model.
10293 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
10294 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
10296 (CPP_SPEC): Add pthread/no-pthread handling.
10297 (LIB_SPEC): Likewise.
10298 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
10299 (LIB_SPEC): Likewise.
10300 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
10301 flag to pass -pthread option for shared libgcc build.
10302 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
10303 for shared libgcc build.
10304 * config/i386/t-mingw-pthread: New file.
10305 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
10306 New define to enable use of library pthread by default.
10307 * config/i386/mingw.opt (pthread): New driver option.
10308 (no-pthread): New driver option.
10309 * config/i386/cygming.opt: Make sure trailing empty line is retained.
10310 * config/i386/mingw-w64.opt: Likewise.
10312 2011-04-01 Gary Funck <gary@intrepid.com>
10314 * c-decl.c (grokdeclarator): Fix formatting.
10316 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
10318 * expr.c (emit_block_move_via_movmem): Use n_generator_args
10319 instead of n_operands.
10320 (set_storage_via_setmem): Likewise.
10321 * optabs.c (maybe_gen_insn): Likewise.
10322 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
10323 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
10324 (mips_expand_builtin_direct): Likewise.
10325 * config/spu/spu.c (expand_builtin_args): Likewise.
10327 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
10329 * recog.h (insn_data_d): Add n_generator_args.
10330 * genoutput.c (data): Likewise.
10331 (output_insn_data): Print it.
10332 (max_opno, num_dups): Delete.
10333 (scan_operands): Just fill in "d->operand[...]".
10334 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
10336 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
10338 * gensupport.h (pattern_stats): New structure.
10339 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
10340 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
10341 (max_operand_1, max_operand_vec): Delete.
10342 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
10344 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
10346 * emit-rtl.c (emit_pattern_after_setloc): New function.
10347 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
10348 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
10349 (emit_pattern_after): New function.
10350 (emit_insn_after, emit_jump_insn_after): Call it.
10351 (emit_call_insn_after, emit_debug_insn_after): Likewise.
10352 (emit_pattern_before_setloc): New function.
10353 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
10354 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
10356 (emit_pattern_before): New function.
10357 (emit_insn_before, emit_jump_insn_before): Call it.
10358 (emit_call_insn_before, emit_debug_insn_before): Likewise.
10360 2011-03-31 Richard Henderson <rth@redhat.com>
10362 * dwarf2out.c (dw_separate_line_info_ref): Remove.
10363 (dw_separate_line_info_entry): Remove.
10364 (enum dw_line_info_opcode): New.
10365 (dw_line_info_entry): Use it.
10366 (dw_line_info_table, dw_line_info_table_p): New.
10367 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
10368 (line_info_table, line_info_label_num): Remove.
10369 (line_info_table_in_use): Remove.
10370 (separate_line_info_table): Remove.
10371 (separate_line_info_table_allocated): Remove.
10372 (separate_line_info_table_in_use): Remove.
10373 (LINE_INFO_TABLE_INCREMENT): Remove.
10374 (line_info_label_num): New.
10375 (cur_line_info_table): New.
10376 (text_section_line_info, cold_text_section_line_info): New.
10377 (separate_line_info): New.
10378 (SEPARATE_LINE_CODE_LABEL): Remove.
10379 (print_dwarf_line_table): Remove.
10380 (debug_dwarf): Don't dump it.
10381 (output_one_line_info_table): New.
10382 (output_line_info): Use it.
10383 (new_line_info_table): New.
10384 (set_cur_line_info_table): New.
10385 (dwarf2out_switch_text_section): Use it.
10386 (dwarf2out_begin_function): Likewise.
10387 (push_dw_line_info_entry): New.
10388 (dwarf2out_source_line): Rewrite for new line info tables.
10389 (dwarf2out_init): Remove dead initailizations.
10391 2011-03-31 Joseph Myers <joseph@codesourcery.com>
10393 * opts.h (cl_option): Add comments to fields. Add bit-fields for
10395 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
10396 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
10397 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
10398 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
10399 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
10400 * opt-functions.awk (flag_init, switch_bit_fields): New.
10401 (switch_flags): Don't handle flags moved to bit-fields. Don't
10402 generate CL_MISSING_OK or CL_SAVE.
10403 * optc-gen.awk: Update to generate bit-field output as well as
10405 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
10406 bit-field instead of CL_REJECT_DRIVER flag.
10407 * opts-common.c (generate_canonical_option,
10408 decode_cmdline_option): Use bit-fields instead of CL_* flags.
10409 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
10410 instead of CL_REJECT_NEGATIVE flag.
10411 * toplev.c (print_switch_values): Use cl_report bit-field instead
10414 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
10416 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
10417 a zero minimum index only if it is redundant.
10419 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
10421 PR rtl-optimization/48381
10422 * ira-color.c (assign_hard_reg): Use hard reg set intersection
10423 instead of ira_class_hard_reg_index for calculating conflicting
10426 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
10428 * cprop.c: Clean up hash table building.
10429 (reg_avail_info): Remove.
10430 (oprs_available_p): Remove.
10431 (record_last_reg_set_info): Remove.
10432 (record_last_set_info): Remove.
10433 (reg_available_p): New function.
10434 (gcse_constant_p): Do not treat unfolded conditions as constants.
10435 (make_set_regs_unavailable): New function.
10436 (hash_scan_set): Simplify with new reg_available_p.
10437 (compute_hash_table_work): Traverse insns stream only once.
10438 Do not compute reg_avail_info. Traverse insns in reverse order.
10439 Record implicit sets after recording explicit sets from the block.
10441 2011-03-31 Michael Matz <matz@suse.de>
10443 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
10445 2011-03-31 Anatoly Sokolov <aesok@post.ru>
10447 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
10448 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
10449 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10450 (h8300_mode_dependent_address_p): New function.
10451 (h8300_get_index): Make static.
10453 2011-03-31 Jeff Law <law@redhat.com>
10455 * reload1.c (elimination_effects): Fix typo in recent change.
10457 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
10458 typo potentially leading to null pointer dereference.
10460 * caller-save.c (new_saved_hard_reg): Eliminate return value.
10461 (setup_save_areas): Corresponding changes to avoid useless
10464 * jump.c (reversed_comparison_code_parts): Avoid successive return
10465 statements when REVERSE_CONDITION is defined.
10467 * expr.c (expand_assignment): Avoid useless assignments.
10468 (expand_expr_real_1): Likewise.
10469 (expand_expr_real_2): Avoid useless statements.
10471 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
10473 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
10475 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
10478 * stmt.c (expand_expr_stmt): Avoid useless assignment.
10480 2011-03-31 Joseph Myers <joseph@codesourcery.com>
10483 * doc/tm.texi.in (TARGET_VERSION): Remove.
10484 * doc/tm.texi: Regenerate.
10485 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
10486 * collect2.c (main): Don't use TARGET_VERSION.
10487 * mips-tdump.c (main): Don't use TARGET_VERSION.
10488 * mips-tfile.c (main): Don't use TARGET_VERSION.
10489 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
10490 * config/rs6000/vxworksae.h: Remove.
10491 * config/alpha/alpha.h (TARGET_VERSION): Remove.
10492 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
10493 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
10494 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
10495 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
10496 * config/arm/arm.h (TARGET_VERSION): Remove.
10497 * config/arm/coff.h (TARGET_VERSION): Remove.
10498 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
10499 * config/arm/elf.h (TARGET_VERSION): Remove.
10500 * config/arm/freebsd.h (TARGET_VERSION): Remove.
10501 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
10502 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
10503 * config/arm/pe.h (TARGET_VERSION): Remove.
10504 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
10505 * config/arm/semi.h (TARGET_VERSION): Remove.
10506 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
10507 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
10508 * config/arm/vxworks.h (TARGET_VERSION): Remove.
10509 * config/avr/avr.h (TARGET_VERSION): Remove.
10510 * config/bfin/bfin.h (TARGET_VERSION): Remove.
10511 * config/fr30/fr30.h (TARGET_VERSION): Remove.
10512 * config/frv/frv.h (TARGET_VERSION): Remove.
10513 * config/h8300/h8300.h (TARGET_VERSION): Remove.
10514 * config/i386/cygwin.h (TARGET_VERSION): Remove.
10515 * config/i386/darwin.h (TARGET_VERSION): Remove.
10516 * config/i386/darwin64.h (TARGET_VERSION): Remove.
10517 * config/i386/djgpp.h (TARGET_VERSION): Remove.
10518 * config/i386/freebsd.h (TARGET_VERSION): Remove.
10519 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
10520 * config/i386/gnu.h (TARGET_VERSION): Remove.
10521 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
10522 * config/i386/i386elf.h (TARGET_VERSION): Remove.
10523 * config/i386/linux.h (TARGET_VERSION): Remove.
10524 * config/i386/linux64.h (TARGET_VERSION): Remove.
10525 * config/i386/lynx.h (TARGET_VERSION): Remove.
10526 * config/i386/mingw32.h (TARGET_VERSION): Remove.
10527 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
10528 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
10529 * config/i386/netware.h (TARGET_VERSION): Remove.
10530 * config/i386/nto.h (TARGET_VERSION): Remove.
10531 * config/i386/openbsd.h (TARGET_VERSION): Remove.
10532 * config/i386/vxworks.h (TARGET_VERSION): Remove.
10533 * config/ia64/elf.h (TARGET_VERSION): Remove.
10534 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
10535 * config/ia64/hpux.h (TARGET_VERSION): Remove.
10536 * config/ia64/linux.h (TARGET_VERSION): Remove.
10537 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
10538 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
10539 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
10540 * config/lm32/lm32.h (TARGET_VERSION): Remove.
10541 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
10542 * config/m32c/m32c.h (TARGET_VERSION): Remove.
10543 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
10544 * config/m32r/m32r.h (TARGET_VERSION): Remove.
10545 * config/m68k/linux.h (TARGET_VERSION): Remove.
10546 * config/m68k/m68k.h (TARGET_VERSION): Remove.
10547 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
10548 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
10549 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
10550 * config/mep/mep.h (TARGET_VERSION): Remove.
10551 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
10552 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
10553 * config/mips/iris6.h (MACHINE_TYPE): Remove.
10554 * config/mips/linux.h (TARGET_VERSION): Remove.
10555 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
10556 * config/mips/vxworks.h (TARGET_VERSION): Remove.
10557 * config/mmix/mmix.h (TARGET_VERSION): Remove.
10558 * config/mn10300/linux.h (TARGET_VERSION): Remove.
10559 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
10560 * config/pa/pa.h (TARGET_VERSION): Remove.
10561 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
10562 * config/picochip/picochip.h (TARGET_VERSION): Remove.
10563 * config/rs6000/aix.h (TARGET_VERSION): Remove.
10564 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
10565 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
10566 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
10567 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
10568 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
10569 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
10570 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
10571 * config/rs6000/linux.h (TARGET_VERSION): Remove.
10572 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
10573 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
10574 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
10575 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
10576 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
10577 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
10578 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
10579 * config/s390/linux.h (TARGET_VERSION): Remove.
10580 * config/s390/s390.h (TARGET_VERSION): Remove.
10581 * config/s390/tpf.h (TARGET_VERSION): Remove.
10582 * config/score/score.h (TARGET_VERSION): Remove.
10583 * config/sh/linux.h (TARGET_VERSION): Remove.
10584 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
10585 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
10586 * config/sh/sh.h (TARGET_VERSION): Remove.
10587 * config/sh/sh64.h (TARGET_VERSION): Remove.
10588 * config/sh/superh.h (TARGET_VERSION): Remove.
10589 * config/sh/vxworks.h (TARGET_VERSION): Remove.
10590 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
10591 * config/sparc/linux.h (TARGET_VERSION): Remove.
10592 * config/sparc/linux64.h (TARGET_VERSION): Remove.
10593 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
10594 TARGET_NAME32, TARGET_NAME): Remove.
10595 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
10596 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
10597 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
10598 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
10599 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
10600 * config/spu/spu.h (TARGET_VERSION): Remove.
10601 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
10602 * config/v850/v850.h (TARGET_VERSION): Remove.
10603 * config/vax/linux.h (TARGET_VERSION): Remove.
10604 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
10605 * config/xtensa/elf.h (TARGET_VERSION): Remove.
10606 * config/xtensa/linux.h (TARGET_VERSION): Remove.
10608 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
10611 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
10612 frame-related from frame-unrelated adjustments to the stack pointer.
10614 2011-03-31 Jakub Jelinek <jakub@redhat.com>
10616 * common.opt (fdebug-types-section): Move earlier.
10617 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
10619 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
10621 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
10624 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
10626 * tree.h (CASE_CHAIN): Define.
10627 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
10628 (gimple_redirect_edge_and_branch): Likewise.
10630 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
10632 PR middle-end/48367
10633 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
10636 2011-03-30 Jeff Law <law@redhat.com>
10638 * PR bootstrap/48371
10639 * reload1.c (reload): Fix botch in last change.
10641 * reload.h (struct reload): Fix typo introduced in last change.
10643 2011-03-30 Joseph Myers <joseph@codesourcery.com>
10645 * config/arm/arm.opt (mhard-float, msoft-float): Mark
10646 Undocumented. Remove help text.
10647 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
10650 2011-03-30 Joseph Myers <joseph@codesourcery.com>
10652 * doc/options.texi (NegativeAlias): Document.
10653 (Alias): Mention NegativeAlias.
10654 * opt-functions.awk: Handle NegativeAlias.
10655 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
10656 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
10657 * opts.h (CL_NEGATIVE_ALIAS): Define.
10658 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
10659 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
10661 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
10663 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
10664 mno-spe and mno-isel instead of mspe=no and -misel=no.
10666 2011-03-29 Mark Wielaard <mjw@redhat.com>
10668 * common.opt (fdebug-types-section): New flag.
10669 * doc/invoke.texi: Document new -fno-debug-types-section flag.
10670 * dwarf2out.c (use_debug_types): New define.
10671 (struct die_struct): Mark die_id with GTY desc use_debug_types.
10672 (print_die): Guard output of type unit signatures using
10674 (build_abbrev_table): Replace assert of dwarf_version >= 4
10675 with assert on use_debug_types.
10676 (size_of_die): Likewise.
10677 (unmark_dies): Likewise.
10678 (value_format): Decide AT_ref_external form on use_debug_types.
10679 (output_die): Replace dwarf_version version check guard with
10680 use_debug_types where appropriate.
10681 (modified_type_die): Likewise.
10682 (gen_reference_type_die): Likewise.
10683 (dwarf2out_start_source_file): Likewise.
10684 (dwarf2out_end_source_file): Likewise.
10685 (prune_unused_types_walk_attribs): Likewise.
10686 (dwarf2out_finish): Likewise.
10688 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
10690 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
10692 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
10694 PR rtl-optimization/48332
10695 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
10696 mode of input operand N and modeN to its actual mode.
10698 2011-03-30 Jeff Law <law@redhat.com>
10700 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
10701 define accessor macro.
10702 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
10703 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
10704 (reg_equiv_init): Likewise.
10705 (reg_equivs_size): New variable.
10706 (reg_equiv_init_size): Remove.
10707 (allocate_initial_values): Move prototype to here from....
10708 * integrate.h (allocate_initial_values): Remove prototype.
10709 * integrate.c: Include reload.h.
10710 (allocate_initial_values): Corresponding changes.
10711 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
10712 (fix_reg_equiv_init, no_equiv): Corresponding changes.
10713 (update_equiv_regs): Corresponding changes.
10714 (ira): Corresponding changes.
10715 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
10716 (push_secondary_reload): Corresponding changes.
10717 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
10718 (make_memloc, find_reloads_address): Corresponding changes.
10719 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
10720 (find_reloads_address_1): Corresponding changes.
10721 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
10722 (refers_to_regno_for_reload_p): Corresponding changes.
10723 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
10724 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
10725 * reload1.c: Include ggc.h.
10726 (grow_reg_equivs): New function.
10727 (replace_pseudos_in, reload): Corresponding changes.
10728 (calculate_needs_all_insns, alter_regs): Corresponding changes.
10729 (eliminate_regs_1, elimination_effects): Corresponding changes.
10730 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
10731 (delete_output_reload): Likewise.
10732 * caller-save.c (mark_referenced_regs): Corresponding changes.
10733 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
10734 * frv/predicates.md (frv_load_operand): Corresponding changes.
10735 * microblaze/microblaze.c (double_memory_operand): Corresponding
10737 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
10738 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
10739 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
10740 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
10741 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
10743 * pa/pa.c (emit_move_sequence): Corresponding changes.
10744 * vax/vax.c (nonindexed_address_p): Corresponding changes.
10746 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
10749 * config/arm/arm.c (coproc_secondary_reload_class): Handle
10750 structure modes. Don't check neon_vector_mem_operand for
10751 vector or structure modes.
10753 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
10754 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10757 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
10758 operand 1 and reshuffle the operands to match.
10759 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
10761 2011-03-30 Christian Schüler <cschueler@gmx.de>
10764 * config/c.opt (F): Added 'Driver' to -F option.
10767 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
10769 * config/darwin.opt: Added '-arch' option.
10771 2011-03-30 Nick Clifton <nickc@redhat.com>
10773 * config/rx/rx.md: Add peepholes and patterns to combine
10774 extending loads and simple arithmetic instructions.
10775 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
10776 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
10777 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
10778 modes to use pre-decrement and post-increment addressing.
10779 (rx_is_restricted_memory_address): Add range checking of REG+INT
10781 (rx_print_operand): Add support for %Q. Fix handling of %Q.
10782 (rx_memory_move_cost): Adjust cost of stores.
10783 (rx_adjust_insn_length): New function.
10785 2011-03-30 Jakub Jelinek <jakub@redhat.com>
10788 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
10789 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
10790 matching arg00/arg01 types.
10792 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
10794 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
10795 last_location to UNKNOWN_LOCATION.
10797 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
10800 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
10803 2011-03-30 Joseph Myers <joseph@codesourcery.com>
10804 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10807 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
10808 Init(PROCESSOR_V7).
10809 (sparc_cpu): Likewise.
10810 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
10813 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
10816 PR middle-end/48342
10817 PR rtl-optimization/48345
10818 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
10819 hard regs for given mode from profitable regs when doing secondary
10822 2011-03-29 Jeff Law <law@redhat.com>
10825 * tree-ssa-threadupdate.c (struct redirection_data): Remove
10826 do_not_duplicate field.
10827 (lookup_redirection_data): Corresponding changes.
10828 (create_duplicates): Always create a template block.
10829 (redirect_edges): Remove code which reused the original block
10830 when it was going to become unreachable code.
10831 (thread_block): Don't set do_not_duplicate field.
10833 2011-03-29 Joseph Myers <joseph@codesourcery.com>
10835 * lto-opts.c (register_user_option_p, lto_register_user_option):
10836 Make type argument unsigned.
10837 * lto-streamer.h (lto_register_user_option): Make type argument
10839 * opth-gen.awk: Make CL_* macros unsigned.
10840 * opts-common.c (find_opt): Make lang_mask argument unsigned.
10841 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
10842 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
10843 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
10844 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
10845 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
10846 (find_opt): Make lang_mask argument unsigned.
10848 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
10850 PR rtl-optimization/48331
10851 PR rtl-optimization/48334
10852 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
10853 for any used algorithm.
10855 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
10857 * ira-conflicts.c (build_object_conflicts): Add unused attribute
10860 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
10862 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
10863 (alpha_option_override): Don't set alpha_sr_alias_set.
10864 (emit_frame_store_1): Use gen_frame_mem rather than calling
10866 (alpha_expand_epilogue): Ditto.
10868 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
10870 PR tree-optimization/48290
10871 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
10872 vectorization, check that relevant phis in the basic block after
10873 the inner loop are really inner loop's exit phis.
10875 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
10878 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
10879 (cached_dw_loc_list_def): New structure.
10880 (cached_dw_loc_list): New typedef.
10881 (cached_dw_loc_list_table): New variable.
10882 (cached_dw_loc_list_table_hash): New function.
10883 (cached_dw_loc_list_table_eq): Likewise.
10884 (add_location_or_const_value_attribute): Take a bool cache_p.
10885 Cache the list when the parameter is true.
10886 (gen_formal_parameter_die): Update caller.
10887 (gen_variable_die): Likewise.
10888 (dwarf2out_finish): Likewise.
10889 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
10890 while generating debug info for the decl.
10891 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
10892 (dwarf2out_init): Initialize cached_dw_loc_list_table.
10893 (resolve_addr): Cache the result of resolving a chain of
10896 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
10898 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
10899 conflict object hard regset nodes have intersecting hard reg sets.
10901 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
10902 after regstat_init_n_sets_and_refs.
10904 * ira.c: Add more comments at the top.
10905 (setup_stack_reg_pressure_class, setup_pressure_classes):
10906 Add comments how we compute the register pressure classes.
10907 (setup_allocno_and_important_classes): Add more comments.
10908 (setup_class_translate_array, reorder_important_classes)
10909 (setup_reg_class_relations): Add comments.
10911 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
10914 * ira-color.c: Add 2011 to the Copyright line.
10915 (assign_hard_reg): Add more comments.
10916 (improve_allocation): Ditto.
10918 * ira-costs.c: Add 2011 to the Copyright line.
10919 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
10921 (setup_regno_cost_classes_by_mode): Ditto.
10923 Initial patches from ira-improv branch:
10925 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
10927 * ira-build.c (ira_create_object): Remove initialization of
10928 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
10929 (ira_create_allocno): Remove initialization of
10930 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
10931 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
10932 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
10933 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
10934 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
10935 Initialize ALLOCNO_ADD_DATA.
10936 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
10937 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
10939 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
10940 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
10942 * ira.c (ira_reallocate): Remove.
10943 (setup_pressure_classes): Call
10944 ira_init_register_move_cost_if_necessary. Use
10945 ira_register_move_cost instead of ira_get_register_move_cost.
10946 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
10947 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
10949 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
10950 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
10951 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
10952 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
10953 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
10954 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
10956 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
10957 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
10958 (struct allocno_color_data): New.
10959 (allocno_color_data_t): New typedef.
10960 (allocno_color_data): New definition.
10961 (ALLOCNO_COLOR_DATA): New macro.
10962 (struct object_color_data): New.
10963 (object_color_data_t): New typedef.
10964 (object_color_data): New definition.
10965 (OBJECT_COLOR_DATA): New macro.
10966 (update_copy_costs, calculate_allocno_spill_cost): Call
10967 ira_init_register_move_cost_if_necessary. Use
10968 ira_register_move_cost instead of ira_get_register_move_cost.
10969 (move_spill_restore, update_curr_costs): Ditto.
10970 (allocno_spill_priority): Make it inline.
10971 (color_pass): Allocate and free allocno_color_dat and object_color_data.
10972 (struct coalesce_data, coalesce_data_t): New.
10973 (allocno_coalesce_data): New definition.
10974 (ALLOCNO_COALESCE_DATA): New macro.
10975 (merge_allocnos, coalesced_allocno_conflict_p): Use
10976 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
10977 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
10978 (coalesce_allocnos): Ditto.
10979 (setup_coalesced_allocno_costs_and_nums): Ditto.
10980 (collect_spilled_coalesced_allocnos): Ditto.
10981 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
10982 (setup_slot_coalesced_allocno_live_ranges): Ditto.
10983 (coalesce_spill_slots): Ditto.
10984 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
10985 free allocno_coalesce_data.
10987 * ira-conflicts.c: Fix formatting.
10988 (process_regs_for_copy): Call
10989 ira_init_register_move_cost_if_necessary. Use
10990 ira_register_move_cost instead of ira_get_register_move_cost.
10991 (build_object_conflicts): Optimize.
10993 * ira-costs.c (record_reg_classes): Optimize. Call
10994 ira_init_register_move_cost_if_necessary. Use
10995 ira_register_move_cost, ira_may_move_in_cost, and
10996 ira_may_move_out_cost instead of ira_get_register_move_cost and
10997 ira_get_may_move_cost.
10998 (record_address_regs): Ditto.
10999 (scan_one_insn): Optimize.
11000 (find_costs_and_classes): Optimize.
11001 (process_bb_node_for_hard_reg_moves): Call
11002 ira_init_register_move_cost_if_necessary. Use
11003 ira_register_move_cost instead of ira_get_register_move_cost.
11005 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
11006 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
11007 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
11008 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
11010 (ira_initiate_emit_data, ira_finish_emit_data)
11011 (create_new_allocno): New functions.
11012 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
11013 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
11014 Use ira_register_move_cost instead of ira_get_register_move_cost.
11016 * ira-int.h: Fix some comments.
11017 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
11018 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
11019 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
11020 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
11022 (struct ira_allocno): Make mode and aclass a bitfield. Move other
11023 bitfield after mode. Make hard_regno a short int. Make
11024 hard_regno short. Remove first_coalesced_allocno and
11025 next_coalesced_allocno. Move mem_optimized_dest_p,
11026 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
11027 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
11028 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
11029 temp, colorable_p. Add new member add_data.
11030 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
11031 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
11032 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
11033 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
11034 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
11035 (ALLOCNO_ADD_DATA): New macro.
11036 (ira_emit_data_t): New typedef.
11037 (struct ira_emit_data): New. Move mem_optimized_dest_p,
11038 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
11039 from struct ira_allocno.
11040 (ALLOCNO_EMIT_DATA): New macro.
11041 (ira_allocno_emit_data, allocno_emit_reg): New.
11042 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
11043 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
11044 (OBJECT_ADD_DATA): New macro.
11045 (ira_reallocate): Remove.
11046 (ira_initiate_emit_data, ira_finish_emit_data): New.
11047 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
11048 (ira_init_register_move_cost_if_necessary): New.
11049 (ira_object_conflict_iter_next): Merge into
11050 ira_object_conflict_iter_cond.
11051 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
11053 * ira-live.c (process_single_reg_class_operands): Call
11054 ira_init_register_move_cost_if_necessary. Use
11055 ira_register_move_cost instead of ira_get_register_move_cost.
11057 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
11059 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
11061 * ira-costs.c: Fix formatting.
11062 (cost_classes, cost_classes_num): Remove.
11063 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
11064 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
11065 (cost_classes_del, cost_classes_htab): New.
11066 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
11067 (initiate_regno_cost_classes, setup_cost_classes): New.
11068 (setup_regno_cost_classes_by_aclass): New.
11069 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
11070 (record_reg_classes): Use regno_cost_classes instead of
11071 cost_classes. Move checking opposite operand up.
11072 (record_address_regs): Use regno_cost_classes
11073 instead of cost_classes.
11074 (scan_one_insn): Ditto. Use always general register.
11075 (print_allocno_costs): Use regno_cost_classes instead of
11077 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
11078 (find_costs_and_classes): Set up cost classes for each registers.
11079 Use also their mode for this. Use regno_cost_classes instead of
11081 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
11083 (free_ira_costs, ira_init_costs): Don't use cost_classes.
11084 (ira_costs, ira_set_pseudo_classes): Call
11085 initiate_regno_cost_classes and finish_regno_cost_classes.
11087 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
11089 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
11091 * target.def (ira_cover_classes): Remove.
11093 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
11095 * doc/tm.texi.in: Ditto.
11097 * ira-conflicts.c: Remove mentioning cover classes from the file.
11098 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
11099 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
11101 * targhooks.c (default_ira_cover_classes): Remove.
11103 * targhooks.h (default_ira_cover_classes): Ditto.
11105 * haifa-sched.c: Remove mentioning cover classes from the file.
11106 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
11107 ira_pressure_classes and ira_pressure_classes_num instead of
11108 ira_reg_class_cover_size and ira_reg_class_cover. Use
11109 sched_regno_pressure_class instead of sched_regno_cover_class.
11110 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
11111 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
11113 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
11114 classes from the file.
11115 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
11116 (struct object_hard_regs, struct object_hard_regs_node): New.
11117 (struct ira_object): New members profitable_hard_regs,
11118 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
11119 (struct ira_allocno): Rename cover_class to aclass. Rename
11120 cover_class_cost and updated_cover_class_cost to class_cost and
11121 updated_class_cost. Remove splay_removed_p and
11122 left_conflict_size. Add new members colorable_p.
11123 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
11124 (ALLOCNO_COLORABLE_P): New macro.
11125 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
11126 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
11127 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
11128 (OBJECT_...): Rename parameter C to O.
11129 (OBJECT_PROFITABLE_HARD_REGS): New macro.
11130 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
11131 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
11132 (struct target_ira_int): New members x_ira_max_memory_move_cost,
11133 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
11134 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
11135 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
11136 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
11137 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
11138 x_ira_reg_class_subunion.
11139 (ira_max_memory_move_cost, ira_max_register_move_cost)
11140 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
11141 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
11142 (ira_important_class_nums, ira_reg_class_superunion): New macros.
11143 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
11144 (ira_reg_class_union): Rename to ira_reg_class_subunion.
11145 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
11146 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
11147 (ira_tune_allocno_costs_and_cover_classes): Rename to
11148 ira_tune_allocno_costs.
11149 (ira_debug_hard_regs_forest): New.
11150 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
11151 (ira_object_conflict_iter_next): Fix comments.
11152 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
11153 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
11154 cover_class to aclass.
11155 (ira_allocate_and_accumulate_costs): Ditto.
11156 (ira_allocate_and_set_or_copy_costs): Ditto.
11158 * opts.c (decode_options): Remove ira_cover_class check.
11160 * ira-color.c: Remove mentioning cover classes from the file. Use
11161 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
11162 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
11163 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
11164 (splay-tree.h): Remove include.
11165 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
11166 before copy_freq_compare_func.
11167 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
11168 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
11170 (hard_regs_roots, hard_regs_node_vec): Ditto.
11171 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
11172 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
11173 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
11174 (create_new_object_hard_regs_node): Ditto.
11175 (add_new_object_hard_regs_node_to_forest): Ditto.
11176 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
11177 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
11179 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
11180 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
11181 (remove_unused_object_hard_regs_nodes): Ditto.
11182 (enumerate_object_hard_regs_nodes): Ditto.
11183 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
11184 (object_hard_regs_subnode_t): Ditto.
11185 (struct object_hard_regs_subnode): Ditto.
11186 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
11187 (setup_object_hard_regs_subnode_index): Ditto.
11188 (get_object_hard_regs_subnodes_num): Ditto.
11189 (form_object_hard_regs_nodes_forest): Ditto.
11190 (finish_object_hard_regs_nodes_tree): Ditto.
11191 (finish_object_hard_regs_nodes_forest): Ditto.
11192 (allocnos_have_intersected_live_ranges_p): Rename to
11193 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
11194 (pseudos_have_intersected_live_ranges_p): Rename to
11195 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
11196 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
11197 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
11198 (update_copy_costs): Remove assert. Skip cost update if the hard
11199 reg does not belong the class.
11200 (assign_hard_reg): Process only profitable hard regs.
11201 (uncolorable_allocnos_num): Make it scalar.
11202 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
11203 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
11204 and ira_reg_class_max_nregs.
11205 (bucket_allocno_compare_func): Check frequency first.
11206 (sort_bucket): Add compare function as a parameter.
11207 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
11208 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
11209 (push_allocno_to_stack): Rewrite for checking new allocno
11211 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
11212 (push_only_colorable): Pass new parameter to sort_bucket.
11213 (push_allocno_to_spill): Remove.
11214 (allocno_spill_priority_compare): Make it inline and rewrite.
11215 (splay_tree_allocate, splay_tree_free): Remove.
11216 (allocno_spill_sort_compare): New function.
11217 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
11218 build and use splay tree. Choose first allocno in uncolorable
11219 allocno bucket to spill. Remove setting spill cost.
11220 (all_conflicting_hard_regs): Remove.
11221 (setup_allocno_available_regs_num): Check only profitable hard
11222 regs. Print info about hard regs nodes.
11223 (setup_allocno_left_conflicts_size): Remove.
11224 (put_allocno_into_bucket): Don't call
11225 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
11226 (improve_allocation): New.
11227 (color_allocnos): Call setup_profitable_hard_regs,
11228 form_object_hard_regs_nodes_forest, improve_allocation,
11229 finish_object_hard_regs_nodes_forest. Setup spill cost.
11230 (print_loop_title): Use pressure classes.
11231 (color_allocnso): Ditto.
11232 (do_coloring): Remove allocation and freeing splay_tree_node_pool
11233 and allocnos_for_spilling.
11234 (ira_sort_regnos_for_alter_reg): Don't setup members
11235 {first,next}_coalesced_allocno.
11236 (color): Remove allocating and freeing removed_splay_allocno_vec.
11237 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
11238 prohibited_class_mode_regs.
11240 * ira-lives.c: Remove mentioning cover classes from the file. Fix
11242 (update_allocno_pressure_excess_length): Use pressure classes.
11243 (inc_register_pressure, dec_register_pressure): Check for pressure
11245 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
11246 pressure class. Use ira_reg_class_nregs instead of
11247 ira_reg_class_max_nregs.
11248 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
11249 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
11250 (single_reg_class): Use ira_reg_class_nregs instead of
11251 ira_reg_class_max_nregs.
11252 (process_bb_node_lives): Use pressure classes.
11254 * ira-emit.c: Remove mentioning cover classes from the file. Use
11255 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
11256 (change_loop): Use pressure classes.
11257 (modify_move_list): Call ira_set_allocno_class instead of
11258 ira_set_allocno_cover_class.
11260 * ira-build.c: Remove mentioning cover classes from the file. Use
11261 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
11262 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
11263 ALLOCNO_UPDATED_CLASS_COST instead of
11264 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
11265 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
11266 (ira_create_allocno): Remove initialization of
11267 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
11268 ALLOCNO_COLORABLE_P.
11269 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
11270 Update conflict regs for the objects.
11271 (create_cap_allocno): Remove assert. Don't propagate
11272 ALLOCNO_AVAILABLE_REGS_NUM.
11273 (ira_free_allocno_costs): New function.
11274 (finish_allocno): Change a part of code into call of
11275 ira_free_allocno_costs.
11276 (low_pressure_loop_node_p): Use pressure classes.
11277 (object_range_compare_func): Don't compare classes.
11278 (setup_min_max_conflict_allocno_ids): Ditto.
11280 * loop-invariant.c: Remove mentioning cover classes from the file.
11281 Use ira_pressure_classes and ira_pressure_classes_num instead of
11282 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
11283 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
11284 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
11285 Use reg_allocno_class instead of reg_cover_class.
11286 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
11287 STACK_REG_COVER_CLASS.
11288 (get_regno_cover_class): Rename to get_regno_pressure_class.
11289 (move_loop_invariants): Initialize and finalize regstat.
11291 * ira.c: Remove mentioning cover classes from the file. Add
11292 comments about coloring without cover classes. Use ALLOCNO_CLASS
11293 instead of ALLOCNO_COVER_CLASS. Fix formatting.
11294 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
11295 setup_class_subset_and_memory_move_costs.
11296 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
11297 (setup_cover_and_important_classes): Rename to
11298 setup_allocno_and_important_classes.
11299 (setup_class_translate_array): New.
11300 (setup_class_translate): Call it for allocno and pressure classes.
11301 (cover_class_order): Rename to allocno_class_order.
11302 (comp_reg_classes_func): Use ira_allocno_class_translate instead
11303 of ira_class_translate.
11304 (reorder_important_classes): Set up ira_important_class_nums.
11305 (setup_reg_class_relations): Set up ira_reg_class_superunion.
11306 (print_class_cover): Rename to print_classes. Add parameter.
11307 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
11308 Print pressure classes too.
11309 (find_reg_class_closure): Rename to find_reg_classes. Don't call
11310 setup_reg_subclasses.
11311 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
11312 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
11313 (setup_prohibited_class_mode_regs): Use
11314 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
11315 (clarify_prohibited_class_mode_regs): New function.
11316 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
11317 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
11318 (ira_init_once): Initialize them.
11319 (free_register_move_costs): Process them.
11320 (ira_init): Move calls of find_reg_classes and
11321 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
11322 Call clarify_prohibited_class_mode_regs.
11323 (ira_no_alloc_reg): Remove.
11324 (too_high_register_pressure_p): Use pressure classes.
11326 * sched-deps.c: Remove mentioning cover classes from the file.
11327 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
11328 ira_pressure_classes and ira_pressure_classes_num instead of
11329 ira_reg_class_cover_size and ira_reg_class_cover.
11330 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
11331 sched_regno_pressure_class instead of sched_regno_cover_class.
11332 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
11333 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
11335 * ira.h: Add 2010 to Copyright.
11336 (ira_no_alloc_reg): Remove external.
11337 (struct target_ira): Rename x_ira_hard_regno_cover_class,
11338 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
11339 x_ira_class_translate to x_ira_hard_regno_allocno_class,
11340 x_ira_allocno_classes_num, x_ira_allocno_classes, and
11341 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
11342 x_ira_pressure_classes, x_ira_pressure_class_translate, and
11343 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
11344 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
11345 x_ira_no_alloc_regs.
11346 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
11347 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
11348 ira_allocno_classes_num and ira_allocno_classes.
11349 (ira_class_translate): Rename to ira_allocno_class_translate.
11350 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
11351 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
11352 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
11353 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
11354 (ira_no_alloc_regs): New.
11356 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
11357 classes from the file. Use ALLOCNO_CLASS instead of
11358 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
11359 ALLOCNO_COVER_CLASS_COST.
11360 (regno_cover_class): Rename to regno_aclass.
11361 (record_reg_classes): Use ira_reg_class_subunion instead of
11362 ira_reg_class_union.
11363 (record_address_regs): Check overflow.
11364 (scan_one_insn): Ditto.
11365 (print_allocno_costs): Print total mem cost fore regional allocation.
11366 (print_pseudo_costs): Use REG_N_REFS.
11367 (find_costs_and_classes): Use classes intersected with them on the
11368 1st pass. Check overflow. Use ira_reg_class_subunion instead of
11369 ira_reg_class_union. Use ira_allocno_class_translate and
11370 regno_aclass instead of ira_class_translate and regno_cover_class.
11371 Modify code for finding regno_aclass. Setup preferred classes for
11373 (setup_allocno_cover_class_and_costs): Rename to
11374 setup_allocno_class_and_costs. Use regno_aclass instead of
11375 regno_cover_class. Use ira_set_allocno_class instead of
11376 ira_set_allocno_cover_class.
11377 (init_costs, finish_costs): Use regno_aclass instead of
11379 (ira_costs): Use setup_allocno_class_and_costs instead of
11380 setup_allocno_cover_class_and_costs.
11381 (ira_tune_allocno_costs_and_cover_classes): Rename to
11382 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
11383 by processing objects. Use ira_reg_class_max_nregs instead of
11384 ira_reg_class_nregs.
11386 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
11388 * sched-int.h: Remove mentioning cover classes from the file.
11389 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
11391 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
11392 classes from the file.
11393 (struct reg_pref): Rename coverclass into allocnoclass.
11394 (reg_cover_class): Rename to reg_allocno_class.
11396 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
11398 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
11400 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
11402 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
11404 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
11406 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
11408 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
11410 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
11412 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
11414 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
11416 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
11417 (i386_ira_cover_classes): Ditto.
11419 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
11421 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
11423 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
11425 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
11427 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
11429 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
11431 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
11432 (mips_ira_cover_classes): Ditto.
11434 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
11436 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
11438 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
11440 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
11442 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
11444 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
11445 (IRA_COVER_CLASSES_VSX): Ditto.
11447 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
11448 (rs6000_ira_cover_classes): Ditto.
11450 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
11452 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
11454 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
11456 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
11458 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
11460 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
11462 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
11464 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
11466 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
11468 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
11470 2011-03-29 Jakub Jelinek <jakub@redhat.com>
11473 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
11474 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
11475 dw_fde_unlikely_section_end_label, cold_in_std_section,
11476 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
11477 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
11479 (output_fde): Use dw_fde_second_{begin,end} if second is
11480 true, otherwise dw_fde_{begin,end}.
11481 (output_call_frame_info): Test dw_fde_second_begin != NULL
11482 instead of dw_fde_switched_sections.
11483 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
11484 fields, initialize new fields. Initialize in_std_section
11485 unconditionally from the first partition.
11486 (dwarf2out_end_epilogue): Don't override dw_fde_end when
11487 dw_fde_second_begin is non-NULL.
11488 (dwarf2out_switch_text_section): Stop initializing removed
11489 dw_fde_struct fields, initialize new fields, initialize
11490 also dw_fde_end here. Set dw_fde_switch_cfi even when
11491 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
11492 (struct var_loc_list_def): Add last_before_switch field.
11493 (arange_table, arange_table_allocated, arange_table_in_use,
11494 ARANGE_TABLE_INCREMENT, add_arange): Removed.
11495 (size_of_aranges): Count !in_std_section and !second_in_std_section
11496 hunks in fdes, instead of looking at arange_table_in_use.
11497 (output_aranges): Add aranges_length argument, don't call
11498 size_of_aranges here. Instead of using aranges_table*
11499 emit ranges for fdes when !in_std_section resp.
11500 !second_in_std_section.
11501 (dw_loc_list): Break ranges crossing section switch.
11502 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
11503 use dw_fde_second_end instead of dw_fde_end as end of last range.
11504 (gen_subprogram_die): Don't call add_arange. Use
11505 dw_fde_{begin,end} for first partition and if switched
11506 section dw_fde_second_{begin,end} for the second.
11507 (var_location_switch_text_section_1,
11508 var_location_switch_text_section): New functions.
11509 (dwarf2out_begin_function): Initialize cold_text_section even
11510 when function_section () isn't text_section.
11511 (prune_unused_types): Don't walk arange_table.
11512 (dwarf2out_finish): Don't needlessly test
11513 flag_reorder_blocks_and_partition when testing cold_text_section_used.
11514 If info_section_emitted, call size_of_aranges and if it indicates
11515 non-empty .debug_aranges, call output_aranges with the computed
11516 size. Stop using removed dw_fde_struct fields, use
11517 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
11521 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
11522 create ENTRY_VALUE if incoming or address of incoming's MEM
11524 * dwarf2out.c (mem_loc_descriptor): Don't emit
11525 DW_OP_GNU_entry_value of DW_OP_fbreg.
11526 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
11527 on ENTRY_VALUE is able to find the canonical parameter VALUE.
11528 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
11529 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
11531 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
11532 is a REG_P or MEM_P with REG_P address, compute hash directly
11533 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
11534 (preserve_only_constants): Don't clear VALUES forwaring
11535 ENTRY_VALUE to some other VALUE.
11537 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
11539 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
11540 instead of GEN_INT.
11542 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
11544 * cfgexpand.c (expand_gimple_cond): Always set the source location and
11545 block before expanding the statement.
11546 (expand_gimple_stmt_1): Likewise. Set them here...
11547 (expand_gimple_stmt): ...and not here. Tidy.
11548 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
11551 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
11553 * Makefile.in: New rule for cprop.o.
11554 * gcse.c: Move constant/copy propagation to cprop.c.
11555 (compute_local_properties): Only handle expression tables.
11556 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
11557 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
11558 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
11559 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
11560 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
11561 compute_cprop_data, find_used_regs, try_replace_reg,
11562 find_avail_set, cprop_jump, constprop_register, cprop_insn,
11563 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
11564 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
11565 find_bypass_set, reg_killed_on_edge, bypass_block,
11566 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
11567 execute_rtl_cprop, pass_rtl_cprop): Move to...
11568 * cprop.c: ...here. New file, constant/copy propagation for RTL
11569 moved from gcse.c to here with minor cleanups in duplicated code.
11571 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
11573 * config/i386/i386.c (flag_opts): Fix a typo in
11574 -mavx256-split-unaligned-store.
11576 2011-03-28 Anatoly Sokolov <aesok@post.ru>
11578 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
11579 LIBCALL_VALUE): Remove macros.
11580 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11581 TARGET_FUNCTION_VALUE_REGNO_P): Define.
11582 (h8300_function_value, h8300_libcall_value,
11583 h8300_function_value_regno_p): New functions.
11585 2011-03-28 Anatoly Sokolov <aesok@post.ru>
11587 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
11589 2011-03-28 Jeff Law <law@redhat.com>
11591 * tree-ssa-threadupdate.c (redirect_edges): Call
11592 create_edge_and_update_destination_phis as needed.
11593 (create_edge_and_update_destination_phis): Accept new BB argument.
11594 All callers updated.
11595 (thread_block): Do not update the profile when threading around
11596 intermediate blocks.
11597 (thread_single_edge): Likewise.
11598 (determine_bb_domination_status): If BB is not a successor of the
11599 loop header, return NONDOMINATING.
11600 (register_jump_thread): Note when we register a jump thread around
11601 an intermediate block.
11602 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
11603 (thread_across_edge): Use it.
11605 2011-03-28 Tristan Gingold <gingold@adacore.com>
11607 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
11608 when for_return is 2.
11610 2011-03-28 Jeff Law <law@redhat.com>
11612 * var-tracking.c (canonicalize_values_mark): Delete unused
11614 (canonicalize_values_star, set_variable_part): Likewise.
11615 (clobber_variable_part, delete_variable_part): Likewise.
11617 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
11619 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
11621 2011-03-28 Martin Jambor <mjambor@suse.cz>
11623 * tree-inline.c (expand_call_inline): Do not check that destination
11625 (optimize_inline_calls): Assert that destination node is analyzed.
11626 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
11627 not call tree_lowering_passes.
11628 * cgraph.h (cgraph_analyze_function): Declare.
11629 * cgraphunit.c (cgraph_analyze_function): Make public.
11631 2011-03-28 Joseph Myers <joseph@codesourcery.com>
11633 * config/sparc/sparc-opts.h: New.
11634 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
11635 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
11636 (sparc_option_override): Store processor_type enumeration rather
11637 than string in cpu_default. Remove name and enumeration from
11638 cpu_table. Directly default -mcpu then default -mtune from -mcpu
11639 without using sparc_select. Use target_flags_explicit instead of
11641 * config/sparc/sparc.h (enum processor_type): Move to
11643 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
11644 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
11645 HeaderInclude entry.
11646 (mcpu=, mtune=): Use Var and Enum.
11647 (sparc_processor_type): New Enum and EnumValue entries.
11649 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11650 Iain Sandoe <iains@gcc.gnu.org>
11653 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
11655 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
11657 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
11658 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
11659 Insert new statements at it in lieu of STMT.
11660 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
11661 * tree-vect-stmts.c (vectorizable_store): Likewise.
11662 (vectorizable_load): Likewise.
11664 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
11666 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
11671 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
11673 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
11674 unaligned 256bit load/store.
11675 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
11676 (*avx_movdqu<avxmodesuffix>): Likewise.
11678 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11681 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
11682 * config/pa/pa.md (iordi3): Use new predicate in expander.
11683 (iorsi3): Likewise.
11685 2011-03-27 Anatoly Sokolov <aesok@post.ru>
11687 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
11688 FUNCTION_VALUE_REGNO_P): Remove macros.
11689 * config/mips/mips-protos.h (mips_function_value): Remove.
11690 * config/mips/mips.c (mips_function_value): Rename to...
11691 (mips_function_value_1): ... this. Make static. Handle receiving
11692 the function type in 'fn_decl_or_type' argument.
11693 (mips_function_value, mips_libcall_value,
11694 mips_function_value_regno_p): New function.
11695 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11696 TARGET_FUNCTION_VALUE_REGNO_P): Define.
11698 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
11700 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
11701 and -mavx256-split-unaligned-store.
11702 (ix86_option_override_internal): Split 32-byte AVX unaligned
11703 load/store by default.
11704 (ix86_avx256_split_vector_move_misalign): New.
11705 (ix86_expand_vector_move_misalign): Use it.
11707 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
11708 -mavx256-split-unaligned-store.
11710 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
11711 256bit load/store. Generate unaligned store on misaligned memory
11713 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
11715 (*avx_movdqu<avxmodesuffix>): Likewise.
11717 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
11718 -mavx256-split-unaligned-store.
11720 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
11723 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
11726 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
11728 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
11729 opno arguments with an expand_operand. Use create_input_operand.
11730 (mips_prepare_builtin_target): Delete.
11731 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
11733 (mips_expand_builtin_direct): Use create_output_operand and
11734 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
11735 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
11736 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
11738 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
11740 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
11742 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
11744 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
11746 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
11747 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
11748 basic blocks and call commit_edge_insertions directly.
11749 (fixup_abnormal_edges): Move from here to...
11750 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
11751 on the edges and return whether some have actually been inserted.
11752 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
11755 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
11757 PR rtl-optimization/48144
11758 * sel-sched-ir.c (merge_history_vect): Factor out from ...
11759 (merge_expr_data): ... here.
11760 (av_set_intersect): Rename to av_set_code_motion_filter.
11761 Update all callers. Call merge_history_vect when an expression
11762 is found in both sets.
11763 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
11765 2011-03-26 Alan Modra <amodra@gmail.com>
11767 * config/rs6000/predicates.md (word_offset_memref_op): Handle
11768 cmodel medium addresses.
11769 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
11770 64-bit gpr loads and stores.
11771 (rs6000_secondary_reload_ppc64): New function.
11772 * config/rs6000/rs6000-protos.h: Declare it.
11773 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
11775 2011-03-26 Alan Modra <amodra@gmail.com>
11778 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
11779 GNU Go in traceback table.
11781 2011-03-25 Richard Henderson <rth@redhat.com>
11783 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
11784 if there are exactly 6 operands.
11785 (set_storage_via_setmem): Similarly.
11787 2011-03-25 Kai Tietz <ktietz@redhat.com>
11789 * collect2.c (write_c_file_stat): Handle backslash
11790 as right-hand directory separator.
11791 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
11792 checking just for slash.
11793 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
11794 instead of checking for trailing slash.
11795 * gcc.c (record_temp_file): Use filename_cmp instead
11797 (do_spec_1): Likewise.
11798 (replace_outfile_spec_function): Likewise.
11799 (is_directory): Use filename_ncmp instead of strncmp.
11800 (print_multilib_info): Likewise.
11801 * gcov.c (find_source): Use filename_cmp instead
11803 (make_gcov_file_name): Fix order of slash/backslash
11805 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
11806 (add_standard_paths): Likewise.
11807 * mips-tfile.c (saber_stop): Handle backslash.
11808 * prefix.c (update_path): Use filename_ncmp instead of
11810 * profile.c (output_location): Use filename_cmp instead
11812 * read-md.c (handle_toplevel_file): Handle backslash.
11813 * tlink.c (frob_extension): Likewise.
11814 * tree-cfg.c (same_line_p): Use filename_cmp instead of
11816 * tree-dump.c (dequeue_and_dump): Handle backslash.
11817 * tree.c (get_file_function_name): Likewise.
11818 * gengtype.c (read_input_list): Likewise.
11819 (get_file_realbasename): Likewise.
11820 (get_output_file_with_visibility): Use filename_cmp
11823 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
11825 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
11828 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
11830 * fold-const.c (expr_location_or): New function.
11831 (fold_truth_not_expr): Call it.
11833 2011-03-25 Jeff Law <law@redhat.com>
11835 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
11837 * c-family/c-common.c (def_fn_type): Likewise.
11838 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
11839 * emit-rtl.c (gen_rtvec): Likewise.
11840 * lto/lto-lang.c (def_fn_type): Likewise.
11842 2011-03-25 Richard Guenther <rguenther@suse.de>
11844 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
11845 also generate copies.
11846 (fini_copy_prop): Handle constant values properly.
11848 2011-03-25 Jakub Jelinek <jakub@redhat.com>
11850 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
11851 mode size instead of bitsize with DWARF2_ADDR_SIZE.
11852 (hash_loc_operands, compare_loc_operands): Handle
11853 DW_OP_GNU_entry_value.
11855 2011-03-25 Kai Tietz <ktietz@redhat.com>
11857 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
11858 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
11859 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
11860 comment and use macro TARGET_64BIT_MS_ABI instead.
11861 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
11862 and change default behavior for 32-bit MS_ABI.
11863 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
11864 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
11866 (ix86_cfun_abi): Likewise.
11867 (ix86_maybe_switch_abi): Adjust comment.
11868 (init_cumulative_args): Check for bit-ness in MS_ABI case.
11869 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
11870 instead of checking for SYSV_ABI.
11871 (ix86_nsaved_sseregs): Likewise.
11872 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
11874 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
11875 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
11876 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
11877 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
11878 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
11880 2011-03-25 Richard Guenther <rguenther@suse.de>
11882 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
11883 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
11884 (verify_gimple): Remove.
11885 * tree-cfg.c (verify_gimple_call): Merge verification
11887 (verify_gimple_phi): Merge verification from verify_stmts.
11888 (verify_gimple_label): New function.
11889 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
11890 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
11891 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
11892 (verify_stmts): Rename to verify_gimple_in_cfg.
11893 (verify_gimple_in_cfg): New function.
11894 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
11895 * tree-ssa.c (verify_ssa): Likewise.
11896 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
11898 2011-03-25 Richard Guenther <rguenther@suse.de>
11900 * passes.c (init_optimization_passes): Add FRE pass after
11903 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
11904 Andrew Stubbs <ams@codesourcery.com>
11906 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
11908 (arm_movdi_vfp_cortexa8): New pattern.
11909 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
11910 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
11911 instructions when tuning for Cortex-A8. Set attribute "arch".
11912 * config/arm/arm.md: Move include arm-tune.md up a bit.
11913 (define_attr "arch"): Add "onlya8" and "nota8" values.
11914 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
11916 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
11920 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
11922 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
11923 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
11924 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
11925 * passes.c (init_optimization_passes): Move
11926 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
11928 2011-03-25 Kai Tietz <ktietz@redhat.com>
11930 * c-typeck.c (comptypes_internal): Replace target
11931 hook call of comp_type_attributes by version in tree.c file.
11932 * gimple.c (gimple_types_compatible_p_1): Likewise.
11933 * tree-ssa.c (useless_type_conversion_p): Likewise.
11934 * tree.c (build_type_attribute_qual_variant): Likewise.
11935 (attribute_value_equal): New static helper function.
11936 (comp_type_attributes): New function.
11937 (merge_attributes): Use attribute_value_equal for comparison.
11938 (attribute_list_contained): Likewise.
11939 * tree.h (comp_type_attributes): New prototype.
11941 2011-03-25 Richard Guenther <rguenther@suse.de>
11943 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
11944 of complex types at -O0.
11945 (verify_gimple_assign_binary): Likewise.
11946 (verify_gimple_assign_ternary): Likewise.
11948 2011-03-24 Mark Wielaard <mjw@redhat.com>
11950 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
11951 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
11953 2011-03-24 Mark Wielaard <mjw@redhat.com>
11956 * dwarf2out.c (output_abbrev_section): Only write table when
11957 abbrev_die_table_in_use > 1.
11959 2011-02-24 Richard Henderson <rth@redhat.com>
11961 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
11962 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
11963 (alpha_expand_unaligned_load_words): Use extql.
11964 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
11965 (emit_insxl): Handle all modes for consistency.
11967 2011-02-24 Richard Henderson <rth@redhat.com>
11969 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
11970 (alpha_expand_unaligned_load): Likewise.
11971 (alpha_expand_unaligned_store): Likewise.
11972 (alpha_expand_unaligned_load_words): Likewise.
11973 (alpha_expand_unaligned_store_words): Likewise.
11974 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
11975 (alpha_split_lock_test_and_set_12): Likewise.
11976 (print_operand, alpha_fold_builtin_extxx): Likewise.
11977 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
11978 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
11979 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
11980 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
11981 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
11982 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
11983 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
11984 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
11985 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
11986 (extwl, extll, extql): Similarly.
11987 (inswh, inslh, insqh): Similarly.
11988 (mskbl, mskwl, mskll, mskql): Similarly.
11989 (mskwh, msklh, mskqh): Similarly.
11991 2011-02-24 Richard Henderson <rth@redhat.com>
11993 * config/alpha/alpha.md (attribute isa): Add er, ner.
11994 (attribute enabled): Handle them.
11995 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
11997 2011-02-24 Richard Henderson <rth@redhat.com>
11999 * config/alpha/alpha.md (attribute isa): Add vms.
12000 (attribute enabled): Handle it.
12001 (*movsf): Merge *movsf_{nofix,fix,nofp}.
12002 (*movdf): Merge *movdf_{nofix,fix,nofp}.
12003 (*movtf): Rename from *movtf_internal for consistency.
12004 (*movsi): Merge with *movsi_nt_vms.
12005 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
12006 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
12007 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
12008 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
12010 2011-02-24 Richard Henderson <rth@redhat.com>
12012 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
12013 (extendqisi2, extendhisi2): Likewise.
12014 (extendqidi2): Simplify BWX/non-BWX expansions.
12015 (extendhidi2): Similarly.
12017 2011-02-24 Richard Henderson <rth@redhat.com>
12019 * config/alpha/alpha.md (attribute isa): New.
12020 (attribute enabled): New.
12021 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
12022 (zero_extendqisi2, zero_extendqidi2): Similarly.
12023 (zero_extendhisi2, zero_extendhidi2): Similarly.
12024 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
12026 2011-02-24 Richard Henderson <rth@redhat.com>
12028 * config/alpha/predicates.md (input_operand): Revert last change;
12029 update comment to mention 32-bit VMS rather than Windows.
12031 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
12033 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
12034 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
12035 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
12036 * passes.c (init_optimization_passes): Move
12037 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
12039 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
12041 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
12043 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
12045 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
12048 2011-03-24 Jakub Jelinek <jakub@redhat.com>
12051 * simplify-rtx.c (simplify_const_unary_operation): Call
12052 real_convert when changing mode class with FLOAT_EXTEND.
12054 2011-03-24 Nick Clifton <nickc@redhat.com>
12056 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
12057 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
12058 * config/rx/rx.c (rx_option_override): Set align_jumps,
12059 align_loops and align_labels if not set by the user.
12060 (rx_align_for_label): New function.
12061 (rx_max_skip_for_label): New function.
12062 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
12063 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
12064 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
12065 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
12066 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
12068 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
12070 PR rtl-optimization/48263
12071 * optabs.c (expand_binop_directly): Reinstate convert_modes code
12072 and original commutative_p handling. Use maybe_gen_insn.
12074 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12076 * reload.c (find_reloads_subreg_address): Add address_reloaded
12077 parameter and return true there if the full address has been
12079 (find_reloads_toplev): Pass address_reloaded flag.
12080 (find_reloads_address_1): Don't use address_reloaded parameter.
12082 2011-03-24 Jeff Law <law@redhat.com>
12084 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
12085 unused variable "ann".
12086 (remove_unused_locals): Likewise.
12088 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
12091 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
12094 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12096 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
12097 for invalid symbolic addresses.
12098 (s390_secondary_reload): Don't use s390_check_symref_alignment for
12101 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
12103 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
12104 the argument in calls to fold_truth_not_expr.
12106 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
12108 * tree.c (record_node_allocation_statistics): New function.
12109 (make_node_stat, copy_node_stat, build_string): Call it.
12110 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
12111 (build1_stat, build_omp_clause): Likewise.
12113 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
12115 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
12118 2011-03-24 Richard Guenther <rguenther@suse.de>
12120 PR tree-optimization/48271
12121 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
12122 blocks that still exist.
12124 2011-03-24 Richard Guenther <rguenther@suse.de>
12126 PR tree-optimization/48270
12127 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
12128 not free datarefs before ddrs.
12130 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
12132 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
12133 from the address built for a reference with variable offset.
12135 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
12138 * config/i386/i386.md (*movdf_internal_rex64): Do not split
12139 alternatives that can be handled with movq or movabsq insn.
12140 (*movdf_internal): Disable for !TARGET_64BIT.
12141 (*movdf_internal_nointeger): Ditto.
12142 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
12144 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
12146 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
12147 (FUNCTION_ARG_ADVANCE): Likewise.
12148 * tm.texi.in: Change references to them to hook references.
12149 * tm.texi: Regenerate.
12150 * targhooks.c (default_function_arg): Eliminate check for target macro.
12151 (default_function_incoming_arg): Likewise.
12152 (default_function_arg_advance): Likewise.
12153 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
12154 (function_arg_advance): Likewise.
12155 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
12157 2011-03-24 Richard Guenther <rguenther@suse.de>
12159 PR middle-end/48269
12160 * tree-object-size.c (addr_object_size): Do not double-account
12161 for MEM_REF offsets.
12163 2011-03-24 Diego Novillo <dnovillo@google.com>
12165 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
12166 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
12167 (lto_input_data_block): Move from lto-opts.c. Make extern.
12169 (lto_input_string): Rename from input_string. Make extern.
12171 * lto-streamer-out.c (lto_output_string_with_length): Rename from
12172 output_string_with_length.
12173 Output 0 to indicate a non-NULL string. Update all callers to
12175 (lto_output_string): Rename from output_string. Make extern.
12177 (lto_output_decl_state_streams): Make extern.
12178 (lto_output_decl_state_refs): Make extern.
12179 * lto-streamer.h (lto_input_string): Declare.
12180 (lto_input_data_block): Declare.
12181 (lto_output_string): Declare.
12182 (lto_output_string_with_length): Declare.
12183 (lto_output_decl_state_streams): Declare.
12184 (lto_output_decl_state_refs): Declare.
12186 2011-03-24 Richard Guenther <rguenther@suse.de>
12188 PR tree-optimization/46562
12189 * tree.c (build_invariant_address): New function.
12190 * tree.h (build_invariant_address): Declare.
12191 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
12192 a renamed function moved ...
12193 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
12194 Take valueization callback parameter.
12195 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
12196 * gimple-fold.h: New file.
12197 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
12198 (ccp_fold, fold_const_aggregate_ref,
12199 fold_ctor_reference, fold_nonarray_ctor_reference,
12200 fold_array_ctor_reference, fold_string_cst_ctor_reference,
12201 get_base_constructor): Move ...
12202 * gimple-fold.c: ... here.
12203 (gimple_fold_stmt_to_constant_1): New function
12204 split out from ccp_fold. Take a valueization callback parameter.
12205 Valueize all operands.
12206 (gimple_fold_stmt_to_constant): New wrapper function.
12207 (fold_const_aggregate_ref_1): New function split out from
12208 fold_const_aggregate_ref. Take a valueization callback parameter.
12209 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
12210 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
12211 invariant POINTER_PLUS_EXPRs to invariant form.
12212 (vn_valueize): New function.
12213 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
12214 * tree-vrp.c (vrp_valueize): New function.
12215 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
12216 to fold statements to constants.
12217 * tree-ssa-pre.c (eliminate): Properly guard propagation of
12218 function declarations.
12219 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
12220 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
12222 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
12224 * config/h8300/predicates.md (jump_address_operand): Fix register
12227 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
12229 * doc/invoke.texi (max-stores-to-sink): Document.
12230 * params.h (MAX_STORES_TO_SINK): Define.
12231 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
12232 if either vectorization or if-conversion is disabled.
12233 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
12234 tree-vect-data-refs.c vect_equal_offsets.
12235 (dr_equal_offsets_p): New function.
12236 (find_data_references_in_bb): Remove static.
12237 * tree-data-ref.h (find_data_references_in_bb): Declare.
12238 (dr_equal_offsets_p): Likewise.
12239 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
12240 (vect_drs_dependent_in_basic_block): Update calls to
12241 vect_equal_offsets.
12242 (vect_check_interleaving): Likewise.
12243 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
12244 (cond_if_else_store_replacement): Rename to...
12245 (cond_if_else_store_replacement_1): ... this. Change arguments and
12247 (cond_if_else_store_replacement): New function.
12248 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
12249 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
12251 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
12254 * config/arm/arm.md (casesi): Use the gen_int_mode() function
12255 to subtract lower bound instead of GEN_INT().
12257 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
12262 * doc/extend.texi (Alignment): Move section to match order in TOC.
12263 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
12264 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
12266 2011-03-23 Jeff Law <law@redhat.com>
12268 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
12269 before removing the edge.
12271 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
12272 it may have been freed by redirect_branch_edge or
12273 redirect_edge_succ_nodup.
12275 2011-03-23 Richard Guenther <rguenther@suse.de>
12277 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
12278 (check_va_list_escapes): Likewise.
12279 (check_all_va_list_escapes): Likewise.
12281 2011-03-23 Richard Guenther <rguenther@suse.de>
12283 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
12284 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
12285 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
12286 (alias.o): Likewise.
12287 (ipa-type-escape.o): Remove.
12288 (ipa-struct-reorg.o): Likewise.
12289 (GTFILES): Remove ipa-struct-reorg.c.
12290 * alias.c: Do not include ipa-type-escape.h.
12291 * tree-ssa-alias.c: Likewise.
12292 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
12293 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
12294 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
12295 and ipa-type-escape passes.
12296 * tree-pass.h (pass_ipa_type_escape): Remove.
12297 (pass_ipa_struct_reorg): Likewise.
12298 * ipa-struct-reorg.h: Remove.
12299 * ipa-struct-reorg.c: Likewise.
12300 * ipa-type-escape.h: Likewise.
12301 * ipa-type-escape.c: Likewise.
12302 * doc/invoke.texi (-fipa-struct-reorg): Remove.
12303 (--param struct-reorg-cold-struct-ratio): Likewise.
12304 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
12305 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
12306 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
12308 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12310 * config/s390/2084.md: Enable all insn reservations also for z9_ec
12311 cpu attribute value.
12312 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
12313 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
12314 * config/s390/s390.c (processor_flags_table): New constant array.
12315 (s390_handle_arch_option): Remove.
12316 (s390_handle_option): Remove s390_handle_arch_option invocations
12317 and OPT_mwarn_framesize_ handling.
12318 (s390_option_override): Remove s390_handle_arch_option invocation.
12319 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
12321 * config/s390/s390.md (cpu attribute): Add z9_ec value.
12322 * config/s390/s390.opt (s390_tune, s390_arch)
12323 (march=): Replace s390_arch_option enum and values with
12324 processor_type. Set variable name to s390_arch. Set
12325 initialization value.
12326 (mtune=): Replace s390_arch_option with processor_type. Set
12327 variable name to s390_tune. Set initialization value.
12329 2011-03-23 Julian Brown <julian@codesourcery.com>
12331 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
12332 accesses which are not naturally aligned.
12334 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
12337 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
12339 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
12341 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
12342 parameter from "int" to "enum insn_code".
12343 (expand_operand_type): New enum.
12344 (expand_operand): New structure.
12345 (create_expand_operand): New function.
12346 (create_fixed_operand, create_output_operand): Likewise
12347 (create_input_operand, create_convert_operand_to): Likewise.
12348 (create_convert_operand_from, create_address_operand): Likewise.
12349 (create_integer_operand): Likewise.
12350 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
12351 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
12352 (expand_insn, expand_jump_insn): Likewise.
12353 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
12354 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
12355 (expand_movstr, expand_builtin___clear_cache): Likewise.
12356 (expand_builtin_lock_release): Likewise.
12357 * explow.c (allocate_dynamic_stack_space): Likewise.
12358 (probe_stack_range): Likewise. Allow check_stack to FAIL,
12359 and use the default handling in that case.
12360 * expmed.c (check_predicate_volatile_ok): Delete.
12361 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
12362 (emit_cstore): Likewise.
12363 * expr.c (emit_block_move_via_movmem): Likewise.
12364 (set_storage_via_setmem, expand_assignment): Likewise.
12365 (emit_storent_insn, try_casesi): Likewise.
12366 (emit_single_push_insn): Likewise. Allow the expansion to fail.
12367 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
12368 (expand_vec_shift_expr, expand_binop_directly): Likewise.
12369 (expand_twoval_unop, expand_twoval_binop): Likewise.
12370 (expand_unop_direct, emit_indirect_jump): Likewise.
12371 (emit_conditional_move, vector_compare_rtx): Likewise.
12372 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
12373 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
12374 (expand_sync_lock_test_and_set): Likewise.
12375 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
12376 (emit_unop_insn): Likewise.
12377 (expand_copysign_absneg): Change icode to an insn_code.
12378 (create_convert_operand_from_type): New function.
12379 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
12380 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
12381 (expand_insn, expand_jump_insn): Likewise.
12382 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
12383 than const_int_operand for operand 2.
12385 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12387 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
12390 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
12392 * emit-rtl.c (emit_pattern_before_noloc): New function.
12393 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
12394 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
12395 (emit_pattern_after_noloc): New function.
12396 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
12397 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
12399 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
12401 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
12402 (__ffsDI2): Likewise.
12404 2011-03-22 Richard Henderson <rth@redhat.com>
12406 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
12407 of !TARGET_ABI_OPEN_VMS.
12408 (alpha_trampoline_init, alpha_start_function): Likewise.
12409 (alpha_expand_epilogue, alpha_file_start): Likewise.
12410 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
12411 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
12412 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
12413 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
12414 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
12416 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12418 * config/s390/s390-opts.h: New.
12419 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
12420 s390_arch_flags, s390_warn_framesize, s390_stack_size,
12421 s390_stack_guard): Remove.
12422 (s390_handle_arch_option): Return void. Take enum
12423 s390_arch_option value instead of string and searching array.
12424 (s390_handle_option): Don't assert that global structures are in
12425 use. Access variables via opts pointer. Use error_at. Don't use
12426 sscanf for -mstack-guard= or -mstack-size=. Update call to
12427 s390_handle_arch_option.
12428 (s390_option_override): Update call to s390_handle_arch_option.
12429 (s390_emit_prologue): Use %d format for s390_stack_size in
12430 diagnostic. Use %wd for HOST_WIDE_INT.
12431 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
12432 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
12433 * config/s390/s390.opt (config/s390/s390-opts.h): New
12434 HeaderInclude entry.
12435 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
12436 s390_arch_flags, s390_warn_framesize): New Variable entries.
12437 (s390_arch_option): New Enum and EnumValue entries.
12438 (march=): Use Enum instead of Var.
12439 (mstack-guard=, mstack-size=): Use UInteger and Var.
12440 (mtune=): Use Enum.
12442 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12444 * config/score/score.c (score_handle_option): Don't assert that
12445 global structures are in use. Access target_flags via opts
12446 pointer. Use value of -march= option to determine target_flags
12448 * config/score/score.opt (march=): Use Enum.
12449 (score_arch): New Enum and EnumValue entries.
12451 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12453 * config/mep/mep.c (option_mtiny_specified): Remove.
12454 (mep_option_override): Move register handling for -mivc2 from
12455 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
12456 instead of option_mtiny_specified.
12457 (mep_handle_option): Access target_flags via opts pointer. Don't
12458 assert that global structures are in use. Defer part of -mivc2
12459 handling and move it to mep_option_override.
12460 * config/mep/mep.opt (IVC2): New Mask entry.
12461 (mivc2): Use Var and Defer instead of Mask.
12463 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12465 * config/v850/v850-opts.h: New.
12466 * config/v850/v850.c (small_memory): Replace with
12467 small_memory_physical_max array. Make that array static const.
12468 (v850_handle_memory_option): Take integer value of argument. Take
12469 gcc_options pointer, option text and location. Return void.
12470 Update for changes to small memory structures.
12471 (v850_handle_option): Access target_flags via opts pointer. Don't
12472 assert that global structures are in use. Update calls to
12473 v850_handle_memory_option.
12474 (v850_encode_data_area): Update references to small memory settings.
12475 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
12476 (enum small_memory_type): Move to v850-opts.h.
12477 * config/v850/v850.opt (config/v850/v850-opts.h): New
12478 HeaderInclude entry.
12479 (small_memory_max): New Variable entry.
12480 (msda): Replace by pair of options msda= and msda-. Use UInteger.
12481 (mtda, mzda): Likewise.
12483 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12485 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
12486 pointer. Don't assert that global structures are in use.
12488 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12490 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
12491 via opts pointer. Don't assert that global structures are in use.
12493 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12495 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
12496 (munix=93): Use Var.
12497 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
12498 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
12499 * config/pa/pa-opts.h: New.
12500 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
12501 (pa_handle_option): Don't assert that global structures are in
12502 use. Access target_flags via opts pointer. Don't handle
12503 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
12505 (pa_option_override): Handle deferred OPT_mfixed_range_.
12507 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12509 * config/mn10300/mn10300-opts.h: New.
12510 * config/mn10300/mn10300.c (mn10300_processor,
12511 mn10300_tune_string): Remove.
12512 (mn10300_handle_option): Don't assert that global structures are
12513 in use. Access mn10300_processor via opts pointer. Don't handle
12515 * config/mn10300/mn10300.h (enum processor_type): Move to
12517 (mn10300_processor): Remove.
12518 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
12519 HeaderInclude entry.
12520 (mn10300_processor): New Variable entry.
12523 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12525 * config/microblaze/microblaze.c: Don't include opts.h.
12526 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
12527 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
12528 (mno-clearbss): Use Var and Warn.
12530 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12532 * config/m32r/m32r-opts.h: New.
12533 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
12534 (m32r_handle_option): Don't assert that global structures are in
12535 use. Access target_flags and m32r_cache_flush_func via opts
12536 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
12537 OPT_mno_flush_trap here.
12538 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
12539 include of m32r-opts.h.
12540 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
12541 HeaderInclude entry.
12542 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
12543 (mmodel=): Use Enum and Var.
12544 (m32r_model): New Enum and EnumValue entries.
12545 (mno-flush-trap): Use Var.
12546 (msdata=): Use Enum and Var.
12547 (m32r_sdata): New Enum and EnumValue entries.
12549 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12551 * config/m32c/m32c.c: Don't include opts.h.
12552 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
12553 m32c_handle_option): Remove.
12554 (m32c_option_override): Check global_options_set.x_target_memregs
12555 instead of target_memregs_set.
12556 * config/m32c/m32c.h (target_memregs): Remove.
12557 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
12560 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12562 * config/iq2000/iq2000-opts.h: New.
12563 * config/iq2000/iq2000.c: Don't include opts.h.
12564 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
12565 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
12566 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
12567 HeaderInclude entry.
12568 (iq2000_tune): New Variable entry.
12569 (march=): Add comment. Use Enum.
12570 (iq2000_arch): New Enum and EnumValue entries.
12571 (mcpu=): Use Enum and Var.
12572 (iq2000_tune): New Enum and EnumValue entries.
12574 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12576 * config/ia64/ia64-opts.h: New.
12577 * config/ia64/ia64.c (ia64_tune): Remove.
12578 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
12579 here. Use error_at.
12580 (ia64_option_override): Handle deferred OPT_mfixed_range_.
12581 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
12582 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
12583 HeaderInclude entry.
12584 (ia64_tune): New Variable entry.
12585 (mfixed-range=): Use Defer and Var.
12586 (mtune=): Use Enum and Var.
12587 (ia64_tune): New Enum and EnumValue entries.
12589 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12591 * config/frv/frv-opts.h: New.
12592 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
12594 (frv_cpu_type): Remove.
12595 * config/frv/frv.c: Don't include opts.h.
12596 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
12597 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
12598 (frv_cpu_type): New Variable entry.
12599 (frv_cpu): New Enum and EnumValue entries.
12601 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12603 * config/cris/cris.c (cris_handle_option): Access target_flags via
12604 opts pointer. Don't assert that global structures are in use.
12605 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
12606 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
12608 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12610 * config/bfin/bfin-opts.h: New.
12611 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
12612 bfin_si_revision, bfin_workarounds): Remove.
12613 (bfin_cpus): Make static const.
12614 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
12615 not bfin_lib_id_given.
12616 (bfin_handle_option): Don't set bfin_lib_id_given. Access
12617 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
12618 pointer. Use error_at. Don't assert that global structures are in use.
12619 * config/bfin/bfin.h: Include bfin-opts.h.
12620 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
12621 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
12622 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
12623 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
12626 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12628 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
12629 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
12630 or -msoft-float here.
12631 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
12632 -msoft-float and -mhard-float.
12633 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
12634 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
12636 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
12638 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
12639 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
12641 (LIBGCC_SPEC): Don't handle -msoft-float.
12642 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
12644 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
12646 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
12647 -mfloat-abi=*, not -msoft-float and -mhard-float.
12648 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
12650 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
12651 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
12652 mhard-float and msoft-float.
12653 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
12654 mfloat-abi=soft in comments, not mhard-float and msoft-float.
12655 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
12656 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
12658 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
12659 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
12661 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
12663 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
12666 2011-03-22 Richard Henderson <rth@redhat.com>
12668 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
12669 TARGET_ABI_WINDOWS_NT.
12670 (alpha_output_function_end_prologue): Likewise.
12671 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
12672 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
12673 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
12674 (trap, *movsi_nt_vms): Likewise.
12675 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
12676 (*tablejump_osf_nt_internal): Remove.
12677 * config/alpha/predicates.md (input_operand): Only test Pmode.
12679 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12681 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
12682 via opts pointer. Use error_at. Don't assert that global
12683 structures are in use.
12685 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12687 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
12688 (ix86_handle_option): Access ix86_isa_flags and
12689 ix86_isa_flags_explicit via opts pointer. Don't assert that
12690 global structures are in use.
12691 (ix86_function_specific_save, ix86_function_specific_restore):
12692 Update ix86_isa_flags_explicit field name.
12693 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
12694 (ix86_isa_flags_explicit): Rename TargetSave entry to
12695 x_ix86_isa_flags_explicit.
12697 2011-03-22 Richard Henderson <rth@redhat.com>
12699 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
12700 (alpha_option_override, direct_return): Likewise.
12701 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
12702 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
12703 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
12704 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
12705 (alpha_expand_epilogue, alpha_end_function): Likewise.
12706 (alpha_init_libfuncs): Likewise.
12707 (struct machine_function): Remove unicosmk members.
12708 (print_operand) ['t']: Remove.
12709 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
12710 unicosmk_output_module_name, unicosmk_output_common,
12711 current_section_align, unicosmk_output_text_section_asm_op,
12712 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
12713 unicosmk_section_type_flags, unicosmk_unique_section,
12714 unicosmk_asm_named_section, unicosmk_insert_attributes,
12715 unicosmk_output_align, unicosmk_defer_case_vector,
12716 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
12717 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
12718 unicosmk_output_ssib, unicosmk_add_call_info_word,
12719 unicosmk_extern_head, unicosmk_output_default_externs,
12720 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
12721 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
12722 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
12723 * config/alpha/alpha-protos.h: Update.
12724 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
12725 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
12726 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
12727 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
12728 (*mulsi_se, mulvsi3): Likewise.
12729 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
12730 (*divmodsi_internal, call, call_value, realign): Likewise.
12731 (moddi3, umoddi3): Likewise; remove duplicate expander.
12732 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
12733 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
12734 (*movdi_nofix): Remove r/U alternative.
12735 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
12736 * config/alpha/constraints.md ("U"): Remove.
12737 * config/alpha/predicates.md (call_operand"): Don't test
12738 TARGET_ABI_UNICOSMK.
12740 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12742 * target.def (handle_option): Take gcc_options and
12743 cl_decoded_option pointers and location_t.
12744 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
12745 * doc/tm.texi: Regenerate.
12746 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
12747 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
12748 * lto-opts.c (lto_reissue_options): Generate option structure for
12749 targetm.handle_option call.
12750 * opts.c (target_handle_option): Update call to
12751 targetm.handle_option. Remove assertions about values now passed
12753 * targhooks.c (default_target_handle_option): New.
12754 * targhooks.h (default_target_handle_option): Declare.
12755 * config/alpha/alpha.c: Include opts.h.
12756 (alpha_handle_option): Update to new hook interface.
12757 * config/arm/arm.c: Include opts.h.
12758 (arm_handle_option): Update to new hook interface.
12759 * config/arm/t-arm (arm.o): Update dependencies.
12760 * config/bfin/bfin.c: Include opts.h.
12761 (bfin_handle_option): Update to new hook interface.
12762 * config/cris/cris.c: Include opts.h.
12763 (cris_handle_option): Update to new hook interface.
12764 * config/frv/frv.c: Include opts.h.
12765 (frv_handle_option): Update to new hook interface.
12766 * config/i386/i386.c: Include opts.h.
12767 (ix86_handle_option): Update to new hook interface.
12768 (ix86_valid_target_attribute_inner_p): Generate option structure
12769 for call to ix86_handle_option.
12770 * config/i386/t-i386 (i386.o): Update dependencies.
12771 * config/ia64/ia64.c: Include opts.h.
12772 (ia64_handle_option): Update to new hook interface.
12773 * config/ia64/t-ia64 (ia64.o): Update dependencies.
12774 * config/iq2000/iq2000.c: Include opts.h.
12775 (iq2000_handle_option): Update to new hook interface.
12776 * config/m32c/m32c.c: Include opts.h.
12777 (m32c_handle_option): Update to new hook interface.
12778 * config/m32r/m32r.c: Include opts.h.
12779 (m32r_handle_option): Update to new hook interface.
12780 * config/m68k/m68k.c: Include opts.h.
12781 (m68k_handle_option): Update to new hook interface.
12782 * config/mep/mep.c: Include opts.h.
12783 (mep_handle_option): Update to new hook interface.
12784 * config/microblaze/microblaze.c: Include opts.h.
12785 (microblaze_handle_option): Update to new hook interface.
12786 * config/mips/mips.c: Include opts.h.
12787 (mips_handle_option): Update to new hook interface.
12788 * config/mn10300/mn10300.c: Include opts.h.
12789 (mn10300_handle_option): Update to new hook interface.
12790 * config/pa/pa.c: Include opts.h.
12791 (pa_handle_option): Update to new hook interface.
12792 * config/pdp11/pdp11.c: Include opts.h.
12793 (pdp11_handle_option): Update to new hook interface.
12794 * config/rs6000/rs6000.c: Include opts.h.
12795 (rs6000_handle_option): Update to new hook interface.
12796 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
12797 * config/rx/rx.c: Include opts.h.
12798 (rx_handle_option): Update to new hook interface.
12799 * config/s390/s390.c: Include opts.h.
12800 (s390_handle_option): Update to new hook interface.
12801 * config/score/score.c: Include opts.h.
12802 (score_handle_option): Update to new hook interface.
12803 * config/sh/sh.c: Include opts.h.
12804 (sh_handle_option): Update to new hook interface.
12805 * config/sparc/sparc.c: Include opts.h.
12806 (sparc_handle_option): Update to new hook interface.
12807 * config/v850/v850.c: Include opts.h.
12808 (v850_handle_option): Update to new hook interface.
12810 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12812 * gcc.c (driver_unknown_option_callback): Only permit and save
12813 unknown -Wno- options.
12814 (driver_wrong_lang_callback): Save options directly instead of via
12815 driver_unknown_option_callback.
12817 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
12819 * combine.c (simplify_set): Try harder to find the best CC mode when
12820 simplifying a nested COMPARE on the RHS.
12822 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12824 * config/alpha/gnu.h: Remove.
12825 * config/arc: Remove directory.
12826 * config/arm/netbsd.h: Remove.
12827 * config/arm/t-pe: Remove.
12828 * config/crx: Remove directory.
12829 * config/i386/netbsd.h: Remove.
12830 * config/m68hc11: Remove directory.
12831 * config/m68k/uclinux-oldabi.h: Remove.
12832 * config/mcore/mcore-pe.h: Remove.
12833 * config/mcore/t-mcore-pe: Remove.
12834 * config/netbsd-aout.h: Remove.
12835 * config/rs6000/gnu.h: Remove.
12836 * config/sh/sh-symbian.h: Remove.
12837 * config/sh/symbian-base.c: Remove.
12838 * config/sh/symbian-c.c: Remove.
12839 * config/sh/symbian-cxx.c: Remove.
12840 * config/sh/symbian-post.h: Remove.
12841 * config/sh/symbian-pre.h: Remove.
12842 * config/sh/t-symbian: Remove.
12843 * config/svr3.h: Remove.
12844 * config/vax/netbsd.h: Remove.
12845 * config.build: Don't handle i[34567]86-*-pe.
12846 * config.gcc: Remove handling of deprecations for most deprecated
12848 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
12849 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
12850 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
12851 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
12852 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
12853 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
12855 * config.host: Don't handle i[34567]86-*-pe.
12856 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
12857 (ASM_SPEC32): Don't handle -mcall-gnu.
12858 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
12860 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
12861 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
12862 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
12863 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
12864 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
12865 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
12866 conditional on SYMBIAN.
12867 * configure.ac: Don't handle powerpc*-*-gnu*.
12868 * configure: Regenerate.
12869 * doc/extend.texi (interrupt attribute): Don't mention CRX.
12870 * doc/install-old.texi (m6811, m6812): Don't mention.
12871 * doc/install.texi (arc-*-elf*): Don't document multilib option.
12872 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
12873 (m68k-uclinuxoldabi): Don't mention.
12874 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
12876 (-mcall-gnu): Remove.
12877 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
12878 families): Remove constraint documentation.
12880 2011-03-22 Marius Strobl <marius@FreeBSD.org>
12882 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
12883 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
12884 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
12886 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
12889 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
12890 vector when peeking at the next token for vector, don't expand the
12893 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
12895 * config/avr/avr-protos.h (expand_epilogue): Change prototype
12896 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
12897 * config/avr/avr.c (init_cumulative_args)
12898 (avr_function_arg_advance): Use it.
12899 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
12901 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
12902 (avr_function_ok_for_sibcall): ...this new function.
12903 (avr_lookup_function_attribute1): New static Function.
12904 (avr_naked_function_p, interrupt_function_p)
12905 (signal_function_p, avr_OS_task_function_p)
12906 (avr_OS_main_function_p): Use it.
12907 * config/avr/avr.md ("sibcall", "sibcall_value")
12908 ("sibcall_epilogue"): New expander.
12909 ("*call_insn", "*call_value_insn"): New insn.
12910 ("call_insn", "call_value_insn"): Remove
12911 ("call", "call_value", "epilogue"): Change expander to handle
12914 2011-03-21 Nick Clifton <nickc@redhat.com>
12916 * doc/invoke.texi (Overall Options): Move closing brace to end of
12918 (Optimization Options): Add missing @gol.
12919 (Directory Options): Likewise.
12920 (i386 and x86-64 Options): Likewise.
12921 (RS6000 and PowerPC Options): Likewise.
12922 (i386 and x86-64 Windows Options): Likewise.
12923 (V850 Options): Add text missing from descriptions.
12925 2011-03-22 Richard Henderson <rth@redhat.com>
12927 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
12928 (avr_incoming_return_addr_rtx): New.
12929 (emit_push_byte): New.
12930 (expand_prologue): Use it. Remove incorrect dwarf annotation for
12931 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
12932 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
12933 (emit_pop_byte): New.
12934 (expand_epilogue): Use it. Pop frame pointer by bytes.
12935 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
12936 (INCOMING_RETURN_ADDR_RTX): New.
12937 (INCOMING_FRAME_SP_OFFSET): New.
12938 (ARG_POINTER_CFA_OFFSET): New.
12939 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
12940 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
12943 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
12945 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
12947 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
12948 (FUNCTION_ARG_ADVANCE): Likewise.
12949 * tm.texi.in: Change references to them to hook references.
12950 * tm.texi: Regenerate.
12951 * targhooks.c (default_function_arg): Eliminate check for target
12953 (default_function_incoming_arg): Likewise.
12954 (default_function_arg_advance): Likewise.
12955 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
12956 (function_arg_advance): Likewise.
12957 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
12959 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
12961 * tree.c (build_call_1): New function.
12962 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
12964 2011-03-22 Richard Guenther <rguenther@suse.de>
12966 PR tree-optimization/48228
12967 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
12968 for single-arg PHIs.
12970 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
12972 PR rtl-optimization/48143
12973 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
12974 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
12975 sse2_cvtps2pd): Likewise.
12977 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12979 * recog.c (canonicalize_change_group): Use validate_unshare_change.
12981 2011-03-22 Richard Guenther <rguenther@suse.de>
12983 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
12984 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
12985 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
12986 and REALIGN_LOAD_EXPR.
12987 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
12988 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
12989 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
12990 DOT_PROD_EXPR case ...
12991 (expand_expr_real_2): ... here.
12992 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
12993 and REALIGN_LOAD_EXPR.
12994 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
12995 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
12996 (vect_create_epilog_for_reduction): Likewise.
12997 (vectorizable_reduction): Likewise.
12998 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
12999 * tree-vect-stmts.c (vectorizable_load): Likewise.
13001 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
13003 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
13005 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13007 * config/s390/s390.c (s390_delegitimize_address): Fix offset
13008 handling for PLTOFF/GOTOFF.
13010 2011-03-22 Nick Clifton <nickc@redhat.com>
13012 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
13013 trailing backslash from the end of the macro definition.
13015 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13017 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
13020 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
13022 * expr.h (prepare_operand): Move to...
13023 * optabs.h (prepare_operand): ...here and change the insn code
13024 parameter from "int" to "enum insn_code".
13025 (insn_operand_matches): Declare.
13026 * expr.c (init_expr_target): Use insn_operand_matches.
13027 (compress_float_constant): Likewise.
13028 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
13029 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
13030 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
13031 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
13033 (gen_cond_trap): Likewise.
13034 (prepare_operand): Likewise. Change icode to an insn_code.
13035 (insn_operand_matches): New function.
13036 * reload.c (find_reloads_address_1): Use insn_operand_matches.
13037 * reload1.c (gen_reload): Likewise.
13038 * targhooks.c (default_secondary_reload): Likewise.
13040 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
13042 * config/alpha/alpha.md (unspec): New define_c_enum.
13045 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
13048 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
13049 between a call and its CALL_ARG_LOCATION note.
13051 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
13053 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
13055 2011-03-21 Jakub Jelinek <jakub@redhat.com>
13059 * c-common.c (shorten_compare): If primopN is first sign-extended
13060 to opN and then zero-extended to result type, set primopN to opN.
13062 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
13064 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
13065 for barrier handlers.
13067 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
13069 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
13070 UNSPEC constants to be in the unspec enumeration, and redefine
13071 all UNSPECV constants to be in the unspecv enumeration, so that
13072 dumps print which unspec/unspec_volatile this is.
13073 * config/rs6000/vector.md (UNSPEC_*): Ditto.
13074 * config/rs6000/paired.md (UNSPEC_*): Ditto.
13075 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
13076 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
13077 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
13079 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
13080 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
13081 UNSPECV_LWSYNC, since these are used as unspec_volatile.
13082 * config/rs6000/sync.md (isync, lwsync): Ditto.
13084 2011-03-21 Richard Guenther <rguenther@suse.de>
13086 * params.def (lto-min-partition): Fix typo.
13088 2011-03-21 Richard Guenther <rguenther@suse.de>
13091 * c-decl.c (grokdeclarator): Drop to the main variant only
13092 for array types. Drop flag_gen_aux_info check.
13094 2011-03-21 Richard Guenther <rguenther@suse.de>
13096 PR translation/47911
13097 * params.def (lto-partitions): Fix typo.
13098 (lto-min-partition): Fix wording.
13100 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
13102 * config/rs6000/t-freebsd: Remove duplication from file.
13104 2011-03-21 Richard Guenther <rguenther@suse.de>
13106 PR middle-end/47661
13107 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
13109 2011-03-21 Richard Guenther <rguenther@suse.de>
13112 * params.def (lto-partitions): Require at least 1 partition.
13114 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13116 * gthr-solaris.h: Remove.
13117 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
13118 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
13119 (LIB_SPEC): Likewise.
13120 * config/sol2.opt (threads): Remove.
13121 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
13122 (sparc*-*-solaris2*): Likewise.
13123 * configure.ac (enable_threads): Enable solaris support.
13124 * configure: Regenerate.
13125 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
13126 * doc/install.texi (Configuration, --enable-threads=lib): Remove
13129 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13131 * config.gcc: Obsolete *-*-solaris2.8*.
13132 * doc/install.texi (Specific, *-*-solaris2*): Document it.
13134 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13137 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
13138 reference. Solaris 8 perl works.
13140 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13143 * doc/install.texi (Prerequisites): Move jar etc. up.
13144 Explain support library version requirements.
13146 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13149 * doc/install.texi (Prerequisites): Move Perl to build
13150 requirements. Always necessary on Solaris 2 with Sun ld.
13152 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13154 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
13156 (Specific, i?86-*-solaris2.[89]): Likewise.
13157 (Specific, i?86-*-solaris2.10): Likewise.
13158 (Specific, mips-sgi-irix6): Likewise.
13159 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
13160 Update for binutils 2.21.
13162 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13164 * configure.ac (gcc_cv_lto_plugin): Fix typo.
13165 Allow -fuse-linker-plugin for non-default plugin linker.
13166 * configure: Regenerate.
13168 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
13171 * gengtype.c (files_rules): Added rule for cp/parser.h.
13173 2011-03-21 Jakub Jelinek <jakub@redhat.com>
13176 * config/s390/s390.c (s390_delegitimize_address): Don't call
13177 lowpart_subreg if orig_x has BLKmode.
13179 2011-03-21 Kai Tietz <ktietz@redhat.com>
13182 * doc/plugins.texi: Adjust documentation for plugin register_callback.
13183 * tree.h (attribute_spec): Add new member affects_type_identity.
13184 * attribs.c (empty_attribute_table): Adjust attribute_spec
13186 * config/alpha/alpha.c: Likewise.
13187 * config/arc/arc.c: Likewise.
13188 * config/arm/arm.c: Likewise.
13189 * config/avr/avr.c: Likewise.
13190 * config/bfin/bfin.c: Likewise.
13191 * config/crx/crx.c: Likewise.
13192 * config/darwin.h: Likewise.
13193 * config/h8300/h8300.c: Likewise.
13194 * config/i386/cygming.h: Likewise.
13195 * config/i386/i386.c: Likewise.
13196 * config/ia64/ia64.c: Likewise.
13197 * config/m32c/m32c.c: Likewise.
13198 * config/m32r/m32r.c: Likewise.
13199 * config/m68hc11/m68hc11.c: Likewise.
13200 * config/m68k/m68k.c: Likewise.
13201 * config/mcore/mcore.c: Likewise.
13202 * config/mep/mep.c: Likewise.
13203 * config/microblaze/microblaze.c: Likewise.
13204 * config/mips/mips.c: Likewise.
13205 * config/rs6000/rs6000.c: Likewise.
13206 * config/rx/rx.c: Likewise.
13207 * config/sh/sh.c: Likewise.
13208 * config/sol2.h: Likewise.
13209 * config/sparc/sparc.c: Likewise.
13210 * config/spu/spu.c: Likewise.
13211 * config/stormy16/stormy16.c: Likewise.
13212 * config/v850/v850.c: Likewise.
13214 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
13216 * simplify-rtx.c (simplify_binary_operation_1): Handle
13217 (xor (and A B) C) case when B and C are both constants.
13219 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
13221 * tree-dfa.c (add_referenced_var): Fix typo in comment.
13223 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
13226 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
13228 2011-03-20 Jakub Jelinek <jakub@redhat.com>
13230 PR rtl-optimization/48156
13231 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
13232 assume df and df_lr are not NULL.
13234 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13237 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
13238 between a call and its CALL_ARG_LOCATION note.
13240 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
13243 * config/sh/sh.c (find_barrier): Don't emit a constant pool
13244 between a call and its corresponding CALL_ARG_LOCATION note.
13246 2011-03-19 Anatoly Sokolov <aesok@post.ru>
13248 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
13249 instead of loop. Use HARD_REGISTER_NUM_P predicate.
13250 * haifa-sched.c (setup_ref_regs): Ditto.
13251 * caller-save.c (add_used_regs_1): Ditto.
13252 * dse.c (look_for_hardregs): Ditto.
13253 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
13254 * sched-rgn.c (check_live_1): Ditto.
13256 2011-03-18 Joseph Myers <joseph@codesourcery.com>
13258 * c-decl.c (diagnose_mismatched_decls): Give an error for
13259 redefining a typedef with variably modified type.
13261 2011-03-18 Joseph Myers <joseph@codesourcery.com>
13263 * c-decl.c (grokfield): Don't allow typedefs for structures or
13264 unions with no tag by default.
13265 * doc/extend.texi (Unnamed Fields): Update.
13267 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
13269 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
13270 Rewrite using indirect functions.
13271 (lwp_slwpcb): Ditto.
13272 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
13273 (avx_vinsertf128<mode>): Ditto.
13275 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13277 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
13280 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13282 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
13283 splitting between a call and its corresponding CALL_ARG_LOCATION note.
13285 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
13287 PR rtl-optimization/48170
13288 * gcse.c (hoist_code): Remove bogus asserts.
13290 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
13292 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
13293 computation for prologue/epilogue.
13295 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13297 * Makefile.in (check-consistency): Remove.
13299 2011-03-18 Jakub Jelinek <jakub@redhat.com>
13302 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
13303 arange_table_in_use is 0, but either text_section_used or
13304 cold_text_section_used is true. Don't call it if
13305 !info_section_emitted.
13307 2011-03-18 Anatoly Sokolov <aesok@post.ru>
13309 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
13310 FUNCTION_VALUE_REGNO_P): Remove.
13311 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
13313 * config/avr/avr.c (avr_ret_register): Make static inline.
13314 (avr_function_value_regno_p): New function.
13315 (avr_libcall_value): Make static. Add 'func' argument.
13316 (avr_function_value): Make static. Rename 'func' argument to
13317 'fn_decl_or_type', forward it to avr_libcall_value. Call
13318 avr_ret_register function instead of RET_REGISTER macro.
13319 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
13321 2011-03-18 Jason Merrill <jason@redhat.com>
13324 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
13326 2011-03-18 Richard Guenther <rguenther@suse.de>
13328 * doc/install.texi (--enable-gold): Remove.
13329 (--with-plugin-ld): Document.
13330 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
13332 2011-03-18 Andrew Pinski <pinskia@gmail.com>
13334 PR middle-end/47790
13335 * expr.c (optimize_bitfield_assignment_op): Revamp to work
13336 again after expansion changes.
13338 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
13340 * combine.c (try_combine): Do simplification only call of
13341 subst() on i2 even when i1 is present. Update comments.
13343 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
13345 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
13346 and UNSPEC_PCREL_SYMOFF.
13348 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13350 * config/s390/s390.md: Use define_c_enum for the unspec constant
13353 2011-03-18 Richard Henderson <rth@redhat.com>
13354 Jakub Jelinek <jakub@redhat.com>
13357 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
13358 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
13360 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
13362 PR middle-end/47725
13363 * combine.c (cant_combine_insn_p): Don't check zero/sign
13364 extended hard registers.
13366 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
13368 PR middle-end/47725
13369 * combine.c (cant_combine_insn_p): Check zero/sign extended
13372 2011-03-17 Anatoly Sokolov <aesok@post.ru>
13374 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13375 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
13376 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
13377 Change return type to bool.
13378 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13380 2011-03-17 Jakub Jelinek <jakub@redhat.com>
13383 * var-tracking.c (prepare_call_arguments): If CALL target
13384 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
13385 pc instead of looking it up using cselib_lookup and use
13386 Pmode for it if x has VOIDmode.
13387 * dwarf2out.c (gen_subprogram_die): If also both first and
13388 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
13391 * function.c (assign_parms): For data.passed_pointer parms
13392 use MEM of data.entry_parm instead of data.entry_parm itself
13393 as DECL_INCOMING_RTL.
13394 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
13395 also when passed and declared mode is the same, DECL_RTL
13396 is a MEM with pseudo as address and DECL_INCOMING_RTL is
13399 2011-03-16 Jeff Law <law@redhat.com>
13401 PR rtl-optimization/37273
13402 * ira-costs.c (scan_one_insn): Detect constants living in memory and
13403 handle them like argument loads from stack slots. Do not double
13404 count memory for memory constants and argument loads from stack slots.
13406 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
13409 * var-tracking.c (prepare_call_arguments): Check SUBREG.
13411 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
13414 * config/i386/i386.opt: Add Save to -mavx and -mfma.
13416 2011-03-17 Jakub Jelinek <jakub@redhat.com>
13419 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
13421 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
13422 Clear call_arg_locations and call_arg_loc_last always.
13424 PR middle-end/48152
13425 * var-tracking.c (prepare_call_arguments): If argument needs to be
13426 passed by reference, adjust argtype and mode.
13428 2011-03-17 Richard Guenther <rguenther@suse.de>
13430 PR middle-end/48134
13431 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
13432 a value make sure to fold the statement.
13434 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
13437 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
13438 return condition with !cfun->calls_alloca.
13440 2011-03-17 Richard Guenther <rguenther@suse.de>
13443 * lto-cgraph.c (input_overwrite_node): Clear the abstract
13444 origin for decls in other ltrans units.
13445 (input_varpool_node): Likewise.
13447 2011-03-17 Richard Guenther <rguenther@suse.de>
13449 PR middle-end/48165
13450 * tree-object-size.c (compute_object_offset): Properly return
13451 the offset operand of MEM_REFs as sizetype.
13453 2011-03-17 Jakub Jelinek <jakub@redhat.com>
13455 PR rtl-optimization/48141
13456 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
13457 * dse.c: Include params.h.
13458 (active_local_stores_len): New variable.
13459 (add_wild_read, dse_step1): Clear it when setting active_local_stores
13461 (record_store, check_mem_read_rtx): Decrease it when removing
13463 (scan_insn): Likewise. Increase it when adding to chain, if it
13464 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
13465 set active_local_stores to NULL before the addition.
13466 * Makefile.in (dse.o): Depend on $(PARAMS_H).
13468 PR rtl-optimization/48141
13469 * dse.c (record_store): If no positions are needed in an insn
13470 that cannot be deleted, at least unchain it from active_local_stores.
13472 2011-03-16 Dodji Seketeli <dodji@redhat.com>
13475 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
13476 (lookup_type_die_strip_naming_typedef): ... here.
13477 (get_context_die): Use it.
13478 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
13479 the anonymous struct named by the naming typedef.
13481 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
13484 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
13485 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
13487 2011-03-16 Jeff Law <law@redhat.com>
13489 * tree-vrp.c (identify_jump_threads): Slightly simplify type
13490 check for operands of conditional. Allow type to be a pointer.
13492 2011-03-16 Richard Guenther <rguenther@suse.de>
13494 PR tree-optimization/48149
13495 * fold-const.c (fold_binary_loc): Fold
13496 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
13498 2011-03-16 Richard Guenther <rguenther@suse.de>
13500 PR tree-optimization/26134
13501 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
13502 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
13503 (non_rewritable_mem_ref_base): Handle complex type component
13504 accesses, constrain offsets for vector and complex extracts
13507 2011-03-16 Richard Guenther <rguenther@suse.de>
13509 PR tree-optimization/48146
13510 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
13511 operands avoiding the need for renaming.
13513 2011-03-16 Richard Guenther <rguenther@suse.de>
13515 * gimple-fold.c (maybe_fold_reference): Open-code relevant
13516 constant folding. Move MEM_REF canonicalization first.
13517 Rely on fold_const_aggregate_ref for initializer folding.
13518 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
13520 2011-03-16 Jakub Jelinek <jakub@redhat.com>
13522 PR middle-end/48136
13523 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
13524 arg0/arg1 or their arguments are always fold converted to matching
13527 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
13530 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13533 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
13534 Handle in-tree gold.
13535 (ld_vers): Extract binutils version for gold.
13536 (gcc_cv_ld_hidden): Handle gold here.
13537 (gcc_cv_lto_plugin): Determine level of linker plugin support.
13538 * configure: Regenerate.
13539 * config.in: Regenerate.
13540 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
13541 -fuse-linker-plugin otherwise.
13542 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
13543 (LINK_COMMAND_SPEC): Use it.
13544 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
13546 2011-03-16 Jakub Jelinek <jakub@redhat.com>
13548 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
13549 * calls.c: Remove debug.h include.
13550 (emit_call_1): Don't call virtual_call_token debug hook.
13551 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
13552 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
13553 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
13554 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
13555 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
13556 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
13557 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
13558 dwarf2out_virtual_call): Remove.
13559 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
13560 copy_call_info and virtual_call hooks.
13561 (dwarf2out_init): Don't initialize vcall_insn_table,
13562 debug_dcall_section and debug_vcall_section.
13563 (prune_unused_types): Don't mark nodes from dcall_table.
13564 (dwarf2out_finish): Don't output dcall or vcall tables.
13565 * final.c (final_scan_insn): Don't call direct_call or
13566 virtual_call debug hooks.
13567 * debug.h (struct gcc_debug_hooks): Remove direct_call,
13568 virtual_call_token, copy_call_info and virtual_call hooks.
13569 (debug_nothing_uid): Remove prototype.
13570 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
13571 copy_call_info and virtual_call hooks.
13572 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
13573 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
13574 * debug.c (do_nothing_debug_hooks): Likewise.
13575 (debug_nothing_uid): Remove.
13576 * doc/invoke.texi (-fenable-icf-debug): Remove.
13577 * common.opt (-fenable-icf-debug): Likewise.
13579 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
13580 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
13581 call's MEM. Handle functions returning aggregate through a hidden
13582 first pointer. For virtual calls add clobbered pc to call arguments
13584 * dwarf2out.c (gen_subprogram_die): Emit
13585 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
13589 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
13590 * rtl.h (ENTRY_VALUE_EXP): Define.
13591 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
13592 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
13593 * print-rtl.c (print_rtx): Likewise.
13594 * gengtype.c (adjust_field_rtx_def): Likewise.
13595 * var-tracking.c (vt_add_function_parameter): Adjust
13596 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
13597 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
13598 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
13599 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
13600 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
13602 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
13603 Call var_location debug hook even on CALL_INSNs.
13604 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
13605 * rtl.def (ENTRY_VALUE): New.
13606 * dwarf2out.c: Include cfglayout.h.
13607 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
13608 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
13609 (struct call_arg_loc_node): New type.
13610 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
13611 tail_call_site_count): New variables.
13612 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
13613 DW_TAG_GNU_call_site_parameter.
13614 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
13615 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
13616 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
13617 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
13618 and DW_AT_GNU_all_source_call_sites.
13619 (mem_loc_descriptor): Handle ENTRY_VALUE.
13620 (add_src_coords_attributes): Don't add enything if
13621 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
13622 (dwarf2out_abstract_function): Save and clear call_arg_location,
13623 call_site_count and tail_call_site_count around dwarf2out_decl call.
13624 (gen_call_site_die): New function.
13625 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
13626 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
13627 (dwarf2out_function_decl): Clear call_arg_locations,
13628 call_arg_loc_last, set call_site_count and tail_call_site_count
13629 to -1 and free block_map.
13630 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
13631 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
13632 followed by any real instructions.
13633 (dwarf2out_begin_function): Set call_site_count and
13634 tail_call_site_count to 0.
13635 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
13636 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
13637 attempt to force a DIE for it and worst case remove the attribute.
13638 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
13639 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
13641 * var-tracking.c: Include tm_p.h.
13642 (vt_stack_adjustments): For calls call note_register_arguments.
13643 (argument_reg_set): New variable.
13644 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
13645 ensure the VALUE is resolved.
13646 (call_arguments): New variable.
13647 (prepare_call_arguments): New function.
13648 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
13649 (struct expand_loc_callback_data): Add ignore_cur_loc field.
13650 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
13651 always use the best expression.
13652 (vt_expand_loc): Add ignore_cur_loc argument.
13653 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
13654 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
13655 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
13656 note for all calls.
13657 (vt_add_function_parameter): Use cselib_lookup_from_insn.
13658 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
13659 argument. Don't call cselib_preserve_only_values and
13660 cselib_reset_table.
13661 (note_register_arguments): New function.
13662 (vt_initialize): Compute argument_reg_set. Call
13663 vt_add_function_parameters before processing basic blocks instead of
13664 afterwards. For calls call prepare_call_arguments before calling
13665 cselib_process_insn.
13666 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
13667 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
13668 (var-tracking.o): Depend on $(TM_P_H).
13669 * cfglayout.h (insn_scope): New prototype.
13670 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
13671 * cfglayout.c (insn_scope): No longer static.
13672 * insn-notes.def (CALL_ARG_LOCATION): New.
13673 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
13674 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
13675 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
13676 nothing for DECL_EXTERNAL BLOCK_VARS.
13678 2011-03-16 Alan Modra <amodra@gmail.com>
13681 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
13682 create invalid offset address for vsx splat insn.
13683 * config/rs6000/predicates.md (splat_input_operand): New.
13684 * config/rs6000/vsx.md (vsx_splat_*): Use it.
13686 2011-03-15 Xinliang David Li <davidxl@google.com>
13689 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
13690 (normalize_preds): New function.
13691 (is_use_properly_guarded): Normalize def predicates.
13693 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13696 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
13697 in the output template.
13699 2011-03-15 Richard Guenther <rguenther@suse.de>
13701 PR middle-end/47650
13702 * tree-pretty-print.c (dump_function_declaration): Properly
13703 dump unprototyped and varargs function types.
13705 2011-03-15 Richard Guenther <rguenther@suse.de>
13707 PR tree-optimization/13954
13708 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
13711 2011-03-15 Richard Guenther <rguenther@suse.de>
13713 PR tree-optimization/48037
13714 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
13715 selects into BIT_FIELD_REFs.
13716 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
13719 2011-03-15 Jakub Jelinek <jakub@redhat.com>
13721 PR tree-optimization/48129
13722 * builtins.c (fold_builtin_snprintf): Convert to type of
13723 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
13724 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
13726 2011-03-15 Richard Guenther <rguenther@suse.de>
13728 PR tree-optimization/41490
13729 * tree-ssa-dce.c (propagate_necessity): Handle returns without
13730 value but with VUSE.
13731 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
13733 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
13734 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
13735 * tree-tailcall.c (find_tail_calls): Ignore returns.
13737 2011-03-15 Richard Guenther <rguenther@suse.de>
13739 PR middle-end/48031
13740 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
13741 or variable-indexed array accesses when in gimple form.
13743 2011-03-15 Richard Guenther <rguenther@suse.de>
13745 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
13747 2011-03-15 Alan Modra <amodra@gmail.com>
13750 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
13751 presume symbol_refs without a symbol_ref_decl are suitably
13752 aligned, nor other trees we may see here. Handle anchor symbols.
13753 (legitimate_constant_pool_address_p): Comment. Add mode param.
13754 Check cmodel=medium addresses. Adjust all calls.
13755 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
13756 creating cmodel=medium optimized access to locals.
13757 * config/rs6000/constraints.md (R): Pass QImode to
13758 legitimate_constant_pool_address_p.
13759 * config/rs6000/predicates.md (input_operand): Pass mode to
13760 legitimate_constant_pool_address_p.
13761 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
13764 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
13767 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
13768 64-bit constants being loaded into registers other than GPRs such
13769 as loading 0 into a VSX register.
13771 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13773 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
13775 2011-03-14 Jakub Jelinek <jakub@redhat.com>
13777 PR middle-end/47917
13778 * builtins.c (fold_builtin_snprintf): New function.
13779 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
13780 (fold_builtin_4): Likewise.
13782 PR middle-end/38878
13783 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
13784 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
13785 and C - X == X also strip nops from +/-/p+ operand.
13786 When optimizing -X == C, fold C to arg0's type.
13789 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
13790 emit it as add_AT_int instead of add_AT_unsigned.
13792 2011-03-14 Tom Tromey <tromey@redhat.com>
13794 * unwind-dw2.c: Include sys/sdt.h if it exists.
13795 (_Unwind_DebugHook): Use STAP_PROBE2.
13796 * config.in, configure: Rebuild.
13797 * configure.ac: Check for sys/sdt.h.
13799 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
13801 * config/i386/i386.md (ROUND_FLOOR): New constant.
13802 (ROUND_CEIL): Ditto.
13803 (ROUND_TRUNC): Ditto.
13804 (ROUND_MXCSR): Ditto.
13805 (ROUND_NO_EXC): Ditto.
13806 (rint<mode>2): Use new defines instead of numerical constants.
13807 (floor<mode>2): Ditto.
13808 (ceil<mode>2): Ditto.
13809 (btrunc<mode>2): Ditto.
13810 * config/i386/i386-builtin-types.def: Define ROUND function type
13812 * config/i386/i386.c (enum ix86_builtins): Add
13813 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
13814 (struct builtin_description): Add
13815 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
13816 (ix86_expand_sse_round): New static function.
13817 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
13819 (ix86_builtin_vectorized_function): Handle
13820 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
13822 2011-03-14 Tom Tromey <tromey@redhat.com>
13824 * c-parser.c (c_parser_asm_string_literal): Clear
13825 warn_overlength_strings.
13827 2011-03-14 Tom Tromey <tromey@redhat.com>
13829 * c-parser.c (disable_extension_diagnostics): Save
13830 warn_overlength_strings.
13831 (restore_extension_diagnostics): Restore warn_overlength_strings.
13833 2011-03-14 Jakub Jelinek <jakub@redhat.com>
13835 * BASE-VER: Change to 4.7.0.
13837 2011-03-14 Richard Guenther <rguenther@suse.de>
13839 PR middle-end/48098
13840 * tree.c (build_vector_from_val): Adjust assert to requirements
13843 2011-03-14 Jakub Jelinek <jakub@redhat.com>
13846 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
13848 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
13850 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
13851 terms of target_flags_explicit. Adjust copyright year.
13853 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
13854 * config/rs6000/t-freebsd: New file. Add override for
13857 2011-03-13 Chris Demetriou <cgd@google.com>
13859 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
13860 (-fno-diagnostics-show-option): this, to reflect current default.
13861 (-Werror=): Update text about -fno-diagnostics-show-option.
13863 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
13866 * config/rs6000/predicates.md (easy_vector_constant_add_self,
13867 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
13868 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
13869 mode is not V2DImode or V2DFmode.
13870 (vspltis_constant): Do not handle V2DImode and V2DFmode.
13871 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
13872 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
13874 (movdi_internal64): Likewise.
13876 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
13878 PR tree-optimization/47127
13879 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
13881 (set_cloog_options): Same.
13882 (scop_to_clast): Same.
13883 (print_clast_stmt): Do not call cloog_state_malloc and
13885 (print_generated_program): Same.
13887 * graphite-clast-to-gimple.h (cloog_state): Declared.
13888 (scop_to_clast): Adjust declaration.
13889 * graphite.c (cloog_state): Defined here.
13890 (graphite_initialize): Call cloog_state_malloc.
13891 (graphite_finalize): Call cloog_state_free.
13893 2011-03-11 Jason Merrill <jason@redhat.com>
13895 * attribs.c (lookup_attribute_spec): Take const_tree.
13898 2011-03-11 Joseph Myers <joseph@codesourcery.com>
13900 * config/sparc/sparc.c (sparc_option_override): Use
13901 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
13903 2011-03-11 Richard Guenther <rguenther@suse.de>
13905 PR tree-optimization/48067
13906 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
13907 multiplication result will be only used once on the target
13910 2011-03-11 Richard Guenther <rguenther@suse.de>
13912 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
13914 2011-03-11 Richard Guenther <rguenther@suse.de>
13917 * tree.c (find_decls_types_r): Do not walk types only reachable
13918 from IDENTIFIER_NODEs.
13920 2011-03-11 Jakub Jelinek <jakub@redhat.com>
13922 PR middle-end/48044
13923 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
13924 all vnode->force_output nodes as needed.
13926 2011-03-11 Jason Merrill <jason@redhat.com>
13929 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
13930 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
13932 2011-03-11 Martin Jambor <mjambor@suse.cz>
13934 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
13937 2011-03-11 Jakub Jelinek <jakub@redhat.com>
13939 PR tree-optimization/48063
13940 * ipa-inline.c (cgraph_decide_inlining): Don't try to
13941 inline functions called once if !tree_can_inline_p (node->callers).
13943 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
13945 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
13947 * config/score/score3.c: Delete.
13948 * config/score/score3.h: Delete.
13949 * config/score/mul-div.S: Delete.
13950 * config/score/sfp-machine.h: Add new file.
13951 * config/score/constraints.md: Add new file.
13952 * config/score/t-score-softfp: Add new file.
13953 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
13954 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
13955 (score7_extra_constraint): Delete.
13956 (score7_option_override): Remove unused code.
13957 * config/score/score.c: Remove score3 and score5 define and code.
13958 * config/score/score.h: Remove score3 and score5 define and code.
13959 * config/score/score.md: Remove score3 template and unusual insn.
13960 * config/score/score.opt: Remove score3 and score5 options.
13962 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13964 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
13965 when _HPUX_SOURCE is defined.
13966 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
13968 2011-03-10 Jason Merrill <jason@redhat.com>
13971 * stor-layout.c (layout_type): Don't set structural equality
13972 on arrays of incomplete type.
13973 * tree.c (type_hash_eq): Handle comparing them properly.
13975 2011-03-10 Jakub Jelinek <jakub@redhat.com>
13978 * config/s390/s390.c (s390_delegitimize_address): Make sure the
13979 result mode matches original rtl mode.
13981 2011-03-10 Nick Clifton <nickc@redhat.com>
13983 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
13984 (andsi3, andsi3_flags): Fix timings for three operand alternative.
13986 2011-03-09 Jakub Jelinek <jakub@redhat.com>
13988 PR rtl-optimization/47866
13989 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
13990 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
13991 if target wasn't scalar.
13992 * function.c (assign_stack_temp_for_type): Assert that neither
13993 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
13994 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
13996 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
13998 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14000 * config/s390/s390-protos.h (s390_label_align): New prototype.
14001 * config/s390/s390.c (s390_label_align): New function.
14002 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
14004 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
14007 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
14008 V2DI/V2DF constants. Only all 0's or all 1's are easy.
14009 (output_vec_const_move): Ditto.
14011 2011-03-08 Anatoly Sokolov <aesok@post.ru>
14013 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
14014 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
14015 * config/mips/mips.c (mips_preferred_reload_class): Make static.
14016 Change 'rclass' argument and result type to reg_class_t.
14017 (TARGET_PREFERRED_RELOAD_CLASS): Define.
14019 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
14021 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
14022 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
14023 (TARGET_MEMORY_MOVE_COST): Define.
14024 (avr_register_move_cost, avr_memory_move_cost): New Functions.
14026 2011-03-08 Jakub Jelinek <jakub@redhat.com>
14029 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
14032 PR tree-optimization/48022
14033 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
14036 2011-03-07 Jakub Jelinek <jakub@redhat.com>
14039 * var-tracking.c (find_use_val): Return NULL for
14040 cui->sets && cui->store_p BLKmode MEMs.
14042 2011-03-07 Anatoly Sokolov <aesok@post.ru>
14044 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
14046 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
14047 xstormy16_print_operand_address): Remove.
14048 * config/stormy16/stormy16.c (xstormy16_print_operand,
14049 xstormy16_print_operand_address): Make static.
14050 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
14052 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
14055 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
14056 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
14059 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
14062 * cfgloopmanip.c (fix_bb_placements): Return immediately
14063 if FROM is BASE_LOOP's header.
14065 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
14067 * gimplify.c (gimplify_function_tree): Fix building calls
14068 to __builtin_return_address.
14070 2011-03-07 Alan Modra <amodra@gmail.com>
14072 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
14073 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
14074 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
14075 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
14077 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
14078 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
14079 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
14080 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
14081 * config/rs6000/rs6000.c
14082 (rs6000_elf_end_indicate_exec_stack): Rename to..
14083 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
14084 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
14085 (rs6000_file_start): ..here.
14086 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
14087 file scope variables.
14088 (call_ABI_of_interest): New function.
14089 (init_cumulative_args): Set above vars when function return value
14090 is a float, vector, or small struct.
14091 (rs6000_function_arg_advance_1): Likewise for function args.
14092 (rs6000_va_start): Set rs6000_passes_float if variable arg function
14093 references float args.
14095 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
14097 * doc/cfg.texi: Remove "See" before @ref.
14098 * doc/invoke.texi: Likewise.
14100 2011-03-05 Jason Merrill <jason@redhat.com>
14102 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
14104 2011-03-05 Anthony Green <green@moxielogic.com>
14106 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
14108 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
14110 PR rtl-optimization/47899
14111 * cfgloopmanip.c (fix_bb_placements): Fix first argument
14112 to flow_loop_nested_p when moving the loop upward.
14114 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
14117 * arm.md (movhi_insn_arch4): Accept any immediate constant.
14119 2011-03-05 Jakub Jelinek <jakub@redhat.com>
14121 PR tree-optimization/47967
14122 * ipa-cp.c (build_const_val): Return NULL instead of creating
14123 VIEW_CONVERT_EXPR for mismatching sizes.
14124 (ipcp_create_replace_map): Return NULL if build_const_val failed.
14125 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
14126 give up on versioning.
14128 2011-03-05 Alan Modra <amodra@gmail.com>
14131 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
14132 full cmodel medium/large lo_sum + high addresses.
14134 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14136 * config/s390/s390.c (s390_decompose_address): Reject non-literal
14137 pool references in UNSPEC_LTREL_OFFSET.
14139 2011-03-04 Jan Hubicka <jh@suse.cz>
14142 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
14143 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
14144 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
14146 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
14147 cgraph_add_thunk): Add node pointers.
14148 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
14149 associated to right node.
14150 (input_node): Update use of cgraph_same_body_alias
14151 and cgraph_add_thunk.
14153 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
14155 * config/i386/i386.opt (mprefer-avx128): New flag.
14156 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
14157 modes when the flag -mprefer-avx128 is on.
14159 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
14161 * dwarf2out.c (compare_loc_operands): Fix address handling.
14163 2011-03-04 Alan Modra <amodra@gmail.com>
14165 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
14167 2011-03-04 Richard Guenther <rguenther@suse.de>
14169 PR middle-end/47968
14170 * expmed.c (extract_bit_field_1): Prefer vector modes that
14171 vec_extract patterns can handle.
14173 2011-03-04 Richard Guenther <rguenther@suse.de>
14175 PR middle-end/47975
14176 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
14178 2011-03-04 Richard Henderson <rth@redhat.com>
14180 * explow.c (emit_stack_save): Remove 'after' parameter.
14181 (emit_stack_restore): Likewise.
14182 * expr.h: Update to match.
14183 * builtins.c, calls.c, stmt.c: Likewise.
14184 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
14185 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
14186 * function.c (expand_function_end): Insert the emit_stack_save
14187 sequence before parm_birth_insn instead of after.
14189 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
14191 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
14192 (ssse3_pmaddubsw128): Ditto.
14193 (ssse3_pmaddubsw): Ditto.
14195 2011-03-03 Steve Ellcey <sje@cup.hp.com>
14197 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
14199 2011-03-03 Jakub Jelinek <jakub@redhat.com>
14202 * gimplify.c (omp_add_variable): Only call omp_notice_variable
14203 on TYPE_SIZE_UNIT if it is a DECL.
14206 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
14207 first operand is not is_gimple_mem_ref_addr, try to fold it.
14208 If the operand still isn't is_gimple_mem_ref_addr, clear
14211 2011-03-03 Richard Guenther <rguenther@suse.de>
14213 PR middle-end/47283
14214 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
14216 (refs_may_alias_p_1): For release branches return true if
14217 we are confused by our input.
14219 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14221 * config/s390/s390.c (s390_function_value): Rename to ...
14222 (s390_function_and_libcall_value): ... this.
14223 (s390_function_value): New function.
14224 (s390_libcall_value): New function.
14225 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
14226 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
14227 target macro definitions.
14228 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
14230 2011-03-02 Joseph Myers <joseph@codesourcery.com>
14232 * config/i386/freebsd64.h (CC1_SPEC): Define.
14233 * config/i386/linux64.h (CC1_SPEC): Define.
14234 * config/i386/x86-64.h (CC1_SPEC): Don't define.
14236 2011-03-02 Anatoly Sokolov <aesok@post.ru>
14238 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
14240 * config/stormy16/stormy16.c: Include reload.h.
14241 (xstormy16_memory_move_cost): New function.
14242 (TARGET_MEMORY_MOVE_COST): Define.
14244 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
14246 PR rtl-optimization/47925
14247 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
14248 with side effects. Remove the more-specific check for volatile asms.
14250 2011-03-02 Alan Modra <amodra@gmail.com>
14253 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
14254 toc relative addresses for valid offsets.
14256 2011-03-01 Richard Guenther <rguenther@suse.de>
14258 PR tree-optimization/47890
14259 * tree-vect-loop.c (get_initial_def_for_induction): Set
14260 related stmt properly.
14262 2011-03-01 Richard Guenther <rguenther@suse.de>
14265 * lto-streamer.c (lto_record_common_node): Also register
14266 the canonical type.
14268 2011-03-01 Richard Guenther <rguenther@suse.de>
14271 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
14272 Do not stream DECL_ABSTRACT_ORIGIN.
14273 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
14274 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
14275 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
14276 Do not stream DECL_ABSTRACT_ORIGIN.
14277 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
14278 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
14280 2011-02-28 Anatoly Sokolov <aesok@post.ru>
14282 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
14283 FUNCTION_VALUE_REGNO_P): Remove.
14284 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
14285 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
14286 Add 'outgoing' argument.
14287 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
14289 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
14290 TARGET_FUNCTION_VALUE_REGNO_P): Define.
14292 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
14295 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
14296 (lookup_filename): Likewise.
14297 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
14299 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
14300 Jakub Jelinek <jakub@redhat.com>
14302 PR middle-end/47893
14303 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
14304 (assign_stack_local_1): Change last argument type to int.
14305 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
14306 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
14307 don't record padding space into frame_space_list nor use those areas.
14308 (assign_stack_local): Adjust caller.
14309 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
14310 of assign_stack_local, pass 0 as last argument.
14311 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
14314 2011-02-28 Jakub Jelinek <jakub@redhat.com>
14317 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
14318 Use target address_mode and pointer_mode hooks instead of hardcoded
14319 Pmode and ptr_mode. Handle some simple cases of extending if
14320 POINTERS_EXTEND_UNSIGNED < 0.
14321 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
14322 Call convert_debug_memory_address.
14323 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
14324 convert_debug_memory_address.
14326 PR middle-end/46790
14327 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
14328 * configure: Regenerated.
14329 * config.in: Regenerated.
14330 * varasm.c (default_function_section): Return NULL
14331 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
14333 2011-02-28 Martin Jambor <mjambor@suse.cz>
14335 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
14336 the description to match the printed values.
14338 2011-02-28 Richard Guenther <rguenther@suse.de>
14340 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
14341 of the copied scope tree.
14343 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14345 * doc/extend.texi (Function Attributes): Avoid deeply (and
14346 wrongly) nested tables.
14348 2011-02-27 Jakub Jelinek <jakub@redhat.com>
14350 PR middle-end/47903
14351 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
14352 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
14353 r isn't op0 nor op1.
14355 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
14357 * config/avr/avr.md: Remove magic comment for emacs.
14359 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
14362 * config/avr/avr.c (avr_option_override): Use error on bad options.
14363 (avr_help): New function.
14364 (TARGET_HELP): Define.
14366 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
14369 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
14370 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
14372 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
14374 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
14375 (ARM Options): Ditto.
14376 (i386 and x86-64 Options): Ditto.
14377 (RX Options): Ditto.
14378 (SPARC Options): Ditto.
14380 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
14382 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
14383 FreeBSD 6 and later. Generally use cpu generic.
14385 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
14387 * doc/cpp.texi: Update copyright years.
14389 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
14392 * config/lm32/lm32.md (ashrsi3): Added needed variable.
14394 2011-02-25 Jon Beniston <jon@beniston.com>
14397 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
14398 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
14399 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
14400 (lm32_block_move_inline): Add type cast to remove warning.
14401 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
14402 (gen_int_relational): Move declarations to start of function.
14404 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
14406 PR tree-optimization/45470
14407 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
14408 can throw internally only.
14409 * tree-vect-stmts.c (vectorizable_call): Likewise.
14411 2011-02-24 Anatoly Sokolov <aesok@post.ru>
14413 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
14414 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
14415 * config/stormy16/stormy16-protos.h
14416 (xstormy16_preferred_reload_class): Remove.
14417 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
14418 static. Change 'rclass' argument and return type to reg_class_t.
14419 (TARGET_PREFERRED_RELOAD_CLASS,
14420 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
14422 2011-02-24 Richard Guenther <rguenther@suse.de>
14424 * lto-streamer-in.c (input_bb): Do not find referenced vars
14425 in debug statements.
14427 2011-02-23 Jason Merrill <jason@redhat.com>
14429 * common.opt (fabi-version): Document v5 and v6.
14431 2011-02-23 Richard Guenther <rguenther@suse.de>
14433 PR tree-optimization/47849
14434 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
14436 2011-02-23 Jie Zhang <jie@codesourcery.com>
14438 * opts-common.c (decode_cmdline_option): Print empty string
14439 argument as "" in decoded->orig_option_with_args_text.
14440 * gcc.c (execute): Print empty string argument as ""
14441 in the verbose output.
14442 (do_spec_1): Keep empty string argument.
14444 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
14446 * config.gcc: Declare score-* and crx-* obsolete.
14448 2011-02-23 Jie Zhang <jie@codesourcery.com>
14450 PR rtl-optimization/47763
14451 * web.c (web_main): Ignore naked clobber when replacing register.
14453 2011-02-22 Anatoly Sokolov <aesok@post.ru>
14455 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
14458 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
14461 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
14463 2011-02-22 Mike Stump <mikestump@comcast.net>
14465 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
14467 * configure: Regenerate.
14469 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
14471 PR rtl-optimization/46002
14472 * ira-color.c (update_copy_costs): Change class intersection
14473 test to reg_class_contents[] test of 'hard_regno'.
14475 2011-02-21 Joseph Myers <joseph@codesourcery.com>
14477 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
14478 than Driver option.
14479 * config/hpux11.opt (mt): Likewise.
14480 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
14481 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
14482 * config/vax/elf.opt (mno-asm-pic): Likewise.
14483 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
14485 2011-02-21 Mike Stump <mikestump@comcast.net>
14488 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
14489 tree so we can get save the type.
14490 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
14491 for CFString instead of trying to use past the end of the builtins.
14492 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
14493 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
14494 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
14495 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
14496 Rename to darwin_builtin_cfstring.
14497 (darwin_init_cfstring_builtins): Return the built type.
14499 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
14502 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
14503 (_mm256_insert_epi64): Use _mm_insert_epi64.
14505 2011-02-21 Anatoly Sokolov <aesok@post.ru>
14507 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
14508 * config/stormy16/stormy16-protos.h
14509 (xstormy16_mode_dependent_address_p): Remove.
14510 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
14511 Make static. Change return type to bool. Change argument type to
14512 const_rtx. Remove dead code.
14513 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14515 2011-02-21 Richard Guenther <rguenther@suse.de>
14518 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
14519 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
14520 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
14522 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
14523 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
14525 2011-02-20 Richard Guenther <rguenther@suse.de>
14528 * tree.c (free_lang_data_in_decl): Clean builtins from
14529 the TU decl BLOCK_VARS.
14531 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
14535 * haifa-sched.c (fix_tick_ready): Skip tick computation
14538 2011-02-19 Richard Guenther <rguenther@suse.de>
14541 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
14542 Remove lazy BLOCK_VARS streaming.
14543 (lto_input_ts_block_tree_pointers): Likewise.
14544 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
14546 2011-02-19 Joseph Myers <joseph@codesourcery.com>
14548 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
14550 2011-02-19 Joseph Myers <joseph@codesourcery.com>
14552 * config/i386/biarch32.h, config/i386/mach.h,
14553 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
14555 2011-02-19 Jakub Jelinek <jakub@redhat.com>
14558 * config/i386/i386.md (peephole2 for shift and plus): Use
14559 operands[1] original mode in the first insn.
14561 2011-02-18 Mike Stump <mikestump@comcast.net>
14563 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
14565 2011-02-18 Jan Hubicka <jh@suse.cz>
14567 PR middle-end/47788
14568 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
14569 to zero when the function is not inlinable at all.
14571 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14573 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
14574 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
14575 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
14576 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
14577 * config/pa/t-pa64: Likewise.
14578 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
14580 2011-02-18 Jakub Jelinek <jakub@redhat.com>
14583 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
14585 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14588 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
14590 2011-02-18 Anatoly Sokolov <aesok@post.ru>
14592 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
14593 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
14594 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
14595 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
14596 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
14597 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
14598 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
14599 m32r_load_postinc_p, m32r_store_preinc_predec_p,
14600 m32r_legitimate_address_p): New functions.
14601 * config/m32r/constraints.md (constraint "S"): Don't use
14602 STORE_PREINC_PREDEC_P.
14603 (constraint "U"): Don't use LOAD_POSTINC_P.
14605 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
14607 PR rtl-optimization/46178
14608 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
14609 compute ira_hard_regno_cover_class[].
14611 2011-02-18 Richard Guenther <rguenther@suse.de>
14614 * lto-streamer.h (lto_global_var_decls): Declare.
14615 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
14616 statics for global var processing.
14618 2011-02-18 Richard Guenther <rguenther@suse.de>
14620 PR tree-optimization/47737
14621 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
14622 edge dominance check.
14624 2011-02-18 Jakub Jelinek <jakub@redhat.com>
14627 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
14628 avoid invalid rtx sharing.
14630 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
14632 * doc/cpp.texi (Obsolete Features): Add background on the
14633 origin of assertions.
14635 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
14637 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
14639 * config/darwin.c (output_objc_section_asm_op): Added support for
14641 (is_objc_metadata): New.
14642 (darwin_objc2_section): New.
14643 (darwin_objc1_section): New.
14644 (machopic_select_section): Added support for ABI v1 and v2.
14645 (darwin_emit_objc_zeroed): New.
14646 (darwin_output_aligned_bss): Detect objc metadata and treat it
14648 (darwin_asm_output_aligned_decl_common): Same.
14649 (darwin_asm_output_aligned_decl_local): Same.
14650 * config/darwin-sections.def: Updated for ABI v1 and v2.
14651 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
14652 compiling Objective-C code for the NeXT runtime, default to using
14653 ABI version 0 for 32-bit, and version 2 for 64-bit.
14655 2011-02-17 Joseph Myers <joseph@codesourcery.com>
14657 * common.opt (optimize_fast): New Variable.
14658 * opts.c (default_options_optimization): Use opts->x_optimize_fast
14659 instead of local variable ofast.
14661 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
14663 * doc/invoke.texi (fobjc-abi-version): Documented.
14664 (fobjc-nilcheck): Documented.
14665 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
14668 2011-02-17 Joseph Myers <joseph@codesourcery.com>
14671 * common.opt (export-dynamic): New Driver option.
14672 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
14674 2011-02-17 Joseph Myers <joseph@codesourcery.com>
14676 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
14678 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
14679 Jan Hubicka <jh@suse.cz>
14683 * cfgexpand.c (account_used_vars_for_block): Remove.
14684 (estimated_stack_frame_size): Use referenced vars.
14685 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
14686 that were referenced in the original function. Test src_fn
14687 rather than cfun. Drop redundant get_var_ann.
14688 (setup_one_parameter): Drop redundant get_var_ann.
14689 (declare_return_variable): Likewise.
14690 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
14691 (copy_arguments_for_versioning): Drop redundant get_var_ann.
14692 * ipa-inline.c (compute_inline_parameters): Do not compute
14693 disregard_inline_limits here.
14694 (compute_inlinable_for_current, pass_inlinable): New.
14695 (pass_inline_parameters): Require PROP_referenced_vars.
14696 * cgraphunit.c (cgraph_process_new_functions): Don't run
14697 compute_inline_parameters explicitly unless function is in SSA form.
14698 (cgraph_analyze_function): Set .disregard_inline_limits.
14699 * tree-sra.c (convert_callers): Compute inliner parameters
14700 only for functions already in SSA form.
14702 2011-02-17 Joseph Myers <joseph@codesourcery.com>
14704 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
14705 -mlittle-endian-data.
14707 2011-02-17 Joseph Myers <joseph@codesourcery.com>
14709 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
14710 -mno-fpu, not -fpu and -no-fpu.
14711 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
14712 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
14714 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
14717 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
14718 input reload with PLUS RTX.
14720 2011-02-16 Joseph Myers <joseph@codesourcery.com>
14722 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
14723 of InverseVar(MDMX).
14725 2011-02-16 Joseph Myers <joseph@codesourcery.com>
14727 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
14730 2011-02-16 Joseph Myers <joseph@codesourcery.com>
14732 * config/mn10300/mn10300.opt (mno-crt0): New.
14734 2011-02-16 Joseph Myers <joseph@codesourcery.com>
14736 * config/m68k/uclinux.opt (static-libc): New Driver option.
14738 2011-02-16 Joseph Myers <joseph@codesourcery.com>
14740 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
14742 2011-02-16 Joseph Myers <joseph@codesourcery.com>
14744 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
14745 %{muser-extend-enabled}.
14747 2011-02-16 Richard Guenther <rguenther@suse.de>
14749 PR tree-optimization/47738
14750 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
14751 the TODO from tree_predictive_commoning.
14753 2011-02-15 Jeff Law <law@redhat.com>
14756 2011-01-25 Jeff Law <law@redhat.com>
14758 PR rtl-optimization/37273
14759 * ira-costs.c (scan_one_insn): Detect constants living in memory and
14760 handle them like argument loads from stack slots. Do not double
14761 count memory for memory constants and argument loads from stack slots.
14763 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
14765 PR middle-end/47725
14766 * combine.c (cant_combine_insn_p): Revert the last change.
14768 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
14771 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
14772 mode for vector constants. Remove code that checks for TImode.
14774 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
14778 * cgraph.h (compute_inline_parameters): Return void.
14779 * ipa-inline.c (compute_inline_parameters): Adjust.
14781 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
14785 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
14787 * cfgexpand.c (estimated_stack_frame_size): Likewise.
14788 * ipa-inline.c (compute_inline_parameters): Adjust.
14790 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
14794 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
14795 Adjust all users. Pass FN to...
14796 * tree-flow-inline.h (first_referenced_var): ... this. Add
14798 * ipa-struct-reorg.c: Adjust.
14799 * tree-dfa.c: Adjust.
14800 * tree-into-ssa.c: Adjust.
14801 * tree-sra.c: Adjust.
14802 * tree-ssa-alias.c: Adjust.
14803 * tree-ssa-live.c: Adjust.
14804 * tree-ssa.c: Adjust.
14805 * tree-ssanames.c: Adjust.
14806 * tree-tailcall.c: Adjust.
14808 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
14812 * tree-flow.h (referenced_var_lookup): Add fn parameter.
14813 Adjust all callers.
14814 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
14815 * tree-flow-inline.h: Adjust.
14816 * gimple-pretty-print.c: Adjust.
14817 * tree-into-ssa.c: Adjust.
14818 * tree-ssa.c: Adjust.
14819 * cfgexpand.c: Adjust.
14821 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
14823 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
14824 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14825 (EXTRA_CONSTRAINT): Delete.
14826 * config/iq2000/constraints.md: New file.
14827 * config/iq2000/iq2000.md: Include it.
14828 (define_insn ""): Delete.
14829 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
14830 unsupported constraint letters from patterns.
14831 (call_value, call_value_internal1): Likewise.
14832 (call_value_multiple_internal1): Likewise.
14834 2011-02-15 Nick Clifton <nickc@redhat.com>
14836 * config/mn10300/mn10300.c: Include tm-constrs.h.
14837 (struct liw_data): New data structure describing an LIW candidate
14839 (extract_bundle): Use struct liw_data. Allow small integer
14840 operands for some instructions.
14841 (check_liw_constraints): Use struct liw_data. Remove swapped
14842 parameter. Add comments describing the checks. Fix bug when
14843 assigning the source of liw1 to the source of liw2.
14844 (liw_candidate): Delete. Code moved into extract_bundle.
14845 (mn10300_bundle_liw): Use struct liw_data. Check constraints
14847 * config/mn10300/predicates.md (liw_operand): New predicate.
14848 Allows registers and small integer constants.
14849 * config/mn10300/constraints.md (O): New constraint. Accetps
14850 integers in the range -8 to +7 inclusive.
14851 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
14852 for moving a small integer into a register. Give this alternative
14854 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
14855 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
14856 using the J,K,L and M constraints,
14857 (liw): Remove SI mode on second operands to allow for HI and QI
14859 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
14862 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
14864 PR middle-end/47725
14865 * combine.c (cant_combine_insn_p): Check zero/sign extended
14868 2011-02-15 Richard Guenther <rguenther@suse.de>
14870 PR tree-optimization/47743
14871 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
14872 for a non-type-compatible VN lookup bail out.
14874 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
14876 * config/fr30/constraints.md: New file.
14877 * config/fr30/fr30.md: Include it.
14878 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
14879 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14880 (EXTRA_CONSTRAINT): Delete.
14882 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
14884 * config/frv/constraints.md: New file.
14885 * config/frv/predicates.md: Include it.
14886 * config/frv/frv.c (reg_class_from_letter): Delete.
14887 (frv_option_override): Don't initialize it.
14888 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
14889 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
14890 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
14891 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
14892 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
14893 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14894 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
14895 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
14896 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
14897 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
14898 (REG_CLASS_FROM_CONSTRAINT): Delete.
14900 2011-02-15 Jakub Jelinek <jakub@redhat.com>
14902 PR middle-end/47581
14903 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
14904 if frame size is 0 in a leaf function.
14906 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14909 * config/alpha/host-osf.c: New file.
14910 * config/alpha/x-osf: New file.
14911 * config.host (alpha*-dec-osf*): Use it.
14913 2011-02-14 Anatoly Sokolov <aesok@post.ru>
14915 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
14916 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
14917 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
14918 (rx_mode_dependent_address_p): ...this. Make static. Change argument
14920 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14922 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
14924 * config/stormy16/constraints.md: New file.
14925 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
14926 Use satisfies_constraint_Q and satisfies_constraint_R.
14927 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
14929 (xstormy16_legitiamte_address_p): Declare.
14930 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
14931 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14932 (EXTRA_CONSTRAINT): Delete.
14933 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
14935 (xstormy16_extra_constraint_p): Delete.
14937 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
14939 PR tree-optimization/46494
14940 * loop-unroll.c (split_edge_and_insert): Adjust comment.
14941 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
14942 (pass_rtl_loop_done): Add TODO_verify_flow.
14943 * fwprop.c (pass_rtl_fwprop): Likewise.
14944 * modulo-sched.c (pass_sms): Likewise.
14945 * tree-ssa-dom.c (pass_dominator): Likewise.
14946 * tree-ssa-loop-ch.c (pass_ch): Likewise.
14947 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
14948 (pass_tree_loop_done): Likewise.
14949 * tree-ssa-pre.c (execute_pre): Likewise.
14950 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
14951 * tree-ssa-sink.c (pass_sink_code): Likewise.
14952 * tree-vrp.c (pass_vrp): Likewise.
14954 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
14956 * config/v850/constraints.md: New file.
14957 * config/v850/v850.md: Include it.
14958 * config/v850/predicates.md (reg_or_0_operand): Use
14959 satisfies_constraint_G.
14960 (special_symbolref_operand): Use satisfies_constraint_K.
14961 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
14962 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
14963 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
14964 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
14965 (EXTRA_CONSTRAINT): Delete.
14966 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
14967 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
14968 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
14970 2011-02-14 Anatoly Sokolov <aesok@post.ru>
14973 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
14976 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
14978 * config/mcore/constraints.md: New file.
14979 * config/mcore/mcore.md: Include it.
14980 * config/mcore/mcore.c (reg_class_from_letter): Delete.
14981 * config/mcore/mcore.h (reg_class_from_letter): Delete.
14982 (REG_CLASS_FROM_LETTER): Delete.
14983 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
14984 insn_const_int_ok_for_constraint.
14985 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
14986 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
14987 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14988 (EXTRA_CONSTRAINT): Delete.
14990 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14993 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
14994 (IS_SIGHANDLER): Define.
14995 (sparc64_is_sighandler): New function, split off from
14996 sparc64_fallback_frame_state.
14997 (sparc_is_sighandler): New function, split off from
14998 sparc_fallback_frame_state.
14999 (sparc64_fallback_frame_state): Merge with ...
15000 (sparc_fallback_frame_state): ... this into ...
15001 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
15002 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
15003 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
15004 stack instead of hardcoded offsets.
15006 2011-02-14 Andriy Gapon <avg@freebsd.org>
15009 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
15011 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15013 * configure: Regenerate.
15015 2011-02-12 Joseph Myers <joseph@codesourcery.com>
15018 * gcc.c (asm_options): Correct spec matching --target-help.
15020 2011-02-12 Martin Jambor <mjambor@suse.cz>
15022 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
15023 to gimple call error.
15025 2011-02-12 Mike Stump <mikestump@comcast.net>
15027 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
15028 comments in backslash regions.
15030 2011-02-12 Mike Stump <mikestump@comcast.net>
15031 Jakub Jelinek <jakub@redhat.com>
15032 Iain Sandoe <iains@gcc.gnu.org>
15035 * dwarf2out.c (output_cfa_loc): When required, apply the
15036 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
15037 (output_loc_sequence): Likewise.
15038 (output_loc_operands_raw): Likewise.
15039 (output_loc_sequence_raw): Likewise.
15040 (output_cfa_loc): Likewise.
15041 (output_loc_list): Suppress register number adjustment when
15042 calling output_loc_sequence()
15043 (output_die): Likewise.
15045 2011-02-12 Anatoly Sokolov <aesok@post.ru>
15047 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
15049 * config/xtensa/xtensa.c (xtensa_register_move_cost,
15050 xtensa_memory_move_cost): New functions.
15051 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
15053 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
15056 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
15057 in the current directory.
15058 * configure: Rebuilt.
15060 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
15062 * config/darwin.c (darwin_override_options): Add a hunk missed
15063 from the commit of r168571. Trim comment line lengths and
15064 correct indents of the preceding block.
15066 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
15068 * gcc.c (driver_handle_option): Concatenate the argument to -F with
15071 2011-02-11 Joseph Myers <joseph@codesourcery.com>
15073 * common.opt (nostartfiles): New Driver option.
15075 2011-02-11 Xinliang David Li <davidxl@google.com>
15077 PR tree-optimization/47707
15078 * tree-chrec.c (convert_affine_scev): Keep type precision.
15080 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
15082 PR tree-optimization/47420
15083 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
15085 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
15087 PR rtl-optimization/47614
15088 * rtl.h (check_for_inc_dec): Declare.
15089 * dse.c (check_for_inc_dec): Externalize...
15090 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
15091 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
15093 2011-02-11 Joseph Myers <joseph@codesourcery.com>
15096 * gcc.c (main): Do not compile inputs if there were errors in
15098 * opts-common.c (read_cmdline_option): Check for wrong language
15099 after other error checks.
15101 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
15103 * cgraph.c: Fix comment typos.
15104 * cgraph.h: Likewise.
15105 * cgraphunit.c: Likewise.
15106 * ipa-cp.c: Likewise.
15107 * ipa-inline.c: Likewise.
15108 * ipa-prop.c: Likewise.
15109 * ipa-pure-const.c: Likewise.
15110 * ipa-ref.c: Likewise.
15111 * ipa-reference.c: Likewise.
15113 2011-02-11 Jakub Jelinek <jakub@redhat.com>
15116 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
15118 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15121 * doc/sourcebuild.texi (Require Support): Document
15122 dg-require-ascii-locale.
15124 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
15126 * doc/lto.texi (Write summary): Fix missing parentheses.
15128 2011-02-10 DJ Delorie <dj@redhat.com>
15130 * config/m32c/m32c.c (m32c_option_override): Disable
15131 -fcombine-stack-adjustments until flag value tracking and compare
15132 optimization can be rewritten.
15134 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
15136 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
15138 (PROCESSOR_DEFAULT64): Likewise.
15140 2011-02-10 Richard Henderson <rth@redhat.com>
15142 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
15143 change from 2011-02-03.
15144 * config/rx/rx.c (flags_from_code): Likewise.
15145 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
15146 is valid, n/pz otherwise.
15147 (rx_select_cc_mode): Return CCmode if Y is not zero.
15149 2011-02-10 Richard Guenther <rguenther@suse.de>
15151 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
15153 2011-02-10 Richard Guenther <rguenther@suse.de>
15155 PR tree-optimization/47677
15156 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
15158 2011-02-10 Jakub Jelinek <jakub@redhat.com>
15161 * combine.c (make_compound_operation): Only change shifts into
15162 multiplication for SCALAR_INT_MODE_P.
15164 2011-02-10 Jie Zhang <jie@codesourcery.com>
15168 2011-02-05 Jie Zhang <jie@codesourcery.com>
15170 * web.c (entry_register): Don't clobber the number of the
15171 first uninitialized reference in used[].
15173 2011-02-09 Richard Guenther <rguenther@suse.de>
15175 PR tree-optimization/47664
15176 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
15179 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
15183 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
15185 (PROCESSOR_DEFAULT64): Same.
15186 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
15188 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15190 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
15192 2011-02-09 Martin Jambor <mjambor@suse.cz>
15194 PR middle-end/45505
15195 * tree-sra.c (struct access): New flags grp_scalar_read and
15196 grp_scalar_write. Changed description of assignment read and write
15198 (dump_access): Dump new flags, reorder all of them.
15199 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
15200 to detect multiple scalar reads.
15201 (analyze_access_subtree): Use the new scalar read write flags instead
15202 of the old flags. Adjusted comments.
15204 2011-02-08 DJ Delorie <dj@redhat.com>
15207 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
15210 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15212 * config/m68k/uclinux.opt: New.
15213 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
15215 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15217 * config/cris/elf.opt (sim): New Driver option.
15219 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15221 * config/xtensa/elf.opt: New.
15222 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
15224 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15226 * config/vax/elf.opt: New.
15227 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
15229 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15231 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
15233 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15235 * config/gnu-user.opt: New.
15236 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
15237 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
15238 *-*-uclinux*): Use gnu-user.opt.
15240 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
15242 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
15243 * config/i386/gnu.h (CPP_SPEC): Likewise.
15245 2011-02-08 Ian Lance Taylor <iant@google.com>
15247 * common.opt (fcx-limited-range): Add SetByCombined flag.
15248 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
15249 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
15250 (fassociative-math, freciprocal-math): Likewise.
15251 (funsafe-math-optimizations): Likewise.
15252 * opth-gen.awk: Handle SetByCombined.
15253 * optc-gen.awk: Likewise.
15254 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
15255 (set_unsafe_math_optimizations_flags): Likewise.
15256 * doc/options.texi (Option properties): Document SetByCombined.
15258 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15260 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
15261 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
15262 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
15263 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
15264 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
15266 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
15268 PR tree-optimization/46834
15269 PR tree-optimization/46994
15270 PR tree-optimization/46995
15271 * graphite-sese-to-poly.c (used_outside_reduction): New.
15272 (detect_commutative_reduction): Call used_outside_reduction.
15273 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
15274 translate_scalar_reduction_to_array only when at least one
15275 loop-phi/close-phi tuple has been detected.
15277 2011-02-08 Richard Guenther <rguenther@suse.de>
15279 PR middle-end/47639
15280 * tree-vect-generic.c (expand_vector_operations_1): Update
15282 (expand_vector_operations): ... not here. Cleanup EH info
15283 and the CFG if required.
15285 2011-02-08 Richard Guenther <rguenther@suse.de>
15287 PR tree-optimization/47641
15288 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
15289 require type compatibility.
15291 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15293 * gimple-low.c (lower_function_body): Don't remove the location of
15294 the return statement here.
15295 (lower_gimple_return): Do it here instead but only if the return
15296 statement is actually used twice.
15298 2011-02-08 Richard Guenther <rguenther@suse.de>
15300 PR tree-optimization/47632
15301 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
15302 unused up_to_stmt parameter, return whether cfg-cleanup is
15303 necessary, remove EH info properly.
15304 (forward_propagate_into_gimple_cond): Adjust caller.
15305 (forward_propagate_into_cond): Likewise.
15306 (forward_propagate_comparison): Likewise.
15307 (tree_ssa_forward_propagate_single_use_vars): Make
15308 forward_propagate_comparison case similar to the two others.
15310 2011-02-08 Nick Clifton <nickc@redhat.com>
15312 * config/mn10300/mn10300.opt (mliw): New command line option.
15313 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
15314 (liw_bundling): New automaton.
15315 (liw): New attribute.
15316 (liw_op): New attribute.
15317 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
15318 (movsi_internal): Add LIW attributes.
15319 (andsi3): Likewise.
15320 (iorsi3): Likewise.
15321 (xorsi3): Likewise.
15322 (addsi3): Separate register and immediate alternatives.
15323 Add LIW attributes.
15324 (subsi3): Likewise.
15326 (aslsi3): Likewise.
15327 (lshrsi3): Likewise.
15328 (ashrsi3): Likewise.
15329 (liw): New pattern.
15330 * config/mn10300/mn10300.c (liw_op_names): New
15331 (mn10300_print_operand): Handle 'W' operand descriptor.
15332 (extract_bundle): New function.
15333 (check_liw_constraints): New function.
15334 (liw_candidate): New function.
15335 (mn10300_bundle_liw): New function.
15336 (mn10300_reorg): New function.
15337 (TARGET_MACHINE_DEPENDENT_REORG): Define.
15338 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
15339 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
15340 __LIW__ or __NO_LIW__.
15341 * doc/invoke.texi: Describe the -mliw command line option.
15343 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15345 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
15346 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
15347 pthread_mutex_unlock): Remove.
15348 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
15349 * config/pa/t-pa64: Likewise.
15350 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
15351 shared libc if not linking against libpthread.
15352 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
15354 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
15357 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
15358 on 10.6 and later to ensure that we always use the unwinder from
15359 the system. Only add -no_compact_unwind when tarteting darwin
15362 2011-02-07 Steve Ellcey <sje@cup.hp.com>
15365 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
15366 (vec_interleave_lowv2sf): Ditto.
15367 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
15368 (vec_extract_oddv2sf): Ditto.
15370 2011-02-07 Mike Stump <mikestump@comcast.net>
15373 Add __ieee_divdc3 entry point.
15374 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
15376 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
15377 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
15378 * config/darwin.c (darwin_rename_builtins): Add.
15379 * config/darwin-protos.h (darwin_rename_builtins): Add.
15381 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
15384 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
15387 2011-02-07 Mike Stump <mikestump@comcast.net>
15389 * config/darwin.opt (mmacosx-version-min): Update default OS version.
15391 2011-02-07 Denis Chertykov <chertykov@gmail.com>
15394 * config/avr/libgcc.S (exit): Move .endfunc
15396 2011-02-07 Richard Guenther <rguenther@suse.de>
15398 PR tree-optimization/47615
15399 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
15400 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
15401 (run_scc_vn): Initialize it.
15402 (visit_reference_op_load): Use it.
15403 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
15405 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15407 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
15408 DImode trapping arithmetic libfuncs.
15410 2011-02-07 Richard Guenther <rguenther@suse.de>
15412 PR tree-optimization/47621
15413 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
15415 (execute_update_addresses_taken): ... here. Make it more
15416 conservative in what we accept.
15418 2011-02-06 Joseph Myers <joseph@codesourcery.com>
15420 * config/sparc/freebsd.h (ASM_SPEC): Define.
15421 * config/sparc/vxworks.h (ASM_SPEC): Define.
15423 2011-02-06 Joseph Myers <joseph@codesourcery.com>
15425 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
15427 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
15429 * doc/invoke.texi: Remove reference to compiler internals from
15430 user documentation.
15432 * reg-notes.def: Remove REG_VALUE_PROFILE.
15433 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
15435 2011-02-05 Jakub Jelinek <jakub@redhat.com>
15437 PR middle-end/47610
15438 * varasm.c (default_section_type_flags): If decl is NULL,
15439 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
15441 2011-02-05 Jie Zhang <jie@codesourcery.com>
15444 * web.c (entry_register): Don't clobber the number of the
15445 first uninitialized reference in used[].
15447 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
15449 PR tree-optimization/46194
15450 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
15451 (build_classic_dist_vector_1): Do not represent classic distance
15452 vectors when the access functions are variating in different loops.
15454 2011-02-04 Joseph Myers <joseph@codesourcery.com>
15456 * config/mips/iris6.opt: New.
15457 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
15459 2011-02-04 Richard Henderson <rth@redhat.com>
15460 Steve Ellcey <sje@cup.hp.com>
15463 * config/ia64/predicates.md (mux1_brcst_element): New.
15464 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
15465 * config/ia64/ia64.c (ia64_unpack_assemble): New.
15466 (ia64_unpack_sign): New.
15467 (ia64_expand_unpack): Rewrite using new routines.
15468 (ia64_expand_widen_sum): Ditto.
15469 (ia64_expand_dot_prod_v8qi): Ditto.
15470 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
15471 routines, add endian check.
15472 (pmpy2_even): Rename from pmpy2_r, add endian check.
15473 (pmpy2_odd): Rename from pmpy2_l, add endian check.
15474 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
15475 (vec_widen_smult_hi_v4hi): Ditto.
15476 (vec_widen_umult_lo_v4hi): Ditto.
15477 (vec_widen_umult_hi_v4hi): Ditto.
15478 (mulv2si3): Change endian checks.
15479 (sdot_prodv4hi): Rewrite with new calls.
15480 (udot_prodv4hi): New.
15481 (vec_pack_ssat_v4hi): Add endian check.
15482 (vec_pack_usat_v4hi): Ditto.
15483 (vec_pack_ssat_v2si): Ditto.
15484 (max1_even): Rename from max1_r, add endian check.
15485 (max1_odd): Rename from max1_l, add endian check.
15486 (*mux1_rev): Format change.
15487 (*mux1_mix): Ditto.
15488 (*mux1_shuf): Ditto.
15489 (*mux1_alt): Ditto.
15490 (*mux1_brcst_v8qi): Use new predicate.
15491 (vec_extract_evenv8qi): Remove endian check.
15492 (vec_extract_oddv8qi): Ditto.
15493 (vec_interleave_lowv4hi): Format change.
15494 (vec_interleave_highv4hi): Ditto.
15495 (mix2_even): Rename from mix2_r, add endian check.
15496 (mix2_odd): Rename from mux2_l, add endian check.
15497 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
15498 (vec_extract_evenodd_helper): Format change.
15499 (vec_extract_evenv4hi): Remove endian check.
15500 (vec_extract_oddv4hi): Remove endian check.
15501 (vec_interleave_lowv2si): Format change.
15502 (vec_interleave_highv2si): Format change.
15503 (vec_initv2si): Remove endian check.
15504 (vecinit_v2si): Add endian check.
15505 (reduc_splus_v2sf): Add endian check.
15506 (reduc_smax_v2sf): Ditto.
15507 (reduc_smin_v2sf): Ditto.
15508 (vec_initv2sf): Remove endian check.
15509 (fpack): Add endian check.
15510 (fswap): Add endian check.
15511 (vec_interleave_highv2sf): Add endian check.
15512 (vec_interleave_lowv2sf): Add endian check.
15513 (fmix_lr): Add endian check.
15514 (vec_setv2sf): Format change.
15515 (*vec_extractv2sf_0_be): Use shift to extract operand.
15516 (*vec_extractv2sf_1_be): New.
15517 (vec_pack_trunc_v4hi): Add endian check.
15518 (vec_pack_trunc_v2si): Format change.
15520 2011-02-04 Jakub Jelinek <jakub@redhat.com>
15522 PR inline-asm/23200
15523 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
15524 do bb, locus and block comparison and disallow loads if it is not set.
15525 (stmt_is_replaceable_p): New function.
15526 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
15528 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
15529 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
15531 * tree-flow.h (stmt_is_replaceable_p): New prototype.
15533 2011-02-04 Joseph Myers <joseph@codesourcery.com>
15535 * config/rs6000/xilinx.opt: New.
15536 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
15538 2011-02-04 Joseph Myers <joseph@codesourcery.com>
15540 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
15542 2011-02-03 Anatoly Sokolov <aesok@post.ru>
15544 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
15545 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
15546 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
15547 secondary_reload_info, xtensa_secondary_reload): Remove.
15548 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
15549 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
15550 (xtensa_preferred_reload_class): Make static. Change return and
15551 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
15552 Use CONST_DOUBLE_P predicate.
15553 (xtensa_preferred_output_reload_class): New function.
15554 (xtensa_secondary_reload): Make static.
15556 2011-02-03 Joseph Myers <joseph@codesourcery.com>
15558 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
15559 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
15560 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
15562 2011-02-03 Jakub Jelinek <jakub@redhat.com>
15564 PR middle-end/31490
15565 * output.h (SECTION_RELRO): Define.
15566 (SECTION_MACH_DEP): Adjust.
15567 (get_variable_section): New prototype.
15568 * varpool.c (varpool_finalize_named_section_flags): New function.
15569 (varpool_assemble_pending_decls): Call it.
15570 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
15571 * cgraphunit.c (cgraph_output_in_order): Call
15572 varpool_finalize_named_section_flags.
15573 * varasm.c (get_section): Allow section flags conflicts between
15574 relro and read-only sections if the section hasn't been declared yet.
15575 Set SECTION_OVERRIDE after diagnosing section type conflict.
15576 (get_variable_section): No longer static.
15577 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
15578 readonly sections that need relocations.
15579 (decl_readonly_section_1): New function.
15580 (decl_readonly_section): Use it.
15583 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
15584 Steve Ellcey <sje@cup.hp.com>
15586 PR middle-end/31490
15587 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
15588 if section attribute used.
15590 2011-02-03 Jakub Jelinek <jakub@redhat.com>
15592 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
15593 * config/darwin.c (SECTION_NO_ANCHOR): Define.
15594 (darwin_init_sections): Remove assertion.
15596 2011-02-03 Nick Clifton <nickc@redhat.com>
15598 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
15600 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
15601 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
15602 instead of "n" and "pz".
15603 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
15606 2011-02-03 Jakub Jelinek <jakub@redhat.com>
15609 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
15610 fma, expand FMA_EXPR as fma{,f,l} call.
15613 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
15614 copy them into a unsigned char variable and pass address of it to
15615 lto_output_data_stream.
15618 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
15619 around backend_init_target and lang_dependent_init_target calls.
15620 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
15621 (verify_cgraph_node): Don't call set_cfun here. Use
15622 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
15623 Set error_found for incorrectly represented calls to thunks.
15625 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
15628 PR rtl-optimization/43494
15629 * rtl.h (for_each_inc_dec_fn): New type.
15630 (for_each_inc_dec): Declare.
15631 * rtlanal.c (struct for_each_inc_dec_ops): New type.
15632 (for_each_inc_dec_find_inc_dec): New fn.
15633 (for_each_inc_dec_find_mem): New fn.
15634 (for_each_inc_dec): New fn.
15635 * dse.c (struct insn_size): Remove.
15636 (replace_inc_dec, replace_inc_dec_mem): Remove.
15637 (emit_inc_dec_insn_before): New fn.
15638 (check_for_inc_dec): Use it, along with for_each_inc_dec.
15639 (canon_address): Pass mem modes to cselib_lookup.
15640 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
15641 (cselib_lookup_from_insn): Likewise.
15642 (cselib_subst_to_values): Likewise.
15643 * cselib.c (find_slot_memmode): New var.
15644 (cselib_find_slot): New fn. Use it instead of
15645 htab_find_slot_with_hash everywhere.
15646 (entry_and_rtx_equal_p): Use find_slot_memmode.
15647 (autoinc_split): New fn.
15648 (rtx_equal_for_cselib_p): Rename and implement in terms of...
15649 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
15650 Deal with autoinc. Special-case recursion into MEMs.
15651 (cselib_hash_rtx): Likewise.
15652 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
15653 address and MEM modes.
15654 (cselib_subst_to_values): Add memmode, pass it on.
15656 (cselib_lookup): Add memmode argument, pass it on.
15657 (cselib_lookup_from_insn): Add memmode.
15658 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
15659 (struct cselib_record_autoinc_data): New.
15660 (cselib_record_autoinc_cb): New fn.
15661 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
15662 mode to cselib_lookup. Reset autoinced REGs here instead of...
15663 (cselib_process_insn): ... here.
15664 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
15666 (add_uses): Likewise, also to cselib_subst_to_values.
15667 (add_stores): Likewise.
15668 * sched-deps.c (add_insn_mem_dependence): Pass mode to
15669 cselib_subst_to_values.
15670 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
15671 * gcse.c (do_local_cprop): Adjusted.
15672 * postreload.c (reload_cse_simplify_set): Adjusted.
15673 (reload_cse_simplify_operands): Adjusted.
15674 * sel-sched-dump (debug_mem_addr_value): Pass mode.
15676 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
15678 PR tree-optimization/45122
15679 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
15680 unsafe assumptions when there's more than one loop exit.
15682 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
15685 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
15686 Document using vector double with the load/store builtins, and
15687 that the load/store builtins always use Altivec instructions.
15689 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
15690 to use altivec memory instructions, even on VSX.
15691 (vector_altivec_store_<mode>): Ditto.
15693 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
15696 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
15697 V2DF, V2DI support to load/store overloaded builtins.
15699 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
15700 altivec load/store builtins for V2DF/V2DI types.
15702 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
15703 set avoid indexed addresses on power6 if -maltivec.
15704 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
15705 vector_altivec_load/vector_altivec_store builtins.
15706 (altivec_expand_st_builtin): Ditto.
15707 (altivec_expand_builtin): Add VSX memory builtins.
15708 (rs6000_init_builtins): Add V2DI types to internal types.
15709 (altivec_init_builtins): Add support for V2DF/V2DI altivec
15710 load/store builtins.
15711 (rs6000_address_for_altivec): Insure memory address is appropriate
15714 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
15715 vec_vsx_ld and vec_vsx_st.
15716 (vsx_store_<mode>): Ditto.
15718 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
15719 variables to hold long long types for VSX vector memory builtins.
15720 (RS6000_BTI_unsigned_long_long): Ditto.
15721 (long_long_integer_type_internal_node): Ditti.
15722 (long_long_unsigned_type_internal_node): Ditti.
15724 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
15725 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
15726 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
15728 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
15730 (vec_vsx_st): Ditto.
15732 2011-02-02 Joseph Myers <joseph@codesourcery.com>
15734 * config/pa/pa-hpux10.opt: New.
15735 * config/hpux11.opt (pthread): New Driver option.
15736 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
15737 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
15739 2011-02-02 Joseph Myers <joseph@codesourcery.com>
15741 * config/ia64/vms.opt: New.
15742 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
15744 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
15747 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
15748 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
15749 generator functions.
15750 (vsx_floatuns<VSi><mode>2): Ditto.
15751 (vsx_fix_trunc<mode><VSi>2): Ditto.
15752 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
15754 2011-02-02 Joseph Myers <joseph@codesourcery.com>
15756 * config/i386/djgpp.opt (posix): New Driver option.
15758 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
15760 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
15761 Move to the unsupported targets list.
15763 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
15765 PR rtl-optimization/47525
15766 * df-scan.c: Update copyright years.
15767 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
15768 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
15770 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15772 * config/i386/sysv4.h (TARGET_VERSION): Remove.
15773 (SUBTARGET_RETURN_IN_MEMORY): Remove.
15774 (ASM_OUTPUT_ASCII): Remove.
15775 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
15777 2011-02-02 Jeff Law <law@redhat.com>
15779 PR middle-end/47543
15780 * reload.c (find_reloads_address): Handle reg+d address where both
15781 components are invalid by reloading the entire address.
15783 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
15784 Richard Guenther <rguenther@suse.de>
15786 PR tree-optimization/40979
15788 * passes.c (init_optimization_passes): After LIM call copy_prop
15789 and DCE to clean up.
15790 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
15792 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
15794 PR tree-optimization/47576
15795 PR tree-optimization/47555
15796 * doc/invoke.texi (scev-max-expr-complexity): Documented.
15797 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
15798 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
15799 * tree-scalar-evolution.c (follow_ssa_edge): Use
15800 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
15802 2011-02-02 Richard Guenther <rguenther@suse.de>
15804 PR tree-optimization/47566
15805 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
15807 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
15811 * tree-inline.c (declare_return_variable): Remove unused caller
15816 * tree-flow-inline.h (clear_is_used, is_used_p): New.
15817 * cfgexpand.c (account_used_vars_for_block): Use them.
15818 * tree-nrv.c (tree_nrv): Likewise.
15819 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
15820 (dump_scope_block): Likewise.
15821 (remove_unused_locals): Likewise.
15825 * tree-inline.c (declare_return_variable): Add result decl to
15826 local decls only once.
15827 * gimple-low.c (record_vars_into): Mark newly-created variables
15830 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
15836 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
15838 (no_real_insns_p, schedule_block, set_priorities): Drop special
15839 treatment of boundary debug insns.
15840 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
15841 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
15842 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
15843 (BOUNDARY_DEBUG_INSN_P): Likewise.
15844 (SCHEDULE_DEBUG_INSN_P): Likewise.
15845 * sched-rgn.c (init_ready_list): Drop special treatment of
15846 boundary debug insns.
15847 * final.c (rest_of_clean_state): Clear notes' BB.
15849 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15851 * config/openbsd.opt (assert=): New Driver option.
15853 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15855 * config/i386/nto.opt: New.
15856 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
15858 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15860 * config/i386/netware.opt: New.
15861 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
15863 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15865 * config/interix.opt (posix): New Driver option.
15867 2011-02-01 DJ Delorie <dj@redhat.com>
15869 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
15871 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
15874 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
15876 PR tree-optimization/47561
15877 * toplev.c (process_options): Print the Graphite flags. Add
15878 flag_loop_flatten to the list of options requiring Graphite.
15880 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15882 * config/i386/cygming.opt (posix): New Driver option.
15884 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15886 * config/arm/vxworks.opt: New.
15887 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
15889 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15891 * config/alpha/elf.opt: New.
15892 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
15893 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
15895 2011-02-01 Richard Guenther <rguenther@suse.de>
15897 PR tree-optimization/47559
15898 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
15899 store-motion on references that can throw.
15901 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
15903 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
15904 * tree-pass.h (TDF_CSELIB): New macro.
15905 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
15906 cselib_lookup): Check for it rather than for TDF_DETAILS.
15908 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
15911 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
15912 is HOST_BIT_BUCKET.
15914 * opts.c (finish_options): Don't add x_aux_base_name if it is
15917 2011-02-01 Richard Guenther <rguenther@suse.de>
15919 PR tree-optimization/47555
15921 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
15923 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
15925 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
15928 * config/lm32/t-lm32: Add multilib for all CPU options.
15930 2011-02-01 Richard Guenther <rguenther@suse.de>
15932 PR tree-optimization/47541
15933 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
15934 sure to have a field at offset zero.
15936 2011-01-31 Joseph Myers <joseph@codesourcery.com>
15938 * config/arc/arc.opt (EB, EL): New Driver options.
15940 2011-01-31 Joseph Myers <joseph@codesourcery.com>
15942 * config/alpha/osf5.opt: New.
15943 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
15945 2011-01-31 Joseph Myers <joseph@codesourcery.com>
15947 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
15949 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
15951 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
15952 -floop-interchange.
15953 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
15954 is an alias of -floop-interchange and that it requires the
15955 Graphite infrastructure.
15956 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
15957 flag_loop_interchange based on the value of flag_tree_loop_linear.
15959 2011-01-31 Jakub Jelinek <jakub@redhat.com>
15960 Richard Guenther <rguenther@suse.de>
15962 PR tree-optimization/47538
15963 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
15964 type instead of r1type, except for comparisons. For right
15965 shifts and comparisons punt if there are mismatches in
15966 sizetype vs. non-sizetype types.
15968 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15970 * doc/sourcebuild.texi (Effective-Target Keywords): Document
15973 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15975 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
15977 * configure: Regenerate.
15979 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15981 * configure.ac (gcc_cv_ld_static_option): Define.
15982 (gcc_cv_ld_dynamic_option): Define.
15983 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
15985 (HAVE_LD_STATIC_DYNAMIC): Update message.
15986 (LD_STATIC_OPTION): Define.
15987 (LD_DYNAMIC_OPTION): Define.
15988 * configure: Regenerate.
15989 * config.in: Regenerate.
15990 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
15991 HAVE_LD_STATIC_DYNAMIC]: Use them.
15993 2011-01-31 Nick Clifton <nickc@redhat.com>
15995 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
15996 registers inside interrupt handlers if the handler is not a leaf
15999 2011-01-31 Nick Clifton <nickc@redhat.com>
16001 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
16002 reg_renumber returning an INVALID_REGNUM.
16004 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
16007 * doc/install.texi: Document host options discarded when cross
16008 configuring target libraries.
16010 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
16013 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
16016 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
16018 (no_real_insns_p, schedule_block, set_priorities): Drop special
16019 treatment of boundary debug insns.
16020 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
16021 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
16022 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
16023 (BOUNDARY_DEBUG_INSN_P): Likewise.
16024 (SCHEDULE_DEBUG_INSN_P): Likewise.
16025 * sched-rgn.c (init_ready_list): Drop special treatment of
16026 boundary debug insns.
16027 * final.c (rest_of_clean-state): Clear notes' BB.
16029 2011-01-31 Alan Modra <amodra@gmail.com>
16031 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
16032 toc relative expressions as we do in print_operand_address.
16034 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
16036 * doc/extend.texi: Follow spelling conventions.
16037 * doc/invoke.texi: Fix a typo.
16039 2011-01-30 Joseph Myers <joseph@codesourcery.com>
16041 * config/hpux11.opt: New.
16042 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
16043 ia64*-*-hpux*): Use hpux11.opt.
16045 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
16047 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
16050 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
16052 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
16055 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
16057 * doc/install.texi (Binaries): Remove outdated reference for
16058 Motorola 68HC11/68HC12 downloads.
16060 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
16062 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
16065 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
16068 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
16071 2011-01-28 Ahmad Sharif <asharif@google.com>
16073 * value-prof.c (check_counter): Corrected error message.
16075 2011-01-29 Jie Zhang <jie@codesourcery.com>
16077 * config/arm/arm.c (arm_legitimize_reload_address): New.
16078 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
16079 arm_legitimize_reload_address.
16080 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
16082 2011-01-28 Ian Lance Taylor <iant@google.com>
16084 * godump.c (go_define): Ignore macros whose definitions include
16085 two adjacent operands.
16087 2011-01-28 Jakub Jelinek <jakub@redhat.com>
16090 * varasm.c (force_const_mem): Store copy of x in desc->constant
16091 instead of x itself.
16092 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
16093 itself into REG_EQUAL note.
16095 2011-01-28 Joseph Myers <joseph@codesourcery.com>
16097 * config/freebsd.opt (posix, rdynamic): New Driver options.
16099 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16101 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
16102 -Bstatic/-Bdynamic.
16103 * configure: Regenerate.
16105 2011-01-27 Joseph Myers <joseph@codesourcery.com>
16107 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
16108 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
16110 2011-01-27 Anatoly Sokolov <aesok@post.ru>
16112 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
16113 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
16114 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
16115 (s390_preferred_reload_class): Make static. Change return and
16116 'rclass' argument type to reg_class_t.
16118 2011-01-27 Jan Hubicka <jh@suse.cz>
16120 PR middle-end/46949
16121 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
16122 (process_function_and_variable_attributes): Check defined weakrefs.
16124 2011-01-27 Martin Jambor <mjambor@suse.cz>
16126 PR tree-optimization/47228
16127 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
16128 build_ref_for_offset.
16130 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16132 * config/spu/spu-elf.h (ASM_SPEC): Remove.
16134 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
16136 PR rtl-optimization/46856
16137 * postreload.c (reload_combine_recognize_const_pattern): Do not
16138 separate cc0 setter and user on cc0 targets.
16140 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
16143 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
16144 passed a VOID_TYPE expression, immediately emit an error and
16145 return error_mark_node.
16147 2011-01-26 Jeff Law <law@redhat.com>
16149 PR rtl-optimization/47464
16150 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
16151 rather than may_trap_p as needed.
16153 2011-01-26 DJ Delorie <dj@redhat.com>
16155 PR rtl-optimization/46878
16156 * combine.c (insn_a_feeds_b): Check for the implicit cc0
16157 setter/user dependency as well.
16159 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
16161 PR rtl-optimization/44469
16162 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
16163 after removing trivially dead basic blocks.
16165 2011-01-26 Joseph Myers <joseph@codesourcery.com>
16167 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
16168 * config/frv/frv.h (LINK_SPEC): Likewise.
16169 * config/i386/netware.h (LINK_SPEC): Likewise.
16170 * config/m68k/linux.h (ASM_SPEC): Likewise.
16171 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
16172 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
16173 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
16174 * config/sparc/linux.h (ASM_SPEC): Likewise.
16175 * config/sparc/linux64.h (ASM_SPEC): Likewise.
16176 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
16178 2011-01-26 Joseph Myers <joseph@codesourcery.com>
16180 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
16181 * config/frv/frv.h (ASM_SPEC): Likewise.
16182 * config/m68k/linux.h (ASM_SPEC): Likewise.
16183 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
16184 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
16185 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
16186 * config/sparc/linux.h (ASM_SPEC): Likewise.
16187 * config/sparc/linux64.h (ASM_SPEC): Likewise.
16188 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
16190 2011-01-26 Joseph Myers <joseph@codesourcery.com>
16192 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
16193 * config/frv/frv.h (LINK_SPEC): Likewise.
16194 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
16196 2011-01-26 Joseph Myers <joseph@codesourcery.com>
16198 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
16199 * config/frv/frv.h (ASM_SPEC): Likewise.
16200 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
16201 * config/m68k/linux.h (ASM_SPEC): Likewise.
16202 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
16203 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
16204 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
16205 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
16206 * config/sparc/linux.h (ASM_SPEC): Likewise.
16207 * config/sparc/linux64.h (ASM_SPEC): Likewise.
16208 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
16209 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
16211 2011-01-26 Steve Ellcey <sje@cup.hp.com>
16214 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
16216 (vec_extract_evenodd_help): Ditto.
16217 (vec_extract_evenv4hi): Ditto.
16218 (vec_extract_oddv4hi): Ditto.
16219 (vec_interleave_lowv2si): Ditto.
16220 (vec_interleave_highv2si): Ditto.
16221 (vec_extract_evenv2si): Ditto.
16222 (vec_extract_oddv2si: Ditto.
16223 (vec_pack_trunc_v2si): Ditto.
16225 2011-01-22 Jan Hubicka <jh@suse.cz>
16228 * cgraph.h (cgraph_local_info): New field can_change_signature.
16229 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
16230 signature can change.
16231 (ipcp_estimate_growth): Call sequence simplify only if calle signature
16233 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
16234 (cgraph_function_versioning): We can not change signature of functions
16235 that don't allow that.
16236 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
16237 (lto_input_node): Likewise.
16238 * ipa-inline.c (compute_inline_parameters): Compute
16239 local.can_change_signature.
16240 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
16241 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
16242 functions that can not change signature.
16243 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
16244 init_cumulative_args): Do not use local calling conventions
16245 for functions that can not change signature.
16247 2011-01-22 Jan Hubicka <jh@suse.cz>
16249 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
16251 2011-01-26 Richard Guenther <rguenther@suse.de>
16253 PR tree-optimization/47190
16254 * cgraphunit.c (process_common_attributes): New function.
16255 (process_function_and_variable_attributes): Use it.
16257 2011-01-26 Richard Guenther <rguenther@suse.de>
16260 * cgraphbuild.c (record_eh_tables): Record reference to personality
16263 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
16266 * sel-sched.c (moveup_expr): Don't let debug insns prevent
16267 non-debug insns from moving up.
16269 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
16272 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
16273 t-dlldir{,-x} fragment for build and add it to tmake_file.
16274 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
16275 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
16276 * config/i386/t-dlldir: New file.
16277 (SHLIB_DLLDIR): Define.
16278 * config/i386/t-dlldir-x: New file.
16279 (SHLIB_DLLDIR): Define.
16280 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
16281 (SHLIB_INSTALL): Use it.
16283 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
16286 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
16287 lower bound of the allowed Thumb-2 coprocessor load/store
16288 index range to -256. Add explaining comment.
16290 2011-01-25 Ian Lance Taylor <iant@google.com>
16292 * godump.c (go_define): Improve lexing of macro expansion to only
16293 accept expressions which match Go spec.
16295 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
16298 * tree.c (handle_dll_attribute): Handle it.
16299 * doc/extend.texi (@item dllexport): Mention it.
16300 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
16302 2011-01-25 Ian Lance Taylor <iant@google.com>
16304 PR tree-optimization/26854
16305 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
16306 (decl_jump_unsafe): Move higher in file, with no other change.
16307 (bind): Set has_jump_unsafe_decl if appropriate.
16308 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
16309 (check_earlier_gotos): Likewise.
16310 (c_check_switch_jump_warnings): Likewise.
16312 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
16314 * doc/invoke.texi (Warning Options): Add missing hyphen.
16315 (-fprofile-dir): Minor grammatical fixes.
16316 (-fbranch-probabilities): Likewise.
16318 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
16322 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
16324 (no_real_insns_p, schedule_block, set_priorities): Drop special
16325 treatment of boundary debug insns.
16326 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
16327 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
16328 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
16329 (BOUNDARY_DEBUG_INSN_P): Likewise.
16330 (SCHEDULE_DEBUG_INSN_P): Likewise.
16331 * sched-rgn.c (init_ready_list): Drop special treatment of
16332 boundary debug insns.
16333 * final.c (rest_of_clean-state): Clear notes' BB.
16335 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16337 * Makefile.in (LAMBDA_H): Removed.
16338 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
16339 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
16340 lambda-trans.o, and tree-loop-linear.o.
16341 (lto-symtab.o): Remove dependence on LAMBDA_H.
16342 (tree-loop-linear.o): Remove rule.
16343 (lambda-mat.o): Same.
16344 (lambda-trans.o): Same.
16345 (lambda-code.o): Same.
16346 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
16347 (tree-vect-slp.o): Same.
16348 * hwint.h (gcd): Moved here.
16349 (least_common_multiple): Same.
16350 * lambda-code.c: Removed.
16351 * lambda-mat.c: Removed.
16352 * lambda-trans.c: Removed.
16353 * lambda.h: Removed.
16354 * tree-loop-linear.c: Removed.
16355 * lto-symtab.c: Do not include lambda.h.
16356 * omega.c (gcd): Removed.
16357 * passes.c (init_optimization_passes): Remove pass_linear_transform.
16358 * tree-data-ref.c (print_lambda_vector): Moved here.
16359 (lambda_vector_copy): Same.
16360 (lambda_matrix_copy): Same.
16361 (lambda_matrix_id): Same.
16362 (lambda_vector_first_nz): Same.
16363 (lambda_matrix_row_add): Same.
16364 (lambda_matrix_row_exchange): Same.
16365 (lambda_vector_mult_const): Same.
16366 (lambda_vector_negate): Same.
16367 (lambda_matrix_row_negate): Same.
16368 (lambda_vector_equal): Same.
16369 (lambda_matrix_right_hermite): Same.
16370 * tree-data-ref.h: Do not include lambda.h.
16371 (lambda_vector): Moved here.
16372 (lambda_matrix): Same.
16373 (dependence_level): Same.
16374 (lambda_transform_legal_p): Removed declaration.
16375 (lambda_collect_parameters): Same.
16376 (lambda_compute_access_matrices): Same.
16377 (lambda_vector_gcd): Same.
16378 (lambda_vector_new): Same.
16379 (lambda_vector_clear): Same.
16380 (lambda_vector_lexico_pos): Same.
16381 (lambda_vector_zerop): Same.
16382 (lambda_matrix_new): Same.
16383 * tree-flow.h (least_common_multiple): Removed declaration.
16384 * tree-parloops.c (lambda_trans_matrix): Moved here.
16385 (LTM_MATRIX): Same.
16386 (LTM_ROWSIZE): Same.
16387 (LTM_COLSIZE): Same.
16388 (LTM_DENOMINATOR): Same.
16389 (lambda_trans_matrix_new): Same.
16390 (lambda_matrix_vector_mult): Same.
16391 (lambda_transform_legal_p): Same.
16392 * tree-pass.h (pass_linear_transform): Removed declaration.
16393 * tree-ssa-loop.c (tree_linear_transform): Removed.
16394 (gate_tree_linear_transform): Removed.
16395 (pass_linear_transform): Removed.
16396 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
16397 flag_loop_interchange.
16399 2011-01-25 Jakub Jelinek <jakub@redhat.com>
16401 PR tree-optimization/47265
16402 PR tree-optimization/47443
16403 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
16404 if name still has some uses.
16406 2011-01-25 Martin Jambor <mjambor@suse.cz>
16408 PR tree-optimization/47382
16409 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
16410 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
16412 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
16414 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
16415 sjlj_except_unwind_info.
16417 2011-01-25 Richard Guenther <rguenther@suse.de>
16419 PR tree-optimization/47426
16420 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
16421 visible functions results escape.
16423 2011-01-25 Jakub Jelinek <jakub@redhat.com>
16426 * config/arm/arm.c (any_sibcall_uses_r3): New function.
16427 (arm_get_frame_offsets): Use it.
16429 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16430 Jakub Jelinek <jakub@redhat.com>
16432 PR tree-optimization/47271
16433 * tree-if-conv.c (bb_postdominates_preds): New.
16434 (if_convertible_bb_p): Call bb_postdominates_preds.
16435 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
16436 (predicate_scalar_phi): Call bb_postdominates_preds.
16438 2011-01-25 Nick Clifton <nickc@redhat.com>
16440 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
16441 * config/rx/rx.c (rx_function_value): Likewise.
16442 (rx_promote_function_mode): Likewise.
16443 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
16444 in order to make it legitimate.
16445 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
16446 make sure that the first operand is the same as the result register.
16447 (addsi3_unspec): Delete.
16448 (subdi3): Do not accept immediate operands.
16449 (subdi3_internal): Likewise.
16451 2011-01-25 Jeff Law <law@redhat.com>
16453 PR rtl-optimization/37273
16454 * ira-costs.c (scan_one_insn): Detect constants living in memory and
16455 handle them like argument loads from stack slots. Do not double
16456 count memory for memory constants and argument loads from stack slots.
16458 2011-01-25 Jakub Jelinek <jakub@redhat.com>
16460 PR tree-optimization/47427
16461 PR tree-optimization/47428
16462 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
16463 coalesce if the new root var would be TREE_READONLY.
16465 2011-01-25 Richard Guenther <rguenther@suse.de>
16467 PR middle-end/47414
16468 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
16469 correct type for TBAA.
16471 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16473 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
16474 (close_phi_written_to_memory): Call for_each_index with
16475 dr_indices_valid_in_loop.
16477 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16479 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
16480 when it is initialized.
16482 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16484 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
16485 call to graphite_find_data_references_in_stmt.
16486 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
16487 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
16488 call to graphite_find_data_references_in_stmt.
16489 (analyze_drs_in_stmts): Same.
16490 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
16491 in which the scalar analysis of indices is performed.
16492 (create_data_ref): Same. Update call to dr_analyze_indices.
16493 (find_data_references_in_stmt): Update call to create_data_ref.
16494 (graphite_find_data_references_in_stmt): Same.
16495 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
16497 (create_data_ref): Same.
16498 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
16499 call to create_data_ref.
16501 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16503 * graphite-sese-to-poly.c (build_poly_scop): Move
16504 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
16506 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16508 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
16509 VAR_DECL, PARM_DECL, and RESULT_DECL.
16511 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16513 * graphite-dependences.c (reduction_dr_1): Allow several reductions
16514 in a reduction PBB.
16515 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
16516 that have already been marked as PBB_IS_REDUCTION.
16518 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16520 * graphite-scop-detection.c (same_close_phi_node): New.
16521 (remove_duplicate_close_phi): New.
16522 (make_close_phi_nodes_unique): New.
16523 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
16525 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16527 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
16528 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
16529 of both data references to be the same.
16531 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16533 * graphite-dependences.c (build_lexicographical_constraint): Remove
16534 the gdim parameter.
16535 (build_lexicographical_constraint): Adjust call to
16536 ppl_powerset_is_empty.
16537 (dependence_polyhedron): Same.
16538 (graphite_legal_transform_dr): Same.
16539 (graphite_carried_dependence_level_k): Same.
16540 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
16542 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
16544 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16546 * graphite-sese-to-poly.c
16547 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
16548 (close_phi_written_to_memory): New.
16549 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
16552 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16554 * doc/install.texi: Update the expected version number of PPL to 0.11.
16555 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
16556 #if PPL_VERSION_MINOR < 11.
16558 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16560 * graphite-dependences.c: Include graphite-cloog-util.h.
16561 (new_poly_ddr): Inlined into dependence_polyhedron.
16562 (free_poly_ddr): Moved close by new_poly_ddr.
16563 (dependence_polyhedron_1): Renamed dependence_polyhedron.
16564 Early return NULL when ppl_powerset_is_empty returns true.
16565 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
16566 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
16567 (graphite_legal_transform_dr): Call new_poly_ddr.
16568 (graphite_carried_dependence_level_k): Same.
16569 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
16570 (dot_transformed_deps_stmt_1): Removed.
16571 (dot_deps_stmt_1): Call dot_deps_stmt_2.
16572 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
16573 (dot_deps_1): Call dot_deps_2.
16574 * Makefile.in (graphite-dependences.o): Add missing dependence on
16575 graphite-cloog-util.h.
16577 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16579 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
16580 (build_lexicographical_constraint): Same.
16581 (dependence_polyhedron_1): Same.
16582 (graphite_legal_transform_dr): Same.
16583 (graphite_carried_dependence_level_k): Same.
16584 * graphite-ppl.c (ppl_powerset_is_empty): New.
16585 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
16586 * tree-data-ref.c (dump_data_reference): Print the basic block index.
16588 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16590 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
16591 the "a followed by b" relation and document it.
16593 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16595 * graphite-dependences.c (build_lexicographical_constraint): Stop the
16596 iteration when the bag of constraints is empty.
16598 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16600 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
16602 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16604 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
16605 nest and two loop depths as parameters.
16606 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
16607 lst_perfect_nestify.
16609 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16611 * graphite-dependences.c (print_pddr): Call
16612 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
16614 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16616 * graphite-ppl.c (debug_gmp_value): New.
16617 * graphite-ppl.h (debug_gmp_value): Declared.
16619 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
16621 * doc/install.texi: Document availability of cloog-0.16.
16623 2011-01-25 Vladimir Kargov <kargov@gmail.com>
16625 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
16626 invalid postdominance info.
16628 2011-01-24 Jan Hubicka <jh@suse.cz>
16631 * doc/extend.texi (weak pragma): Drop claim that it must
16632 appear before definition.
16633 * varasm.c (merge_weak, declare_weak): Only sanity check
16634 that DECL is not output at a time it is declared weak.
16636 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
16638 * machmode.def: Fixed comments.
16640 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
16642 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
16644 2011-01-24 Paul Koning <ni1d@arrl.net>
16646 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
16649 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
16652 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
16653 (block_info): Add scanned and prev.
16654 (move_or_delete_vzeroupper_2): Return if the basic block
16655 has been scanned and the upper 128bit state is unchanged
16656 from the last scan.
16657 (move_or_delete_vzeroupper_1): Return true if the exit
16659 (move_or_delete_vzeroupper): Visit basic blocks using the
16660 work-list based algorithm based on vt_find_locations in
16663 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
16665 2011-01-24 Nick Clifton <nickc@redhat.com>
16667 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
16668 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
16669 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
16670 then define __v850e1__.
16671 * doc/invoke.texi: Document -mv850es.
16673 2011-01-24 Richard Henderson <rth@redhat.com>
16675 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
16676 compound unordered comparisons.
16677 * config/rx/rx.c (rx_split_fp_compare): Remove.
16678 * config/rx/rx-protos.h: Update.
16679 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
16680 (cbranchsf4): Don't call rx_split_fp_compare.
16681 (*cbranchsf4): Use rx_split_cbranch.
16682 (*cmpsf): Don't accept "i" constraint.
16683 (*conditional_branch): Only valid after reload.
16684 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
16686 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
16689 * config/rs6000/altivec.md (vector constant splitters): Add
16690 support for creating vector single precision constants if -mvsx is
16691 used and we would create the constant using Altivec primitives.
16693 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
16694 Richard Sandiford <rdsandiford@googlemail.com>
16696 PR rtl-optimization/47166
16697 * reload1.c (emit_reload_insns): Disable the spill_reg_store
16698 mechanism for PRE_MODIFY and POST_MODIFY.
16699 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
16702 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
16704 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
16706 2011-01-22 Jan Hubicka <jh@suse.cz>
16709 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
16711 2011-01-22 Jan Hubicka <jh@suse.cz>
16713 PR tree-optimization/43884
16715 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
16716 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
16718 2011-01-22 Anatoly Sokolov <aesok@post.ru>
16720 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
16721 * config/s390/s390.c (s390_register_move_cost,
16722 s390_memory_move_cost): New.
16723 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
16725 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16727 PR middle-end/47401
16728 * except.c (sjlj_assign_call_site_values): Move setting the
16729 crtl->uses_eh_lsda flag to ...
16730 (sjlj_mark_call_sites): ... here.
16731 (sjlj_emit_function_enter): Support NULL dispatch label.
16732 (sjlj_build_landing_pads): In a function with no landing pads
16733 that still has must-not-throw regions, generate code to register
16734 a personality function with empty LSDA.
16736 2011-01-21 Richard Henderson <rth@redhat.com>
16738 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
16740 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
16742 * compare-elim.c: New file.
16743 * Makefile.in (OBJS-common): Add it.
16744 (compare-elim.o): New.
16745 * common.opt (fcompare-elim): New.
16746 * opts.c (default_options_table): Add OPT_fcompare_elim.
16747 * tree-pass.h (pass_compare_elim_after_reload): New.
16748 * passes.c (init_optimization_passes): Add it.
16749 * recog.h: Protect against re-inclusion.
16750 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
16751 * doc/invoke.texi (-fcompare-elim): Document it.
16752 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
16753 * doc/tm.texi: Rebuild.
16755 2011-01-22 Nick Clifton <nickc@redhat.com>
16757 * config/rx/rx.md (cstoresf4): Pass comparison operator to
16758 rx_split_fp_compare.
16760 2011-01-22 Nick Clifton <nickc@redhat.com>
16762 * config/rx/rx.md (UNSPEC_CONST): New.
16763 (deallocate_and_return): Wrap the amount popped off the stack in
16764 an UNSPEC_CONST in order to stop it being rejected by
16765 -mmax-constant-size.
16766 (pop_and_return): Add a "(return)" rtx.
16767 (call): Drop the immediate operand.
16768 (call_internal): Likewise.
16769 (call_value): Likewise.
16770 (call_value_internal): Likewise.
16771 (sibcall_internal): Likewise.
16772 (sibcall_value_internal): Likewise.
16773 (sibcall): Likewise. Generate an explicit call using
16775 (sibcall_value): Likewise.
16776 (mov<>): FAIL if a constant operand is not legitimate.
16777 (addsi3_unpsec): New pattern.
16779 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
16780 (ok_for_max_constant): New function.
16781 (gen_safe_add): New function.
16782 (rx_expand_prologue): Use gen_safe_add.
16783 (rx_expand_epilogue): Likewise.
16784 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
16787 2011-01-21 Jeff Law <law@redhat.com>
16789 PR tree-optimization/47053
16790 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
16791 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
16792 statements are deleted.
16793 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
16794 is nonempty, then purge dead edges and cleanup the CFG.
16796 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
16799 Temporarily revert:
16800 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
16802 * tree-dfa.c (create_var_ann): Mark variable as used.
16804 2011-01-21 Jakub Jelinek <jakub@redhat.com>
16806 PR middle-end/45566
16807 * except.c (convert_to_eh_region_ranges): Emit queued no-region
16808 notes from other section in hot/cold partitioning even if
16809 last_action is -3. Increment call_site_base.
16811 PR rtl-optimization/47366
16812 * fwprop.c (forward_propagate_into): Return bool. If
16813 any changes are made, -fnon-call-exceptions is used and
16814 REG_EH_REGION note is present, call purge_dead_edges
16815 and return true if it purged anything.
16816 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
16817 any EH edges were purged.
16819 2011-01-21 Jeff Law <law@redhat.com>
16821 PR rtl-optimization/41619
16822 * caller-save.c (setup_save_areas): Break out code to determine
16823 which hard regs are live across calls by examining the reload chains
16824 so that it is always used.
16825 Eliminate code which checked REG_N_CALLS_CROSSED.
16827 2011-01-21 Jakub Jelinek <jakub@redhat.com>
16829 PR tree-optimization/47355
16830 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
16831 NOP has non-debug uses beyond PHIs in new_bb.
16833 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
16836 * cfgexpand.c (account_used_vars_for_block): Only account vars
16837 that are annotated as used.
16838 (estimated_stack_frame_size): Don't set TREE_USED.
16839 * tree-dfa.c (create_var_ann): Mark variable as used.
16841 2011-01-21 Richard Guenther <rguenther@suse.de>
16843 PR middle-end/47395
16844 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
16846 2011-01-21 Richard Guenther <rguenther@suse.de>
16848 PR tree-optimization/47365
16849 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
16850 (vn_reference_lookup_pieces): Adjust.
16851 (vn_reference_lookup): Likewise.
16852 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
16853 (vn_reference_lookup_3): Only look through kills if in
16854 VN_WALKREWRITE mode.
16855 (vn_reference_lookup_pieces): Adjust.
16856 (vn_reference_lookup): Likewise.
16857 (visit_reference_op_load): Likewise.
16858 (visit_reference_op_store): Likewise.
16859 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
16860 (compute_avail): Likewise.
16861 (eliminate): Likewise.
16863 2011-01-21 Jakub Jelinek <jakub@redhat.com>
16865 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
16866 DECL_IGNORED_P non-reg vars if they are used.
16868 PR tree-optimization/47391
16869 * varpool.c (const_value_known_p): Return false if
16872 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
16875 * config/i386/i386.c (ix86_local_alignment): Handle
16876 case for va_list_type_node is nil.
16877 (ix86_canonical_va_list_type): Likewise.
16879 2011-01-21 Alan Modra <amodra@gmail.com>
16881 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
16882 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
16884 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16886 * config/arm/arm.md (define_attr type): Rename f_load
16887 and f_store to f_fpa_load and f_fpa_store. Update.
16888 (write_conflict): Deal with rename fallout.
16889 (*push_fp_multi): Likewise.
16890 * config/arm/fpa.md (f_load): Use f_fpa_load.
16891 (f_store): Use f_fpa_store.
16892 (*movsf_fpa): Likewise.
16893 (*movdf_fpa): Likewise.
16894 (*movxf_fpa): Likewise.
16895 (*thumb2_movsf_fpa): Likewise.
16896 (*thumb2_movdf_fpa): Likewise.
16897 (*thumb2_movxf_fpa): Likewise.
16898 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
16899 f_loadd and f_stored.
16900 (*thumb2_movdi_vfp): Likewise.
16901 (*thumb2_movsf_vfp): Fix attribute to f_loads.
16902 (*thumb2_movsi_vfp): Likewise.
16903 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
16904 Use f_loads instead of f_load.
16905 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
16907 2011-01-20 Anatoly Sokolov <aesok@post.ru>
16909 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
16910 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
16911 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
16912 (xtensa_mode_dependent_address_p): New function.
16913 (constantpool_address_p): Make static. Change return type to bool.
16914 Change argument type to const_rtx. Use CONST_INT_P predicate.
16916 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
16919 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
16921 2011-01-20 Jakub Jelinek <jakub@redhat.com>
16924 * cfgexpand.c (expand_debug_expr): Instead of generating
16925 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
16928 2011-01-20 Richard Guenther <rguenther@suse.de>
16930 PR middle-end/47370
16931 * tree-inline.c (remap_gimple_op_r): Recurse manually for
16932 the pointer operand of MEM_REFs.
16934 2011-01-20 Jakub Jelinek <jakub@redhat.com>
16936 PR tree-optimization/46130
16937 * ipa-split.c (consider_split): If return_bb contains non-virtual
16938 PHIs other than for retval or if split_function would not adjust it,
16941 2011-01-20 Richard Guenther <rguenther@suse.de>
16943 PR tree-optimization/47167
16944 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
16945 Revert previous change, only avoid enumeral type changes.
16947 2011-01-19 Mike Stump <mikestump@comcast.net>
16949 * doc/tm.texi.in (BRANCH_COST): Englishify.
16950 * doc/tm.texi (BRANCH_COST): Likewise.
16952 2011-01-19 Dodji Seketeli <dodji@redhat.com>
16955 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
16956 (gen_scheduled_generic_parms_dies): New functions.
16957 (gen_struct_or_union_type_die): Schedule template parameters DIEs
16958 generation for the end of CU compilation.
16959 (dwarf2out_finish): Generate template parameters DIEs here.
16961 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
16964 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
16965 debug bind stmt on merge edges.
16967 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
16971 * function.c (instantiate_expr): Instantiate incoming rtl of
16972 implicit arguments, and recurse on VALUE_EXPRs.
16973 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
16974 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
16976 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
16978 * c-parser.c (c_parser_for_statement): Initialize
16979 collection_expression.
16981 2011-01-19 Joseph Myers <joseph@codesourcery.com>
16983 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
16985 2011-01-19 Joseph Myers <joseph@codesourcery.com>
16987 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
16988 (LINK_SHLIB_SPEC): Don't use %(link_path).
16989 (SUBTARGET_EXTRA_SPECS): Remove link_path.
16991 2011-01-19 Joseph Myers <joseph@codesourcery.com>
16993 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
16994 (NO_SHARED_LIB_SUPPORT): Remove.
16995 (LINK_SHLIB_SPEC): Remove one conditional definition.
16997 2011-01-19 Joseph Myers <joseph@codesourcery.com>
16999 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
17001 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
17002 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
17003 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
17004 %{call_shared} and conditionals on these options not being passed.
17005 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
17008 2011-01-19 Jakub Jelinek <jakub@redhat.com>
17010 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
17013 * ipa-split.c: Spelling fixes.
17015 2011-01-19 Richard Henderson <rth@redhat.com>
17017 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
17018 (*mulsi3): Likewise.
17020 * longlong.h [__mn10300__] (count_leading_zeros): New.
17021 [__mn10300__] (umul_ppmm, smul_ppmm): New.
17022 [__mn10300__] (add_ssaaaa, subddmmss): New.
17023 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
17024 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
17026 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17028 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
17030 2011-01-19 Richard Henderson <rth@redhat.com>
17032 * config/mn10300/mn10300.md (addsi3_flags): New.
17033 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
17034 (subsi3_flags, subc_internal, subdi3): New.
17035 (subdi3_internal, *subdi3_degenerate): New.
17036 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
17038 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
17039 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
17040 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
17041 * config/mn10300/mn10300-protos.h: Update.
17042 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
17043 (return_ret): Likewise. Rename from return_internal_regs.
17044 (return_internal): Remove.
17046 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
17047 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
17048 (mn10300_legitimate_constant_p): Likewise.
17049 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
17050 (mn10300_frame_size): New.
17051 (mn10300_expand_prologue): Use it.
17052 (mn10300_expand_epilogue): Likewise.
17053 (mn10300_initial_offset): Likewise.
17054 * config/mn10300/mn10300-protos.h: Update.
17055 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
17056 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
17057 (prologue, epilogue, return_internal): Tidy output code.
17058 (mn10300_store_multiple_operation, return): Likewise.
17059 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
17060 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
17061 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
17062 (load_pic, am33_load_pic): New.
17063 (mn10300_load_pic0, mn10300_load_pic1): New.
17065 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
17066 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
17067 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
17068 (cc_flags_for_mode, cc_flags_for_code): New.
17069 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
17070 overflow flag is not valid. Validate that the flags we need
17071 for the comparison are valid.
17072 (mn10300_output_cmp): Remove.
17073 (mn10300_output_add): New.
17074 (mn10300_select_cc_mode): Use cc_flags_for_code.
17075 (mn10300_split_cbranch): New.
17076 (mn10300_match_ccmode): New.
17077 (mn10300_split_and_operand_count): New.
17078 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
17080 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
17081 (addsi3): ... here. Use mn10300_output_add.
17082 (*addsi3_flags): New.
17083 (*am33_subsi3, *mn10300_subsi3): Merge...
17084 (subsi3): ... here. Use attribute isa.
17085 (*subsi3_flags): New.
17086 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
17088 (*am33_andsi3, *mn10300_andsi3): Merge...
17089 (andsi3): ... here.
17090 (*andsi3_flags): New.
17091 (andsi3 splitters): New.
17092 (*am33_iorsi3, *mn10300_iorsi3): Merge...
17093 (iorsi3): ... here.
17094 (*iorsi3_flags): New.
17095 (*am33_xorsi3, *mn10300_xorsi3): Merge...
17096 (xorsi3): ... here.
17097 (*xorsi3_flags): New.
17098 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
17099 (one_cmplsi2): ... here.
17100 (*one_cmplsi2_flags): New.
17101 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
17102 instead of "dax" in constraints. Use mn10300_split_cbranch.
17103 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
17104 use matching constraints to eliminate a self-comparison.
17105 (*integer_conditional_branch): Rename from integer_conditional_branch.
17106 Use int_mode_flags to match CC_REG.
17107 (*cbranchsi4_btst, *btstsi): New.
17108 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
17109 mn10300_split_cbranch.
17110 (*am33_cmpsf): Rename from am33_cmpsf.
17111 (*float_conditional_branch): Rename from float_conditional_branch.
17112 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
17113 (zero_extendqisi2): ... here.
17114 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
17115 (zero_extendhisi2): ... here.
17116 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
17117 (extendqisi2): ... here.
17118 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
17119 (extendhisi2): ... here.
17120 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
17121 (ashlsi3): ... here.
17122 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
17123 (lshrsi3): ... here.
17124 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
17125 (ashrsi3): ... here.
17126 (consecutive add peephole): Remove.
17127 * config/mn10300/predicates.md (label_ref_operand): New.
17128 (int_mode_flags): New.
17129 (CCZN_comparison_operator): New.
17131 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
17132 (throughput_42_latency_43): New reservation.
17133 (mulsidi3, umulsidi3): New expanders.
17134 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
17135 the MDR register to allocation; separately allocate the low and
17136 high parts of the DImode result.
17137 (umulsidi3_internal): Similarly.
17138 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
17139 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
17140 (udivsi3, umodsi3): Remove.
17141 (udivmodsi4, divmodsi4): New expanders.
17142 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
17143 (*divmodsi4): Simiarly.
17144 (ext_internal): New.
17146 * config/mn10300/constraints.md ("z"): New constraint.
17147 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
17148 (FIXED_REGISTERS): Don't fix MDR.
17149 (CALL_USED_REGSITERS): Reformat nicely.
17150 (REG_ALLOC_ORDER): Add MDR.
17151 (enum regclass): Add MDR_REGS.
17152 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
17153 (IRA_COVER_CLASSES): Add MDR_REGS.
17154 (REGNO_REG_CLASS): Handle MDR_REG.
17155 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
17156 (mn10300_register_move_cost): Likewise.
17157 * config/mn10300/mn10300.md (MDR_REG): New.
17158 (*movsi_internal): Handle moves to/from MDR_REGS.
17160 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
17162 (mn10300_secondary_reload): Tidy combination reload classes.
17163 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
17164 addresses for AM33. Allow symbolic offsets for reg+imm.
17165 (mn10300_regno_in_class_p): New.
17166 (mn10300_legitimize_reload_address): New.
17167 * config/mn10300/mn10300.h (enum reg_class): Remove
17168 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
17169 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
17170 SP_OR_GENERAL_REGS.
17171 (REG_CLASS_NAMES): Update to match.
17172 (REG_CLASS_CONTENTS): Likewise.
17173 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
17174 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
17175 (REGNO_IN_RANGE_P): Remove.
17176 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
17177 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
17178 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
17179 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
17180 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
17181 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
17182 (REGNO_GENERAL_P): New.
17183 (HAVE_POST_MODIFY_DISP): New.
17184 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
17185 (LEGITIMIZE_RELOAD_ADDRESS): New.
17186 * config/mn10300/mn10300-protos.h: Update.
17188 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
17189 DATA_REGS for AM33 stack-pointer destination.
17190 (mn10300_preferred_output_reload_class): Likewise.
17191 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
17192 into a form appropriate for ...
17193 (TARGET_SECONDARY_RELOAD): New.
17194 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
17195 * config/mn10300/mn10300-protos.h: Update.
17196 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
17197 reload_insi; use the "A" constraint for the scratch; handle AM33
17198 moves of sp to non-address registers.
17200 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
17201 (*movqi_internal): ... here.
17202 (*am33_movhi, *mn10300_movhi): Merge into...
17203 (*movhi_internal): ... here.
17204 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
17205 as the source/destination of moves from/to SP.
17206 (movsf): Only allow for AM33-2.
17207 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
17208 any integer constant constraint. Only allow for AM33-2. Tidy
17209 all of the alternative outputs.
17210 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
17211 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
17213 (udivsi3, umodsi3): New patterns for MN103 only.
17215 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
17217 * doc/tm.texi.in: Spell out that a lack of register class unions
17219 * doc/tm.texi: Regenerate.
17221 2011-01-19 Jakub Jelinek <jakub@redhat.com>
17223 PR rtl-optimization/47337
17224 * dce.c (check_argument_store): New function.
17225 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
17227 PR tree-optimization/47290
17228 * tree-eh.c (infinite_empty_loop_p): New function.
17229 (cleanup_empty_eh): Use it.
17231 2011-01-18 Steve Ellcey <sje@cup.hp.com>
17234 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
17235 (a64_expand_widen_sum): Ditto.
17236 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
17237 (vec_extract_evenodd_help): Ditto.
17238 (vec_extract_evenv4hi): Ditto.
17239 (vec_extract_oddv4hi): Ditto.
17240 (vec_extract_evenv2si): Ditto.
17241 (vec_extract_oddv2si): Ditto.
17242 (vec_extract_evenv2sf): Ditto.
17243 (vec_extract_oddv2sf): Ditto.
17244 (vec_pack_trunc_v4hi: Ditto.
17245 (vec_pack_trunc_v2si): Ditto.
17246 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
17247 (vec_interleave_highv8qi): Ditto.
17249 (vec_extract_oddv8qi): Ditto.
17250 (vec_interleave_lowv4hi): Ditto.
17251 (vec_interleave_highv4hi): Ditto.
17252 (vec_interleave_lowv2si): Ditto.
17253 (vec_interleave_highv2si): Ditto.
17255 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17257 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
17258 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
17259 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
17260 (pa_c_mode_for_suffix): New.
17261 (TARGET_EXPAND_BUILTIN): Define.
17262 (TARGET_C_MODE_FOR_SUFFIX): Define.
17263 (pa_builtins): Define.
17264 (pa_init_builtins): Register __float128 type and init new support
17266 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
17267 * config/pa/quadlib.c (_U_Qfcopysign): New.
17269 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
17271 PR middle-end/46894
17272 * explow.c (allocate_dynamic_stack_space): Do not assume more than
17273 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
17276 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17278 PR tree-optimization/47179
17279 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
17280 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
17282 2011-01-18 Richard Guenther <rguenther@suse.de>
17284 PR rtl-optimization/47216
17285 * emit-rtl.c: Include tree-flow.h.
17286 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
17287 of replicating it with different semantics.
17288 * Makefile.in (emit-rtl.o): Adjust.
17290 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17292 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
17293 (cortex_a9_dp): Handle neon types correctly.
17295 2011-01-18 Jakub Jelinek <jakub@redhat.com>
17297 PR rtl-optimization/47299
17298 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
17299 subtarget. Use normal multiplication if both operands are constants.
17300 * expmed.c (expand_widening_mult): Don't try to optimize constant
17301 multiplication if op0 has VOIDmode. Convert op1 constant to mode
17304 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17306 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
17307 spacing after 'e.g.', typos, comma, hyphenation.
17309 2011-01-17 Richard Henderson <rth@redhat.com>
17311 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
17312 (rx_restricted_mem_operand): New.
17313 (rx_shift_operand): Use register_operand.
17314 (rx_source_operand, rx_compare_operand): Likewise.
17315 * config/rx/rx.md (addsi3_flags): New expander.
17316 (adddi3): Rewrite as expander.
17317 (adc_internal, *adc_flags, adddi3_internal): New patterns.
17318 (subsi3_flags): New expander.
17319 (subdi3): Rewrite as expander.
17320 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
17322 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
17323 (rx_init_builtins): Remove sat builtin.
17324 (rx_expand_builtin): Likewise.
17325 * config/rx/rx.md (ssaddsi3): New.
17326 (*sat): Rename from sat. Represent the CC_REG input.
17328 * config/rx/predicates.md (rshift_operator): New.
17329 * config/rx/rx.c (rx_expand_insv): Remove.
17330 * config/rx/rx-protos.h: Update.
17331 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
17332 operand to the canonical position.
17333 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
17334 (*bitclr, *bitclr_in_memory): Similarly.
17335 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
17336 (insv): Retain the zero_extract in the expansion.
17338 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
17339 (bswaphi2, bitinvert, revw): Likewise.
17341 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
17342 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
17343 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
17344 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
17345 (bitset, bitset_in_memory): Likewise.
17346 (bitinvert, bitinvert_in_memory): Likewise.
17347 (bitclr, bitclr_in_memory): Likewise.
17348 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
17349 (rx_strend, rx_cmpstrn): Likewise.
17350 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
17351 (bitop peep2 patterns): Remove.
17353 * config/rx/rx.c (rx_match_ccmode): New.
17354 * config/rx/rx-protos.h: Update.
17355 * config/rx/rx.md (abssi2): Clobber, don't set flags.
17356 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
17357 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
17358 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
17359 (fix_truncsfsi2, floatsisf2): Likewise.
17360 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
17361 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
17362 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
17363 (*subsi3_flags, *xorsi3_flags): New.
17365 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
17367 * config/rx/rx.c (rx_print_operand): Remove workaround for
17368 unsplit comparison operations.
17370 * config/rx/rx.md (movsicc): Split after reload.
17371 (*movsicc): Merge *movsieq and *movsine via match_operator.
17372 (*stcc): New pattern.
17374 * config/rx/rx.c (rx_float_compare_mode): Remove.
17375 * config/rx/rx.h (rx_float_compare_mode): Remove.
17376 * config/rx/rx.md (cstoresi4): Split after reload.
17377 (*sccc): New pattern.
17379 * config/rx/predicates.md (label_ref_operand): New.
17380 (rx_z_comparison_operator): New.
17381 (rx_zs_comparison_operator): New.
17382 (rx_fp_comparison_operator): New.
17383 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
17384 Validate that the flags are set properly for the comparison.
17385 (rx_gen_cond_branch_template): Remove.
17386 (rx_cc_modes_compatible): Remove.
17387 (mode_from_flags): New.
17388 (flags_from_code): Rename from flags_needed_for_conditional.
17389 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
17390 (rx_select_cc_mode): Likewise.
17391 (rx_split_fp_compare): New.
17392 (rx_split_cbranch): New.
17393 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
17394 (*cbranchsi4): Use match_operator and rx_split_cbranch.
17395 (*cbranchsf4): Similarly.
17396 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
17397 match_operator and rx_split_cbranch.
17398 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
17399 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
17400 (*cmpsi): Rename from cmpsi.
17401 (*tstsi): Rename from tstsi.
17402 (*cmpsf): Rename from cmpsf; use CC_Fmode.
17403 (*conditional_branch): Rename from conditional_branch.
17404 (*reveresed_conditional_branch): Remove.
17405 (b<code>): Remove expander.
17406 * config/rx/rx-protos.h: Update.
17408 * config/rx/rx.c (rx_compare_redundant): Remove.
17409 * config/rx/rx.md (cmpsi): Don't use it.
17410 * config/rx/rx-protos.h: Update.
17412 * config/rx/rx-modes.def (CC_F): New mode.
17413 * config/rx/rx.c (rx_select_cc_mode): New.
17414 * config/rx/rx.h (SELECT_CC_MODE): Use it.
17415 * config/rx/rx-protos.h: Update.
17417 2011-01-17 Richard Henderson <rth@redhat.com>
17419 * except.c (dump_eh_tree): Fix stray ; after for statement.
17421 2011-01-17 Richard Guenther <rguenther@suse.de>
17423 PR tree-optimization/47313
17424 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
17425 handling before copying the body. Properly deal with
17426 by-reference result in SSA form.
17428 2011-01-17 Ian Lance Taylor <iant@google.com>
17431 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
17432 (struct_value_alias_set): Don't define.
17433 (sparc_option_override): Don't set sparc_sr_alias_set and
17434 struct_value_alias_set.
17435 (save_or_restore_regs): Use gen_frame_mem rather than calling
17437 (sparc_struct_value_rtx): Likewise.
17439 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
17442 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
17443 (_mm_maskstore_pd): Likewise.
17444 (_mm_maskload_ps): Likewise.
17445 (_mm_maskstore_ps): Likewise.
17446 (_mm256_maskload_pd): Change mask to __m256i.
17447 (_mm256_maskstore_pd): Likewise.
17448 (_mm256_maskload_ps): Likewise.
17449 (_mm256_maskstore_ps): Likewise.
17451 * config/i386/i386-builtin-types.def: Updated.
17452 (ix86_expand_special_args_builtin): Likewise.
17454 * config/i386/i386.c (bdesc_special_args): Update
17455 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
17456 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
17457 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
17458 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
17460 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
17461 Use <avxpermvecmode> on mask register.
17462 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
17464 2011-01-17 Olivier Hainque <hainque@adacore.com>
17465 Michael Haubenwallner <michael.haubenwallner@salomon.at>
17466 Eric Botcazou <ebotcazou@adacore.com>
17469 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
17470 if <= USHRT_MAX in 32-bit mode.
17472 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17474 * doc/install.texi (Configuration, Specific): Wrap long
17475 lines in examples. Allow line wrapping in long options
17476 and URLs where beneficial for PDF output.
17478 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
17480 * config/mips/mips.c (mips_classify_symbol): Don't return
17481 SYMBOL_PC_RELATIVE for nonlocal labels.
17483 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
17485 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
17487 2011-01-15 Jan Hubicka <jh@suse.cz>
17489 PR tree-optimization/47276
17490 * ipa.c (function_and_variable_visibility): Do not try to mark alias
17491 declarations as needed.
17493 2011-01-15 Martin Jambor <mjambor@suse.cz>
17495 * common.opt (fdevirtualize): New flag.
17496 * doc/invoke.texi (Option Summary): Document it.
17497 * opts.c (default_options_table): Add devirtualize flag.
17498 * ipa-prop.c (detect_type_change): Return immediately if
17499 devirtualize flag is not set.
17500 (detect_type_change_ssa): Likewise.
17501 (compute_known_type_jump_func): Likewise.
17502 (ipa_analyze_virtual_call_uses): Likewise.
17504 2011-01-14 Martin Jambor <mjambor@suse.cz>
17506 PR tree-optimization/45934
17507 PR tree-optimization/46302
17508 * ipa-prop.c (type_change_info): New type.
17509 (stmt_may_be_vtbl_ptr_store): New function.
17510 (check_stmt_for_type_change): Likewise.
17511 (detect_type_change): Likewise.
17512 (detect_type_change_ssa): Likewise.
17513 (compute_complex_assign_jump_func): Check for dynamic type change.
17514 (compute_complex_ancestor_jump_func): Likewise.
17515 (compute_known_type_jump_func): Likewise.
17516 (compute_scalar_jump_functions): Likewise.
17517 (ipa_analyze_virtual_call_uses): Likewise.
17518 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
17520 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17522 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
17523 * config/i386/i386.opt (msse5): New Alias.
17525 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17527 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
17528 * config/sparc/linux64.h (CC1_SPEC): Likewise.
17529 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
17530 * config/sparc/sparc.h (CC1_SPEC): Likewise.
17532 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17534 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
17536 * config/sparc/linux64.h (CC1_SPEC): Likewise.
17537 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
17538 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
17539 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
17541 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
17543 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17545 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
17547 2011-01-14 Mike Stump <mikestump@comcast.net>
17549 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
17550 * config/fr30/fr30.md: Likweise
17551 (movsi_push): Likewise.
17552 (movsi_pop): Likewise.
17553 (enter_func): Likewise.
17554 * config/moxie/moxie.md (movsi_push): Likewise.
17555 (movsi_pop): Likewise.
17557 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17559 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
17560 %{no_archive} %{exact_version}.
17561 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
17562 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
17563 %{no_archive} %{exact_version}.
17564 * config/mips/openbsd.h (LINK_SPEC): Likewise.
17565 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
17566 * config/mips/vxworks.h: Likewise.
17568 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17570 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
17572 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17574 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
17575 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
17577 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17579 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
17582 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17584 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
17586 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
17587 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
17589 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
17590 Don't handle -shlib.
17592 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17594 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
17595 (CC1_SPEC): Don't handle -profile.
17597 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17599 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
17600 * config/mips/mips.h (CC1_SPEC): Likewise.
17602 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17604 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
17605 * config/mips/mips.h (CC1_SPEC): Likewise.
17607 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17609 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
17610 * config/m32r/linux.h (LINK_SPEC): Likewise.
17611 * config/mips/linux.h (LINK_SPEC): Likewise.
17612 * config/mips/linux64.h (LINK_SPEC): Likewise.
17613 * config/sparc/linux.h (LINK_SPEC): Likewise.
17614 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
17615 LINK_SPEC): Likewise.
17616 * config/xtensa/linux.h (LINK_SPEC): Likewise.
17618 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17620 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
17622 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
17624 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17626 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
17627 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
17629 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17631 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
17633 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17635 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
17636 supports -Bstatic/-Bdynamic.
17637 * configure: Regenerate.
17639 2011-01-14 Jan Hubicka <jh@suse.cz>
17640 Jack Howarth <howarth@bromo.med.uc.edu>
17643 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
17644 when checking debug_info_level. Test write_symbols instead of
17645 debug_hooks->var_location when setting flag_var_tracking_uninit.
17647 2011-01-14 Richard Guenther <rguenther@suse.de>
17649 PR tree-optimization/47179
17650 * target.def (ref_may_alias_errno): New target hook.
17651 * targhooks.h (default_ref_may_alias_errno): Declare.
17652 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
17653 (default_ref_may_alias_errno): New function.
17654 * target.h (struct ao_ref_s): Declare.
17655 * tree-ssa-alias.c: Include target.h.
17656 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
17657 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
17658 (targhooks.o): Likewise.
17659 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
17660 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
17662 2011-01-14 Richard Guenther <rguenther@suse.de>
17664 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
17666 2011-01-14 Richard Guenther <rguenther@suse.de>
17668 PR tree-optimization/47280
17669 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
17670 return CFG changes.
17671 (tree_ssa_forward_propagate_single_use_vars): Deal with
17672 CFG changes from associate_plusminus.
17674 2011-01-14 Richard Guenther <rguenther@suse.de>
17676 PR middle-end/47281
17678 2011-01-11 Richard Guenther <rguenther@suse.de>
17680 PR tree-optimization/46076
17681 * tree-ssa.c (useless_type_conversion_p): Conversions from
17682 unprototyped to empty argument list function types are useless.
17684 2011-01-14 Richard Guenther <rguenther@suse.de>
17686 PR tree-optimization/47286
17687 * tree-ssa-structalias.c (new_var_info): Register variables are global.
17689 2011-01-14 Martin Jambor <mjambor@suse.cz>
17691 PR middle-end/46823
17692 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
17694 2011-01-13 Anatoly Sokolov <aesok@post.ru>
17696 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
17697 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
17698 * config/xtensa/xtensa.c (xtensa_libcall_value,
17699 xtensa_function_value_regno_p): New functions.
17700 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
17702 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
17705 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
17707 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
17708 New function prototype.
17709 * config/i386/winnt.c (i386_pe_assemble_visibility):
17710 Warn only if attribute was specified by user.
17712 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
17715 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
17717 (floatunsdidf2_fcfidu): Ditto.
17719 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17721 * config/s390/s390.c (print_operand_address): Replace 'error' with
17722 'output_operand_lossage'.
17723 (print_operand): Likewise.
17725 2011-01-13 Jeff Law <law@redhat.com>
17727 PR rtl-optimization/39077
17728 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
17729 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
17730 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
17731 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
17732 * gcse.c (prune_insertions_deletions): New function.
17733 (compute_pre_data): Use it.
17735 2011-01-13 Dodji Seketeli <dodji@redhat.com>
17738 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
17740 (prune_unused_types_mark): Use it.
17742 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
17744 PR rtl-optimization/45352
17745 * sel-sched.c: Update copyright years.
17746 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
17747 in the advancing loop when we have issued issue_rate insns.
17749 2011-01-12 Richard Henderson <rth@redhat.com>
17751 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
17752 (TARGET_MD_ASM_CLOBBERS): New.
17754 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
17755 (TARGET_DELEGITIMIZE_ADDRESS): New.
17757 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
17758 (clzsi2, *bsch): New patterns.
17760 * config/mn10300/mn10300.md (INT): New mode iterator.
17761 (*mov<INT>_clr): New pattern, and peep2 to generate it.
17763 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
17764 flag_split_wide_types.
17766 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
17767 (mn10300_trampoline_init): Rewrite without a template, an immediate
17768 load and a direct branch.
17769 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
17771 2011-01-12 Anatoly Sokolov <aesok@post.ru>
17773 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
17774 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
17775 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
17776 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
17778 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
17781 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
17784 2011-01-12 Jan Hubicka <jh@suse.cz>
17787 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
17788 (PLUGIN_COND_CLOSE): New macro.
17789 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
17791 2011-01-12 Richard Guenther <rguenther@suse.de>
17794 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
17795 register variables in a MEM_REF.
17797 2011-01-12 Joseph Myers <joseph@codesourcery.com>
17799 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
17800 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
17801 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
17802 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
17803 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
17804 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
17805 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
17806 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
17807 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
17808 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
17809 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
17810 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
17811 * config/gnu-user.h: New. Copied from linux.h.
17812 (LINUX_TARGET_STARTFILE_SPEC): Rename to
17813 GNU_USER_TARGET_STARTFILE_SPEC.
17814 (LINUX_TARGET_ENDFILE_SPEC): Rename to
17815 GNU_USER_TARGET_ENDFILE_SPEC.
17816 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
17817 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
17818 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
17819 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
17820 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
17821 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
17822 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
17823 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
17824 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
17825 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
17826 * config/arm/linux-eabi.h (CC1_SPEC): Use
17827 GNU_USER_TARGET_CC1_SPEC.
17828 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
17829 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
17830 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
17831 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
17832 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
17833 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
17834 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
17835 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
17837 2011-01-12 Richard Guenther <rguenther@suse.de>
17840 * doc/invoke.texi (ffast-math): Document it is turned on
17843 2011-01-12 Jan Hubicka <jh@suse.cz>
17845 PR tree-optimization/47233
17846 * opts.c (common_handle_option): Disable ipa-reference with profile
17849 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
17851 * c-parser.c (c_parser_objc_at_property_declaration): Improved
17854 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
17856 * c-parser.c (c_lex_one_token): Updated and reindented some
17857 comments. No changes in code.
17859 2011-01-11 Ian Lance Taylor <iant@google.com>
17861 * godump.c (go_output_var): Don't output the variable if there is
17862 already a type with the same name.
17864 2011-01-11 Ian Lance Taylor <iant@google.com>
17866 * godump.c (go_format_type): Don't generate float80.
17868 2011-01-11 Richard Henderson <rth@redhat.com>
17870 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
17871 declaration. Rewrite for both speed and size.
17872 (mn10300_address_cost_1): Remove.
17873 (mn10300_register_move_cost): New.
17874 (mn10300_memory_move_cost): New.
17875 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
17876 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
17877 extensions, shifts, BSWAP, CLZ.
17878 (mn10300_wide_const_load_uses_clr): Remove.
17879 (TARGET_REGISTER_MOVE_COST): New.
17880 (TARGET_MEMORY_MOVE_COST): New.
17881 * config/mn10300/mn10300-protos.h: Update.
17882 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
17884 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
17885 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
17886 * config/mn10300/mn10300-protos.h: Update.
17887 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
17888 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
17889 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
17890 (*test_int_bitfield, *test_byte_bitfield): Remove.
17891 (*bit_test, *subreg_bit_test): Remove.
17892 * config/mn10300/predicates.md (const_8bit_operand): Remove.
17894 * config/mn10300/constraints.md ("c"): Rename from "A".
17895 ("A", "D"): New constraint letters.
17896 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
17897 (fmssf4, fnmasf4, fnmssf4): Likewise.
17899 * config/mn10300/mn10300.md (isa): New attribute.
17900 (enabled): New attribute.
17902 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
17903 (abssf2, negsf2): Define only for hardware fp.
17904 (sqrtsf2): Reformat.
17905 (addsf3, subsf3, mulsf3): Merge expander and insn.
17907 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
17908 (DEBUGGER_AUTO_OFFSET): Remove.
17909 (DEBUGGER_ARG_OFFSET): Remove.
17911 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
17912 Emit register stores with the same offsets as the hardware.
17913 (mn10300_store_multiple_operation): Don't check that the register
17914 save offsets are monotonic.
17915 * config/mn10300/mn10300-protos.h: Update.
17917 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
17919 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
17920 in terms of the value on the stack, not the MDR register.
17922 2011-01-11 Jan Hubicka <jh@suse.cz>
17926 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
17927 (symbol_alias_set_destroy, symbol_alias_set_contains,
17928 propagate_aliases_backward): Declare.
17929 * lto-streamer-out.c (struct sets): New sturcture.
17930 (trivally_defined_alias): New function.
17931 (output_alias_pair_p): Rewrite.
17932 (output_unreferenced_globals): Fix output of alias pairs.
17933 (produce_symtab): Likewise.
17934 * ipa.c (function_and_variable_visibility): Set weak alias destination
17936 * varasm.c (symbol_alias_set_t): Remove.
17937 (symbol_alias_set_destroy): Export.
17938 (propagate_aliases_forward, propagate_aliases_backward): New functions
17940 (compute_visible_aliases): ... this one; remove.
17941 (trivially_visible_alias): New
17942 (trivially_defined_alias): New.
17943 (remove_unreachable_alias_pairs): Rewrite.
17944 (finish_aliases_1): Reorganize code checking if alias is defined.
17945 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
17948 2011-01-11 Richard Guenther <rguenther@suse.de>
17950 PR tree-optimization/46076
17951 * tree-ssa.c (useless_type_conversion_p): Conversions from
17952 unprototyped to empty argument list function types are useless.
17954 2011-01-11 Richard Guenther <rguenther@suse.de>
17956 PR middle-end/45235
17957 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
17958 volatile MEMs as MEM_READONLY_P.
17960 2011-01-11 Richard Guenther <rguenther@suse.de>
17962 PR tree-optimization/47239
17963 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
17965 2011-01-11 Jeff Law <law@redhat.com>
17967 PR tree-optimization/47086
17968 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
17969 IVs from statements that might throw.
17971 2011-01-10 Jan Hubicka <jh@suse.cz>
17974 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
17976 2011-01-10 Jan Hubicka <jh@suse.cz>
17979 * profile.c (read_profile_edge_counts): Ignore profile inconistency
17980 when correcting profile.
17982 2011-01-10 Jan Hubicka <jh@suse.cz>
17985 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
17986 DECL_FINI_PRIORITY.
17987 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
17988 Restore DECL_FINI_PRIORITY.
17990 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17992 * doc/gimple.texi: Fix quoting of multi-word return values in
17993 @deftypefn statements. Ensure presence of return value. Wrap
17994 overlong @deftypefn lines.
17995 (is_gimple_operand, is_gimple_min_invariant_address): Remove
17996 descriptions of removed functions.
17997 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
17998 of multi-word return value in @deftypefn statement.
18000 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18002 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
18003 (Conditional Expressions, Logical Operators)
18004 (Statement and operand traversals): Do not indent smallexample
18005 code. Fix duplicate function argument in example.
18007 2011-01-10 Jeff Law <law@redhat.com>
18009 PR tree-optimization/47141
18010 * ipa-split.c (split_function): Handle case where we are
18011 returning a value and the return block has a virtual operand phi.
18013 2011-01-10 Jan Hubicka <jh@suse.cz>
18015 PR tree-optimization/47234
18016 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
18017 (pass_feedback_split_functions): Declare.
18018 * passes.c (init_optimization_passes): Add ipa-split as subpass of
18020 * ipa-split.c (gate_split_functions): Update comments; disable
18021 split-functions for profile_arc_flag and branch_probabilities.
18022 (gate_feedback_split_functions): New function.
18023 (execute_feedback_split_functions): New function.
18024 (pass_feedback_split_functions): New global var.
18026 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
18029 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
18030 calling gimple_call_set_cannot_inline.
18032 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
18034 * config/darwin-sections.def: Remove unused section.
18036 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
18039 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
18041 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
18044 * c-parser.c (c_parser_declaration_or_fndef): Improved
18047 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
18049 * config/i386/winnt.c (i386_pe_start_function): Make sure
18050 to switch back to function's section.
18052 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
18056 * plugin.c: Move include of dlfcn.h from here...
18057 * system.h: ... to here.
18059 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18061 * doc/cpp.texi (C++ Named Operators): Fix markup for header
18063 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
18064 two extra empty pages in PDF output.
18066 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
18069 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
18070 for error recovery purposes behave as if it was not specified so
18071 that the default type is usd.
18073 2011-01-07 Jan Hubicka <jh@suse.cz>
18075 PR tree-optmization/46469
18076 * ipa.c (function_and_variable_visibility): Clear needed flags on
18077 nodes with external decls; handle weakrefs merging correctly.
18079 2011-01-07 Joseph Myers <joseph@codesourcery.com>
18081 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
18084 2011-01-07 Jan Hubicka <jh@suse.cz>
18086 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
18087 and no longer claim that gold is required for linker plugin.
18088 * configure: Regenerate.
18089 * gcc.c (PLUGIN_COND): New macro.
18090 (LINK_COMMAND_SPEC): Use it.
18091 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
18092 * config.in (HAVE_LTO_PLUGIN): New.
18093 * configure.ac (--with-lto-plugin): New parameter; autodetect
18096 2011-01-07 Jan Hubicka <jh@suse.cz>
18098 PR tree-optimization/46367
18099 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
18100 when we can update original.
18101 (cgraph_mark_inline_edge): Sanity check.
18102 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
18104 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18106 * config/spu/spu.h (ASM_COMMENT_START): Define.
18108 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
18111 * gcc.c (%>S): New.
18112 (SWITCH_KEEP_FOR_GCC): Likewise.
18113 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
18114 (do_spec_1): Handle "%>".
18116 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
18118 2011-01-07 Jakub Jelinek <jakub@redhat.com>
18121 * config/i386/i386.c (ix86_delegitimize_address): If
18122 simplify_gen_subreg fails, return orig_x.
18125 * value-prof.c (gimple_stringop_fixed_value): Handle
18126 lhs of the call properly.
18128 2011-01-07 Jan Hubicka <jh@suse.cz>
18131 * lto-opt.c (lto_reissue_options): Set flag_shlib.
18133 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
18135 * target.def (function_switched_text_sections): New hook.
18136 * doc/tm.texi: Regenerated.
18137 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
18138 * final.c (default_function_switched_text_sections): New.
18139 (final_scan_insn): Call function_switched_text_sections when a
18140 mid-function section change occurs.
18141 * output.h (default_function_switched_text_sections): Declare.
18142 * config/darwin-protos.h (darwin_function_switched_text_sections):
18144 * config/darwin.c (darwin_function_switched_text_sections): New.
18145 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
18147 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
18149 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
18150 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
18151 the secondary code fragment when outputting for DWARF == 2.
18153 2011-01-07 Anatoly Sokolov <aesok@post.ru>
18155 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
18156 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
18158 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
18159 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
18161 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
18164 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
18165 when it is not empty.
18167 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
18170 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
18171 (case ${target}): Add btver1.
18172 * config/i386/driver-i386.c (host_detect_local_cpu): Let
18173 -march=native recognize btver1 processors.
18174 * config/i386/i386-c.c (ix86_target_macros_internal): Add
18175 btver1 def_and_undef
18176 * config/i386/i386.c (struct processor_costs btver1_cost): New
18178 (m_BTVER1): New definition.
18179 (m_AMD_MULTIPLE): Includes m_BTVER1.
18180 (initial_ix86_tune_features): Add btver1 tune.
18181 (processor_target_table): Add btver1 entry.
18182 (static const char *const cpu_names): Add btver1 entry.
18183 (software_prefetching_beneficial_p): Add btver1.
18184 (ix86_option_override_internal): Add btver1 instruction sets.
18185 (ix86_issue_rate): Add btver1.
18186 (ix86_adjust_cost): Add btver1.
18187 * config/i386/i386.h (TARGET_BTVER1): New definition.
18188 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
18189 (enum processor_type): Add PROCESSOR_BTVER1.
18190 * config/i386/i386.md (define_attr "cpu"): Add btver1.
18192 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18195 * config/i386/i386.c (legitimize_tls_address)
18196 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
18197 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
18198 (tls_initial_exec_64_sun): New pattern.
18200 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
18202 * doc/invoke.texi (Overall Options): Improve wording and markup
18203 of the description of -wrapper.
18205 2011-01-06 Joseph Myers <joseph@codesourcery.com>
18207 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
18208 rdynamic, threads): New Driver options.
18210 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18213 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
18214 if coming from .tdata.
18215 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
18217 2011-01-06 Jan Hubicka <jh@suse.cz>
18220 * collect2.c (main): Do not enable LTOmode when plugin is active.
18222 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18225 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
18226 --version output if supported.
18227 * configure: Regenerate.
18229 2011-01-06 Joseph Myers <joseph@codesourcery.com>
18231 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
18234 2011-01-06 Jakub Jelinek <jakub@redhat.com>
18237 * c-convert.c (convert): When converting a complex expression
18238 other than COMPLEX_EXPR to a different complex type, ensure
18239 c_save_expr is called instead of save_expr, unless in_late_binary_op.
18240 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
18241 when converting COMPLEX_TYPE.
18243 2011-01-06 Ira Rosen <irar@il.ibm.com>
18245 PR tree-optimization/47139
18246 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
18247 only the last reduction value is used outside the loop. Update
18250 2011-01-05 Joseph Myers <joseph@codesourcery.com>
18252 * config/rtems.opt: New.
18253 * config.gcc (*-*-rtems*): Use rtems.opt.
18255 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
18257 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
18258 processors do not support 3DNow instructions.
18260 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18262 * config/spu/spu.c (spu_option_override): Set parameter
18263 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
18265 2011-01-05 Jan Hubicka <jh@suse.cz>
18267 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
18268 at the command line.
18270 2011-01-05 Martin Jambor <mjambor@suse.cz>
18273 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
18274 deltas on streamed outgoing edges.
18275 (output_node_opt_summary): Output info for outgoing edges only when
18276 the node is in new parameter set.
18277 (output_cgraph_opt_summary): New parameter set, passed to the two
18278 aforementioned functions. Update its forward declaration and its
18281 2011-01-05 Tom Tromey <tromey@redhat.com>
18283 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
18284 operator to c_finish_omp_atomic.
18285 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
18286 (build_unary_op): Update.
18287 (build_modify_expr): Update.
18288 (build_asm_expr): Update.
18290 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18292 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
18293 newly inserted insns.
18294 (pad_bb): Likewise.
18295 (spu_emit_branch_hint): Likewise.
18296 (insert_hbrp_for_ilb_runout): Likewise.
18297 (spu_machine_dependent_reorg): Call df_finish_pass after
18298 schedule_insns returns.
18300 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18302 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
18304 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
18306 PR tree-optimization/47005
18307 * tree-sra.c (struct access): Add 'non_addressable' bit.
18308 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
18309 (decide_one_param_reduction): Return 0 if the parameter is passed by
18310 reference and one of the accesses in the group is non_addressable.
18312 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
18314 PR tree-optimization/47056
18315 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
18316 (mark_load): Likewise. Handle FUNCTION_DECL specially.
18317 (mark_store): Likewise. Pass STMT to ipa_record_reference.
18319 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
18321 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
18322 initializer. Skip view conversions from aggregate types.
18324 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
18327 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
18329 2011-01-04 Philipp Thomas <pth@suse.de>
18331 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
18334 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18336 * function.c (thread_prologue_and_epilogue_insns): Do not crash
18337 on empty epilogue sequences.
18339 2011-01-04 Joseph Myers <joseph@codesourcery.com>
18341 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
18342 non-static): New Driver options.
18344 2011-01-04 Jie Zhang <jie@codesourcery.com>
18347 * gcc.c (default_compilers[]): Set combinable field to 0
18348 for all assembly languages.
18350 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
18352 * config/mips/loongson3a.md: New file.
18353 * config/mips/mips.md: Include loongson3a.md.
18354 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
18357 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
18359 PR middle-end/47017
18360 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
18361 instead of convert_memory_address_addr_space on the base expression.
18363 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18365 * config/spu/spu.c (spu_option_override): Update error text
18366 for bad -march= / -mtune= values.
18368 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18370 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
18371 if branch-hint optimization will be performed.
18373 2011-01-03 Jakub Jelinek <jakub@redhat.com>
18375 PR tree-optimization/47148
18376 * ipa-split.c (split_function): Convert arguments to
18377 DECL_ARG_TYPE if possible.
18379 PR tree-optimization/47155
18380 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
18381 when computing uns.
18383 PR rtl-optimization/47157
18384 * combine.c (try_combine): If undobuf.other_insn becomes
18385 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
18386 and set *new_direct_jump_p too.
18388 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
18390 PR tree-optimization/47021
18391 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
18393 2011-01-03 Jakub Jelinek <jakub@redhat.com>
18395 * gcc.c (process_command): Update copyright notice dates.
18396 * gcov.c (print_version): Likewise.
18397 * gcov-dump.c (print_version): Likewise.
18398 * mips-tfile.c (main): Likewise.
18399 * mips-tdump.c (main): Likewise.
18401 2011-01-03 Martin Jambor <mjambor@suse.cz>
18403 PR tree-optimization/46801
18404 * tree-sra.c (type_internals_preclude_sra_p): Check whether
18405 aggregate fields start at byte boundary instead of the bit-field flag.
18407 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
18410 * gcc.c (main): Revert revision 168407.
18412 2011-01-03 Martin Jambor <mjambor@suse.cz>
18414 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
18416 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18418 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
18419 vector optab to expand vector/scalar shift, update gimple to vector.
18421 2011-01-03 Martin Jambor <mjambor@suse.cz>
18423 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
18426 2011-01-03 Martin Jambor <mjambor@suse.cz>
18428 PR tree-optimization/46984
18429 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
18431 (cgraph_create_indirect_edge): Fixed line length.
18432 (cgraph_indirect_call_info): Declare.
18433 (cgraph_make_edge_direct) Update declaration.
18434 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
18435 (cgraph_create_indirect_edge): Use it.
18436 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
18438 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
18439 the new thunk_delta representation.
18440 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
18442 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
18443 (ipa_read_indirect_edge_info): Likewise.
18444 * lto-cgraph.c (output_edge_opt_summary): New function.
18445 (output_node_opt_summary): Call it on all outgoing edges.
18446 (input_edge_opt_summary): New function.
18447 (input_node_opt_summary): Call it on all outgoing edges.
18449 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
18452 * gcc.c (main): Don't check have_o when settting combine_inputs.
18454 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
18456 * regrename.c: Add general comment describing the pass.
18457 (struct du_head): Remove 'length' field.
18458 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
18459 (regrename_optimize): Do not sort chains. Rework comments, add others.
18460 Force renaming to the preferred class (if any) in the first pass and do
18461 not consider registers that belong to it in the second pass.
18462 (create_new_chain): Do not set 'length' field.
18463 (scan_rtx_reg): Likewise.
18465 2011-01-02 Jakub Jelinek <jakub@redhat.com>
18467 PR tree-optimization/47140
18468 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
18469 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
18470 to bit_value_binop.
18472 PR rtl-optimization/47028
18473 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
18474 parm_birth_insn instead of at the beginning of first bb.
18476 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
18478 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
18479 Remove the word "see" before "@pxref".
18480 * doc/rtl.texi: Remove the word "see" before "@pxref".
18482 2011-01-01 Jan Hubicka <jh@suse.cz>
18484 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
18487 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
18490 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
18493 Copyright (C) 2011 Free Software Foundation, Inc.
18495 Copying and distribution of this file, with or without modification,
18496 are permitted in any medium without royalty provided the copyright
18497 notice and this notice are preserved.