1 2011-06-13 Jan Hubicka <jh@suse.cz>
3 * cgraphunit.c (handle_alias_pairs): New function.
4 (cgraph_finalize_compilation_unit): Use it.
5 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
8 2011-06-15 Richard Guenther <rguenther@suse.de>
10 * expr.c (expand_expr_real_2): Reduce all integral types to
12 (expand_expr_real_1): Likewise.
14 2011-06-15 Martin Jambor <mjambor@suse.cz>
16 PR tree-optimization/48613
17 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
18 ipa_node_params_vector is NULL.
20 2011-06-15 Jakub Jelinek <jakub@redhat.com>
23 * dwarf2out.c (dw_loc_list_node): Add force field.
24 (add_var_loc_to_decl): For PARM_DECL, attempt to keep
25 the incoming location in the list, even if it is modified
26 before first real insn.
27 (output_loc_list): Emit empty ranges with force flag set.
28 (dw_loc_list): If first range of a PARM_DECL is empty,
31 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
34 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
35 (fence_to_rewind). Use it to notice when bookkeeping will be placed
36 above a fence. Update comments.
37 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
38 placed just above it. Do not allow NULL place_to_insert.
40 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
42 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
43 (slpeel_tree_peel_loop_to_edge): Don't call
44 remove_dead_stmts_from_loop.
45 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
46 remove irrelevant pattern statements. For irrelevant statements
47 check if it is the last statement of a detected pattern, use
48 corresponding pattern statement instead.
49 (destroy_loop_vec_info): No need to remove pattern statements,
50 only free stmt_vec_info.
51 (vect_transform_loop): For irrelevant statements check if it is
52 the last statement of a detected pattern, use corresponding
53 pattern statement instead.
54 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
55 pattern statements. Set basic block for the new statement.
56 (vect_pattern_recog): Update documentation.
57 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
58 operands of pattern statements.
59 (vectorizable_call): Fix printing. In case of a pattern statement
60 use the lhs of the original statement when creating a dummy
61 statement to replace the original call.
62 (vect_analyze_stmt): For irrelevant statements check if it is
63 the last statement of a detected pattern, use corresponding
64 pattern statement instead.
65 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
66 statements use gsi of the original statement.
68 2011-06-14 Joseph Myers <joseph@codesourcery.com>
70 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
71 common/common-target-def.h.
72 * target.def (default_target_flags, handle_option,
73 supports_split_stack, optimization_table, init_struct,
74 except_unwind_info, unwind_tables_default, have_named_sections):
75 Move to common/common-target.def.
76 * target.h (enum opt_levels, struct default_options): Move to
77 common/common-target.h.
78 * targhooks.c (default_except_unwind_info,
79 dwarf2_except_unwind_info, sjlj_except_unwind_info,
80 default_target_handle_option, empty_optimization_table): Move to
81 common/common-targhooks.c.
82 * targhooks.h (default_except_unwind_info,
83 dwarf2_except_unwind_info, sjlj_except_unwind_info,
84 default_target_handle_option, empty_optimization_table): Move to
85 common/common-targhooks.h.
86 * common/common-target-def.h: Include common/common-targhooks.h.
87 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
89 * common/common-target.def (handle_option, option_init_struct,
90 option_optimization_table, default_target_flags,
91 except_unwind_info, supports_split_stack, unwind_tables_default,
92 have_named_sections): Move from target.def.
93 (HOOK_PREFIX): Undefine at end of file.
94 * common/common-target.h: Include input.h.
95 (enum opt_levels, struct default_options): Move from target.h.
96 * common/common-targhooks.c, common/common-targhooks.h: New.
97 * config.gcc (target_has_targetm_common): Default to yes.
98 (moxie*): Set target_has_targetm_common=no.
99 (hppa*-*-*): Don't set target_has_targetm_common=yes.
100 * doc/tm.texi: Regenerate.
101 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
102 (C_TARGET_DEF_H): Add common/common-targhooks.h.
103 (GCC_OBJS): Remove vec.o.
104 (OBJS): Remove hooks.o and vec.o.
105 (OBJS-libcommon-target): Add vec.o, hooks.o and
106 common/common-targhooks.o.
107 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
108 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
109 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
110 cfglayout.o, $(out_object_file), $(common_out_object_file)):
112 (common/common-targhooks.o): New.
113 * common/config/default-common.c: Include tm.h. Add FIXME
115 * common/config/pa/pa-common.c: Include more headers. Take
116 copyright dates from pa.c.
117 (pa_option_optimization_table, pa_handle_option,
118 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
119 TARGET_HANDLE_OPTION): Move from pa.c.
120 * common/config/alpha/alpha-common.c,
121 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
122 common/config/bfin/bfin-common.c,
123 common/config/cris/cris-common.c,
124 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
125 common/config/h8300/h8300-common.c,
126 common/config/i386/i386-common.c,
127 common/config/ia64/ia64-common.c,
128 common/config/iq2000/iq2000-common.c,
129 common/config/lm32/lm32-common.c,
130 common/config/m32c/m32c-common.c,
131 common/config/m32r/m32r-common.c,
132 common/config/m68k/m68k-common.c,
133 common/config/mcore/mcore-common.c,
134 common/config/mep/mep-common.c,
135 common/config/microblaze/microblaze-common.c,
136 common/config/mips/mips-common.c,
137 common/config/mmix/mmix-common.c,
138 common/config/mn10300/mn10300-common.c,
139 common/config/pdp11/pdp11-common.c,
140 common/config/picochip/picochip-common.c,
141 common/config/rs6000/rs6000-common.c,
142 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
143 common/config/score/score-common.c, common/config/sh/sh-common.c,
144 common/config/sparc/sparc-common.c,
145 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
146 common/config/vax/vax-common.c,
147 common/config/xstormy16/xstormy16-common.c,
148 common/config/xtensa/xtensa-common.c: New.
149 * config/alpha/alpha.c: Include common/common-target.h.
150 (alpha_option_optimization_table, alpha_handle_option,
151 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
152 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
153 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
154 * config/arm/arm.c (arm_option_optimization_table,
155 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
156 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
158 * config/avr/avr.c (avr_option_optimization_table,
159 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
161 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
162 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
163 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
164 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
165 * config/cris/cris.c (cris_option_optimization_table,
166 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
167 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
169 * config/fr30/fr30.c (fr30_option_optimization_table,
170 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
172 * config/frv/frv.c (frv_option_optimization_table,
173 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
174 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
175 * config/h8300/h8300.c (h8300_option_optimization_table,
176 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
177 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
178 * config/i386/i386-protos.h (ix86_handle_option): Declare.
179 * config/i386/i386.c: Include common/common-target.h.
180 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
181 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
182 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
183 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
184 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
185 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
186 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
187 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
188 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
189 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
190 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
191 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
192 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
193 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
194 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
195 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
196 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
197 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
198 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
199 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
200 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
201 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
202 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
203 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
204 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
205 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
206 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
207 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
208 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
209 ix86_option_optimization_table, ix86_option_init_struct,
210 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
211 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
212 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
214 * config/i386/t-i386 (i386.o): Update dependencies.
215 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
216 * config/ia64/ia64.c (ia64_option_optimization_table,
217 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
218 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
219 ia64_handle_option): Move to ia64-common.c.
220 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
221 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
222 * config/lm32/lm32.c (lm32_option_optimization_table,
223 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
225 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
227 * config/m32r/m32r.c (m32r_option_optimization_table,
228 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
229 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
230 m32r_handle_option): Move to m32r-common.c.
231 (m32r_memory_move_cost): Remove comment referring to
232 TARGET_HANDLE_OPTION.
233 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
234 Move to m68k-common.c.
235 * config/mcore/mcore.c (mcore_option_optimization_table,
236 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
237 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
238 * config/mep/mep.c (mep_option_optimization_table,
239 mep_handle_option, TARGET_HANDLE_OPTION,
240 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
241 Move to mep-common.c.
242 * config/microblaze/microblaze.c
243 (microblaze_option_optimization_table,
244 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
245 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
246 * config/mips/mips.c (mips_handle_option,
247 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
248 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
250 * config/mmix/mmix.c (mmix_option_optimization_table,
251 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
252 Move to mmix-common.c.
253 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
254 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
255 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
256 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
257 * config/pa/pa.c: Include common/common-target.h.
258 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
259 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
260 pa_handle_option): Move to pa-common.c.
261 (pa_option_override): Use targetm_common.except_unwind_info.
262 (pa_asm_output_mi_thunk, pa_function_section): Use
263 targetm_common.have_named_sections.
264 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
265 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
266 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
267 pdp11_handle_option, pdp11_option_init_struct): Move to
269 * config/picochip/picochip.c (picochip_option_optimization_table,
270 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
271 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
272 * config/rs6000/rs6000.c: Include common/common-target.h.
273 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
274 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
275 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
276 rs6000_handle_option): Move to rs6000-common.c.
277 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
278 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
279 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
280 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
281 * config/s390/s390.c (processor_flags_table,
282 s390_option_optimization_table, s390_option_init_struct,
283 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
284 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
285 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
286 * config/s390/s390.h (processor_flags_table): Declare.
287 * config/score/score.c (score_option_optimization_table,
288 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
289 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
290 score_handle_option): Move to score-common.c.
291 * config/sh/sh.c (sh_option_optimization_table,
292 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
293 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
294 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
295 * config/sparc/sparc.c: Include common/common-target.h.
296 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
297 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
298 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
299 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
300 spu_option_init_struct): Move to spu-common.c.
301 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
302 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
303 * config/v850/v850.c (small_memory_physical_max,
304 v850_handle_memory_optionn v850_handle_option,
305 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
306 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
308 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to
310 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
311 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
312 Move to xtensa-common.c.
313 * cfglayout.c: Include common/common-target.h.
314 (fixup_reorder_chain): Use targetm_common.have_named_sections.
315 * cfgrtl.c: Include common/common-target.h.
316 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
317 targetm_common.have_named_sections.
318 * dbxout.c: Include common/common-target.h.
319 (dbxout_function_end): Use targetm_common.have_named_sections.
320 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
321 targetm_common.except_unwind_info.
322 * dwarf2out.c: Include common/common-target.h.
323 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
324 dwarf2out_begin_prologue, dwarf2out_frame_init,
325 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
326 targetm_common.except_unwind_info.
327 * except.c: Include common/common-target.h.
328 (init_eh, finish_eh_generation,
329 output_one_function_exception_table): Use
330 targetm_common.except_unwind_info.
331 (switch_to_exception_section): Use
332 targetm_common.have_named_sections.
333 * explow.c: Include common/common-target.h.
334 * expr.c: Include common/common-target.h.
335 (build_personality_function): Use
336 targetm_common.except_unwind_info.
337 * function.c: Include common/common-target.h.
338 (expand_function_end): Use targetm_common.except_unwind_info.
339 * haifa-sched.c: Include common/common-target.h.
340 (sched_create_recovery_edges): Use
341 targetm_common.have_named_sections.
342 * lto-opts.c: Include common/common-target.h instead of target.h.
343 (lto_reissue_options): Use targetm_common.handle_option.
344 * opts.c: Include common/common-target.h.
345 (target_handle_option): Use targetm_common.handle_option.
346 (init_options_struct): Update comment referring to
347 targetm.target_option.optimization. Use
348 targetm_common.default_target_flags,
349 targetm_common.unwind_tables_default and
350 targetm_common.option_init_struct.
351 (default_options_optimization): Use
352 targetm_common.option_optimization_table.
353 (finish_options): Use targetm_common.except_unwind_info,
354 targetm_common.unwind_tables_default,
355 targetm_common.have_named_sections and
356 targetm_common.supports_split_stack.
357 * toplev.c: Include common/common-target.h.
358 (process_options): Use targetm_common.have_named_sections.
359 * tree-tailcall.c: Include common/common-target.h.
360 (suitable_for_tail_call_opt_p): Use
361 targetm_common.except_unwind_info.
362 * tree.c: Include common/common-target.h.
363 (build_common_builtin_nodes): Use
364 targetm_common.except_unwind_info.
365 * varasm.c: Include common/common-target.h.
366 (resolve_unique_section, hot_function_section,
367 default_function_section): Use targetm_common.have_named_sections.
369 2011-06-14 Easwaran Raman <eraman@google.com>
371 PR rtl-optimization/44194
372 * dse.c: Include tree-flow.h
373 (insn_info): Add new field non_frame_wild_read.
374 (group_info): Add new fields escaped_n and escaped_p.
375 (kill_on_calls): New variable.
376 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
377 (dse_step0): Initialize kill_on_calls.
378 (can_escape): New function.
379 (set_usage_bits): Add additional parameter; record information
380 about escaped locations.
381 (record_store): Pass EXPR corresponding to MEM to
383 (dse_step2_nospill): Set kill_on_calls based on
384 group->escaped_n and group->escaped_n.
385 (add_wild_read): Refactor into...
386 (reset_active_stores): ... New function, and
387 (free_read_records): ... New function.
388 (add_non_frame_wild_read): New function.
389 (scan_insn): Call add_non_frame_wild_read on non-const calls.
390 (scan_reads_nospill): Handle instructions with
392 (dse_step5_nospill): Call scan_reads_nospill for instructions
393 marked as non_frame_wild_read.
394 (dse_step7): Free escaped_n, escaped_p and kill_on_calls
397 2011-06-14 Joseph Myers <joseph@codesourcery.com>
399 * common/common-target-def.h, common/common-target.def,
400 common/common-target.h, common/config/default-common.c,
401 common/config/pa/pa-common.c: New files.
402 * Makefile.in (common_out_file, common_out_object_file,
403 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
404 (OBJS-libcommon-target): Include $(common_out_object_file).
405 (prefix.o): Update dependencies.
406 ($(common_out_object_file), common/common-target-hooks-def.h,
407 s-common-target-hooks-def-h): New.
408 (s-tm-texi): Also check timestamp on common-target.def.
409 (build/genhooks.o): Update dependencies.
410 * config.gcc (common_out_file, target_has_targetm_common): Define.
411 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
412 TARGET_ALWAYS_STRIP_DOTDOT.
413 * configure.ac (common_out_object_file): Define.
414 (common_out_file, common_out_object_file): Substitute.
415 (common): Create directory.
416 * configure: Regenerate.
417 * doc/tm.texi.in (targetm_common): Document.
418 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
419 * doc/tm.texi: Regenerate.
420 * genhooks.c (hook_array): Also include common/common-target.def.
421 * prefix.c (tm.h): Don't include.
422 (common/common-target.h): Include.
423 (ALWAYS_STRIP_DOTDOT): Don't define.
424 (update_path): Use targetm_common.always_strip_dotdot instead of
426 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
428 2011-06-14 David Li <davidxl@google.com>
430 * passes.c (execute_function_todo): Remove TODO_dump_func.
431 (execute_one_pass): Remove TODO_dump_func.
432 (execute_function_dump): New function.
433 * tree-vrp.c: Remove TODO_dump_func.
434 * regrename.c: Remove TODO_dump_func.
435 * fwprop.c: Remove TODO_dump_func.
436 * tree-into-ssa.c: Remove TODO_dump_func.
437 * tree-complex.c: Remove TODO_dump_func.
438 * tracer.c: Remove TODO_dump_func.
439 * tree-loop-distribution.c: Remove TODO_dump_func.
440 * postreload-gcse.c: Remove TODO_dump_func.
441 * postreload.c: Remove TODO_dump_func.
442 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
443 * tree-tailcall.c: Remove TODO_dump_func.
444 * ipa-cp.c: Remove TODO_dump_func.
445 * final.c: Remove TODO_dump_func.
446 * tree-emutls.c: Remove TODO_dump_func.
447 * omp-low.c: Remove TODO_dump_func.
448 * tree-ssa-dse.c: Remove TODO_dump_func.
449 * tree-ssa-uncprop.c: Remove TODO_dump_func.
450 * auto-inc-dec.c: Remove TODO_dump_func.
451 * reorg.c: Remove TODO_dump_func.
452 * tree-ssa-copyrename.c: Remove TODO_dump_func.
453 * tree-ssa-ccp.c: Remove TODO_dump_func.
454 * compare-elim.c: Remove TODO_dump_func.
455 * mode-switching.c: Remove TODO_dump_func.
456 * modulo-sched.c: Remove TODO_dump_func.
457 * tree-call-cdce.c: Remove TODO_dump_func.
458 * cse.c: Remove TODO_dump_func.
459 * web.c: Remove TODO_dump_func.
460 * tree-stdarg.c: Remove TODO_dump_func.
461 * lto-streamer-out.c: Remove TODO_dump_func.
462 * tree-ssa-math-opts.c: Remove TODO_dump_func.
463 * tree-ssa-dom.c: Remove TODO_dump_func.
464 * tree-nrv.c: Remove TODO_dump_func.
465 * loop-init.c: Remove TODO_dump_func.
466 * gimple-low.c: Remove TODO_dump_func.
467 * ipa-inline.c: Remove TODO_dump_func.
468 * tree-ssa-sink.c: Remove TODO_dump_func.
469 * jump.c: Remove TODO_dump_func.
470 * ifcvt.c: Remove TODO_dump_func.
471 * tree-ssa-loop.c: Remove TODO_dump_func.
472 * recog.c: Remove TODO_dump_func.
473 * dse.c: Remove TODO_dump_func.
474 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
475 * matrix-reorg.c: Remove TODO_dump_func.
476 * tree-eh.c: Remove TODO_dump_func.
477 * regmove.c: Remove TODO_dump_func.
478 * function.c: Remove TODO_dump_func.
479 * tree-vectorizer.c: Remove TODO_dump_func.
480 * ipa-split.c: Remove TODO_dump_func.
481 * gcse.c: Remove TODO_dump_func.
482 * tree-if-conv.c: Remove TODO_dump_func.
483 * init-regs.c: Remove TODO_dump_func.
484 * tree-ssa-phiopt.c: Remove TODO_dump_func.
485 * implicit-zee.c: Remove TODO_dump_func.
486 * lower-subreg.c: Remove TODO_dump_func.
487 * bt-load.c: Remove TODO_dump_func.
488 * tree-dfa.c: Remove TODO_dump_func.
489 * except.c: Remove TODO_dump_func.
490 * emit-rtl.c: Remove TODO_dump_func.
491 * store-motion.c: Remove TODO_dump_func.
492 * cfgexpand.c: Remove TODO_dump_func.
493 * tree-cfgcleanup.c: Remove TODO_dump_func.
494 * cfgcleanup.c: Remove TODO_dump_func.
495 * tree-ssa-pre.c: Remove TODO_dump_func.
496 * tree-sra.c: Remove TODO_dump_func.
497 * tree-mudflap.c: Remove TODO_dump_func.
498 * tree-ssa-copy.c: Remove TODO_dump_func.
499 * cfglayout.c: Remove TODO_dump_func.
500 * tree-ssa-forwprop.c: Remove TODO_dump_func.
501 * tree-ssa-dce.c: Remove TODO_dump_func.
502 * ira.c: Remove TODO_dump_func.
503 * tree-ssa.c: Remove TODO_dump_func.
504 * integrate.c: Remove TODO_dump_func.
505 * tree-optimize.c: Remove TODO_dump_func.
506 * tree-ssa-phiprop.c: Remove TODO_dump_func.
507 * tree-object-size.c: Remove TODO_dump_func.
508 * combine.c: Remove TODO_dump_func.
509 * bb-reorder.c: Remove TODO_dump_func.
510 * cprop.c: Remove TODO_dump_func.
511 * var-tracking.c: Remove TODO_dump_func.
512 * tree-profile.c: Remove TODO_dump_func.
513 * tree-vect-generic.c: Remove TODO_dump_func.
514 * reg-stack.c: Remove TODO_dump_func.
515 * sched-rgn.c: Remove TODO_dump_func.
516 * tree-ssa-structalias.c: Remove TODO_dump_func.
517 * tree-switch-conversion.c: Remove TODO_dump_func.
518 * tree-cfg.c: Remove TODO_dump_func.
519 * tree-ssa-reassoc.c: Remove TODO_dump_func.
520 * combine-stack-adj.c: Remove TODO_dump_func.
521 * dce.c: Remove TODO_dump_func.
522 * tree-ssanames.c: Remove TODO_dump_func.
523 * regcprop.c: Remove TODO_dump_func.
525 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
528 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
529 and properly handle result not in Pmode.
531 2011-06-14 Robert Millan <rmh@gnu.org>
533 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
534 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
537 * config/i386/kfreebsd-gnu64.h: New file.
538 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
539 with `i386/kfreebsd-gnu64.h'.
541 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
542 (GNU_USER_LINK_EMULATION64): New macros.
543 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
544 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
545 of hardcoding `elf_i386' and `elf_x86_64'.
547 2011-06-14 Nick Clifton <nickc@redhat.com>
550 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
553 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
555 2011-06-14 Jakub Jelinek <jakub@redhat.com>
558 * tree.h (DECL_NONSHAREABLE): Define.
559 (struct tree_decl_common): Change decl_common_unused to
560 decl_nonshareable_flag.
561 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
562 Ignore vars with DECL_NONSHAREABLE bit set.
563 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
564 on stores to automatic aggregate vars.
566 PR rtl-optimization/49390
568 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
570 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
573 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
574 Tom de Vries <tom@codesourcery.com>
577 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
578 Document changed semantics.
579 (max_stmt_executions, max_stmt_executions_int): Declare.
580 * tree-data-ref.c (estimated_loop_iterations)
581 (estimated_loop_iterations_int): Move functions...
582 * tree-ssa-loop-niter.c (estimated_loop_iterations)
583 (estimated_loop_iterations_int): here.
584 (record_estimate): Change nb_iterations_upper_bound and
585 nb_iterations_estimate semantics.
586 (max_stmt_executions, max_stmt_executions_int): New function.
587 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
588 (max_stmt_executions_tree): this.
589 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
590 estimated_loop_iterations_tree.
591 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
592 max_stmt_executions_int instead of estimated_loop_iterations_int.
593 * predict.c (predict_loops): Idem.
594 * tree-parloops.c (parallelize_loops): Idem.
595 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
596 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
597 (init_omega_for_ddr_1): Idem.
598 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
599 (loop_prefetch_arrays): Idem
600 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
601 max_stmt_executions instead of estimated_loop_iterations.
602 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
603 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
604 instead of nb_iterations_upper_bound.
606 2011-06-13 Jan Hubicka <jh@suse.cz>
608 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
610 2011-06-14 Richard Henderson <rth@redhat.com>
613 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
614 (based_loc_descr): Assert it's true.
615 (compute_frame_pointer_to_fb_displacement): Set it, rather than
616 aborting immediately.
618 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
619 Mingfeng Wu <mingfeng@faraday-tech.com>
621 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
623 2011-06-13 Jan Hubicka <jh@suse.cz>
625 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
627 2011-06-13 Jan Hubicka <jh@suse.cz>
629 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
630 similarly to DECL_COMDAT.
631 * cgraphunit.c (cgraph_analyze_function): Likewise.
632 * ipa.c (function_and_variable_visibility): Likewise.
634 2011-06-13 Jan Hubicka <jh@suse.cz>
636 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
637 BINFO_VIRTUALS when streaming for ltrans unit.
639 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
641 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
642 (movdi_internal64): Same.
644 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
646 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
647 a set of similar patterns, where the MATCH_OPERAND for the function
648 argument is replaced with individual references to hardware registers.
649 (save_fpregs_<mode>): Ditto
650 (restore_gpregs_<mode>): Ditto
651 (return_and_restore_gpregs_<mode>): Ditto
652 (return_and_restore_fpregs_<mode>): Ditto
653 (return_and_restore_fpregs_aix_<mode>): Ditto
655 2011-06-13 Jan Hubicka <jh@suse.cz>
657 * ipa-utils.c (postorder_stack): New structure.
658 (ipa_reverse_postorder): Handle aliases.
660 2011-06-13 Jan Hubicka <jh@suse.cz>
662 * ipa-inline.c (reset_edge_caches): Walk aliases.
663 (update_caller_keys): Do not test inlinability of aliases.
664 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
665 (do_estimate_growth): Fix typo.
667 2011-06-13 Jan Hubicka <jh@suse.cz>
669 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
670 (can_remove_node_now_p): ... here; handle same comdat groups.
671 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
672 (inline_call): Update use of can_remove_node_now_p.
674 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
676 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
677 condition to disallow non-identical memory locations.
678 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
679 preference to bit manipulation instructions.
681 2011-06-13 Jan Hubicka <jh@suse.cz>
683 * cgraph.c (cgraph_for_node_thunks_and_aliases,
684 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
685 (nonremovable_p): New function.
686 (cgraph_can_remove_if_no_direct_calls_p): New function.
687 (used_from_object_file_p): New functoin.
688 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
689 references from aliases.
690 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
691 * ipa-inline.c (check_caller_edge): New function.
692 (want_inline_function_called_once_p): Use it; accept aliases called
694 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
696 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
699 * config/arm/neon.md (vec_pack_trunc): Set the lengths
700 correctly for the case with Quad vectors.
702 2011-06-13 Jakub Jelinek <jakub@redhat.com>
703 Ira Rosen <ira.rosen@linaro.org>
705 PR tree-optimization/49352
706 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
707 all, make sure loop_use_stmt after the loop is a def stmt of a used
708 SSA_NAME that is the only one defined inside of the loop. Don't
709 check for COND_EXPR and GIMPLE_BINARY_RHS.
710 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
711 check_reduction is true.
713 2011-06-11 Jan Hubicka <jh@suse.cz>
716 * ipa.c (cgraph_externally_visible_p): Check resolution info.
718 2011-06-11 Jan Hubicka <jh@suse.cz>
721 * ipa-inline-transform.c: Include tree-pass.h
722 (inline_transform): Set TODO_update_ssa_only_virtuals.
723 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
725 2011-06-11 Jan Hubicka <jh@suse.cz>
728 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
731 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
733 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
734 Take number of iterations to peel into account for equally frequent
737 2011-06-11 Jan Hubicka <jh@suse.cz>
739 * lto-streamer-out.c (produce_symtab): Stream out the newly represented
742 2011-06-11 Jan Hubicka <jh@suse.cz>
744 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting varying
746 (ipa_update_after_lto_read): Likewise.
747 (ipa_write_node_info): Do not sream call_with_var_arguments.
748 (ipa_read_node_info): Likewise.
750 2011-06-11 Jan Hubicka <jh@suse.cz>
752 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
754 2011-06-11 Jan Hubicka <jh@suse.cz>
756 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
757 (lto_symtab_resolve_can_prevail_p): Likewise.
758 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
759 * cgraph.c (same_body_aliases_done): New global var.
760 (cgraph_same_body_alias_1): Rename to ...
761 (cgraph_create_function_alias): ... this one; reorg to new
763 (cgraph_same_body_alias): Use cgraph_create_function_alias;
764 record references when asked to.
765 (cgraph_add_thunk): Fix formating.
766 (cgraph_get_node): Kill same body alias code.
767 (cgraph_node_for_asm): Likewise.
768 (cgraph_remove_same_body_alias): Remove.
769 (cgraph_remove_node): Kill same body alias code.
770 (cgraph_mark_address_taken_node): Mark also the aliased function
771 as having address taken.
772 (dump_cgraph_node): Dump same body aliases.
773 (cgraph_for_node_thunks_and_aliases): Update for new alias
775 (cgraph_for_node_and_aliases): Likewise.
776 * cgraph.h (same_body): Kll pointer.
777 (same_body_alias): Update comment.
778 (same_body_aliases_done): Declare.
779 (cgraph_remove_same_body_alias): Remove declaration.
780 (cgraph_create_function_alias): Declare.
781 (cgraph_process_same_body_aliases): Declare.
782 (cgraph_function_with_gimple_body_p): Check for alias.
783 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
784 (cgraph_alias_aliased_node): New function.
785 (cgraph_function_node): Update for new aliases.
786 (cgraph_function_or_thunk_node): Likewise.
787 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
788 (inline_call): Remove dead aliases.
789 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
790 name hack for same body aliases.
791 (clone_of_p): Look through aliases.
792 (verify_cgraph_node): Verify aliases.
793 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
794 (cgraph_process_same_body_aliases): New function.
795 (process_function_and_variable_attributes): Disable weakref warning on
797 (cgraph_analyze_functions): Handle aliases.
798 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
799 (assemble_thunks): Rename to ...
800 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
801 (cgraph_expand_function): Remove alias output code.
802 (cgraph_output_in_order): Skip aliases.
803 (cgraph_preserve_function_body_p): Aliases don't need preserving.
804 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
805 (ipa_record_reference): Do not assert on alias references.
806 (ipa_ref_has_aliases_p): New function.
807 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
808 (ipa_ref_has_aliases_p): Declare.
809 * lto-cgraph.c (lto_output_node): Handle aliases.
810 (input_node): Likewise.
811 * lto-streamer-out.c (lto_output): Skip aliases.
812 (produce_symtab): Kill same_body_alias code.
813 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
814 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
815 * ipa-inline.c (update_caller_keys): Walk aliases.
816 (inline_small_functions): Fix thinko in previous patch.
817 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
818 (function_and_variable_visibility): Do not walk same body aliases.
819 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
820 (ipa_pta_execute): Use it.
822 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
824 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
825 (*vec_dupv2df): Rename from vec_dupv2df.
826 (vec_dupv2df): New expander.
828 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
830 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
832 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
834 * config/i386/i386.md: Use default value in "isa" attribute.
835 * config/i386/sse.md: Ditto.
836 * config/i386/mmx.md: Ditto.
838 2011-06-10 Wei Guozhi <carrot@google.com>
841 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
842 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
843 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
845 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
847 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
848 (arm_legitimate_ldrd_p): New prototype.
849 (arm_output_ldrd): New prototype.
850 * config/arm/arm.c (arm_check_ldrd_operands): New function.
851 (arm_legitimate_ldrd_p): New function.
852 (arm_output_ldrd): New function.
854 2011-06-10 David Li <davidxl@google.com>
856 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
857 * passes.c (passr_eq): New function.
858 (create_pass_tab): New function.
859 (pass_traverse): New function.
860 (dump_one_pass): New function.
861 (dump_pass_list): New function.
862 (dump_passes): New function.
864 2011-06-10 Jan Hubicka <jh@suse.cz>
866 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
867 setting the nothrow flag.
868 * ipa-reference.c (propagate): Skip aliases.
869 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
870 (propagate_nothrow): Skip aliases; do not update cgraph.
871 (local_pure_const): Do not update cgraph.
872 * tree-profile.c (tree_profiling): Do fixup_cfg.
874 2011-06-10 Jan Hubicka <jh@suse.cz>
876 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
877 (cgraph_local_node_p): ... here; handle aliases.
878 (has_addr_references_p): Break out from ...;
879 (cgraph_remove_unreachable_nodes) ... here.
881 2011-06-10 Jan Hubicka <jh@suse.cz>
883 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
884 * common.opt (flag_inline_functions_called_once): Do not
887 2011-06-10 Jan Hubicka <jh@suse.cz>
889 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
890 (ipcp_initialize_node_lattices): Do not deal with aliases;
891 Do not try to propagate through thunks.
892 (ipcp_change_tops_to_bottom): Do not deal with aliases.
894 2011-06-10 Jan Hubicka <jh@suse.cz>
896 * ipa-prop.c (ipa_write_node_info): Stream jump functions
898 (ipa_read_node_info): Likewise.
900 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
903 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
904 (build_and_insert_call): Likewise.
905 (build_and_insert_ref): New.
906 (gimple_expand_builtin_pow): Minor cleanup.
907 (gimple_expand_builtin_cabs): New.
908 (execute_cse_sincos): Add case for BUILT_IN_CABS.
910 2011-06-10 Jan Hubicka <jh@suse.cz>
912 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
913 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
914 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
915 (ipcp_propagate_stage): Skip aliases when propagating.
916 (ipcp_need_redirect_p): Skip aliases.
917 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
918 collect_callers_of_node.
919 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
921 (ipa_compute_jump_functions): Look through aliases.
923 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
925 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
927 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
929 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
931 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
933 2011-06-10 Jan Hubicka <jh@suse.cz>
935 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
936 Update call of gimple_get_virt_method_for_binfo.
937 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
938 refuse_thunks parameter.
939 (gimple_fold_call): Update.
940 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
942 2011-06-10 Jan Hubicka <jh@suse.cz>
944 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
945 (not_all_callers_have_enough_arguments_p): ... this one; turn into
946 worker for cgraph_for_node_and_aliases.
947 (convert_callers_for_node): Break out from ...
948 (convert_callers): ... here.
949 (modify_function): Use collect_callers_of_node.
950 (ipa_early_sra): Use cgraph_for_node_and_aliases.
952 2011-06-10 Richard Guenther <rguenther@suse.de>
954 PR tree-optimization/49361
955 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
956 when not already in gimple form.
958 2011-06-10 Richard Guenther <rguenther@suse.de>
961 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
962 FOR_EACH_PHI_OR_STMT_USE.
964 2011-06-10 Jan Hubicka <jh@suse.cz>
966 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
967 (clone_inlined_nodes): ... here.
968 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
969 to real destination prior inlining.
970 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
971 can_early_inline_edge_p, want_early_inline_function_p,
972 want_early_inline_function_p, want_inline_small_function_p,
973 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
974 edge_badness, update_all_callee_keys, lookup_recursive_calls,
975 add_new_edges_to_heap, inline_small_functions, flatten_function,
976 inline_always_inline_functions, early_inline_small_functions): Use
977 cgraph_function_or_thunk_node.
978 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
979 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
980 (do_estimate_edge_growth_1): Break out from ...
981 (do_estimate_growth) ... here; walk aliases.
982 (inline_generate_summary): Skip aliases.
984 2011-06-10 Richard Guenther <rguenther@suse.de>
986 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
987 forward when combining, visit inserted stmts when a stmt was changed.
989 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
991 * tree.h (error_operand_p): Add.
992 * dbxout.c (dbxout_type_fields): Use the latter.
993 * c-decl.c (add_stmt): Likewise.
994 * gimplify.c (omp_add_variable, omp_notice_variable,
995 gimplify_scan_omp_clauses): Likewise.
997 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
999 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
1000 when a value is actually passed in regs.
1002 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
1003 Laurent Rougé <laurent.rouge@menta.fr>
1005 * doc/invoke.texi (SPARC options): Add -mflat.
1006 * config/sparc/sparc.opt: Likewise.
1007 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
1008 (sparc_flat_expand_prologue): Declare.
1009 (sparc_flat_expand_epilogue): Likewise.
1010 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
1011 (CPP_ENDIAN_SPEC): Replace with...
1012 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
1013 (CPP_SPEC): Adjust to above change.
1014 (EXTRA_SPECS): Likewise.
1015 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
1016 (INCOMING_REGNO): Likewise.
1017 (OUTGOING_REGNO): Likewise.
1018 (LOCAL_REGNO): Likewise.
1019 (SETUP_FRAME_ADDRESSES): Likewise.
1020 (FIXED_REGISTERS): Set 0 for %fp.
1021 (CALL_USED_REGISTERS): Likewise.
1022 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
1023 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
1024 (RETURN_ADDR_REGNUM): Define.
1025 (RETURN_ADDR_RTX): Use it.
1026 (INCOMING_RETURN_ADDR_REGNUM): Define.
1027 (INCOMING_RETURN_ADDR_RTX): Use it.
1028 (DWARF_FRAME_RETURN_COLUMN): Likewise.
1029 (EH_RETURN_REGNUM): Define.
1030 (EH_RETURN_STACKADJ_RTX): Use it.
1031 (EH_RETURN_HANDLER_RTX): Delete.
1032 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
1033 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
1035 (struct machine_function): Add frame_size, apparent_frame_size,
1036 frame_base_reg, frame_base_offset, n_global_fp_regs and
1037 save_local_in_regs_p fields.
1038 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
1039 sparc_frame_base_offset, sparc_n_global_fp_regs,
1040 sparc_save_local_in_regs_p): New macros.
1041 (sparc_option_override): Error out if -fcall-saved-REG is specified
1043 (eligible_for_restore_insn): Fix formatting.
1044 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
1045 (eligible_for_sibcall_delay): Likewise.
1046 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
1047 (sparc_legitimate_address_p): Adjust to above change.
1048 (save_global_or_fp_reg_p): New predicate.
1049 (return_addr_reg_needed_p): Likewise.
1050 (save_local_or_in_reg_p): Likewise.
1051 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
1052 (SORR_SAVE, SORR_RESTORE): Delete.
1053 (sorr_pred_t): New typedef.
1054 (sorr_act_t): New enum.
1055 (save_or_restore_regs): Rename to...
1056 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
1057 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
1058 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
1059 mechanism. Add CFI information for double-word saves in 32-bit mode.
1060 (emit_adjust_base_to_offset): New function extracted from...
1061 (emit_save_or_restore_regs): ...this. Rename the rest to...
1062 (emit_save_or_restore_regs_global_fp_regs): ...this.
1063 (emit_save_or_restore_regs_local_in_regs): New function.
1064 (gen_create_flat_frame_[123]): New functions.
1065 (sparc_expand_prologue): Use SIZE local variable. Adjust.
1066 (sparc_flat_expand_prologue): New function.
1067 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
1068 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
1069 (sparc_flat_expand_epilogue): New function.
1070 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
1071 (output_return): Likewise.
1072 (output_sibcall): Likewise.
1073 (sparc_output_mi_thunk): Likewise.
1074 (sparc_frame_pointer_required): Likewise.
1075 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
1076 function optimization.
1077 * config/sparc/sparc.md (flat): New attribute.
1078 (prologue): Add TARGET_FLAT handling.
1079 (save_register_window): Disable if TARGET_FLAT.
1080 (create_flat_frame_[123]): New patterns.
1081 (epilogue): Add TARGET_FLAT handling.
1082 (sibcall_epilogue): Likewise.
1083 (eh_return): New expander.
1084 (eh_return_internal): New insn and splitter.
1085 (return_internal): Add TARGET_FLAT handling.
1086 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
1087 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
1088 (nonlocal_goto): Add TARGET_FLAT handling.
1089 * config/sparc/t-elf: Add -mflat multilib.
1090 * config/sparc/t-leon: Likewise.
1092 2011-06-10 Jan Hubicka <jh@suse.cz>
1094 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
1095 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
1096 (self_recursive_p): Use cgraph_function_node.
1097 (propagate_pure_const): Likewise.
1098 (propagate_nothrow): Likewise.
1099 * ipa-reference.c (ipa_reference_get_not_read_global): Use
1100 cgraph_function_node.
1101 (propagate_bits): Likewise.
1102 (propagate): Likewise.
1104 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1105 Richard Earnshaw <rearnsha@arm.com>
1107 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
1108 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
1109 (*thumb2_movdi_vfp): Delete.
1110 (*arm_movdi_vfp_cortexa8): Delete.
1111 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
1112 (*movdi_vfp_cortexa8): Likewise.
1114 2011-06-10 Richard Guenther <rguenther@suse.de>
1116 * stor-layout.c (initialize_sizetypes): Give names to all
1119 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
1121 PR tree-optimization/49318
1122 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
1123 irrelevant pattern statements.
1125 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
1127 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
1130 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
1133 2011-06-09 Jan Hubicka <jh@suse.cz>
1135 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
1136 do not recompute reachable flag.
1137 (cgraph_finalize_function, cgraph_analyze_functions): Set
1138 redefined_extern_inline here.
1140 2011-06-09 Jan Hubicka <jh@suse.cz>
1142 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
1143 (cgraph_only_called_directly_p): ... this one; bring offline.
1144 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
1145 varpool_used_from_object_file_p): Drop names from the declaratoin.
1146 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
1147 collect_callers_of_node): New.
1148 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
1149 (cgraph_edge_recursive_p): Use cgraph_function_node.
1150 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
1151 (cgraph_node_cannot_be_local_p_1): Break out from ...
1152 (cgraph_node_can_be_local_p): ... here; walk aliases.
1153 (cgraph_for_node_thunks_and_aliases): New function.
1154 (cgraph_for_node_and_aliases): New function.
1155 (cgraph_make_node_local_1): Break out from ...
1156 (cgraph_make_node_local) ... here; use
1157 cgraph_for_node_thunks_and_aliases.
1158 (cgraph_set_nothrow_flag_1): Break out from ...
1159 (cgraph_set_nothrow_flag) ... here;
1160 use cgraph_for_node_thunks_and_aliases.
1161 (cgraph_set_const_flag_1): Break out from ...
1162 (cgraph_set_const_flag) ... here;
1163 use cgraph_for_node_thunks_and_aliases.
1164 (cgraph_set_pure_flag_1): Break out from ...
1165 (cgraph_set_pure_flag) ... here;
1166 use cgraph_for_node_thunks_and_aliases.
1167 (cgraph_propagate_frequency_1): Break out from ...
1168 (cgraph_propagate_frequency) ... here; use
1169 cgraph_for_node_thunks_and_aliases.
1170 (cgraph_used_from_object_file_p): Do not care about aliases.
1171 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
1173 (collect_callers_of_node_1, collect_callers_of_node): New functions.
1175 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
1177 PR rtl-optimization/49154
1178 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
1179 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
1180 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
1181 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
1182 * config/cris/cris.h (cris_register_move_cost): Remove
1183 !TARGET_V32 code. Tweak comments.
1185 2011-06-09 Jan Hubicka <jh@suse.cz>
1187 * cgraphbuild.c (record_eh_tables): Mark personality function as having
1190 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
1192 PR rtl-optimization/49154
1193 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
1194 is a matching slot in the hashtable, assign it to classes_ptr.
1196 PR rtl-optimization/49154
1197 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
1199 * doc/tm.texi: Regenerate.
1201 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
1204 * config/sh/sh.md (UNSPEC_CHKADD): New.
1205 (chk_guard_add): New define_insn_and_split.
1206 (symGOT_load): Use chk_guard_add instead of blockage.
1208 2011-06-09 Kai Tietz <ktietz@redhat.com>
1210 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
1212 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
1214 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
1216 2011-06-09 Wei Guozhi <carrot@google.com>
1219 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
1220 (peephole2 for conditional move): Generate 16 bit instructions.
1222 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
1224 * config/i386/i386.md (*movdi_internal_rex64): Merge
1225 alternatives 6 and 8.
1227 2011-06-09 David Li <davidxl@google.com>
1229 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
1230 * passes.c (passr_eq): New function.
1231 (create_pass_tab): New function.
1232 (pass_traverse): New function.
1233 (dump_one_pass): New function.
1234 (dump_pass_list): New function.
1235 (dump_passes): New function.
1237 2011-06-09 David Li <davidxl@google.com>
1239 * tree-complex.c (tree_lower_complex): Gate cleanup.
1240 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
1241 (execute_optimize_stdarg): Ditto.
1242 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
1243 (execute_cleanup_eh_1): Ditto.
1244 (execute_cleanup_eh): Ditto.
1245 * gcse.c (gate_rtl_pre): Ditto.
1246 (execute_rtl_pre): Ditto.
1247 * except.c (finish_eh_generation): Ditto.
1248 (convert_to_eh_region_ranges): Ditto.
1249 * cprop.c (one_cprop_pass): Ditto.
1251 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
1254 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
1255 in all basic blocks.
1257 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1259 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
1260 (HAVE_ENABLE_EXECUTE_STACK): Define.
1261 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
1262 (HAVE_ENABLE_EXECUTE_STACK): Define.
1263 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
1264 (HAVE_ENABLE_EXECUTE_STACK): Define.
1265 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
1266 (ENABLE_EXECUTE_STACK): Remove.
1267 (HAVE_ENABLE_EXECUTE_STACK): Define.
1268 [IN_LIBGCC2]: Don't include <windows.h>.
1269 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
1270 (HAVE_ENABLE_EXECUTE_STACK): Define.
1271 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
1272 (HAVE_ENABLE_EXECUTE_STACK): Define.
1273 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
1274 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
1275 (HAVE_ENABLE_EXECUTE_STACK): Define.
1276 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
1277 (HAVE_ENABLE_EXECUTE_STACK): Define.
1278 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
1279 (HAVE_ENABLE_EXECUTE_STACK): Define.
1280 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
1281 (HAVE_ENABLE_EXECUTE_STACK): Define.
1282 * config/alpha/alpha.c (alpha_trampoline_init): Test
1283 HAVE_ENABLE_EXECUTE_STACK.
1284 * config/i386/i386.c (ix86_trampoline_init): Likewise.
1285 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
1286 (sparc64_initialize_trampoline): Likewise.
1287 * libgcc2.c [L_enable_execute_stack]: Remove.
1288 * system.h (ENABLE_EXECUTE_STACK): Poison.
1289 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
1290 * doc/tm.texi: Regenerate.
1291 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
1293 2011-06-09 Jakub Jelinek <jakub@redhat.com>
1296 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
1297 variable. After resetting and rescanning insn continue with previous
1300 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1302 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
1303 (gcc_cv_ld_hidden): Likewise.
1304 * configure: Regenerate.
1305 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
1306 (ix86_stack_protect_fail): Mark unused.
1307 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
1308 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
1309 [TARGET_MACHO]: Don't define.
1310 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
1311 (TARGET_STACK_PROTECT_FAIL): Likewise.
1312 (rs6000_stack_protect_fail): Mark unused.
1313 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
1314 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
1316 2011-06-08 Andi Kleen <ak@linux.intel.com>
1318 * varasm.c (get_section): Print location of other conflict
1319 for section conflicts.
1321 2011-06-08 Andi Kleen <ak@linux.intel.com>
1323 * config/i386/driver-i386.c (host_detect_local_cpu):
1324 Add model 0x2d Intel CPU.
1326 2011-06-08 Andi Kleen <ak@linux.intel.com>
1328 * reginfo.c (global_regs_decl): Add.
1329 (globalize_reg): Add decl parameter. Compute location. Pass location
1330 to warnings and add inform. Store decl in global_regs_decl.
1331 * rtl.h (globalize_reg): Update prototype.
1332 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
1334 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
1336 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
1338 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
1341 * config/sh/predicates.md (general_movsrc_operand): Check
1342 mode for memory with indexed address for QI and HImode.
1343 (general_movdst_operand): Likewise.
1345 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
1347 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
1349 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
1351 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
1352 (num_ssa_operands): Likewise.
1353 (op_iter_init_phiuse): Forward-declare.
1354 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
1356 2011-06-08 Nick Clifton <nickc@redhat.com>
1358 * doc/invoke.texi (ARM Options): Update description of
1361 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
1363 * config/i386/driver-i386.c (host_detect_local_cpu): Support
1364 unknown Intel family 0x6 CPUs.
1366 2011-06-08 Martin Jambor <mjambor@suse.cz>
1368 * tree-sra.c (mark_rw_status): Removed.
1369 (analyze_access_subtree): New parameter parent instead of
1370 mark_read and mark_write, propagate from that.
1372 2011-06-08 Julian Brown <julian@codesourcery.com>
1374 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
1375 for double-precision helper functions in hard-float mode if only
1376 single-precision arithmetic is supported in hardware.
1378 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
1380 PR rtl-optimization/49303
1381 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
1382 code_motion_path_driver returned 0 or 1.
1383 (sel_region_finish): Clear h_d_i_d.
1385 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
1387 * config/sh/sh.c (prepare_move_operands): Set pic register
1388 appropriately for global and local dynamic tls models even
1389 if flag_pic is unset.
1391 2011-06-07 Jason Merrill <jason@redhat.com>
1393 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
1395 2011-06-07 Xinliang David Li <davidxl@google.com>
1396 * passes.c (enable_disable_pass): Handle assembler name.
1397 (is_pass_explicitly_enabled_or_disabled): Ditto.
1399 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1401 PR tree-optimization/48497
1402 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
1404 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1406 PR tree-optimization/46728
1407 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
1408 to use gimple_val_nonnegative_real_p.
1409 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
1410 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
1412 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
1414 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
1416 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
1418 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
1421 2011-06-07 Richard Guenther <rguenther@suse.de>
1423 * stor-layout.c (initialize_sizetypes): Initialize all
1424 sizetypes based on target definitions.
1425 (set_sizetype): Remove.
1426 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
1427 * tree.h (set_sizetype): Remove.
1429 2011-06-07 Nick Clifton <nickc@redhat.com>
1431 * config.gcc: Unify V850 architecture options and add support for
1432 newer V850 architectures.
1433 * config/v850/t-v850e: Delete.
1435 2011-06-07 Richard Guenther <rguenther@suse.de>
1437 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
1438 Call set_sizetype from here.
1440 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
1442 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
1443 (*maddhisi4tb, *maddhisi4tt): New define_insns.
1445 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
1446 Andrew Stubbs <ams@codesourcery.com>
1448 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
1450 * doc/md.texi (Canonicalization of Instructions): Document widening
1451 multiply canonicalization.
1453 2011-06-07 Jakub Jelinek <jakub@redhat.com>
1455 PR gcov-profile/49299
1456 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
1458 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
1460 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
1462 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
1463 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
1464 vect_recog_pow_pattern): Likewise.
1465 (vect_pattern_recog_1): Remove declaration.
1466 (widened_name_p): Remove declaration. Add new argument to specify
1467 whether to check that both types are either signed or unsigned.
1468 (vect_recog_widen_mult_pattern): Update documentation. Handle
1469 unsigned patterns and multiplication by constants.
1470 (vect_pattern_recog_1): Update vect_recog_func references. Use
1471 statement information from the statement returned from pattern
1472 detection functions.
1473 (vect_pattern_recog): Update vect_recog_func reference.
1474 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
1475 multiplication by a constant use the type of the other operand.
1477 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
1479 PR rtl-optimization/49145
1480 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
1482 2011-06-06 Jakub Jelinek <jakub@redhat.com>
1485 * dwarf2out.c (native_encode_initializer): Decrement count in each
1489 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
1493 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
1494 if stmt folded into nothing.
1495 * tree-inline.c (fold_marked_statements): If a builtin at the end of
1496 a bb folded into nothing, just update cgraph edges and move to next bb.
1497 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
1498 to be NULL. Don't compute count and frequency if new_call is NULL.
1500 2011-06-04 Diego Novillo <dnovillo@google.com>
1502 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
1503 (cgraph.o): Likewise.
1504 (cgraphunit.o): Likewise.
1505 * cgraphunit.c: Include lto-streamer.h
1506 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
1508 * lto-streamer-in.c (unpack_value_fields): Call
1509 streamer_hooks.unpack_value_fields if set.
1510 (lto_materialize_tree): For unhandled nodes, first try to
1511 call lto_streamer_hooks.alloc_tree, if it exists.
1512 (lto_input_ts_decl_common_tree_pointers): Move reading of
1513 DECL_INITIAL to lto_streamer_read_tree.
1514 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
1515 (lto_streamer_read_tree): New.
1516 (lto_reader_init): Rename from lto_init_reader.
1517 Move initialization code to lto/lto.c.
1518 * lto-streamer-out.c (pack_value_fields): Call
1519 streamer_hooks.pack_value_fields if set.
1520 (lto_output_tree_ref): For tree nodes that are not normally indexable,
1521 call streamer_hooks.indexable_with_decls_p before giving up.
1522 (lto_output_ts_decl_common_tree_pointers): Move handling
1523 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
1524 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
1525 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
1526 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
1527 (lto_streamer_write_tree): New.
1528 (lto_output): Call lto_streamer_init directly.
1529 (lto_writer_init): Remove.
1530 * lto-streamer.c (streamer_hooks): New.
1531 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
1532 instead of lto_preload_common_nodes.
1533 (lto_is_streamable): Move from lto-streamer.h
1534 (lto_streamer_hooks_init): New.
1535 (streamer_hooks): New.
1536 (streamer_hooks_init): New.
1537 * lto-streamer.h (struct output_block): Forward declare.
1538 (struct lto_input_block): Likewise.
1539 (struct data_in): Likewise.
1540 (struct bitpack_d): Likewise.
1541 (struct streamer_hooks): Declare.
1542 (streamer_hooks): Declare.
1543 (lto_streamer_hooks_init): Declare.
1544 (lto_streamer_write_tree): Declare.
1545 (lto_streamer_read_tree): Declare.
1546 (streamer_hooks_init): Declare.
1547 (lto_is_streamable): Move to lto-streamer.c
1549 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1551 * longlong.h (smul_ppmm): The resulting register pair contains the
1552 higher order word first.
1554 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1556 PR tree-optimization/46728
1557 * builtins.c (powi_table): Remove.
1558 (powi_lookup_cost): Remove.
1559 (powi_cost): Remove.
1560 (expand_powi_1): Remove.
1561 (expand_powi): Remove.
1562 (expand_builtin_pow_root): Remove.
1563 (expand_builtin_pow): Remove.
1564 (expand_builtin_powi): Eliminate handling of constant exponent.
1565 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
1567 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
1569 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
1571 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
1573 * dce.c (reset_unmarked_insns_debug_uses): New.
1574 (delete_unmarked_insns): Skip debug insns.
1575 (prescan_insns_for_dce): Likewise.
1576 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
1577 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
1578 active reg can be found.
1579 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
1580 (convert_regs_1): Use it.
1582 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
1584 * tree-pretty-print.c (dump_function_header): Add flags.
1585 Don't dump decl_uid with nouid.
1586 * tree-pretty-print.h (dump_function_header): Adjust.
1587 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
1588 * passes.c (pass_init_dump_file): Pass dump_flags on.
1589 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
1591 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
1594 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
1596 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
1598 PR tree-optimization/49243
1599 * calls.c (setjmp_call_p): Also check if fndecl has the
1600 returns_twice attribute.
1602 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1604 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
1607 2011-06-06 Richard Henderson <rth@redhat.com>
1608 Georg-Johann Lay <avr@gjlay.de>
1611 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
1613 * config/avr/avr.md ("insv"): New insn expander.
1614 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
1615 "*insv.not.io", "*insv.reg"): New insns.
1617 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
1620 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
1621 to nonimmediate_operand from memory_operand for the operand that is to
1622 be forced to memory by the expander. Lose the constraints.
1624 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
1626 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
1627 EH return when delayed branches are disabled.
1629 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
1631 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
1632 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
1634 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
1635 Simplify MODE_V1DF and MODE_V2SF handling.
1636 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
1637 Simplify MODE_SF handling.
1639 2011-06-04 Jan Hubicka <jh@suse.cz>
1641 PR tree-optimization/48893
1642 PR tree-optimization/49091
1643 PR tree-optimization/49179
1644 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
1647 2011-06-04 Jan Hubicka <jh@suse.cz>
1650 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
1653 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
1655 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
1657 2011-06-04 Jakub Jelinek <jakub@redhat.com>
1660 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
1661 to be strictly smaller than 1 << shiftcount.
1663 2011-06-04 Jan Hubicka <jh@suse.cz>
1665 PR tree-optimize/48929
1666 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
1669 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
1672 * calls.c (emit_call_1): Prefer the __builtin declaration of
1675 2011-06-03 Diego Novillo <dnovillo@google.com>
1677 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
1678 (lto_input_tree_pointers): Likewise.
1679 * lto-streamer-out.c (pack_value_fields): Likewise.
1680 (lto_output_tree_pointers): Likewise.
1681 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
1682 and OPTIMIZATION_NODE.
1684 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1686 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
1687 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
1688 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
1689 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
1690 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
1691 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
1692 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
1693 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
1694 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
1695 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
1696 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
1697 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
1698 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
1699 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
1700 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
1701 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
1702 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
1703 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
1704 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
1705 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
1706 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
1707 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
1708 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
1709 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
1710 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
1711 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
1712 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
1713 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
1714 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
1715 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
1716 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
1717 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
1718 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
1719 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
1720 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
1721 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
1722 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
1723 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
1724 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
1725 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
1726 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
1727 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
1728 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
1729 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
1730 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
1731 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
1732 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
1733 * system.h (MD_UNWIND_SUPPORT): Poison.
1734 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
1735 * doc/tm.texi: Regenerate.
1736 * unwind-dw2.c: Include md-unwind-support.h instead of
1738 * config/ia64/unwind-ia64.c: Likewise.
1739 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
1741 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
1743 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
1745 2011-06-03 Richard Henderson <rth@redhat.com>
1746 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1748 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
1749 (sigill_hdlr): Correct insn, insn size.
1750 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
1752 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1754 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
1756 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
1757 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
1758 * config/mips/t-iris: Remove.
1759 * config/mips/t-irix6: New file.
1760 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
1762 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1764 * Makefile.in (LIB2ADDEHDEP): Remove.
1765 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
1766 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
1767 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
1768 * config/t-darwin (LIB2ADDEHDEP): Remove.
1769 * config/t-freebsd (LIB2ADDEHDEP): Remove.
1770 * config/t-linux (LIB2ADDEHDEP): Remove.
1772 2011-06-03 Diego Novillo <dnovillo@google.com>
1774 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
1775 (lto_register_var_decl_in_symtab): Likewise.
1776 (lto_register_function_decl_in_symtab): Likewise.
1777 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
1778 logic to uniquify_nodes.
1780 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1782 * config/alpha/t-osf5: Remove.
1783 * config/alpha/t-osf-pthread: Remove.
1784 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
1785 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
1787 2011-06-03 Julian Brown <julian@codesourcery.com>
1789 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
1790 (strongarm1110): Use strongarm tuning.
1791 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
1792 * config/arm/arm.c (arm_strongarm_tune): New.
1793 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
1794 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
1795 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
1796 setting, using previous defaults or 1 for Cortex-A5.
1797 (arm_option_override): Set max_insns_skipped from current tuning.
1799 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
1801 * doc/install.texi (Options specification): Document --with-specs.
1803 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1805 * config/arm/neon.md (orndi3_neon): Actually split it.
1807 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
1809 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
1810 * var-tracking.c (reverse_op): Limite recurse depth to 5.
1812 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
1815 * target.def (delay_sched2, delay_vartrack): New.
1816 * doc/tm.texi.in: Update.
1817 * doc/tm.texi: Rebuild.
1818 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
1819 * var-tracking.c (gate_handle_var_tracking): Likewise.
1820 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
1821 (bfin_flag_var_tracking): Drop.
1822 (output_file_start): Don't save and override flag_var_tracking.
1823 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
1824 (bfin_reorg): Test original variables.
1825 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
1826 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
1827 (ia64_flag_var_tracking): Drop.
1828 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
1829 (ia64_file_start): Don't save and override flag_var_tracking.
1830 (ia64_override_options_after_change): Ditto
1831 flag_schedule_insns_after_reload.
1832 (ia64_reorg): Test original variables.
1833 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
1834 (picochip_flag_var_tracking): Drop.
1835 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
1836 (picochip_option_override): Don't save and override
1837 flag_schedule_insns_after_reload.
1838 (picochip_asm_file_start): Ditto flag_var_tracking.
1839 (picochip_reorg): Test original variables.
1840 * config/spu/spu.c (spu_flag_var_tracking): Drop.
1841 (TARGET_DELAY_VARTRACK): Define.
1842 (spu_var_tracking): New.
1843 (spu_machine_dependent_reorg): Call it.
1844 (asm_file_start): Don't save and override flag_var_tracking.
1846 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
1849 * config/sh/predicates.md (general_movsrc_operand): Return 0
1850 for memory and memory subreg of which address is an invalid
1851 indexed address for QI and HImode.
1852 (general_movdst_operand): Likewise.
1854 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
1856 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
1857 edges only, when there is a non-local label in the function.
1858 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
1860 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
1862 * config/i386/constraints.md (Y3): New register constraint.
1863 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
1864 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
1865 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
1866 *sse2_interleave_lowv2df.
1868 2011-06-02 Julian Brown <julian@codesourcery.com>
1870 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
1871 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
1872 (arm_cortex_a5_tune): New.
1874 2011-06-02 Julian Brown <julian@codesourcery.com>
1876 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
1877 * config/arm/arm.c (arm_default_branch_cost): New.
1878 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
1879 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
1880 (arm_fa726_tune): Set branch_cost field using
1881 arm_default_branch_cost.
1882 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
1883 current_tune structure.
1884 * dojump.c (tm_p.h): Include file.
1886 2011-06-02 Julian Brown <julian@codesourcery.com>
1888 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
1890 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
1891 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
1892 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
1894 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
1895 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
1896 (arm_fa726te_tune): Add prefer_constant_pool setting.
1897 (arm_v6t2_tune, arm_cortex_tune): New.
1898 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
1899 prefer_constant_pool setting.
1901 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
1903 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
1905 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
1906 (*movdf_internal) <case 6,7,8>: Ditto.
1908 * config/i386/constraints.md (Y4): New register constraint.
1909 * config/i386/sse.md (vec_set<mode>_0): Merge with
1910 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
1911 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
1912 *vec_extractv2di_1_sse.
1913 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
1914 and *vec_concatv2di_rex64_sse.
1916 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
1919 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
1920 of cgraph_local_info for null before attempting to use it.
1922 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
1924 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
1925 (current_function_dynamic_alloc_count): Delete.
1926 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
1927 (expand_builtin_nonlocal_goto): Remove obsolete comment.
1928 (expand_builtin_update_setjmp_buf): Remove dead code.
1929 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
1930 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
1932 * function.c (instantiate_virtual_regs): Likewise.
1933 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
1934 for a block with a single abnormal incoming edge.
1935 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
1936 (SETJMP_VIA_SAVE_AREA): Delete.
1937 * config/sparc/sparc-protos.h (load_got_register): Declare.
1938 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
1939 (load_got_register): Make global.
1940 (sparc_frame_pointer_required): Add 'static'.
1941 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
1942 (sparc_builtin_setjmp_frame_value): New function.
1943 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
1944 (save_stack_nonlocal): New expander.
1945 (restore_stack_nonlocal): Likewise.
1946 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
1947 (nonlocal_goto_internal): New insn.
1948 (goto_handler_and_restore): Delete.
1949 (builtin_setjmp_setup): Likewise.
1950 (do_builtin_setjmp_setup): Likewise.
1952 (builtin_setjmp_receiver): New expander.
1954 2011-06-01 David Li <davidxl@google.com>
1957 * tree-pretty-print.c (dump_function_header): Format cleanup.
1959 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
1962 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
1963 needed when original operands are used for msw_skip comparison.
1965 2011-06-01 Jakub Jelinek <jakub@redhat.com>
1968 * var-tracking.c (add_uses, add_stores): Don't call
1969 cselib_subst_to_values on ENTRY_VALUE.
1971 2011-06-01 Diego Novillo <dnovillo@google.com>
1973 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
1974 output_record_start with LTO_null instead of output_zero.
1975 (lto_output_ts_binfo_tree_pointers): Likewise.
1976 (lto_output_tree): Likewise.
1977 (output_eh_try_list): Likewise.
1978 (output_eh_region): Likewise.
1979 (output_eh_lp): Likewise.
1980 (output_eh_regions): Likewise.
1981 (output_bb): Likewise.
1982 (output_function): Likewise.
1983 (output_unreferenced_globals): Likewise.
1984 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
1985 instead of NUM_TREE_CODES.
1986 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
1987 (lto_output_int_in_range): Change << to >> when shifting VAL.
1989 2011-06-01 Diego Novillo <dnovillo@google.com>
1991 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
1992 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
1994 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
1997 * optabs.h (valid_multiword_target_p): Declare.
1998 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
1999 doing multi-word operations.
2000 * optabs.c (expand_binop): Likewise.
2001 (expand_doubleword_bswap): Likewise.
2002 (expand_absneg_bit): Likewise.
2003 (expand_unop): Likewise.
2004 (expand_copysign_bit): Likewise.
2005 (multiword_target_p): New function.
2007 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
2009 PR rtl-optimization/48830
2010 PR rtl-optimization/48808
2011 PR rtl-optimization/48792
2012 * reload.c (push_reload): Check contains_reg_of_mode.
2013 * reload1.c (strip_paradoxical_subreg): New function.
2014 (gen_reload_chain_without_interm_reg_p): Use it to handle
2015 paradoxical subregs.
2016 (emit_output_reload_insns, gen_reload): Likewise.
2018 2011-06-01 David Li <davidxl@google.com>
2020 * predict.c : Change pass name
2023 * tree-profile.c: Ditto.
2026 2011-06-01 David Li <davidxl@google.com>
2028 * tree-pretty-print.c (dump_function_header): New function.
2029 * final.c (rest_of_clean_state): Use header dumper.
2030 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
2031 * passes.c (pass_init_dump_file): Use header dumper.
2033 2011-06-01 Jakub Jelinek <jakub@redhat.com>
2035 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
2036 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
2037 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
2039 (mem_loc_descriptor): Use them.
2041 * var-tracking.c (create_entry_value): New function.
2042 (vt_add_function_parameter): Use it.
2044 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2046 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
2047 Include <signal.h>, <ucontext.h>.
2048 (sigill_caught): Define.
2049 (sigill_hdlr): New function.
2050 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
2051 insns can be executed.
2052 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
2053 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
2055 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2057 * config/t-slibgcc-darwin: Move to ...
2058 * config/t-slibgcc-dummy: ... this. Clarify comments.
2059 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
2060 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
2061 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
2062 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
2063 Remove i386/t-crtstuff from tmake_file.
2064 (i[34567]86-*-solaris2*): Remove t-svr4,
2065 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
2067 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
2068 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
2069 sparc/t-crtfm from tmake_file.
2070 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
2071 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
2073 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
2074 * config/i386/t-nwld (SHLIB_LINK): Remove.
2075 * config/i386/t-rtems-i386: Rename to ...
2076 * config/i386/t-rtems: ... this.
2077 ($(T)crti.o, $(T)crtn.o): Remove.
2078 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
2079 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
2080 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
2081 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
2082 EXTRA_MULTILIB_PARTS): Remove.
2083 * config/sparc/t-sol2-64: Likewise.
2084 * config/sparc/t-sol2: Remove.
2085 * config/sparc/t-crtin: Remove.
2086 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
2087 * config/i386/gmon-sol2.c: Remove.
2088 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
2089 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
2090 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
2091 * config/i386/sol2-gc1.asm: Remove.
2092 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
2093 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
2094 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
2095 * config/t-slibgcc-sld: Remove.
2097 2011-06-01 Jakub Jelinek <jakub@redhat.com>
2099 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
2100 base_type_for_mode with op_mode instead of mode.
2102 2011-06-01 Paul Brook <paul@cpodesourcery.com>
2104 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
2106 * config/arm/arm-tune.md: Regenerate.
2107 * config/arm/arm-tables.opt: Regenerate.
2108 * config/arm/arm.c (FL_DIV): Rename...
2109 (FL_THUMB_DIV): ... to this.
2110 (FL_ARM_DIV): Define.
2111 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
2112 (arm_arch_hwdiv): Remove.
2113 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
2114 (arm_issue_rate): Add cortexr5.
2115 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
2116 __ARM_ARCH_EXT_IDIV__.
2117 (TARGET_IDIV): Define.
2118 (arm_arch_hwdiv): Remove.
2119 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
2120 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
2121 (divsi3, udivsi3): New patterns.
2122 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
2123 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
2125 2011-06-01 Martin Jambor <mjambor@suse.cz>
2127 * ipa-utils.c (ipa_dfs_info): New field scc_no.
2128 * ipa-utils.c (searchc): Set scc_no.
2130 2011-06-01 Martin Jambor <mjambor@suse.cz>
2132 * ipa-utils.c (searchc_env): New field allow_overwritable.
2133 (searchc): do not ignore edges to overwritable nodes if indicated
2134 by env->allow_overwritable.
2135 (ipa_reduced_postorder): Set env.allow_overwritable.
2137 2011-06-01 Richard Guenther <rguenther@suse.de>
2139 * tree.c (free_lang_data): Do not reset boolean_type_node nor
2141 * lto-streamer.c (lto_record_common_node): Take node pointer,
2142 do not register types.
2143 (lto_preload_common_nodes): Explicitly skip preloading nodes
2144 that differ between frontends.
2146 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
2148 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
2151 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
2153 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
2154 parameter value for dump. Dump cost on outermost call only.
2155 (rs6000_memory_move_cost): Dump cost on outermost call only.
2157 2011-05-31 Jakub Jelinek <jakub@redhat.com>
2159 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
2160 DW_OP_GNU_convert ops.
2162 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
2163 cselib_preserve_constants.
2164 (cselib_lookup_1): If cselib_preserve_constants,
2165 a new VALUE is being created for REG and there is a VALUE for the
2166 same register in wider mode, add another loc with lowpart SUBREG of
2168 (cselib_subst_to_values): Handle ENTRY_VALUE.
2169 * var-tracking.c (replace_expr_with_values): Return NULL for
2171 * dwarf2out.c (convert_descriptor_to_signed): New function.
2172 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
2173 instead of two shifts.
2174 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
2175 the right mode if needed.
2176 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
2177 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
2178 convert_descriptor_to_signed.
2179 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
2180 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
2183 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
2185 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
2187 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
2188 of X87MODEI12 and SWI48x instead of SSEMODEI24.
2189 (SWI248x): New mode iterator, rename from X87MODEI.
2190 (X87MODEI): Remove mode iterator.
2191 (X87MODEI12): Ditto.
2192 (SSEMODEI24): Ditto.
2194 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
2196 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
2197 * doc/invoke.texi: Document max-vartrack-expr-depth.
2198 * var-tracking.c (EXPR_DEPTH): New.
2199 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
2201 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
2203 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
2204 * config/i386/sse.md: Add n to negated FMA pattern names.
2206 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
2208 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
2210 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
2212 * gengtype-state.c (read_state_params_structs): Initialize previous.
2214 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
2216 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
2217 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
2219 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
2221 * config/i386/i386.md (*movtf_internal): Avoid allocating general
2222 registers. Penalize F*r->o alternative to prevent partial memory
2223 stalls. Slightly penalize *roF->*r alternative. Generate SSE
2224 CONST_DOUBLE immediates when optimizing function for size. Do not move
2225 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
2226 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
2227 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
2228 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
2230 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
2232 (fp_register_operand splitters): Use fp_register_operand
2233 constraint. Do not use FP_REG_P in insn condition.
2234 (any_fp_register_operand splitters): Use any_fp_register_operand
2235 constraint. Do not use ANY_FP_REG_P in insn condition.
2237 2011-05-31 Jan Hubicka <jh@suse.cz>
2239 * cgraph.h (cgraph_inline_failed_t): Give enum a name
2240 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
2241 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
2242 (lto_output_edge): Use output_enum and var_len_unsigned.
2243 (lto_output_varpool_node): Likewise.
2244 (input_overwrite_node): Do not take resolution parameter;
2245 extract it from a bitpack.
2246 (input_node): Do not read resolution; use input_enum and
2248 (input_varpool_node): Likewise.
2249 (input_edge): Likewise.
2250 (input_cgraph_1): Likewise.
2252 2011-05-31 Richard Guenther <rguenther@suse.de>
2254 * gimple.c (gimple_register_canonical_type): Do not register
2255 any types via gimple_register_type.
2257 2011-05-31 Jan Hubicka <jh@suse.cz>
2259 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
2262 2011-05-31 Jakub Jelinek <jakub@redhat.com>
2264 PR rtl-optimization/49235
2265 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
2266 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
2268 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
2270 PR tree-optimization/49093
2271 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
2274 2011-05-31 Dodji Seketeli <dodji@redhat.com>
2277 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
2278 for concrete functions containing the code of cloned functions.
2280 2011-05-31 Richard Guenther <rguenther@suse.de>
2282 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
2284 (forward_propagate_into_comparison_1): ... this.
2285 (forward_propagate_comparison): Rename to ...
2286 (forward_propagate_into_comparison): ... this. Split out
2287 real forward propagation code to ...
2288 (forward_propagate_comparison): ... this.
2289 (forward_propagate_into_gimple_cond): Remove looping.
2290 (forward_propagate_into_cond): Likewise.
2291 (simplify_not_neg_expr): Return whether we have done something.
2292 (simplify_gimple_switch): Likewise.
2293 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
2294 (ssa_forward_propagate_and_combine): ... this. Re-structure
2295 to do a forward forward-propagation walk on BBs and a backward
2296 stmt combining walk on BBs. Consistently re-scan changed statements.
2297 (pass_forwprop): Adjust.
2299 2011-05-30 Ian Lance Taylor <iant@google.com>
2301 * godump.c (go_format_type): Correct length of name added to
2302 obstack for anonymous field.
2304 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
2307 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
2308 part of the second operand is 0.
2310 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
2312 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
2313 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
2314 to memory for !TARGET_MEMORY_MISMATCH_STALL.
2315 (*movdf_internal_rex64): Do not penalize F->r alternative.
2316 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
2317 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
2318 when optimizing function for size. Do not move CONST_DOUBLEs
2319 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
2320 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
2321 SUBREGs. Do not check for MEM_P operands in the insn condition,
2322 check for ANY_FP_REGNO_P instead.
2323 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
2324 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
2326 * config/i386/i386.c (ix86_option_override_internal): Do not
2327 set TARGET_INTEGER_DFMODE_MOVES here.
2329 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
2332 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
2334 2011-05-30 Jakub Jelinek <jakub@redhat.com>
2336 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
2337 DW_TAG_rvalue_reference_type even for
2338 -gdwarf-4 -fno-debug-types-section.
2340 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2342 PR tree-optimization/46728
2343 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
2344 (build_and_insert_binop): New.
2345 (gimple_expand_builtin_pow): Reorder args for
2346 build_and_insert_call; use build_and_insert_binop; add more
2347 optimizations for fractional exponents.
2349 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
2354 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2356 * tree.h (struct tree_identifier): Inherit from tree_typed, not
2358 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
2359 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
2360 TS_BASE instead of TS_COMMON.
2361 * varasm.c (assemble_name): Remove assert.
2363 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
2365 * config.gcc: Keep obselete list sorted.
2367 2011-05-30 Jakub Jelinek <jakub@redhat.com>
2368 Eric Botcazou <ebotcazou@adacore.com>
2370 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
2371 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
2372 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
2373 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
2374 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
2376 2011-05-30 Richard Guenther <rguenther@suse.de>
2378 * gimple.c (gimple_types_compatible_p_1): Compare record
2379 and union type members properly.
2381 2011-05-30 Richard Guenther <rguenther@suse.de>
2383 PR tree-optimization/49210
2384 * ipa-split.c (split_function): Care for the case where the call
2385 result is not trivially convertible to the result holding variable.
2387 2011-05-30 Richard Guenther <rguenther@suse.de>
2389 PR tree-optimization/49218
2390 * tree-vrp.c (adjust_range_with_scev): Properly check whether
2393 2011-05-30 Richard Guenther <rguenther@suse.de>
2395 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
2396 New function split out from ...
2397 (forward_propagate_into_gimple_cond): ... here. Adjust.
2398 (forward_propagate_into_cond): Likewise.
2399 (forward_propagate_comparison): Also propagate into
2400 comparisons on assignment RHS. Change return value to
2401 behave similar to forward_propagate_into_cond.
2402 (tree_ssa_forward_propagate_single_use_vars): Handle
2403 strict-overflow warnings properly for forward_propagate_comparison.
2405 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2407 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
2409 * configure: Regenerate.
2411 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
2413 PR tree-optimization/49199
2414 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
2415 non-reduction operands are either defined in the loop or by induction.
2417 2011-05-29 Xinliang David Li <davidxl@google.com>
2419 * opts-global.c (handle_common_deferred_options): Handle new options.
2420 * passes.c (register_one_dump_file): Call register_pass_name.
2421 (execute_one_pass): Check explicit enable/disable flag.
2422 (passr_hash): New function.
2424 (register_pass_name): Ditto.
2425 (get_pass_by_name): Ditto.
2428 (enable_pass): Ditto.
2429 (disable_pass): Ditto.
2430 (is_pass_explicitly_enabled_or_disabled): Ditto.
2432 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
2434 * config/i386/i386.md (*movoi_internal_avx): Use
2435 standard_sse_constant_opcode for alternative 0.
2436 (*movti_internal_sse): Ditto.
2437 (*movti_internal_rex64): Use standard_sse_constant_opcode for
2439 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
2441 (*movsi_internal): Ditto.
2442 (*movdi_internal): Ditto. Add ssecvt type moves.
2444 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
2447 * rtlanal.c (simplify_subreg_regno): Adjust comment.
2449 2011-05-29 Jakub Jelinek <jakub@redhat.com>
2451 PR rtl-optimization/49095
2452 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
2453 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
2455 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
2458 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
2459 recurse_p argument. Only follow register copies if it is set,
2460 and prevent mips_find_pic_call_symbol from recursing.
2461 (mips_find_pic_call_symbol): Add a recurse_p argument.
2462 Pass it to mips_pic_call_symbol_from_set.
2463 (mips_annotate_pic_calls): Update accordingly.
2465 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
2467 * emit-rtl.c (try_split): Use a loop to search for
2468 NOTE_INSN_CALL_ARG_LOCATIONs.
2470 2011-05-29 Richard Guenther <rguenther@suse.de>
2472 PR tree-optimization/49217
2473 * ipa-pure-const.c (propagate_pure_const): Fix typos.
2475 2011-05-28 Jan Hubicka <jh@suse.cz>
2477 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
2479 (string_slot_free): Remove
2480 (create_output_block): Initialize obstack.
2481 (destroy_output_block): Free obstack.
2482 (lto_string_index): Add PERSISTENT parameter; do not duplicate
2483 the string unless it needs to be added into the hash.
2484 (lto_output_string_with_length): Add persistent attribute;
2485 handle NULL strings.
2486 (lto_output_string): Add PERSISTENT parameter.
2487 (output_string_cst, output_identifier): Simplify.
2488 (lto_output_location_bitpack): Update.
2489 (lto_output_builtin_tree): Update.
2490 * lto-streamer.h (struct output_block): Add obstack.
2491 (lto_output_string, lto_output_string_with_length): Remove
2492 declarations; functions are static now.
2494 2011-05-28 Jan Hubicka <jh@suse.cz>
2496 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
2497 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
2498 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
2499 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
2500 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
2501 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
2502 unpack_ts_decl_with_vis_value_fields,
2503 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
2504 lto_get_builtin_tree): Use enum and variable length i/o.
2505 * basic-block.h (profile_status_d): Add PROFILE_LAST.
2506 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
2508 (bp_pack_enum, bp_unpack_enum): New macros.
2510 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
2512 * genrecog.c: Remove redundant forward declarations.
2514 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
2516 * config.gcc: Deprecate mips*-*-openbsd*.
2518 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
2521 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
2524 2011-05-27 Andrew Pinski <pinskia@gmail.com>
2527 * gengtype.c (vec_prefix_type): New function.
2528 (note_def_vec): Use vec_prefix_type and change the length
2529 attribute to be based on the prefix.
2530 * vec.c: Include coretypes.h before vec.h.
2531 (struct vec_prefix): Remove.
2532 (vec_gc_p_reserve): Change the offsetof to sizeof.
2533 (vec_gc_p_reserve_exact): Likewise.
2534 (vec_heap_p_reserve): Likewise.
2535 (vec_heap_p_reserve_exact): Likewise.
2536 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
2537 (vec_stack_p_reserve): Change the offsetof to sizeof.
2538 (vec_stack_p_reserve_exact): Likewise.
2539 * vec.h (struct vec_prefix): New struct definition.
2540 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
2541 (VEC_T_GTY(T,B)): Likewise.
2542 (DEF_VEC_FUNC_P(T)): Use prefix field.
2543 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
2544 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
2546 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2548 PR tree-optimization/46728
2549 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
2550 (powi_as_mults): Add gimple_set_location.
2551 (build_and_insert_call): New.
2552 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
2553 0.5, 0.25, 0.75, 1./3., or 1./6.
2555 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
2557 * doc/contrib.texi: Update copyright years.
2558 (Contributors): Add Zdenek Sojka.
2560 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
2562 * c-decl.c (c_push_function_context): Copy the current statement
2564 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
2565 (finish_struct): Call building_stmt_list_p instead of checking
2567 * c-parser.c (c_parser_postfix_expression): Likewise.
2568 * c-typeck.c (c_end_compound_stmt): Likewise.
2569 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
2570 * tree-iterator.c (stmt_list_cache): Change to a VEC.
2571 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
2572 (free_stmt_list): Likewise.
2573 * tree.h (struct tree_statement_list): Include typed_tree instead
2575 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
2576 as TS_TYPED instead of TS_COMMON.
2578 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2579 Uros Bizjak <ubizjak@gmail.com>
2581 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
2582 (HAVE_AS_IX86_TLSGDPTL): Define.
2583 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
2584 (HAVE_AS_IX86_TLSLDMPLT): Define.
2585 * configure: Regenerate.
2586 * config.in: Regenerate.
2587 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
2588 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
2589 TARGET_SUN_TLS, use @tlsgdplt or @plt.
2590 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
2591 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
2593 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
2595 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
2597 * sched-int.h (struct _haifa_deps_insn_data): New members cond
2599 (INSN_COND, INSN_REVERSE_COND): New macros.
2600 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
2602 (sched_get_condition_with_rev): Cache the results, and look them up
2604 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
2605 are clobbered by the current insn.
2606 * target.def (exposed_pipline): New sched data hook.
2607 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
2608 * doc/tm.texi: Regenerate.
2610 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2612 PR tree-optimization/49170
2613 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
2616 2011-05-27 Richard Guenther <rguenther@suse.de>
2619 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
2622 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
2624 * haifa-sched.c (sched_scan_info): Remove.
2625 (schedule_block): Call sched_extend_luids rather than sched_init_luids
2627 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
2629 (sched_scan): Remove.
2630 (sched_extend_luids): Renamed from luids_extend_insn and no longer
2631 static. All callers changed.
2632 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
2633 static. All callers changed.
2634 (sched_init_luids): Remove all arguments except the first. All
2635 callers changed. Don't use sched_scan.
2636 (haifa_init_h_i_d): Likewise.
2637 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
2638 manually rather than using sched_init_luids. Likewise with
2639 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
2640 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
2641 rather than sched_init_luids with NULL args.
2642 * sel-sched-ir.c (new_insns): Remove variable.
2643 (sched_scan): New static function, previously in haifa-sched.c. Remove
2644 all arguments but the first two; all callers changed.
2645 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
2646 rather than sched_init_luids.
2647 (sel_init_bbs): Remove second argument. All callers changed.
2648 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
2649 with NULL arguments.
2650 (create_insn_rtx_from_pattern): Likewise.
2651 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
2652 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
2653 (sched_init_insn_luid, sched_extend_luids): Declare.
2654 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
2657 2011-05-27 Richard Guenther <rguenther@suse.de>
2660 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
2661 A CMP B ? (T) true : (T) false for non-integral types T again.
2663 2011-05-27 Jan Hubicka <jh@suse.cz>
2665 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
2666 so 0 means NULL string.
2667 (lto_output_string_with_length): ... here.
2668 (lto_output_string, output_string_cst, output_identifier): Update
2669 handling of NULL strings.
2670 (lto_output_location_bitpack): New function.
2671 (lto_output_location): Use it.
2672 (lto_output_tree_ref): Use output_record_start.
2673 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
2675 * lto-streamer-in.c (string_for_index): Break out from ...; offset
2677 (input_string_internal): ... here;
2678 (input_string_cst, input_identifier, lto_input_string): Update handling
2680 (lto_input_location_bitpack): New function
2681 (lto_input_location): Use it.
2682 (unpack_ts_type_common_value_fields): Pack align & alias in var len
2684 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
2685 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
2686 (bp_pack_value): Sanity check the value range.
2687 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
2689 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
2692 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
2694 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
2695 call_arg_location instructions down the floor.
2697 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
2699 PR rtl-optimization/49154
2700 * ira.c (setup_pressure_classes): Process class without sublcasses
2701 as a candidate for pressure classes.
2703 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
2705 PR rtl-optimization/48575
2706 * genrecog.c (position_type): New enum.
2707 (position): New structure.
2708 (decision): Use position structure instead of a string.
2709 (root_pos, peep2_insn_pos_list): New variables.
2710 (next_position, compare_positions): New functions.
2711 (new_decision): Use position structures instead of strings.
2712 (maybe_both_true): Likewise.
2713 (change_state): Likewise.
2714 (write_tree): Likewise.
2715 (make_insn_sequence): Likewise.
2717 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2719 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
2720 TS_BASE instead of TS_COMMON.
2721 (find_decls_types_r): Check for TS_TYPED structure before looking at
2723 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
2725 (BLOCK_CHAIN): Use new chain field.
2727 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
2729 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
2730 moves expensive on Power7 also.
2732 2011-05-26 Richard Guenther <rguenther@suse.de>
2734 * fold-const.c (fold_unary_loc): Remove bogus code.
2736 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2738 * tree.h (struct tree_identifier): Inherit from tree_typed, not
2740 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
2741 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
2742 TS_BASE instead of TS_COMMON.
2743 * varasm.c (assemble_name): Remove assert.
2745 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
2747 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
2749 * libgcc-std.ver: Delete file.
2751 2011-05-26 Richard Guenther <rguenther@suse.de>
2753 PR tree-optimization/48702
2754 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
2755 only when we know the base address is within bounds.
2756 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
2757 assume the base address of TARGET_MEM_REFs is in bounds.
2759 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2762 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
2763 declaration in TARGET_SOLARIS.
2765 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
2767 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
2768 The instruction is then expanded explicitly.
2769 (supported_compare): Callable instruction.
2770 (compare): Likewise.
2772 2011-05-26 Jakub Jelinek <jakub@redhat.com>
2775 * gimplify.c (shortcut_cond_r): Don't special case
2776 COND_EXPRs if they have void type on one of their arms.
2778 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
2780 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
2781 to reduce duplication, and to achieve a slightly more logical order
2784 2011-05-26 Jakub Jelinek <jakub@redhat.com>
2786 PR tree-optimization/49161
2787 * tree-vrp.c (struct case_info): New type.
2788 (compare_case_labels): Sort case_info structs instead of
2789 trees, and not primarily by CASE_LABEL uids but by
2790 label_for_block indexes.
2791 (find_switch_asserts): Put case labels into struct case_info
2792 array instead of TREE_VEC, adjust sorting, compare label_for_block
2793 values instead of CASE_LABELs.
2795 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2797 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
2798 ("orndi3_neon"): Likewise.
2799 ("bic<mode>3_neon"): Likewise.
2801 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
2803 PR tree-optimization/49038
2804 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
2805 Ensure at least one epilogue iteration if required by data
2807 * tree-vectorizer.h (struct _loop_vec_info): Add new field
2808 to mark loops that require peeling for gaps.
2809 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
2810 (vect_get_known_peeling_cost): Take peeling for gaps into
2812 (vect_transform_loop): Generate epilogue if required by data
2814 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
2815 loop as requiring an epilogue if there are gaps in the end of
2818 2011-05-25 Ian Lance Taylor <iant@google.com>
2820 * godump.c (go_format_type): Output the first field with a usable
2823 2011-05-25 Ian Lance Taylor <iant@google.com>
2825 * godump.c (go_format_type): Check for invalid type names, pointer
2826 target types, and struct field types.
2828 2011-05-25 Jason Merrill <jason@redhat.com>
2830 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
2832 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
2834 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
2836 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
2838 * config/i386/i386.md (*movqi_extv_1)): Put back
2839 "register_operand" check in "type" calculation.
2840 (*movqi_extzv_2): Likewise.
2842 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
2844 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
2846 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
2849 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
2850 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
2851 __divxc3, __divtc3): Wrap definitions in #ifndef.
2853 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
2856 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
2857 "register_operand" check and replace q_regs_operand with
2858 QIreg_operand in "type" calculation.
2859 (*movqi_extv_1): Likewise.
2860 (*movqi_extzv_2_rex64): Likewise.
2861 (*movqi_extzv_2): Likewise.
2863 * config/i386/predicates.md (QIreg_operand): New.
2865 2011-05-25 Richard Guenther <rguenther@suse.de>
2867 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
2868 type-based offset disambiguation, streamline MEM_REF and
2869 TARGET_MEM_REF handling.
2871 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
2873 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
2874 (bdesc_special_args): Add pause intrinsic.
2876 * config/i386/i386.md (UNSPEC_PAUSE): New.
2879 * config/i386/ia32intrin.h (__pause): Likewise.
2881 * doc/extend.texi (X86 Built-in Functions): Add documentation for
2884 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2886 PR tree-optimization/46728
2887 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
2888 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
2890 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
2892 * tree.h (struct tree_exp): Inherit from struct tree_typed.
2893 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
2894 instead of TS_COMMON.
2896 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
2898 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
2899 LIBGCC2_GNU_PREFIX is defined.
2901 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
2902 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
2903 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
2904 __clz_tab): Define using __N.
2905 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
2906 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
2907 * target.def (libfunc_gnu_prefix): New hook.
2908 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
2909 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
2910 * doc/tm.texi: Regenerate.
2911 * system.h (LIBGCC2_GNU_PREFIX): Poison.
2912 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
2914 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
2915 (init_optabs): Likewise for the bswap libfuncs.
2916 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
2918 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
2919 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
2920 * libgcc-std.ver: Remove.
2921 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
2922 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
2924 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
2925 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
2926 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
2927 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
2928 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
2929 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
2930 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
2931 * config/fixed-bit.h (FIXED_OP): Define differently depending on
2932 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
2933 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
2935 2011-05-25 Jan Hubicka <jh@suse.cz>
2937 * lto-streamer-out.c (output_record_start): Use lto_output_enum
2938 (lto_output_tree): Use output_record_start.
2939 * lto-streamer-in.c (input_record_start): Use lto_input_enum
2940 (lto_get_pickled_tree): Use input_record_start.
2941 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
2942 (lto_value_range_error): New function.
2943 * lto-streamer.h (lto_value_range_error): Declare.
2944 (lto_output_int_in_range, lto_input_int_in_range): New functions.
2945 (lto_output_enum, lto_input_enum): New macros.
2947 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
2949 * common.opt (flag_stack_usage_info): New variable.
2950 (-Wstack-usage): New option.
2951 * doc/invoke.texi (Warning options): Document -Wstack-usage.
2952 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
2953 <OPT_fstack_usage>: Likewise.
2954 * toplev.c (output_stack_usage): Handle -Wstack-usage.
2955 * calls.c (expand_call): Test flag_stack_usage_info variable instead
2956 of flag_stack_usage.
2957 (emit_library_call_value_1): Likewise.
2958 * explow.c (allocate_dynamic_stack_space): Likewise.
2959 * function.c (instantiate_virtual_regs ): Likewise.
2960 (prepare_function_start): Likewise.
2961 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
2962 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
2963 * config/arm/arm.c (arm_expand_prologue): Likewise.
2964 (thumb1_expand_prologue): Likewise.
2965 * config/avr/avr.c (expand_prologue): Likewise.
2966 * config/i386/i386.c (ix86_expand_prologue): Likewise.
2967 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
2968 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
2969 * config/mips/mips.c (mips_expand_prologue): Likewise.
2970 * config/pa/pa.c (hppa_expand_prologue): Likewise.
2971 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
2972 * config/s390/s390.c (s390_emit_prologue): Likewise.
2973 * config/sh/sh.c (sh_expand_prologue): Likewise.
2974 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
2975 * config/spu/spu.c (spu_expand_prologue): Likewise.
2977 2011-05-25 Richard Guenther <rguenther@suse.de>
2979 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
2980 (gimple_canonical_types_compatible_p): Likewise.
2982 2011-05-25 Jan Hubicka <jh@suse.cz>
2985 * ipa.c (function_and_variable_visibility): Only add to same
2986 comdat group list if DECL_ONE_ONLY.
2988 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
2990 PR rtl-optimization/49014
2991 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
2993 2011-05-25 Jakub Jelinek <jakub@redhat.com>
2996 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
2998 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
3000 PR rtl-optimization/48757
3001 * ira-build.c (loop_with_eh_edge_p): Rename to
3002 loop_with_complex_edge_p, check edges on complexity, make function
3004 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
3007 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
3009 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
3010 force flag_ira_share_save_slots to 0.
3012 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
3014 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
3015 (vt_initialize): Set PROLOGUE_BB unconditionally.
3016 Add block comment about CFA_BASE_RTX machinery.
3017 Reset FP_CFA_OFFSET to -1 on all invalid paths.
3018 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
3020 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
3023 * c-parser.c (c_parser_objc_class_instance_variables): More robust
3024 parsing of syntax error in ObjC instance variable lists. In
3025 particular, avoid an infinite loop if there is a stray ']'.
3026 Updated error message.
3028 2011-05-24 Ian Lance Taylor <iant@google.com>
3030 * godump.c (go_define): Don't accept a string immediately after
3033 2011-05-24 Ian Lance Taylor <iant@google.com>
3035 * godump.c (struct godump_container): Add invalid_hash field.
3036 (go_format_type): Return false if type is found in invalid_hash.
3037 (go_output_typedef): Add invalid type to invalid_hash.
3038 (go_finish): Create and delete invalid_hash.
3040 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3042 PR tree-optimization/46728
3043 * tree-ssa-math-opts.c (powi_table): New.
3044 (powi_lookup_cost): New.
3046 (powi_as_mults_1): New.
3047 (powi_as_mults): New.
3048 (gimple_expand_builtin_powi): New.
3049 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
3050 (gate_cse_sincos): Remove sincos/cexp restriction.
3052 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3055 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
3057 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
3058 * mips-tdump.c: Likewise.
3060 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
3063 * config/i386/driver-i386.c (host_detect_local_cpu): Always
3064 add -mno-XXX. Handle FMA.
3066 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
3068 PR rtl-optimization/48633
3069 * ira-build.c (loop_with_eh_edge_p): New function.
3070 (mark_loops_for_removal): Use it.
3072 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
3074 PR rtl-optimization/48971
3075 * ira.c (setup_pressure_classes): Don't check register move cost
3076 for classes with one registers. Don't add pressure class if there
3077 is a pressure class with the same available hard registers.
3078 Check contains_reg_of_mode. Fix a typo in collecting
3079 temp_hard_regset. Ignore hard registers not belonging to a class.
3081 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
3084 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
3086 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
3087 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3089 PR gcov-profile/48845
3090 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
3092 2011-05-24 Richard Guenther <rguenther@suse.de>
3094 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
3095 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
3096 (gimple_types_compatible_p_1): Adjust.
3097 (iterative_hash_canonical_type): Do not bother about complete vs.
3099 (gimple_canonical_types_compatible_p): Likewise.
3101 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3103 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
3105 2011-05-24 Richard Guenther <rguenther@suse.de>
3108 * gimple.c (gimple_register_canonical_type): Revert
3110 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
3111 does not for a tree for the case where it matters. Cache
3112 pointer-type alias-sets.
3114 2011-05-24 Joseph Myers <joseph@codesourcery.com>
3116 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
3117 (OBJS): Remove options.o, opts-common.o and prefix.o.
3118 (OBJS-libcommon-target): New.
3119 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
3120 (BACKEND): Include libcommon-target.a.
3121 (MOSTLYCLEANFILES): Include libcommon-target.a.
3122 (libcommon-target.a): New.
3123 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
3126 2011-05-23 Joseph Myers <joseph@codesourcery.com>
3128 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
3129 parts of output shared with the driver.
3130 * optc-gen.awk: Don't generate parts of output not shared with the
3132 * opth-gen.awk: Remove GCC_DRIVER conditionals.
3133 * doc/options.texi (SourcerInclude): Mention options-save.c.
3134 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
3135 (OBJS): Add options-save.o.
3136 (options-save.c, options-save.o): New.
3137 (options.o): Update dependencies.
3138 (gcc-options.o): Remove.
3139 (mostlyclean): Remove options-save.c.
3141 2011-05-23 Jakub Jelinek <jakub@redhat.com>
3144 * dbxout.c: Include cgraph.h.
3145 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
3146 and without value expr, return NULL if no varpool node exists for
3147 it or if it is not needed.
3148 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
3151 * c-decl.c (start_decl): Convert expr to void_type_node.
3153 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
3155 PR rtl-optimization/48826
3156 * emit-rtl.c (try_split): When splitting a call that is followed
3157 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
3159 2011-05-23 Jakub Jelinek <jakub@redhat.com>
3161 * cfgexpand.c (expand_debug_expr): For unused non-addressable
3162 parameters passed in memory prefer using DECL_INCOMING_RTL over
3163 the pseudos it will be copied into.
3165 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
3168 * config/i386/i386.c (ix86_option_override_internal): Save the
3169 initial options after checking vzeroupper.
3171 2011-05-23 David Li <davidxl@google.com>
3173 PR tree-optimization/48988
3174 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
3175 Initialize has_valid_pred for each pred chain.
3177 2011-05-23 Richard Guenther <rguenther@suse.de>
3179 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
3180 (iterative_hash_gimple_type): Always hash type names.
3182 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
3184 * c-typeck.c (build_function_call_vec): Tweak call to
3185 check_function_arguments.
3187 2011-05-23 Richard Guenther <rguenther@suse.de>
3189 PR tree-optimization/49115
3190 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
3191 is not necessarily carried out, do not claim it kills the ref.
3192 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
3194 2011-05-23 Richard Guenther <rguenther@suse.de>
3197 * builtins.c (fold_builtin_memory_op): Be less restrictive about
3198 what pointer types we accept for folding.
3200 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3202 * gthr-gnat.c: Remove.
3203 * gthr-gnat.h: Remove.
3204 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
3205 * config/t-freebsd (LIB2ADDEH): Likewise.
3206 * config/t-linux (LIB2ADDEH): Likewise.
3207 * config/t-sol2 (LIB2ADDEH): Likewise.
3208 * config/ia64/t-vms (LIB2ADDEH): Likewise.
3209 * configure.ac (target_thread_file): Remove gnat handling.
3210 * configure: Regenerate.
3211 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
3213 2011-05-23 Tristan Gingold <gingold@adacore.com>
3214 Eric Botcazou <ebotcazou@adacore.com>
3216 * gcov.c (create_file_names): If no object directory is specified,
3217 keep the directory of the file.
3219 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3221 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
3222 * configure: Regenerate.
3224 2011-05-23 Jakub Jelinek <jakub@redhat.com>
3227 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
3228 failed and the comparison has a single bit signed type, use
3229 constm1_rtx instead of const1_rtx for true value.
3230 (do_store_flag): If ops->type is single bit signed type, disable
3231 signel bit test optimization and pass -1 instead of 1 as last
3232 parameter to emit_store_flag_force.
3234 2011-05-23 Tom de Vries <tom@codesourcery.com>
3237 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
3239 (infer_loop_bounds_from_undefined): Use new function.
3241 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
3243 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
3244 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
3245 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
3247 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
3249 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
3251 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
3252 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
3255 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
3257 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
3259 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
3261 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
3262 UNSPEC_MOVE_PIC pattern.
3264 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
3266 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
3267 (sparc-*-rtems*): Likewise.
3268 (sparc64-*-elf*): Likewise.
3269 (sparc64-*-rtems*): Likewise.
3270 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
3271 * config/sparc/t-crtin: New file.
3272 * config/sparc/t-sol2 (crti.o): Delete rule.
3274 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
3275 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
3276 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
3277 (ENDFILE_SPEC): Add crtn.o.
3279 2011-05-22 Tom de Vries <tom@codesourcery.com>
3282 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
3283 CODE_CONTAINS_STRUCT (TS_COMMON).
3285 2011-05-22 Jakub Jelinek <jakub@redhat.com>
3288 * expmed.c (extract_fixed_bit_field): Test whether target can be used
3289 only after deciding which mode to use.
3291 2011-05-22 Tom de Vries <tom@codesourcery.com>
3294 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
3295 for call to get_shiftadd_cost.
3297 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
3300 * config/i386/cpuid.h (bit_MMXEXT): New define.
3302 2011-05-22 Nick Clifton <nickc@redhat.com>
3304 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
3305 initialisation of non-existant args[2] element. Use args[] array
3306 not arg[] array to pass arguments to build_function_type_list.
3308 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
3310 PR tree-optimization/49087
3311 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
3313 2011-05-21 Jason Merrill <jason@redhat.com>
3316 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
3317 static storage duration.
3319 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
3321 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
3324 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
3326 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
3327 false if there are call-saved registers here...
3328 (sparc_can_use_return_insn_p): ...but here instead.
3329 (save_or_restore_regs): Fix thinko.
3330 (sparc_expand_prologue): Use current_function_is_leaf.
3331 (sparc_frame_pointer_required): Likewise.
3333 2011-05-21 Nick Clifton <nickc@redhat.com>
3336 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
3338 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
3340 * gengtype.c (walk_type): Implemented "atomic" GTY option.
3341 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
3343 2011-05-21 Joseph Myers <joseph@codesourcery.com>
3345 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
3346 * optc-gen.awk: Move common code to opt-read.awk.
3347 * opth-gen.awk: Likewise.
3348 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
3350 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
3352 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
3354 2011-05-20 Tom de Vries <tom@codesourcery.com>
3357 * tree-ssa-loop-ivopts.c: Include expmed.h.
3358 (get_shiftadd_cost): New function.
3359 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
3361 2011-05-20 Jakub Jelinek <jakub@redhat.com>
3364 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
3365 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
3367 2011-05-20 Joseph Myers <joseph@codesourcery.com>
3369 * Makefile.in: Update comment referring to $(OBJS-common).
3371 2011-05-20 Ian Lance Taylor <iant@google.com>
3373 * godump.c (go_output_typedef): Put enum constants in the macro
3374 hash table to avoid duplicate Go const definitions.
3376 2011-05-20 Joseph Myers <joseph@codesourcery.com>
3378 * Makefile.in (LIBDEPS): Add libcommon.a.
3380 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
3381 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
3382 pretty-print.o and version.o.
3383 (OBJS-libcommon): New.
3384 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
3385 (BACKEND): Add libcommon.a.
3386 (MOSTLYCLEANFILES): Likewise.
3388 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
3389 (cpp$(exeext)): Likewise.
3390 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
3391 pretty-print.o and input.o.
3392 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
3393 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
3395 (mips-tfile): Don't explicitly use version.o.
3396 (mips-tdump): Likewise.
3397 (gcov.o): Depend on $(DIAGNOSTIC_H).
3398 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
3399 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
3400 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
3401 * gcov-dump.c: Include intl.h and diagnostic.h.
3402 (main): Initialize diagnostics.
3403 * gcov.c: Include diagnostic.h.
3405 (main): Initialize diagnostics.
3406 * lto-wrapper.c: Include diagnostic.h.
3407 (main): Initialize diagnostics.
3409 2011-05-20 Michael Matz <matz@suse.de>
3411 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
3413 2011-05-20 Michael Matz <matz@suse.de>
3414 Richard Guenther <rguenther@suse.de>
3416 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
3417 use lto_streamer_cache_append directly instead of returning a VEC.
3418 (preload_common_node): Remove.
3419 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
3421 (lto_streamer_cache_create): Call lto_preload_common_nodes.
3423 2011-05-20 Richard Guenther <rguenther@suse.de>
3425 PR tree-optimization/49079
3426 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
3427 MEM_REFs correctly for the trailing array access detection.
3428 Special case constants the same way as decls for overall size
3431 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
3433 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
3436 2011-05-20 Jakub Jelinek <jakub@redhat.com>
3438 PR tree-optimization/49073
3439 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
3440 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
3441 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
3443 2011-05-20 Richard Guenther <rguenther@suse.de>
3446 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
3447 of pointer types the same way the middle-end does.
3449 2011-05-20 Richard Guenther <rguenther@suse.de>
3451 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
3452 or pointer-to chains. Delay all fixup to uniquify_nodes.
3454 2011-05-19 Quentin Neill <quentin.neill@amd.com>
3456 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
3457 (fma4_fmaddsub): Likewise
3459 2011-05-19 Jan Hubicka <jh@suse.cz>
3461 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
3462 (GIMPLE_TYPE_PAIR_SIZE): New macro.
3463 (type_pair_cache): New static var.
3464 (lookup_type_pair): Use fixed sized custom hash; make inline.
3465 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
3466 calls of lookup_type_pair.
3467 (print_gimple_types_stats): Remove cache stats.
3468 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
3471 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
3473 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
3474 when TARGET_RDRND is active.
3475 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
3476 Generate dummy SImode target register when target is NULL.
3478 2011-05-19 Joseph Myers <joseph@codesourcery.com>
3480 * config/arm/arm-fpus.def: New.
3481 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
3483 * config/arm/arm-tables.opt: Regenerate.
3484 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
3485 (arm_option_override): Don't decode FPU name to string here.
3486 * config/arm/arm.opt (mfpu=): Use Enum.
3487 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
3488 Update dependencies.
3490 2011-05-19 Joseph Myers <joseph@codesourcery.com>
3492 * collect2.c: Include diagnostic.h.
3493 (fatal_perror, fatal, error, fancy_abort): Remove.
3494 (main): Set progname. Call xmalloc_set_program_name and
3495 diagnostic_initialize.
3496 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
3497 scan_libraries, resolve_lib_name): Call fatal_error instead of
3498 fatal and fatal_perror.
3499 * collect2.h (error, fatal, fatal_perror): Don't declare.
3500 * tlink.c: Include diagnostic-core.h.
3501 (recompile_files): Call fatal_error instead of fatal_perror.
3502 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
3503 pretty-print.o and input.o.
3504 (collect2.o, tlink.o): Update dependencies.
3506 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3508 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
3510 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3513 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
3514 COMDAT group syntax, both SPARC and x86 variants.
3515 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
3516 * configure: Regenerate.
3517 * config/sol2.h (TARGET_SOLARIS): Define.
3518 (PUSHSECTION_FORMAT): Remove.
3519 (SECTION_NAME_FORMAT): Define.
3520 * config/sol2.c: Include hashtab.h.
3521 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
3522 expansion, using SECTION_NAME_FORMAT.
3523 (solaris_comdat_htab): New variable.
3524 (struct comdat_entry): Define.
3525 (comdat_hash): New function.
3526 (comdat_eq): New function.
3527 (solaris_elf_asm_comdat_section): New function.
3528 (solaris_define_comdat_signature): New function.
3529 (solaris_code_end): New function.
3530 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
3531 (solaris_code_end): Declare.
3532 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
3533 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
3535 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
3536 Remove ATTRIBUTE_UNUSED.
3537 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
3538 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
3539 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
3540 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
3541 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
3542 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
3543 (PUSHSECTION_FORMAT): Remove.
3544 (SECTION_NAME_FORMAT): Redefine.
3546 2011-05-19 Kai Tietz <ktietz@redhat.com>
3548 * tree-cfg.c (verify_gimple_assign_binary): Barf on
3549 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
3550 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
3552 2011-05-19 Anatoly Sokolov <aesok@post.ru>
3553 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3555 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
3557 2011-05-19 Richard Guenther <rguenther@suse.de>
3560 * tree-object-size.c (addr_object_size): If the pointed-to
3561 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
3563 2011-05-19 Richard Guenther <rguenther@suse.de>
3565 * gimple.c (gimple_types_compatible_p_1): Compare names of
3566 the types themselves.
3567 (iterative_hash_gimple_type): And hash them that way.
3568 (gimple_register_type_1): If we register a main variant properly
3569 initialize the leader to ourselves.
3571 2011-05-19 Tom de Vries <tom@codesourcery.com>
3574 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
3575 get_loop_invariant_expr_id.
3576 (get_loop_invariant_expr_id): Use get_expr_id.
3577 (parm_decl_cost): New function.
3578 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
3579 Improve bound cost estimation. Use different inv_expr_id for elim and
3582 2011-05-19 Tom de Vries <tom@codesourcery.com>
3585 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
3586 cost_base.cost == 0.
3588 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
3591 * config/i386/sse.md
3592 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
3595 2011-05-18 Jakub Jelinek <jakub@redhat.com>
3597 PR tree-optimization/49039
3598 * tree-vrp.c (extract_range_from_binary_expr): For
3599 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
3600 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
3602 2011-05-18 Tom de Vries <tom@codesourcery.com>
3605 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
3607 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
3609 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
3610 (*tls_global_dynamic_64): Ditto.
3611 (*tls_local_dynamic_base_32_gnu): Ditto.
3612 (*tls_local_dynamic_base_64): Ditto.
3613 (tls_initial_exec_64_sun): Ditto.
3615 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
3617 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
3618 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
3620 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
3621 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
3622 * config/bfin/bfin.c (bfin_cpus): Add bf592.
3623 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
3624 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
3625 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
3626 * config/bfin/elf.h (LIB_SPEC): Add bf592.
3628 2011-05-18 Joseph Myers <joseph@codesourcery.com>
3630 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
3631 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
3632 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
3633 target_thread_pointer, arm_structure_size_boundary, struct
3634 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
3635 struct abi_name, arm_all_abis): Remove.
3636 (arm_option_override) Don't process most enumerated option values here.
3637 Don't process target_fpe_name here. Work with integer not string for
3638 structure size boundary; use separate diagnostics for each case.
3639 * config/arm/arm.h (enum float_abi_type, enum
3640 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
3642 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
3643 arm_structure_size_boundary): Remove.
3644 * config/arm/arm.opt (mabi=): Use Enum and Init.
3645 (arm_abi_type): New Enum and EnumValue entries.
3646 (mfloat-abi=): Use Enum and Init.
3647 (float_abi_type): New Enum and EnumValue entries.
3648 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
3649 (mfp16-format=): Use Enum and Init.
3650 (arm_fp16_format_type): New Enum and EnumValue entries.
3651 (mstructure-size-boundary=): Use UInteger and Init.
3652 (mtp=): Use Enum and Init.
3653 (arm_tp_type): New Enum and EnumValue entries.
3655 2011-05-18 Richard Guenther <rguenther@suse.de>
3657 PR tree-optimization/49018
3658 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
3659 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
3660 gimple_has_side_effects.
3662 2011-05-18 Richard Guenther <rguenther@suse.de>
3664 * gimple.c (gimple_register_type_1): New function, split out from ...
3665 (gimple_register_type): ... here. Avoid infinite recursion.
3667 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
3669 PR tree-optimization/41881
3670 * tree-vectorizer.h (struct _loop_vec_info): Add new field
3671 reduction_chains along with a macro for its access.
3672 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
3673 (destroy_loop_vec_info): Free reduction chains.
3674 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
3675 (vect_is_slp_reduction): New function.
3676 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
3677 (vect_create_epilog_for_reduction): Support SLP reduction chains.
3678 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
3679 definition types for reduction chains.
3680 (vect_supported_load_permutation_p): Don't allow permutations for
3682 (vect_analyze_slp_instance): Support reduction chains.
3683 (vect_analyze_slp): Try to build SLP instance from reduction chains.
3684 (vect_get_constant_vectors): Handle reduction chains.
3685 (vect_schedule_slp_instance): Mark the first statement of the
3686 reduction chain as reduction.
3688 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
3690 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
3691 names for group elements access.
3692 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
3693 reduction chains as well. Remove data reference and interleaving
3694 related words from the fields names.
3695 * tree-vect-loop.c (vect_transform_loop): Use new names for group
3697 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
3698 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
3699 vect_update_interleaving_chain, vect_same_range_drs,
3700 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
3701 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
3702 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
3703 vect_analyze_group_access, vect_analyze_data_ref_access,
3704 vect_create_data_ref_ptr, vect_transform_strided_load,
3705 vect_record_strided_load_vectors): Likewise.
3706 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
3707 vect_model_load_cost, vectorizable_store, vectorizable_load,
3708 vect_remove_stores, new_stmt_vec_info): Likewise.
3709 * tree-vect-slp.c (vect_build_slp_tree,
3710 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
3712 2011-05-18 Richard Guenther <rguenther@suse.de>
3715 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
3716 operand verification.
3717 (verify_gimple_assign_binary): Likewise.
3718 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
3719 to non-1-precision BOOLEAN_TYPEs.
3721 2011-05-18 Tom de Vries <tom@codesourcery.com>
3724 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
3726 2011-05-18 Jakub Jelinek <jakub@redhat.com>
3728 PR tree-optimization/49000
3729 * tree-ssa.c (execute_update_addresses_taken): Call
3730 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
3731 be rewritten and decl has been marked for renaming, reset
3734 2011-05-17 Joseph Myers <joseph@codesourcery.com>
3736 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
3737 enum_opts_set when testing if attributes have set -mfpmath=.
3739 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
3741 * config/mips/mips.c (mips_handle_option): Remove unused variable.
3743 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
3745 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
3747 * tree-inline.c (maybe_inline_call_in_expr): Initialize
3748 id.transform_lang_insert_block with NULL.
3750 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
3752 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
3753 (output_fp_compare): Change args 3 and 4 to bool.
3754 (ix86_expand_call): Change arg 6 to bool.
3755 (ix86_attr_length_immediate_default): Change arg 2 to bool.
3756 (ix86_attr_length_vex_default): Change arg 3 to bool.
3757 * config/i386/i386.md: Update all uses.
3758 * config/i386/i386.c: Ditto.
3759 (ix86_flags_dependent): Change return type to bool.
3761 2011-05-17 Richard Guenther <rguenther@suse.de>
3763 * gimple.c (type_hash_pair_compare): Fix comparison.
3765 2011-05-17 Richard Guenther <rguenther@suse.de>
3767 * gimple.c (iterative_hash_gimple_type): Simplify singleton
3768 case some more, fix final hash value of the non-singleton case.
3770 2011-05-17 Richard Guenther <rguenther@suse.de>
3774 2011-05-16 Richard Guenther <rguenther@suse.de>
3776 * gimple.c (gimple_types_compatible_p_1): Use names of the
3777 type itself, not its main variant.
3778 (iterative_hash_gimple_type): Likewise.
3780 2011-05-17 Richard Guenther <rguenther@suse.de>
3782 * gimple.c (gimple_register_canonical_type): Use the main-variant
3783 leader for computing the canonical type.
3785 2011-05-17 Nick Clifton <nickc@redhat.com>
3787 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
3790 * config/rx/rx.md: Add peephole to remove redundant extensions
3792 (bitset_in_memory): Use rx_restricted_mem_operand.
3793 (bitinvert_in_memory): Likewise.
3794 (bitclr_in_memory): Likewise.
3796 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
3797 Nick Clifton <nickc@redhat.com>
3799 * config/rx/rx.md: Add peepholes to match a register move followed
3800 by a comparison of the moved register. Replace these with an
3801 addition of zero that does both actions in one instruction.
3803 2011-05-17 Jakub Jelinek <jakub@redhat.com>
3806 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
3807 predicate to allow CONST_INT.
3808 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
3810 2011-05-16 Joseph Myers <joseph@codesourcery.com>
3812 * opts-common.c (opt_enum_arg_to_value): New.
3813 * opts.h (opt_enum_arg_to_value): Declare.
3814 * config/i386/i386.opt (fpmath): Remove.
3815 (mfpmath=): Use Enum, Init and Save.
3816 (fpmath_unit): New Enum and EnumValue entries.
3817 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
3818 name for function fpmath state.
3819 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
3820 * config/i386/i386.c: Include diagnostic.h.
3821 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
3822 (ix86_target_string): Take enum fpmath_unit value instead of string.
3823 (ix86_debug_options): Update call to ix86_target_string.
3824 (ix86_option_override_internal): Don't process fpmath strings here.
3825 (x86_function_specific_save, ix86_function_specific_restore):
3826 Don't handle fpmath state specially.
3827 (ix86_function_specific_print): Pass fpmath state to
3828 ix86_target_string instead of printing in this function.
3829 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
3830 Handle enum attributes.
3831 (IX86_ATTR_ENUM, ix86_opt_enum): New.
3832 (ix86_valid_target_attribute_tree): Update option_strings
3833 handling. Handle fpmath as enum option.
3834 (ix86_can_inline_p): Update field names for function fpmath state.
3835 (ix86_expand_builtin): Update call to ix86_target_string.
3836 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
3837 (ix86_fpmath): Remove.
3838 * config/i386/t-i386 (i386.o): Update dependencies.
3840 2011-05-16 Joseph Myers <joseph@codesourcery.com>
3842 PR preprocessor/48677
3843 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
3844 from decoded_options[0], not from itself.
3846 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
3848 * config/i386/constraints.md (z): New constraint.
3849 * config/i386/i386.c (c): New mode attribute.
3850 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
3851 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
3852 constraint for operand 0.
3853 (*call_vzeroupper): Ditto.
3854 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
3855 (*call_rex64_ms_sysv_vzeroupper): Ditto.
3856 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
3857 Use "lzm" constraint for operand 0.
3858 (*call_pop_vzeroupper): Ditto.
3859 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
3860 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
3861 constraint for operand 0.
3862 (*sibcall_vzeroupper): Ditto.
3863 (*sibcall_rex64_ms_sysv): Ditto.
3864 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
3865 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
3866 *sibcall_pop_1. Use "Uz" constraint for operand 0.
3867 (*sibcall_pop_vzeroupper): Ditto.
3868 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
3869 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
3870 mode iterator. Use "<c>zm" constraint for operand 1.
3871 (*call_value_vzeroupper): Ditto.
3872 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
3874 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
3875 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
3876 *call_value_pop_1. Use "lzm" constraint for operand 1.
3877 (*call_value_pop_vzeroupper): Ditto.
3878 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
3879 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
3880 mode iterator. Use "Uz" constraint for operand 1.
3881 (*sibcall_value_vzeroupper): Ditto.
3882 (*sibcall_value_rex64_ms_sysv): Ditto.
3883 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
3884 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
3885 constraint for operand 1.
3886 (*sibcall_value_pop_vzeroupper): Ditto.
3887 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
3888 and "z" constraint for operand 2.
3889 (*tls_global_dynamic_32_gnu): Ditto.
3890 (*tls_local_dynamic_base_32_gnu): Ditto.
3891 (*tls_local_dynamic_base_64): Ditto.
3892 (*tls_local_dynamic_32_once): Ditto.
3893 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
3895 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
3897 2011-05-16 Richard Guenther <rguenther@suse.de>
3899 * gimple.c (gimple_types_compatible_p_1): Use names of the
3900 type itself, not its main variant.
3901 (iterative_hash_gimple_type): Likewise.
3903 2011-05-16 Richard Guenther <rguenther@suse.de>
3905 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
3906 always visit pointer target and function result and argument types.
3908 2011-05-16 Jason Merrill <jason@redhat.com>
3911 * tree-inline.c (copy_statement_list): Put back recursion.
3913 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
3917 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
3918 * config/avr/avr.md ("*ior<mode>qi.byte0",
3919 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
3921 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
3924 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
3925 register is needed for a function argument.
3927 2011-05-16 Richard Guenther <rguenther@suse.de>
3929 * gimple.c (struct type_hash_pair): New type.
3930 (type_hash_pair_compare): New function.
3931 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
3933 2011-05-16 Revital Eres <revital.eres@linaro.org>
3935 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
3937 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
3939 * config/i386/i386.md (floating point move splitters): Fix
3940 usage of standard_80387_constant_p.
3941 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
3943 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
3945 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
3947 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
3949 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
3950 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
3951 (tree_ssa_lim_finalize): Likewise.
3953 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
3955 * config/i386/constraint.md (Yd, Yx): New register constraints.
3956 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
3957 Yd conditional register constraint.
3958 (*movtf_internal): Use standard_sse_constant_opcode.
3959 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
3960 Yx conditional register constraint.
3961 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
3962 Yd conditional register constraint. Use standard_sse_constant_p to
3963 check for valid SSE constants and call standard_sse_constant_opcode to
3965 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
3966 constants and call standard_sse_constant_opcode to output SSE insn.
3967 * config/i386/i386.c (ix86_option_ovverride_internal): Set
3968 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
3969 optimize_size is set.
3970 (standard_sse_constant_opcode): Output conditional AVX insn templates.
3972 2011-05-14 Tobias Burnus <burnus@net-b.de>
3974 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
3976 2011-05-13 Martin Jambor <mjambor@suse.cz>
3978 * ipa-prop.c (ipa_cst_from_jfunc): New function.
3979 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
3980 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
3981 (evaluate_conditions_for_ipcp_clone): Removed.
3982 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
3983 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
3984 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
3986 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
3988 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
3989 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
3990 lieu of MAY_HAVE_DEBUG_STMTS.
3991 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
3992 debug statements if !MAY_HAVE_DEBUG_STMTS.
3994 2011-05-13 Martin Thuresson <martint@google.com>
3996 PR gcov-profile/47793
3997 * libgcov.c (gcov_exit): Support relative profile paths.
3998 * doc/invoke.texi (-fprofile-dir): Update for above change.
4000 2011-05-13 Richard Guenther <rguenther@suse.de>
4002 * gimple.c (gimple_canonical_types_compatible_p): Do not use
4003 type-pair caching, do not compare hashes.
4005 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
4008 * tree-cfg.c (edge_to_cases_cleanup): Return true.
4009 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
4011 2011-05-13 Kai Tietz <ktietz@redhat.com>
4013 * gimplify.c (gimplify_expr): Make sure operand is boolified.
4014 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
4015 compatible type for TRUTH_NOT_EXPR.
4017 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
4019 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
4020 (ix86_hard_regno_mode_ok): Change return value to bool. Use
4021 can_create_pseudo_p ().
4023 2011-05-13 Richard Guenther <rguenther@suse.de>
4026 * gimple.c (iterative_hash_gimple_type): Revert change in
4027 pointer target and function result and argument hashing.
4029 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
4031 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
4032 (*movxf_internal_nointeger): Ditto.
4033 (*movdf_internal_rex64): Ditto.
4034 (*movdf_internal): Ditto.
4035 (*movdf_internal_nointeger): Ditto.
4036 (*movsf_internal): Ditto.
4037 (sincos splitters): Use can_create_pseudo ().
4039 2011-05-13 Joseph Myers <joseph@codesourcery.com>
4041 * config/i386/i386-opts.h: New.
4042 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
4043 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
4044 ix86_section_threshold): Remove.
4045 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
4046 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
4048 (ix86_option_override_internal): Don't decode strings for options
4049 other than -march=, -mtune= and -mfpmath=. Don't allow for
4050 __attribute__ uses in remaining diagnostics for options with
4051 string arguments. Don't check for integer arguments being negative.
4052 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
4053 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
4054 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
4055 ix86_branch_cost, ix86_section_threshold): Remove.
4056 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
4058 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
4060 (masm=): Use Enum and Init.
4061 (asm_dialect): New Enum and EnumValue entries.
4062 (mbranch-cost=): Use UInteger.
4063 (mlarge-data-threshold=): Use UInteger and Init.
4064 (mcmodel=): Use Enum and Init.
4065 (cmodel): New Enum and EnumValue entries.
4066 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
4067 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
4068 mregparm=): Use UInteger.
4069 (mstringop-strategy=): Use Enum and Init.
4070 (stringop_alg): New Enum and EnumValue entries.
4071 (mtls-dialect=): Use Enum and Init.
4072 (tls_dialect): New Enum and EnumValue entries.
4073 (mabi=): Use Enum and Init.
4074 (calling_abi): New Enum and EnumValue entries.
4075 (mveclibabi=): Use Enum and Init.
4076 (ix86_veclibabi): New Enum and EnumValue entries.
4078 2011-05-13 Nick Clifton <nickc@redhat.com>
4080 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
4081 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
4083 2011-05-13 Kai Tietz <ktietz@redhat.com>
4086 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
4087 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
4088 (gimple_boolify): Check for cast for boolean_type_node instead for
4091 2011-05-13 Richard Guenther <rguenther@suse.de>
4093 PR tree-optimization/48172
4094 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
4095 multiplying by number of iterations for equal step.
4096 (vect_create_cond_for_alias_checks): Likewise.
4098 2011-05-13 Andreas Schwab <schwab@redhat.com>
4100 * configure.ac: Use AS_HELP_STRING throughout.
4101 * configure: Regenerate.
4103 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
4105 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
4106 (ix86_emit_restore_regs_using_mov): Likewise.
4107 (ix86_emit_restore_sse_regs_using_mov): Likewise.
4109 2011-05-12 Anatoly Sokolov <aesok@post.ru>
4111 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
4112 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
4113 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
4114 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
4115 RTX_OK_FOR_OLO10_P): ...here.
4116 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
4119 2011-05-12 Kai Tietz <ktietz@redhat.com>
4121 * gimplify.c (gimple_boolify): Re-boolify expression
4122 arguments even if expression type is of kind BOOLEAN_TYPE.
4123 (gimplify_boolean_expr): Removed.
4124 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
4125 and XOR. Additional take care that we keep expression's type.
4126 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
4127 of TRUTH_AND|OR|XOR_EXPR.
4129 2011-05-12 Jakub Jelinek <jakub@redhat.com>
4131 PR tree-optimization/48975
4132 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
4133 on all bbs here and free and clear ifc_bbs at the end.
4135 2011-05-12 Richard Guenther <rguenther@suse.de>
4137 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
4138 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
4139 until after simple checks.
4140 (gimple_types_compatible_p): Likewise.
4141 (iterative_hash_gimple_type): Always hash pointer targets
4142 and function return and argument types.
4143 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
4144 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
4145 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
4146 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
4147 completely in the simple compare section.
4148 (gimple_register_canonical_type): Query the cache again after
4151 2011-05-12 Richard Guenther <rguenther@suse.de>
4153 PR tree-optimization/48172
4154 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
4155 the number of iterations from the segment size calculation.
4156 (vect_create_cond_for_alias_checks): Adjust.
4158 2011-05-12 Jakub Jelinek <jakub@redhat.com>
4161 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
4162 if validate_subreg fails.
4164 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
4166 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
4167 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
4170 2011-05-12 DJ Delorie <dj@redhat.com>
4172 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
4173 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
4174 created builtin into rx_builtins array.
4175 (rx_builtin_decl): New function.
4176 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
4178 2011-05-12 DJ Delorie <dj@redhat.com>
4179 Nick Clifton <nickc@redhat.com>
4181 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
4182 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
4183 (rx_is_legitimate_address): Add pre-decrement and post-increment
4184 addressing in HImode and QImode. Fix test for out of range
4186 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
4187 (rx_align_for_label): Test label before extracting its usage count.
4188 (rx_adjust_insn_lengths): Fix selection of insn codes.
4189 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
4191 2011-05-11 Jason Merrill <jason@redhat.com>
4193 * tree.c (type_hash_canon): Use struct tree_type_non_common.
4195 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
4197 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
4198 reindent the subsequent block.
4200 2011-05-11 Satoru Takabayashi <satorux@google.com>
4201 Paul Pluzhnikov <ppluzhnikov@google.com>
4203 * doc/install.texi (Configuration): Document --with-linker-hash-style.
4204 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
4205 * config.in: Add LINKER_HASH_STYLE.
4206 * configure.ac: Add --with-linker-hash-style.
4207 * configure: Regenerate.
4209 2011-05-11 Richard Guenther <rguenther@suse.de>
4212 * gimple.c (iterative_hash_canonical_type): Fix typo.
4214 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
4216 * config/i386/i386.c (legitimize_tls_address)
4217 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
4218 expanders directly for TARGET_GNU2_TLS. Determine pic and
4219 __tls_get_addr symbol reference here. Update call to
4220 gen_tls_global_dynamic_{32,64} for added arguments.
4221 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
4222 expanders directly for TARGET_GNU2_TLS. Determine
4223 __tls_get_addr symbol reference here. Update call to
4224 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
4225 unique UNSPEC REG_EQUIV to libcall block.
4226 (ix86_tls_get_addr): Declare static.
4227 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
4228 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
4229 Do not determine pic and __tls_get_addr symbol reference here. Do not
4230 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
4231 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
4232 (tls_global_dynamic_64): Add operand 2. Do not determine
4233 __tls_get_addr symbol reference here. Do not call
4234 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
4235 (tls_local_dynamic_base64): Ditto for operand 1.
4237 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
4239 * function.c (expand_function_start): Initialize stack_check_probe_note
4240 only if the generic stack checking mechanism is used.
4242 2011-05-11 Richard Guenther <rguenther@suse.de>
4244 PR tree-optimization/15256
4245 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
4246 (A & B) | C, combine (A op CST1) op CST2.
4247 (tree_ssa_forward_propagate_single_use_vars): Only bother to
4248 visit assigns that have uses.
4250 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
4252 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
4253 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
4254 (unpack_ts_type_common_value_fields): ...this. Update comment.
4255 (unpack_value_fields): Adjust for renaming.
4256 (lto_input_ts_type_tree_pointers): Split into...
4257 (lto_input_ts_type_common_tree_pointer): ...this and...
4258 (lto_input_ts_type_non_common_tree_pointers): ...this.
4259 (lto_input_tree_pointers): Adjust for above split.
4260 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
4261 (pack_ts_type_common_value_fields): ...this. Update comment.
4262 (lto_output_ts_type_tree_pointers): Split into...
4263 (lto_output_ts_type_common_tree_pointers): ...this and...
4264 (lto_output_ts_type_non_common_tree_pointers): ...this.
4265 (lto_output_tree_pointers): Adjust for above split.
4266 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
4267 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
4268 * stor-layout.c (vector_type_mode): Adjust location of mode field.
4269 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
4271 (struct tree_type): Split into...
4272 (struct tree_type_common: ...this and...
4273 (struct tree_type_with_lang_specific): ...this and...
4274 (struct tree_type_non_common): ...this. Adjust accessor macros
4276 (TYPE_VALUES_RAW): Define.
4277 (union tree_node): Update for above changes.
4278 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
4280 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
4281 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
4282 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
4283 * treestructu.def (TS_TYPE): Remove.
4284 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
4287 2011-05-11 Jakub Jelinek <jakub@redhat.com>
4290 * tree-ssa.c (reset_debug_uses): New function.
4291 * tree-flow.h (reset_debug_uses): New prototype.
4292 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
4293 * tree-loop-distribution.c (generate_loops_for_partition): Call
4294 reset_debug_uses on the stmts that will be removed. Keep around
4295 all debug stmts, don't count them as bits in partition bitmap.
4296 (generate_builtin): Don't count debug stmts or labels as bits in
4299 2011-05-11 Richard Guenther <rguenther@suse.de>
4301 * gimple.c (gimple_type_hash_1): Merge with ...
4302 (gimple_type_hash): ... this.
4303 (gtc_visit): Remove mode parameter and simplify accordingly.
4304 (gimple_types_compatible_p_1): Likewise.
4305 (gimple_types_compatible_p): Likewise.
4306 (iterative_hash_gimple_type): Likewise.
4308 (gimple_type_eq): Adjust.
4310 2011-05-11 Revital Eres <revital.eres@linaro.org>
4312 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
4313 enters the branch create an anti edge in the opposite direction
4314 to prevent the creation of reg-moves.
4315 * modulo-sched.c: Adjust comment to reflect the fact we are
4316 scheduling closing branch.
4317 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
4318 (stage_count): New field in struct partial_schedule.
4319 (calculate_stage_count): New function.
4320 (normalize_sched_times): Rename to reset_sched_times and handle
4321 incrementing the sched time of the nodes by a constant value
4322 passed as parameter.
4323 (duplicate_insns_of_cycles): Skip closing branch.
4324 (sms_schedule_by_order): Schedule closing branch.
4325 (ps_insn_find_column): Handle closing branch.
4326 (sms_schedule): Call reset_sched_times and adjust the code to
4327 support scheduling of the closing branch.
4328 (ps_insert_empty_row): Update calls to normalize_sched_times
4329 and rotate_partial_schedule functions.
4331 2011-05-11 Richard Guenther <rguenther@suse.de>
4334 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
4336 2011-05-11 Joseph Myers <joseph@codesourcery.com>
4338 * opts.c (finish_options): Move warning settings from process_options.
4339 * toplev.c (process_options): Move warning settings to finish_options.
4341 2011-05-11 Richard Guenther <rguenther@suse.de>
4343 PR tree-optimization/18041
4344 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
4345 (simplify_bitwise_binary): ... this. Handle operand conversions
4346 by applying them to the result instead.
4347 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
4349 2011-05-11 Richard Guenther <rguenther@suse.de>
4351 * gimple.c (gimple_canonical_types_compatible_p): Split out
4352 from gimple_types_compatible_p and friends. Do not recurse
4353 to pointed-to types.
4354 (gimple_canonical_type_eq): Use it.
4355 (iterative_hash_canonical_type): Split out from
4356 iterative_hash_gimple_type and friends. Do not recurse
4357 to pointed-to types.
4358 (gimple_canonical_type_hash): Use it, allocate the hash here.
4360 2011-05-11 Revital Eres <revital.eres@linaro.org>
4362 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
4365 2011-05-11 Revital Eres <revital.eres@linaro.org>
4367 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
4368 instead of PREV_INSN.
4370 2011-05-11 Revital Eres <revital.eres@linaro.org>
4372 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
4373 * loop-doloop.c (doloop_condition_get): Likewise.
4374 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
4376 * config/arm/arm.md (*addsi3_compare0): Remove "*".
4378 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
4380 * tree.def (CASE_LABEL_EXPR): Add an operand.
4381 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
4383 2011-05-10 Joseph Myers <joseph@codesourcery.com>
4385 * c-decl.c (c_override_global_bindings_to_false): Remove.
4386 (global_bindings_p): Don't check
4387 c_override_global_bindings_to_false.
4388 * c-tree.h (c_override_global_bindings_to_false): Remove.
4389 * c-typeck.c (composite_type): Don't set
4390 c_override_global_bindings_to_false.
4392 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
4394 PR target/48857, 48495
4395 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
4397 (VSX_MOVE_MODE): Ditto.
4398 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
4399 VSX vector types. Add V2DImode.
4400 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
4401 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
4402 (MODES_TIEABLE_P): Ditto.
4404 * config/rs6000/rs6000.c (rs6000_emit_move): Use
4405 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
4407 (init_cumulative_args): Ditto.
4408 (rs6000_function_arg_boundary): Ditto.
4409 (rs6000_function_arg_advance_1): Ditto.
4410 (rs6000_function_arg): Ditto.
4411 (rs6000_function_ok_for_sibcall): Ditto.
4412 (emit_frame_save): Ditto.
4413 (rs6000_function_value): Ditto.
4414 (rs6000_libcall_value): Ditto.
4416 2011-05-10 Joseph Myers <joseph@codesourcery.com>
4418 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
4419 i386/darwin-lib.h to $libgcc_tm_file.
4420 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
4422 2011-05-10 Joseph Myers <joseph@codesourcery.com>
4424 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
4426 2011-05-10 Joseph Myers <joseph@codesourcery.com>
4428 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
4429 * config/rs6000/rs6000-tables.opt: New file (generated).
4430 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
4431 rs6000/rs6000-tables.opt to extra_options.
4432 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
4433 * config/rs6000/rs6000.c (rs6000_select): Remove.
4434 (processor_target_table): Move contents to rs6000-cpus.def.
4435 (darwin_rs6000_override_options): Check
4436 global_options_set.x_rs6000_cpu_index instead of
4437 rs6000_select[1].string.
4438 (rs6000_option_override_internal): Likewise.
4439 (rs6000_handle_option): Don't assert that global structures are in
4440 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
4441 (rs6000_default_cpu): New variable.
4442 (rs6000_file_start): Set it instead of local default_cpu. Check
4443 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
4444 global_options_set.x_rs6000_tune_index instead of rs6000_select.
4445 (rs6000_darwin_file_start): Check rs6000_default_cpu and
4446 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
4447 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
4448 rs6000_select): Remove.
4449 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
4451 (mcpu=, mtune=): Use Var, Init, Enum and Save.
4452 * config/rs6000/t-rs6000
4453 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
4454 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
4455 global_options_set.x_rs6000_cpu_index instead of
4456 rs6000_select[1].string.
4457 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
4458 global_options_set.x_rs6000_cpu_index instead of
4459 rs6000_select[1].string.
4461 2011-05-10 Joseph Myers <joseph@codesourcery.com>
4463 * config.gcc (libgcc_tm_file): Define instead of including files
4464 from ../../libgcc/config/ in tm_file.
4465 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
4466 * configure: Regenerate.
4467 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
4468 libgcc_tm.h, cs-libgcc_tm.h): New.
4469 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
4470 (clean): Remove libgcc_tm.h.
4471 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
4472 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
4473 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
4475 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
4478 * config/avr/avr.c (avr_ret_register): Return unsigned int
4480 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
4481 it to avr_libcall_value.
4482 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
4484 (avr_expand_binop_builtin): Ditto.
4485 (avr_expand_unop_builtin): Ditto.
4487 2011-05-10 DJ Delorie <dj@redhat.com>
4489 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
4490 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
4491 * config/rx/rx.c (rx_align_for_label): Add label and
4492 uses_threshold parameters. Do not align when the label is not
4494 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
4496 2011-05-10 Richard Guenther <rguenther@suse.de>
4498 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
4499 a series of conversions and apply foldings similar to what
4501 (tree_ssa_forward_propagate_single_use_vars): Call it.
4503 2011-05-10 Jakub Jelinek <jakub@redhat.com>
4505 PR tree-optimization/48611
4506 PR tree-optimization/48794
4507 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
4508 referenced from RESX or EH_DISPATCH arguments.
4511 * dfp.c (decimal_to_decnumber): Handle conversion from
4512 dconst{1,2,m1,half}.
4514 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
4516 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
4517 for !flag_prefer_avx128.
4518 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
4520 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
4522 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
4523 (fold_ternary_loc): Use expr_location_or.
4525 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
4528 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
4529 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
4530 Pmode and mem_mode is not VOIDmode.
4532 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
4534 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
4535 TYPE_QUAL_RESTRICT): Convert to enum.
4537 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
4539 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
4540 (const_pow2_1_to_8_operand): Ditto.
4541 (const_pow2_1_to_128_operand): Ditto.
4542 (const_pow2_1_to_32768_operand): Ditto.
4543 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
4544 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
4545 in insn constraint to check integer value of operand 3.
4546 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
4548 (PINSR_MODE): New mode iterator.
4549 (sse2p4_1): New mode attribute.
4550 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
4551 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
4552 iterator. Use const_int_operand instead of
4553 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
4554 exact_log2 in insn constraint to check integer value of operand 3.
4556 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
4558 * config/i386/sse.md (blendbits): Remove mode attribute.
4559 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
4560 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
4561 Check integer value of operand 3 in insn constraint.
4563 2011-05-09 Richard Guenther <rguenther@suse.de>
4565 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
4567 (lto_symtab_merge): Likewise. Do not register types here.
4568 (lto_symtab_merge_decls_2): Likewise.
4569 (lto_symtab_merge_decls_1): Likewise.
4570 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
4571 * gimple.c (enum gtc_mode): Declare.
4572 (gimple_types_compatible_p): Make static.
4574 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4576 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
4577 temporary register to match Pmode.
4579 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
4581 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
4582 and *vec_concatv4si_1_avx.
4584 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
4586 PR rtl-optimization/48927
4587 * ira-conflicts.c (commutative_constraint_p): Use
4588 recog_data.alternative_enabled_p to disable alternatives where
4589 "enabled" attribute is false.
4590 (get_dup_num): Ditto.
4591 * ira-lives.c (single_reg_class): Ditto.
4592 (ira_implicitly_set_insn_hard_regs): Ditto.
4594 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
4596 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
4597 (dataflow_set_preserve_mem_locs): Likewise.
4599 2011-05-09 Philipp Thomas <pth@suse.de>
4601 * config/mep/mep.c (mep_validate_vliw): Syntax description
4602 should not be translated.
4604 2011-05-09 Joseph Myers <joseph@codesourcery.com>
4606 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
4607 * config/mips/mips-tables.opt: New file (generated).
4608 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
4609 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
4610 MIPS_ARCH_OPTION_NATIVE): Define.
4611 * config/mips/mips.c (mips_cpu_info_table): Move contents to
4613 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
4614 mips_parse_cpu): Remove.
4615 (mips_cpu_info_from_opt, mips_default_arch): New.
4616 (mips_handle_option): Don't assert that global structures are in
4617 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
4618 (mips_option_override): Use new variables and functions to set
4619 state of these options. Use strcmp to check for individual CPU names.
4620 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
4622 * config/mips/mips.opt (march=): Use ToLower and Enum.
4623 (mips): Use ToLower, Enum and Var.
4624 (mtune=): Use ToLower and Enum.
4625 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
4627 2011-05-08 Jan Hubicka <jh@suse.cz>
4629 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
4630 Arrange type pairs to be UID ordered.
4631 (gimple_lookup_type_leader): Make inline.
4633 2011-05-09 Nick Clifton <nickc@redhat.com>
4636 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
4640 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
4643 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
4645 * combine.c (simplify_comparison): Abstract out parts into...
4646 (simplify_compare_const): ... new function.
4647 (try_combine): Generalize parallel arithmetic/compare combining
4648 to call simplify_compare_const() and CANONICALIZE_COMPARE().
4650 2011-05-08 Jan Hubicka <jh@suse.cz>
4652 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
4653 (cgraph_create_virtual_clone): Call hooks once virtual clone
4655 * cgraph.h (cgraph_clone_node): Update prototype.
4656 * ipa-cp.c (ipcp_estimate_growth): Use
4657 estimate_ipcp_clone_size_and_time.
4658 * ipa-inline-transform.c (clone_inlined_nodes): Update.
4659 * lto-cgraph.c (input_node): Update.
4660 * ipa-inline.c (recursive_inlining): Update.
4661 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
4662 (evaluate_conditions_for_known_args): Break out from ...
4663 (evaluate_conditions_for_edge): ... here.
4664 (evaluate_conditions_for_ipcp_clone): New function.
4665 (inline_node_duplication_hook): Update clone summary based
4667 (estimate_callee_size_and_time): Rename to ...
4668 (estimate_node_size_and_time): take NODE instead of EDGE;
4669 take POSSIBLE_TRUTHS as argument.
4670 (estimate_callee_size_and_time): Update.
4671 (estimate_ipcp_clone_size_and_time): New function.
4672 (do_estimate_edge_time): Update.
4674 2011-05-08 Richard Guenther <rguenther@suse.de>
4678 * expmed.c (expand_shift_1): Compute adjusted constant shift
4681 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
4683 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
4685 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
4687 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
4689 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
4691 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
4693 2011-05-07 Jan Hubicka <jh@suse.cz>
4695 * ipa-inline-transform.c (inline_call): Account when program size
4697 * ipa-inline.c (relative_time_benefit): New function.
4698 (edge_badness): Reorganize to be power 2 based; fix thinko when
4699 computing badness for negative growth; update comments to match
4700 reality; better dumps.
4702 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
4704 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
4705 type to bool and adjust comment.
4706 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
4707 (fold_mathfn_compare): Remove calls to global_bindings_p.
4708 (fold_inf_compare): Likewise.
4709 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
4710 * c-tree.h (global_bindings_p): Adjust prototype.
4711 * c-decl.c (global_bindings_p): Return bool and simplify.
4713 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
4715 PR tree-optimization/48837
4716 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
4717 when accumulator transformation is performed.
4719 2011-05-06 Jan Hubicka <jh@suse.cz>
4721 * i386.h (ix86_tune_indices): Add
4722 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
4723 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
4724 * i386.c (initial_ix86_tune_features): Add
4725 X86_SOFTARE_PREFETCHING_BENEFICIAL.
4726 (software_prefetching_beneficial_p): Remove predicate.
4727 (ix86_option_override_internal): Use new macro.
4729 2011-05-06 Jan Hubicka <jh@suse.cz>
4731 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
4733 2011-05-06 Jan Hubicka <jh@suse.cz>
4735 * cgraph.c (cgraph_add_thunk): Create real function node instead
4736 of alias node; finalize it and mark needed/reachale; arrange visibility
4737 to be right and add it into the corresponding same comdat group list.
4738 (dump_cgraph_node): Dump thunks.
4739 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
4740 cgraph_function_with_gimple_body_p,
4741 cgraph_first_function_with_gimple_body,
4742 cgraph_next_function_with_gimple_body): New functions.
4743 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
4745 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
4746 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
4747 * cgraphunit.c (cgraph_finalize_function): Only look into possible
4748 devirtualization when optimizing.
4749 (verify_cgraph_node): Verify thunks.
4750 (cgraph_analyze_function): Analyze thunks.
4751 (cgraph_mark_functions_to_output): Output thunks only in combination
4752 with function they are assigned to.
4753 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
4754 alias into normal node.
4755 (assemble_thunks): New functoin.
4756 (cgraph_expand_function): Use it.
4757 * lto-cgraph.c (lto_output_node): Stream thunks.
4758 (input_overwrite_node): Stream in thunks.
4759 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
4760 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
4761 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
4762 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
4763 (inline_analyze_function): Do not care about thunk jump functions.
4764 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
4765 * ipa-prop.c (ipa_prop_write_jump_functions): Use
4766 cgraph_function_with_gimple_body_p.
4767 * passes.c (do_per_function_toporder): Use
4768 cgraph_function_with_gimple_body_p.
4769 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
4770 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
4771 (function_called_by_processed_nodes_p): Likewise.
4773 2011-05-06 Joseph Myers <joseph@codesourcery.com>
4775 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
4776 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
4778 (mabi=): Replace with separate entries for mabi=altivec,
4779 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
4780 mabi=ieeelongdouble and mabi=ibmlongdouble.
4781 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
4782 check for -mabi=spe without SPE ABI support here.
4783 (rs6000_handle_option): Replace OPT_mabi_ handling with
4784 OPT_mabi_altivec and OPT_mabi_spe handling.
4786 2011-05-06 Cary Coutant <ccoutant@google.com>
4788 * dwarf2out.c (contains_subprogram_definition): New function.
4789 (should_move_die_to_comdat): Call it.
4791 2011-05-06 Jeff Law <law@redhat.com>
4793 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
4794 remove_ctrl_stmt_and_useless_edges.
4795 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
4796 (fixup_template_block, thread_single_edge): Likewise.
4797 (mark_threaded_blocks): Use THREAD_TARGET.
4799 2011-05-06 Alan Modra <amodra@gmail.com>
4802 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
4803 const0_rtx as the arg to the dummy __tls_get_addr libcall.
4805 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
4807 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
4808 constraint modifier to "r".
4810 2011-05-06 Joseph Myers <joseph@codesourcery.com>
4812 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
4813 fall through for OPT_mcmodel_.
4815 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4817 * config/s390/s390.c (s390_asm_trampoline_template): Comment
4819 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
4821 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4824 * config/arm/arm.opt (marm): Document it.
4825 (mthumb): Reject negative variant.
4827 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
4830 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
4831 Fix typo in "ccvt" variable name.
4833 2011-05-06 Tristan Gingold <gingold@adacore.com>
4836 * config/vms/vms-ar.c (main): Remove cwd variable.
4838 2011-05-06 Jakub Jelinek <jakub@redhat.com>
4841 * var-tracking.c (prepare_call_arguments): Move else before #endif.
4843 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
4845 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
4846 * gimplify.c (gimplify_switch_expr): Likewise.
4847 * omp-low.c (expand_omp_sections): Likewise.
4848 * tree-eh.c (lower_try_finally_switch): Likewise.
4849 (lower_eh_dispatch): Likewise.
4850 * tree.h (build_case_label): Declare.
4851 * tree.c (build_case_label): Define.
4853 2011-05-05 Jason Merrill <jason@redhat.com>
4856 * tree-inline.c (copy_tree_r): Use copy_statement_list.
4857 (copy_statement_list): Don't recurse.
4858 * stor-layout.c (copy_self_referential_tree_r): Don't allow
4861 2011-05-05 Joseph Myers <joseph@codesourcery.com>
4863 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
4864 through from -mfpu= handling.
4865 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
4867 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
4869 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
4872 2011-05-05 Steve Ellcey <sje@cup.hp.com>
4874 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
4876 (hppa[12]*-*-hpux11*): Ditto.
4877 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
4878 * config/ia64/hpux-unix2003.h: New.
4879 * config/pa/pa-hpux1131.opt: New.
4880 * config/pa/pa-hpux1131.h: New.
4881 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
4882 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
4883 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
4885 2011-05-05 Jakub Jelinek <jakub@redhat.com>
4888 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
4889 instead of mode as 3rd argument to recursive call.
4890 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
4891 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
4893 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
4894 don't give up if mode is Pmode and mem_mode is not VOIDmode.
4895 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
4896 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
4898 2011-05-05 Julian Brown <julian@codesourcery.com>
4900 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
4901 parenthesis in D-register case.
4903 2011-05-05 Joseph Myers <joseph@codesourcery.com>
4905 * opt-functions.awk (var_type_struct): Handle Enum options.
4906 * optc-gen.awk: Don't check range of variables of character type.
4907 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
4908 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
4909 rs6000_sdata_name, rs6000_explicit_options): Remove.
4910 (rs6000_option_override_internal): Check for -malign-power here.
4911 Use global_options_set instead of rs6000_explicit_options.
4912 (rs6000_parse_fpu_option): Remove.
4913 (rs6000_handle_option): Access variables via opts and opts_set
4914 pointers. Use error_at and warning_at. Add fall-through
4915 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
4916 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
4917 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
4918 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
4919 here. Don't use rs6000_parse_fpu_option.
4920 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
4921 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
4922 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
4924 (mspe): Use Var and Save.
4925 (mtraceback=): Use Enum and Var.
4926 (rs6000_traceback_type): New Enum and EnumValue entries.
4927 (mfloat-gprs=): Use Enum, Var and Save.
4928 (rs6000_float_gprs): New Enum and EnumValue entries.
4929 (mlong-double-): use Var and Save.
4930 (msched-costly-dep=, minsert-sched-nops=): Use Var.
4931 (malign-): Use Enum and Var.
4932 (rs6000_alignment_flags): New Enum and EnumValue entries.
4934 (fpu_type_t): New Enum and EnumValue entries.
4935 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
4936 global_options_set instead of rs6000_explicit_options.
4937 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
4938 global_options_set instead of rs6000_explicit_options.
4939 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
4940 global_options_set instead of rs6000_explicit_options.
4941 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
4942 global_options_set instead of rs6000_explicit_options.
4943 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
4944 global_options_set instead of rs6000_explicit_options.
4945 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
4946 global_options_set instead of rs6000_explicit_options.
4947 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
4949 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
4950 global_options_set instead of rs6000_explicit_options.
4951 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
4952 (rs6000_cmodel): New Enum and EnumValue entries.
4953 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
4954 global_options_set instead of rs6000_explicit_options.
4955 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
4956 (mtls-size=): Use Enum and Var.
4957 (rs6000_tls_size): New Enum and EnumValue entries.
4959 2011-05-05 Michael Matz <matz@suse.de>
4961 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
4962 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
4963 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
4964 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
4965 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
4966 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
4967 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
4968 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
4969 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
4970 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
4971 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
4972 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
4973 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
4974 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
4975 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
4976 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
4978 2011-05-05 Richard Guenther <rguenther@suse.de>
4980 * expmed.c (expand_variable_shift): Rename to ...
4981 (expand_shift_1): ... this. Take an expanded shift amount.
4982 For rotates recurse directly not building trees for the shift amount.
4983 (expand_variable_shift): Wrap around expand_shift_1.
4984 (expand_shift): Adjust.
4986 2011-05-05 Jakub Jelinek <jakub@redhat.com>
4988 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
4990 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
4992 * tree.h (get_pending_sizes): Remove prototype.
4993 (put_pending_size): Likewise.
4994 (put_pending_sizes): Likewise.
4995 * stor-layout.c (pending_sizes): Delete.
4996 (get_pending_sizes): Likewise.
4997 (put_pending_size): Likewise.
4998 (put_pending_sizes): Likewise.
4999 (variable_size): Do not call put_pending_size and tidy up.
5000 * function.h (struct function): Remove dont_save_pending_sizes_p.
5001 * lto-streamer-in.c (input_function): Do not stream it.
5002 * lto-streamer-out.c (output_function): Likewise.
5003 * tree-inline.c (initialize_cfun): Do not copy it.
5004 * c-decl.c (store_parm_decls): Do not set it.
5005 * omp-low.c (create_task_copyfn): Likewise.
5006 * tree-optimize.c (tree_rest_of_compilation): Likewise.
5008 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
5010 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
5012 (*movdf_internal): Ditto.
5013 (*movdf_internal_nointeger): Ditto.
5014 (*movsf_internal): Ditto.
5016 2011-05-05 Joseph Myers <joseph@codesourcery.com>
5018 * c-decl.c (finish_decl): Don't call get_pending_sizes.
5019 (grokparm): Add parameter expr. Pass it to grokdeclarator.
5020 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
5021 (c_variable_size): Remove.
5022 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
5023 call put_pending_sizes.
5024 (get_parm_info): Add parameter expr. Use it to set
5025 arg_info->pending_sizes.
5026 (store_parm_decls): Use arg_info->pending_sizes instead or calling
5028 * c-parser.c (c_parser_parms_declarator): Update call to
5029 c_parser_parms_list_declarator.
5030 (c_parser_parms_list_declarator): Take parameter expr. Update
5031 call to push_parm_decl. Update recursive call. Don't call
5032 get_pending_sizes. Update calls to get_parm_info.
5033 (c_parser_objc_method_definition): Update calls to
5034 c_parser_objc_method_decl and objc_start_method_definition.
5035 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
5036 (c_parser_objc_method_decl): Add parameter expr. Update call to
5038 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
5039 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
5040 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
5042 2011-05-05 Michael Hope <michael.hope@linaro.org>
5045 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
5048 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5050 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
5051 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
5052 (spu_output_mi_thunk): New function.
5054 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5056 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
5057 targetm.asm_out.print_operand.
5058 * config/sol2.c: Include target.h.
5060 2011-05-04 Jan Hubicka <jh@suse.cz>
5062 * ipa-inline.c (reset_edge_caches): New function.
5063 (update_caller_keys): Add check_inlinablity_for; do not
5064 reset edge caches; remove now unnecesary loop.
5065 (update_callee_keys): Add comments; reset node_growth_cache of callee.
5066 (update_all_callee_keys): Likewise.
5067 (inline_small_functions): Sanity check cache; update code
5070 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
5072 PR rtl-optimization/47612
5073 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
5074 as the last insn of the sequence to be moved.
5076 2011-05-04 Tobias Burnus <burnus@net-b.de>
5079 * doc/invoke.texi (Ofast): Document that it
5080 enables Fortran's -fno-protect-parens.
5082 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
5084 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
5086 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
5088 * stor-layout.c (variable_size): Do not issue errors.
5090 2011-05-04 Richard Guenther <rguenther@suse.de>
5092 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
5093 for array-ref indices.
5094 (tree_coverage_counter_addr): Likewise.
5095 (build_fn_info_type): Use size_int for index types.
5096 (build_gcov_info): Likewise.
5098 2011-05-04 Richard Guenther <rguenther@suse.de>
5100 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
5102 * c-typeck.c (really_start_incremental_init): Use bitsize_int
5103 for constructor indices.
5104 (push_init_level): Likewise.
5106 2011-05-04 Richard Guenther <rguenther@suse.de>
5108 * explow.c (promote_mode): Move variable declarations before code.
5110 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
5112 * tree.h (build_function_type_array): Declare.
5113 (build_varargs_function_type_array): Declare.
5114 (build_function_type_vec, build_varargs_function_type_vec): Define.
5115 * tree.c (build_function_type_array_1): New function.
5116 (build_function_type_array): New function.
5117 (build_varargs_function_type_array): New function.
5119 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
5121 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
5122 before setting STMT_VINFO_TYPE.
5124 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5126 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
5127 instead of spu_pass_by_reference.
5129 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5131 * calls.c (emit_library_call_value_1): Invoke
5132 promote_function_mode hook on libcall arguments.
5133 * explow.c (promote_function_mode, promote_mode): Handle TYPE
5134 argument being NULL.
5135 * targhooks.c (default_promote_function_mode): Lisewise.
5136 * config/s390/s390.c (s390_promote_function_mode): Likewise.
5137 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
5139 * doc/tm.texi: Document that TYPE argument might be NULL.
5141 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
5143 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
5145 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
5148 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
5150 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5152 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
5153 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
5155 * mips-tfile.c: ... here.
5156 Don't include coretypes.h, tm.h, filenames.h.
5157 (saber_stop): Remove definition and all calls.
5158 [__SABER__]: Remove.
5159 (__LINE__): Remove default.
5160 (Size_t, Ptrdiff_t): Remove definitions.
5161 Replace by size_t, ptrdiff_t.
5162 [!MIPS_DEBUGGING_INFO]: Remove.
5163 (SHASH_SIZE, THASH_SIZE): Remove defaults.
5164 (progname): Add const.
5166 Replace all uses by static.
5167 (ALIGN_SYMTABLE_OFFSET): Remove default.
5168 * mips-tdump.c: Don't include coretypes.h, tm.h.
5169 Remove !MIPS_IS_STAB guard.
5170 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
5171 $(TM_H), filenames.h dependencies.
5172 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
5174 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
5177 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
5178 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
5180 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
5183 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
5184 account and save/restore RETS.
5185 (PROFILE_BEFORE_PROLOGUE): Define.
5186 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
5187 the push insn to use predecrement.
5189 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
5192 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
5194 2011-05-04 Nick Clifton <nickc@redhat.com>
5196 * config/mn10300/mn10300.c: Include cfgloop.h.
5198 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
5199 Lcc or a FLcc insn into the instruction stream.
5200 (mn10300_block_contains_call): New function. Returns true if the
5201 given basic block contains a CALL insn.
5202 (mn10300_loop_contains_call_insn): New function. Returns true if
5203 the given loop contains a CALL insn.
5204 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
5205 to use the SETLB and Lcc or FLcc insns.
5206 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
5207 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
5208 * config/mn10300/mn10300.opt (msetlb): New option. Used to
5209 disable the SETLB optimization.
5210 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
5211 __SETLB__ or __NO_SETLB__.
5212 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
5213 (movsf_internal): Handle MDR register.
5214 (cmpsi): Make visible.
5215 (setlb): New pattern.
5217 (FLcc): New pattern.
5219 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
5222 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
5223 for reg<->xmm moves.
5224 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
5225 (vec_concatv2di_rex64_sse): Ditto.
5226 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
5227 (*vec_extractv2di_1_rex64): Ditto.
5230 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
5232 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
5234 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
5236 2011-05-04 Richard Guenther <rguenther@suse.de>
5238 * tree.h (int_const_binop): Remove notrunc argument.
5239 * fold-const.c (int_const_binop): Remove notrunc argument. Always
5240 create integer constants that are properly truncated.
5241 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
5242 (const_binop): Remove zero notrunc argument to int_const_binop.
5243 (size_binop_loc): Likewise.
5244 (fold_div_compare): Likewise.
5245 (maybe_canonicalize_comparison_1): Likewise.
5246 (fold_comparison): Likewise.
5247 (fold_binary_loc): Likewise.
5248 (multiple_of_p): Likewise.
5249 * expr.c (store_constructor): Likewise.
5250 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
5251 (maybe_fold_stmt_addition): Likewise.
5252 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
5253 * stor-layout.c (layout_type): Likewise.
5254 * tree-data-ref.c (tree_fold_divides_p): Likewise.
5255 * tree-sra.c (build_ref_for_offset): Likewise.
5256 (build_user_friendly_ref_for_offset): Likewise.
5257 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
5258 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
5259 * tree-ssa-loop-niter.c (inverse): Likewise.
5260 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
5261 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
5262 * tree-switch-conversion.c (check_range): Likewise.
5263 (build_constructors): Likewise.
5264 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
5265 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
5266 (extract_range_from_assert): Likewise.
5267 (vrp_int_const_binop): Likewise.
5268 (extract_range_from_binary_expr): Likewise.
5269 (extract_range_from_unary_expr): Likewise.
5270 (check_array_ref): Likewise.
5271 (find_case_label_range): Likewise.
5272 (simplify_div_or_mod_using_ranges): Likewise.
5273 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
5274 comparing case labels for merging.
5276 2011-05-03 Mark Wielaard <mjw@redhat.com>
5278 * dwarf2out.c (debug_str_hash_forced): Removed.
5279 (gen_label_for_indirect_string): Removed.
5280 (get_debug_string_label): Removed.
5281 (AT_string_form): Generate label directly.
5282 (output_indirect_string): Test indirect_string_node for
5283 DW_FORM_strp instead of checking label and refcount.
5284 (prune_indirect_string): Removed.
5285 (prune_unused_types): Don't check debug_str_hash_forced or
5286 call prune_indirect_string.
5288 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
5291 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
5293 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
5297 * combine.c (try_combine): Skip debug insns at m_split tests.
5299 2011-04-26 Mark Wielaard <mjw@redhat.com>
5302 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
5303 when info_section_emitted.
5305 2011-05-03 Joseph Myers <joseph@codesourcery.com>
5307 * config/mips/mips-opts.h: New.
5308 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
5310 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
5311 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
5312 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
5314 * config/mips/mips.h (enum mips_code_readable_setting): Move to
5316 (mips_abi, mips_code_readable): Don't declare.
5317 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
5318 (mabi=): Use Enum and Var.
5319 (mips_abi): New Enum and EnumValue entries.
5320 (mcode-readable=): Use Enum and Var.
5321 (mips_code_readable_setting): New Enum and EnumValue entries.
5322 (mr10k-cache-barrier=): Use Enum and Var.
5323 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
5325 2011-05-03 Jan Hubicka <jh@suse.cz>
5327 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
5328 replace hash by pointer map.
5329 (cgraph_node_set_element_def, cgraph_node_set_element,
5330 const_cgraph_node_set_element, varpool_node_set_element_def,
5331 varpool_node_set_element, const_varpool_node_set_element): Remove.
5332 (free_cgraph_node_set, free_varpool_node_set): New function.
5333 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
5334 * tree-emutls.c: Free varpool node set.
5335 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
5336 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
5337 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
5338 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
5339 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
5340 Move here from ipa.c; implement using pointer_map
5341 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
5342 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
5343 debug_cgraph_node_set, varpool_node_set_new,
5344 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
5345 dump_varpool_node_set, debug_varpool_node_set):
5346 Move to ipa-uitls.c.
5347 * passes.c (ipa_write_summaries): Update.
5349 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5351 From Mike Frysinger:
5352 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
5353 bf542/bf544/bf547/bf548/bf549.
5355 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
5357 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
5359 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5362 * config/bfin/bfin.md (MOVCC): New mode_macro.
5363 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
5364 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
5365 comments from generated assembly.
5367 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5370 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
5371 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
5372 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
5373 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
5374 * config/bfin/lib1funcs.asm (___muldi3): New function.
5376 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5378 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
5379 build_function_type_list instead of build_function_type.
5380 Rearrange initialization of `args' to do so.
5382 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5384 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
5385 instead of build_function_type.
5387 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5389 * config/rs6000/rs6000.c (spe_init_builtins): Call
5390 build_function_type_list instead of build_function_type.
5391 (paired_init_builtins, altivec_init_builtins): Likewise.
5392 (builtin_function_type): Likewise.
5394 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5396 * config/sh/sh.c (sh_media_init_builtins): Call
5397 build_function_type_list instead of build_function_type.
5399 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5401 * config/sparc/sparc.c (sparc_file_end): Call
5402 build_function_type_list instead of build_function_type.
5404 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5406 * config/alpha/alpha.c (alpha_init_builtins): Call
5407 build_function_type_list instead of build_function_type.
5409 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5411 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
5412 build_function_type_list instead of build_function_type.
5414 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5416 * config/iq2000/i2000.c (iq2000_init_builtins): Call
5417 build_function_type_list instead of build_function_type.
5418 Delete `endlink' variable.
5420 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5422 * config/avr/avr.c (avr_init_builtins): Call
5423 build_function_type_list instead of build_function_type.
5425 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5427 * config/picochip/picochip.c (picochip_init_builtins): Call
5428 build_function_type_list instead of build_function_type.
5429 Delete `endlink' variable.
5431 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5433 * config/bfin/bfin.c (bfin_init_builtins): Call
5434 build_function_type_list instead of build_function_type.
5436 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5439 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
5440 that's not CONST_INT. Seemingly redundant check is due to PR39768.
5442 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5445 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
5446 libbffastfp overrides libgcc when -mfast-fp.
5448 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5450 Originally from Bernd Schmidt
5451 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
5452 * config/bfin/bfin.c (override_options): Test it and error if
5455 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5457 Originally From Bernd Schmidt
5458 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
5461 2011-05-03 Jeff Law <law@redhat.com>
5463 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
5464 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
5465 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
5466 than accessing AUX field directly. Free the AUX field before
5468 (thread_block, thread_through_loop_header): Likewise.
5469 (thread_single_edge, mark_threaded_blocks): Likewise.
5470 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
5471 (register_jump_thread): Do not attempt to thread to a NULL edge.
5473 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
5475 * function.c (init_function_start): Call decide_function_section.
5476 * varasm.c (decide_function_section): New function.
5477 (assemble_start_function): When not using
5478 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
5479 or first_function_block_is_cold.
5480 * rtl.h (decide_function_section): Declare.
5482 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
5483 Jakub Jelinek <jakub@redhat.com>
5486 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
5487 only succeed if req_mode is the same as set_mode.
5489 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
5491 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
5492 * genemit.c (gen_exp): Handle RETURN.
5493 * emit-rtl.c (verify_rtx_sharing): Likewise.
5494 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
5495 * rtl.c (copy_rtx): RETURN is shared.
5496 * rtl.h (enum global_rtl_index): Add GR_RETURN.
5498 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
5499 * config/s390/s390.c (s390_emit_epilogue): Likewise.
5500 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
5501 * config/cris/cris.c (cris_expand_return): Likewise.
5502 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
5503 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
5504 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
5505 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
5506 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
5508 * config/v850/v850.c (expand_epilogue): Likewise.
5509 * config/bfin/bfin.c (bfin_expand_call): Likewise.
5510 * config/arm/arm.md (epilogue): Likewise.
5511 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
5512 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
5513 variable to ret_reg.
5515 2011-05-03 Richard Guenther <rguenther@suse.de>
5518 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
5519 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
5520 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
5522 2011-05-03 Richard Guenther <rguenther@suse.de>
5524 * c-decl.c (grokdeclarator): Instead of looking at
5525 TREE_OVERFLOW check if the constant fits in the index type.
5527 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
5529 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
5530 (vec_store_lanes<mode><mode>): Likewise.
5532 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
5534 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
5535 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
5536 convert_optab_index values.
5537 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
5538 * genopinit.c (optabs): Initialize the new optabs.
5539 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
5540 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
5541 (expand_STORE_LANES): New functions.
5542 * tree.h (build_array_type_nelts): Declare.
5543 * tree.c (build_array_type_nelts): New function.
5544 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
5545 (vect_model_load_cost): Likewise.
5546 (vect_store_lanes_supported, vect_load_lanes_supported)
5547 (vect_record_strided_load_vectors): Declare.
5548 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
5549 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
5550 (vect_transform_strided_load): Split out statement recording into...
5551 (vect_record_strided_load_vectors): ...this new function.
5552 * tree-vect-stmts.c (create_vector_array, read_vector_array)
5553 (write_vector_array, create_array_ref): New functions.
5554 (vect_model_store_cost): Add store_lanes_p argument.
5555 (vect_model_load_cost): Add load_lanes_p argument.
5556 (vectorizable_store): Try to use store-lanes functions for
5558 (vectorizable_load): Likewise load-lanes and loads.
5559 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
5560 to vect_model_store_cost.
5561 (vect_build_slp_tree): Likewise vect_model_load_cost.
5563 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
5565 * hooks.h (hook_bool_mode_uhwi_false): Declare.
5566 * hooks.c (hook_bool_mode_uhwi_false): New function.
5567 * target.def (array_mode_supported_p): New hook.
5568 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
5569 * doc/tm.texi: Regenerate.
5570 * stor-layout.c (mode_for_array): New function.
5571 (layout_type): Use it.
5572 * config/arm/arm.c (arm_array_mode_supported_p): New function.
5573 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
5575 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
5578 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
5579 for -fstack-check if the size to allocate is negative.
5581 2011-05-02 Lawrence Crowl <crowl@google.com>
5583 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
5584 (timevar_cond_start): New for starting a timer only when it is not
5586 (timevar_cond_stop): New for stopping a timer when it was not already
5589 * timevar.c (timevar_stop): Enable start/stop timers to start again.
5590 (timevar_cond_start): New as above.
5591 (timevar_cond_stop): New as above.
5593 * timevar.def: Add start/stop timers for compiler phases,
5594 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
5595 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
5596 and TV_PHASE_FINALIZE.
5597 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
5598 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
5599 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
5600 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
5601 Make unused TV_OVERLOAD into a start/stop timer.
5603 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
5604 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
5605 to indicate that they are start/stop timers.
5607 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
5608 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
5609 Move initialization to do_compile.
5610 (do_compile): Add initialization from above.
5611 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
5613 * c-decl.c (c_write_global_declarations): Add start/stop of
5614 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
5616 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
5617 or TV_PARSE_INLINE, as appropriate.
5618 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
5619 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
5621 2011-05-02 Jason Merrill <jason@redhat.com>
5624 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
5626 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
5629 * c-decl.c (finish_decl): Only create a composite if the types are
5632 2011-05-02 Joseph Myers <joseph@codesourcery.com>
5634 * config/fr30/fr30-protos.h (Mmode): Don't define.
5635 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
5636 definition where used.
5637 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
5638 define. Expand definitions where used.
5639 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
5640 Expand definitions where used.
5641 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
5642 rx_function_arg, rx_function_arg_advance,
5643 rx_function_arg_boundary): Expand definitions of those macros.
5644 * config/v850/v850-protos.h (Mmode): Don't define. Expand
5645 definition where used.
5647 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
5649 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
5651 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
5652 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
5653 with *movv2sf_internal_rex64_avx.
5654 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
5655 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
5656 Use %v prefix in insn mnemonic to handle TARGET_AVX.
5657 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
5658 "vex" in "prefix" attribute calculation.
5659 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
5661 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
5664 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
5665 inputs match the output.
5667 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
5670 * config/m68k/m68k.c (m68k_expand_prologue): Set
5671 current_function_static_stack_size.
5673 2011-05-02 Jan Hubicka <jh@suse.cz>
5675 * lto-streamer.c (lto_streamer_cache_insert_1,
5676 lto_streamer_cache_lookup, lto_streamer_cache_create,
5677 lto_streamer_cache_delete): Use pointer map instead of hashtable.
5678 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
5680 2011-05-02 Joseph Myers <joseph@codesourcery.com>
5682 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
5683 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
5684 config/m68k/t-opts: New files.
5685 * config/m68k/m68k-tables.opt: New file (generated).
5686 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
5687 extra_options and m68k/t-opts to tmake_file.
5688 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
5689 (all_isas): Initialize using m68k-isas.def.
5690 (all_microarchs): Initialize using m68k-microarchs.def.
5691 (m68k_find_selection): Remove.
5692 (m68k_handle_option): Don't assert that global structures are in
5693 use. Use error_at. Access variables via opts pointer. Don't
5694 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
5695 directly for -m68020-40 and -m68020-60.
5696 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
5697 m68k_tune_entry here.
5698 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
5700 (m68k_library_id_string): Remove declaration.
5701 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
5702 (m68k_library_id_string): New Variable.
5703 (march=, mcpu=, mtune=): Use Enum and Var.
5705 2011-05-02 Richard Guenther <rguenther@suse.de>
5707 * varasm.c (output_constructor_regular_field): Compute zero-based
5708 index with double-ints. Make sure to ICE instead of producing
5710 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
5711 in asserts. Properly use a signed type.
5713 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
5715 * config/i386/sse.md (V): New mode iterator.
5716 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
5718 (V_256): Rename from AVX256MODE.
5719 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
5720 condition to all users.
5722 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
5723 condition to all users.
5724 (VF_128): Make V4SF mode unconditional.
5725 (VF_256): Rename from AVX256MODEF2P.
5726 (VI4F_128): Rename from SSEMODE4S.
5727 (VI8F_128): Rename from SSEMODE2D.
5728 (VI4F_256): Rename from AVX256MODE8P.
5729 (VI8F_256): Rename from AVX256MODE4P.
5730 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
5731 (ssescalarmodesuffix): Remove SF and DF modes.
5732 (SSEMODE124): Remove.
5733 (SSEMODE1248): Ditto.
5734 (SSEMODEF2P): Ditto.
5735 (AVXMODEF2P): Ditto.
5736 (AVXMODEFDP): Ditto.
5737 (AVXMODEFSP): Ditto.
5738 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
5740 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
5742 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
5743 xop_pcmov_<mode>256. Use V mode iterator.
5745 Adjust RTX patterns globally for renamed mode attributes.
5747 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5749 * haifa-sched.c (sched_emit_insn): Emit insn before first
5750 non-scheduled insn. Inform back-end about new insn. Add
5751 new insn to scheduled_insns list.
5753 2011-05-02 Richard Guenther <rguenther@suse.de>
5755 PR tree-optimization/48822
5756 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
5757 (process_scc): Indicate which iteration we start.
5759 2011-05-02 Jan Hubicka <jh@suse.cz>
5761 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
5762 (lto_section_overrun): New.
5763 * lto-section-out.c (append_block): Rename to ...
5764 (lto_append_block): ... this one; export.
5765 (lto_output_1_stream): Move lto lto-streamer.h
5766 (lto_output_data_stream): Update.
5767 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
5768 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
5771 2011-05-02 Richard Guenther <rguenther@suse.de>
5773 * tree.c (tree_code_counts): New global array.
5774 (record_node_allocation_statistics): Count individual tree codes.
5775 (dump_tree_statistics): Dump individual code stats.
5777 2011-05-01 Jan Hubicka <jh@suse.cz>
5779 * ipa-inline.c (caller_growth_limits): Fix thinko when
5780 looking for largest stack frame.
5781 * ipa-inline.h (dump_inline_summary): Declare.
5782 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
5784 (dump_inline_summary): Export.
5785 (debug_inline_summary): Declare as DEBUG_FUNCTION.
5787 2011-05-01 Anatoly Sokolov <aesok@post.ru>
5789 * reginfo.c (memory_move_cost): Change rclass argument type form
5790 'enum reg_class' to reg_class_t.
5791 * reload.h (memory_move_cost): Update prototype.
5792 * postreload.c reload_cse_simplify_set): Change type dclass var to
5794 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
5796 (ira_allocate_and_set_costs): Change aclass argument type form
5797 'enum reg_class' to reg_class_t.
5798 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
5799 Change aclass argument type to reg_class_t.
5800 (update_conflict_hard_reg_costs): Change type aclass and pref vars
5802 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
5803 memory_move_cost call.
5805 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
5806 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
5807 Change type tmp var to reg_class_t.
5809 2011-04-30 Jan Hubicka <jh@suse.cz>
5811 * ipa-inline.c (can_inline_edge_p): Disregard limits when
5812 inlining into function with flatten attribute.
5813 (want_inline_small_function_p): Be more realistic about inlining
5814 cold calls where callee size grows.
5816 2011-04-30 Jan Hubicka <jh@suse.cz>
5818 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
5821 2011-04-30 Anatoly Sokolov <aesok@post.ru>
5823 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
5824 PRINT_OPERAND_PUNCT_VALID_P): Remove.
5825 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
5826 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
5827 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
5828 (print_operand): Rename to...
5829 (sparc_print_operand): ...this. Make static. Adjust
5830 sparc_print_operand function call.
5831 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
5834 2011-04-30 Jan Hubicka <jh@suse.cz>
5837 * ipa-inline.c (early_inliner): Disable when doing late
5838 addition of function.
5840 2011-04-30 Jakub Jelinek <jakub@redhat.com>
5842 * dwarf2out.c (get_address_mode): New inline.
5843 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
5844 if not dwarf_strict emit
5845 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
5846 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
5847 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
5848 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
5849 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
5850 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
5851 mem_loc_descriptor callers.
5852 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
5853 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
5854 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
5855 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
5856 (base_types): New variable.
5857 (get_base_type_offset, calc_base_type_die_sizes,
5858 base_type_for_mode, mark_base_types, base_type_cmp,
5859 move_marked_base_types): New functions.
5860 (calc_die_sizes): Assert that die_offset is 0 or equal to
5862 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
5863 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
5864 callers. If not dwarf_strict, call mem_loc_descriptor even for
5865 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
5866 (gen_subprogram_die): Don't give up on call site parameters
5867 with non-integral or large integral modes. Adjust
5868 mem_loc_descriptor callers.
5869 (prune_unused_types): Call prune_unused_types_mark on base_types
5871 (resolve_addr): Call mark_base_types.
5872 (dwarf2out_finish): Call move_marked_base_types.
5874 PR tree-optimization/48809
5875 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
5877 (gen_inbound_check): Don't compute index_expr - range_min in utype
5878 again, instead reuse SSA_NAME initialized in build_arrays.
5879 Remove two useless gsi_for_stmt calls.
5881 2011-04-29 Jeff Law <law@redhat.com>
5883 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
5885 2011-04-29 Martin Jambor <mjambor@suse.cz>
5887 * cgraph.h (cgraph_postorder): Remove declaration.
5888 * ipa-utils.h (ipa_free_postorder_info): Declare.
5889 (ipa_reverse_postorder): Likewise.
5890 * cgraphunit.c: Include ipa-utils.h.
5891 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
5892 * ipa-inline.c: Include ipa-utils.h.
5893 (ipa_inline): Update call to ipa_reverse_postorder.
5894 * ipa-pure-const.c (propagate_pure_const): Update call to
5895 ipa_reduced_postorder and ipa_print_order. Call
5896 ipa_free_postorder_info to clean up.
5897 (propagate_nothrow): Likewise.
5898 * ipa-reference.c (propagate): Removed a useless call to
5899 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
5900 and ipa_print_order. Call ipa_free_postorder_info to clean up.
5901 * ipa.c: Include ipa-utils.h.
5902 (ipa_profile): Update call to ipa_reverse_postorder.
5903 (cgraph_postorder): Moved to...
5904 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
5905 (ipa_utils_print_order): Renamed to ipa_print_order.
5906 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
5908 (ipa_free_postorder_info): New function.
5909 * passes.c: Include ipa-utils.h.
5910 (do_per_function_toporder): Update call to ipa_reverse_postorder.
5911 (ipa_write_summaries): Likewise.
5912 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
5913 (cgraphunit.o): Likewise.
5915 (ipa-inline.o): Likewise.
5917 2011-04-29 Jan Hubicka <jh@suse.cz>
5919 * gcc.dg/tree-ssa/inline-10.c: New testcase.
5920 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
5921 * ipa-inline.h (clause_t): Turn into unsigned int.
5922 * ipa-inline-analysis.c (add_clause): Do more simplification.
5923 (and_predicates): Shortcut more cases.
5924 (predicates_equal_p): Move forward; check that clauses are properly
5926 (or_predicates): Shortcut more cases.
5927 (edge_execution_predicate): Rewrite as...
5928 (set_cond_stmt_execution_predicate): ... this function; handle
5929 __builtin_constant_p.
5930 (set_switch_stmt_execution_predicate): New .
5931 (compute_bb_predicates): New.
5932 (will_be_nonconstant_predicate): Update TODO.
5933 (estimate_function_body_sizes): Use compute_bb_predicates
5934 and free them later, always try to estimate if stmt is constant.
5935 (estimate_time_after_inlining, estimate_size_after_inlining):
5936 Gracefully handle optimized out edges.
5937 (read_predicate): Fix off by one error.
5939 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
5941 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
5943 2011-04-27 Xinliang David Li <davidxl@google.com>
5945 * tree-profile.c (init_ic_make_global_vars): Set
5946 tls attribute on ic vars.
5947 * coverage.c (coverage_end_function): Initialize
5948 function_list with zero.
5950 2011-04-29 Richard Guenther <rguenther@suse.de>
5952 * builtins.c (fold_builtin_classify_type): Use integer_type_node
5953 for the type of the result.
5954 (fold_builtin_isascii): Likewise.
5955 (fold_builtin_toascii): Use integer_type_node where appropriate.
5956 (fold_builtin_logb): Likewise.
5957 (fold_builtin_frexp): Likewise.
5958 (fold_builtin_strstr): Likewise.
5959 (fold_builtin_strpbrk): Likewise.
5960 (fold_builtin_fputs): Likewise.
5961 (fold_builtin_sprintf): Likewise.
5962 (fold_builtin_snprintf): Likewise.
5963 (fold_builtin_printf): Likewise.
5964 (do_mpfr_remquo): Use a proper type for the assigned constant.
5965 (do_mpfr_lgamma_r): Likewise.
5966 * dwarf2out.c (resolve_one_addr): Use size_int.
5967 * except.c (init_eh): Likewise.
5968 (assign_filter_values): Use integer_type_node for filter values.
5969 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
5971 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
5972 for EH region numbers.
5973 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
5974 for the shift amount.
5976 2011-04-29 Richard Guenther <rguenther@suse.de>
5978 * expr.h (expand_shift): Rename to ...
5979 (expand_variable_shift): ... this.
5980 (expand_shift): Take a constant shift amount.
5981 * expmed.c (expand_shift): Rename to ...
5982 (expand_variable_shift): ... this.
5983 (expand_shift): New wrapper around expand_variable_shift.
5984 * expr.c (convert_move, emit_group_load_1, emit_group_store,
5985 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
5986 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
5987 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
5988 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
5989 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
5990 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
5991 emit_store_flag_1, emit_store_flag): Likewise.
5992 * builtins.c (expand_builtin_signbit): Likewise.
5993 * calls.c (load_register_parameters): Likewise.
5994 * function.c (assign_parm_setup_block): Likewise.
5995 * lower-subreg.c (resolve_shift_zext): Likewise.
5996 * optabs.c (widen_bswap, expand_abs_nojump,
5997 expand_one_cmpl_abs_nojump, expand_float): Likewise.
5998 * spu/spu.c (spu_expand_extv): Likewise.
5999 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
6001 2011-04-29 Richard Guenther <rguenther@suse.de>
6003 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
6004 for the remapped region number.
6005 * predict.c (build_predict_expr): Use integer_type_node for the
6007 * fold-const.c (fold_binary_loc): Use integer_type_node for
6008 the shift amount. Use a proper type for the PLUS_EXPR operand.
6010 2011-04-29 Michael Matz <matz@suse.de>
6012 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
6013 other trees that just builtins.
6014 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
6016 2011-04-29 Richard Guenther <rguenther@suse.de>
6018 * tree-nested.c (get_trampoline_type): Use size_int.
6019 (get_nl_goto_field): Likewise.
6020 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
6022 (lower_eh_constructs_2): Likewise.
6023 (lower_resx): Likewise.
6024 (lower_eh_dispatch): Likewise.
6025 * tree-mudflap.c (mf_build_string): Use size_int.
6026 (mudflap_register_call): Use integer_type_node for the flag.
6027 (mudflap_enqueue_constant): Use size_int.
6028 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
6029 instead of rebuilding it.
6031 2011-04-29 Richard Guenther <rguenther@suse.de>
6033 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
6034 Handle OBJ_TYPE_REF.
6035 (find_func_aliases_for_call): Use it more consistently.
6037 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
6039 * haifa-sched.c (last_nondebug_scheduled_insn): New.
6040 (rank_for_schedule): Use it.
6041 (schedule_block): Set it.
6043 2011-04-28 David Li <davidxl@google.com>
6045 * tree.c (crc32_string): Use crc32_byte.
6046 (crc32_byte): New function.
6047 * tree.h (crc32_byte): New function.
6048 * gcov.c (read_graph_file): Handle new cfg_cksum.
6049 (read_count_file): Ditto.
6050 * profile.c (instrument_values): Ditto.
6051 (get_exec_counts): Ditto.
6052 (read_profile_edge_counts): Ditto.
6053 (compute_branch_probabilities): Ditto.
6054 (compute_value_histograms): Ditto.
6055 (branch_prob): Ditto.
6056 (end_branch_prob): Ditto.
6057 * coverage.c (read_counts_file): Ditto.
6058 (get_coverage_counts): Ditto.
6059 (tree_coverage_counter_addr): Ditto.
6060 (coverage_checksum_string): Ditto.
6061 (coverage_begin_output): Ditto.
6062 (coverage_end_function): Ditto.
6063 (build_fn_info_type): Ditto.
6064 (build_fn_info_value): Ditto.
6065 * libgcov.c (gcov_exit): Ditto.
6066 * gcov-dump.c (tag_function): Ditto.
6067 (compute_checksum): Remove.
6069 2011-04-29 Alan Modra <amodra@gmail.com>
6071 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
6072 unspec plus offset. Tidy macho code.
6074 2011-04-29 Martin Jambor <mjambor@suse.cz>
6076 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
6077 node instead of a decl. Update all callers.
6078 * cgraph.h: Update declaration.
6080 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
6082 PR tree-optimization/48765
6083 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
6084 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
6085 to indicate if loop aware SLP is being used. Scan the statements
6086 and update the vectorization factor according to the type of
6087 vectorization before statement analysis.
6088 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
6089 pass it to vect_analyze_loop_operations.
6090 (vectorizable_reduction): Set number of copies to 1 in case of pure
6092 * tree-vect-stmts.c (vectorizable_conversion,
6093 vectorizable_assignment, vectorizable_shift,
6094 vectorizable_operation, vectorizable_type_demotion,
6095 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
6097 (vectorizable_condition): Move the check that it is not SLP
6098 vectorization before the number of copies check.
6099 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
6100 to vectorize the loop using SLP.
6102 2011-04-28 Jakub Jelinek <jakub@redhat.com>
6105 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
6108 2011-04-28 Joseph Myers <joseph@codesourcery.com>
6110 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
6111 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
6112 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
6113 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
6114 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
6116 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
6117 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6118 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6119 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6120 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6121 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
6123 * config/i386/linux.h (REG_NAME): Don't define.
6124 * config/i386/linux64.h (REG_NAME): Don't define.
6125 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
6126 Undefine before defining.
6128 2011-04-28 Jan Hubicka <jh@suse.cz>
6130 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
6131 nonconstant_names array.
6132 (estimate_function_body_sizes): Build nonconstant_names array; handle
6133 BUILT_IN_CONSTANT_P.
6135 2011-04-28 Richard Guenther <rguenther@suse.de>
6139 2011-04-28 Richard Guenther <rguenther@suse.de>
6141 * tree-ssa-structalias.c (solve_constraints): Build succ graph
6142 as late as possible.
6144 2011-04-28 Richard Guenther <rguenther@suse.de>
6146 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
6147 (debug_constraint): Do it here.
6148 (dump_constraints): And here.
6149 (rewrite_constraints): And here.
6150 (dump_constraint_edge): Remove.
6151 (dump_constraint_graph): Rewrite to produce DOT output.
6152 (solve_constraints): Build succ graph as late as possible.
6153 Dump constraint graphs before and after solving.
6155 2011-04-28 Richard Guenther <rguenther@suse.de>
6157 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
6158 New function split out from ...
6159 (find_func_aliases): ... here. Call it.
6160 (find_func_aliases_for_call): Likewise.
6162 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
6164 * internal-fn.h (internal_fn_name_array): Declare.
6165 (internal_fn_flags_array): Likewise.
6167 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
6169 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
6170 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
6172 (ssemodefsuffix): Remove.
6173 (ssevecmodesuffix): New mode attribute.
6174 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
6175 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
6176 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
6177 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
6178 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
6179 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
6180 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
6181 ssemodesuffix mode attribute.
6182 (float splitters): Use ssevecmodesuffix mode attribute.
6183 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
6184 (sseinsmode): Rename from avxvecmode.
6185 (avxsizesuffix): Rename from avxmodesuffix.
6186 (sseintvecmode): Rename from avxpermvecmode.
6187 (ssedoublevecmode): Rename from ssedoublesizemode.
6188 (ssehalfvecmode): Rename from avxhalfvecmode.
6189 (ssescalarmode): Rename from avxscalarmode.
6190 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
6191 templates for ssemodesuffix mode attribute.
6192 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
6195 Adjust RTX patterns globally for renamed mode attributes.
6197 2011-04-27 Jan Hubcika <jh@suse.cz>
6199 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
6200 * ipa-inline-analysis.c: Include alloc-pool.h.
6201 (edge_predicate_pool): New.
6202 (trye_predicate_p): New function
6203 (false_predicate_p): New function.
6204 (add_clause): Sanity check that false clauses are "optimized";
6205 never add clauses to predicate that is already known to be false.
6206 (and_predicate): Use flase_predicate_p.
6207 (evaulate_predicate): Rename to ...
6208 (evaluate_predicate): ... this one; update all callers; assert
6209 that false is not listed among possible truths.
6210 (dump_predicate): Use true_predicate_p.
6211 (account_size_time): Use false_predicate_p.
6212 (evaulate_conditions_for_edge): Rename to ...
6213 (evaluate_conditions_for_edge) ... this one.
6214 (edge_set_predicate): New function.
6215 (inline_edge_duplication_hook): Duplicate edge predicates.
6216 (inline_edge_removal_hook): Free edge predicates.
6217 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
6218 (dump_inline_summary): Update.
6219 (estimate_function_body_sizes): Set edge predicates.
6220 (estimate_calls_size_and_time): Handle predicates.
6221 (estimate_callee_size_and_time): Update.
6222 (remap_predicate): Add toplev_predicate; update comment.
6223 (remap_edge_predicates): New function.
6224 (inline_merge_summary): Compute toplev predicate; update.
6225 (read_predicate): New function.
6226 (read_inline_edge_summary): Use it.
6227 (inline_read_section): Likewise.
6228 (write_predicate): New function.
6229 (write_inline_edge_summary): Use it.
6230 (inline_write_summary): Likewise.
6231 (inline_free_summary): Free alloc pool and edge summary vec.
6233 2011-04-27 Richard Guenther <rguenther@suse.de>
6235 * tree-ssa-structalias.c (changed_count): Remove.
6236 (changed): Use a bitmap.
6237 (unify_nodes): Adjust.
6238 (do_sd_constraint): Likewise.
6239 (do_ds_constraint): Likewise.
6240 (do_complex_constraint): Likewise.
6241 (solve_graph): Likewise.
6243 2011-04-27 Jan Hubicka <jh@suse.cz>
6245 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
6247 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
6249 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
6250 (avx_vperm2f128_*_operand): Ditto.
6251 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
6252 Use avx_vpermilp_parallel in insn condition.
6253 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
6254 Use avx_vperm2f128_parallel in insn condition.
6256 2011-04-27 Richard Guenther <rguenther@suse.de>
6258 * Makefile.in (tree-ssa-structalias.o): Remove
6259 gt-tree-ssa-structalias.h dependency.
6260 (GTFILES): Remove tree-ssa-structalias.c.
6261 * tree.c (allocate_decl_uid): New function.
6262 (make_node_stat): Use it.
6263 (copy_node_stat): Likewise.
6264 * tree.h (allocate_decl_uid): Declare.
6265 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
6266 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
6267 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
6268 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
6269 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
6270 (struct heapvar_map): Likewise.
6271 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
6272 heapvar_insert): Likewise.
6273 (make_heapvar_for): Rename to ...
6274 (make_heapvar): ... this. Simplify.
6275 (fake_var_decl_obstack): New global var.
6276 (build_fake_var_decl): New function.
6277 (make_constraint_from_heapvar): Adjust.
6278 (handle_lhs_call): Likewise.
6279 (create_function_info_for): Likewise.
6280 (intra_create_variable_infos): Likewise.
6281 (init_alias_vars): Allocate fake_var_decl_obstack.
6282 (init_alias_heapvars, delete_alias_heapvars): Remove.
6283 (compute_points_to_sets): Do not call init_alias_heapvars.
6284 (ipa_pta_execute): Likewise.
6285 (delete_points_to_sets): Free fake_var_decl_obstack.
6287 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6289 * config/spu/divmovti4.c (union qword_UTItype): New data type.
6290 (si_from_UTItype, si_to_UTItype): New functions.
6291 (__udivmodti4): Use them to implement type-punning.
6292 * config/spu/multi3.c (union qword_TItype): New data type.
6293 (si_from_TItype, si_to_TItype): New functions.
6294 (__multi3): Use them to implement type-punning.
6296 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6298 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
6300 2011-04-27 Jan Hubicka <jh@suse.cz>
6302 * ipa-prop.c (function_insertion_hook_holder): New holder.
6303 (ipa_add_new_function): New function.
6304 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
6305 Register/deregister holder.
6307 2011-04-27 Richard Guenther <rguenther@suse.de>
6309 PR tree-optimization/48772
6310 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
6312 2011-04-27 Richard Guenther <rguenther@suse.de>
6314 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
6315 TARGET_MEM_REF handling.
6317 2011-04-27 Nick Clifton <nickc@redhat.com>
6319 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
6320 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
6321 (REG_CLASS_NAMES): Likewise.
6322 (REG_CLASS_CONTENTS): Likewise.
6323 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
6324 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
6325 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
6326 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
6327 (EVEN_REGS): New macro. Alias for QUAD_REGS.
6328 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
6329 duplicate register classes.
6330 (frv_class_likely_spilled_p): Likewise.
6331 (frv_register_move_cost): Likewise.
6333 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
6334 end of the regno_reg_class array.
6336 2011-04-27 Jakub Jelinek <jakub@redhat.com>
6339 * c-typeck.c (build_binary_op): Don't wrap arguments if
6340 int_operands is true.
6342 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
6345 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
6346 targetm.calls.must_pass_in_stack for void type.
6348 2011-04-26 Jan Hubicka <jh@suse.cz>
6350 * cgraphbuild.c (build_cgraph_edges): Update call
6351 of cgraph_create_edge and cgraph_create_indirect_edge.
6352 * cgraph.c (cgraph_create_edge_including_clones,
6353 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
6354 cgraph_update_edges_for_call_stmt_node): Do not take nest
6355 argument; do not initialize call_stmt_size/time.
6356 (dump_cgraph_node): Do not dump nest.
6357 (cgraph_clone_edge): Do not take loop_nest argument;
6358 do not propagate it; do not clone call_stmt_size/time.
6359 (cgraph_clone_node): Likewise.
6360 (cgraph_create_virtual_clone): Update.
6361 * cgraph.h (struct cgraph_edge): Remove
6362 call_stmt_size/call_stmt_time/loop_nest.
6363 (cgraph_create_edge, cgraph_create_indirect_edge,
6364 cgraph_create_edge_including_clones, cgraph_clone_node): Update
6366 * tree-emutls.c (gen_emutls_addr): Update.
6367 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
6368 loop_nest; handle indirect calls, too.
6369 (clone_inlined_nodes): Do not care about updating inline summaries.
6370 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
6371 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
6372 stream call_stmt_size/call_stmt_time/loop_nest.
6373 * ipa-inline.c (edge_badness): Update.
6374 (ipa_inline): dump summaries after inlining.
6375 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
6377 (inline_edge_summary): New function.
6378 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
6379 (inline_edge_removal_hook): Handle edge summaries.
6380 (inline_edge_duplication_hook): New hook.
6381 (inline_summary_alloc): Alloc hooks.
6382 (initialize_growth_caches): Do not register removal hooks.
6383 (free_growth_caches); Do not free removal hook.
6384 (dump_inline_edge_summary): New function.
6385 (dump_inline_summary): Use it.
6386 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
6387 (inline_update_callee_summaries): New function.
6388 (inline_merge_summary): Use it.
6389 (do_estimate_edge_time, do_estimate_edge_growth): Update.
6390 (read_inline_edge_summary): New function.
6391 (inline_read_section): Use it.
6392 (write_inline_edge_summary): New function.
6393 (inline_write_summary): Use it.
6394 (inline_free_summary): Free edge new holders.
6395 * tree-inline.c (copy_bb): Update.
6397 2011-04-26 Jason Merrill <jason@redhat.com>
6399 * tree-eh.c (lower_try_finally_switch): Create the label along with
6400 the CASE_LABEL_EXPR.
6402 2011-04-26 David S. Miller <davem@davemloft.net>
6403 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6405 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
6406 * configure: Regenerate.
6408 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
6411 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
6413 (VEC_reduc): New code iterator and splitters for vector reduction.
6414 (VEC_reduc_name): Ditto.
6415 (VEC_reduc_rtx): Ditto.
6416 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
6417 (reduc_<VEC_reduc_name>_v4sf): Ditto.
6419 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
6420 support for extracting SF on VSX.
6422 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
6423 generating xscvspdp.
6424 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
6425 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
6426 double add, minimum, maximum vector reduction.
6427 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
6428 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
6429 optimize double vector reduction.
6430 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
6432 2011-04-26 Joseph Myers <joseph@codesourcery.com>
6434 * config/fr30/fr30.h (inhibit_libc): Don't define.
6435 * config/m32r/m32r-protos.h: Correct comment.
6436 * config/v850/v850.h (GHS_default_section_names,
6437 GHS_current_section_names): Use tree, not union tree_node *.
6439 2011-04-26 Xinliang David Li <davidxl@google.com>
6441 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
6442 * c-family/c-opts.c (c_common_handle_option): Set
6443 warn_maybe_uninitialized.
6444 * opts.c (common_handle_option): Ditto.
6445 * common.opt: New option.
6446 * tree-ssa.c (warn_uninit): Add one more parameter.
6447 (warn_uninitialized_var): Pass warning code.
6448 * tree-flow.h: Interface change.
6450 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6452 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
6453 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
6454 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
6456 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6458 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
6459 * config/mips/mips.opt (mmips-tfile): Remove.
6461 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
6462 mips-tdump reference to ...
6463 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
6464 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
6465 reference by Tru64 UNIX.
6467 2011-04-26 Jakub Jelinek <jakub@redhat.com>
6470 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
6471 is error_mark_node, set value to NULL.
6473 PR tree-optimization/48734
6474 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
6475 if return value from maybe_fold_*_comparsions isn't something
6476 the code is prepared to handle.
6478 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
6480 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
6482 (ext_QIreg_nomode_operands): Remove.
6483 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
6487 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
6489 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
6491 2011-04-26 Richard Guenther <rguenther@suse.de>
6493 * c-typeck.c (build_unary_op): Do not expand array-refs via
6494 pointer arithmetic. Only adjust qualifiers for function types.
6496 2011-04-26 Richard Guenther <rguenther@suse.de>
6499 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
6500 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
6501 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
6502 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
6504 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
6506 * doc/extend.texi: Document __underlying_type.
6508 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
6510 * config/rs6000/titan.md (automata_option "progress"): Remove.
6512 2011-04-25 Jeff Law <law@redhat.com>
6514 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
6516 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6518 * system.h (ENUM_BITFIELD): Remove.
6520 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
6521 Eric Botcazou <ebotcazou@adacore.com>
6523 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
6524 for STORE_FLAG_VALUE==-1 case.
6526 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
6529 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
6530 LEGITIMATE_PIC_OPERAND_P.
6532 2011-04-24 Jan Hubicka <jh@suse.cz>
6534 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
6536 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
6537 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
6538 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
6539 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
6540 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
6541 Sanity check predicate length.
6542 (remap_predicate): Likewise; sanity check jump functions.
6543 (inline_read_section, inline_write_summary): Sanity check
6546 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
6549 * doc/extend.texi (Type Traits): Document __is_standard_layout,
6550 __is_literal_type, and __is_trivial; update throughout about
6551 possibly cv-qualified void types.
6553 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
6555 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
6556 testsuite and make it version agnostic.
6558 2011-04-22 Jan Hubicka <jh@suse.cz>
6560 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
6562 2011-04-23 Jakub Jelinek <jakub@redhat.com>
6565 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
6566 to VOID_TYPE even around MODIFY_EXPR.
6568 2011-04-22 Mike Stump <mikestump@comcast.net>
6570 * gensupport.c (read_md_rtx): Fix typo in comment.
6571 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
6574 2011-04-22 Jan Hubicka <jh@suse.cz>
6576 * gengtype.c (open_base_files): Add ipa-inline.h include.
6577 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
6578 ipa-prop.c; update all uses.
6579 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
6580 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
6581 merge summary of inlined function into former caller.
6582 * ipa-inline.c (max_benefit): Remove.
6583 (edge_badness): Compensate for removal of benefits.
6584 (update_caller_keys): Use
6585 reset_node_growth_cache/reset_edge_growth_cache.
6586 (update_callee_keys): Likewise.
6587 (update_all_callee_keys): Likewise.
6588 (inline_small_functions): Do not collect max_benefit; do not reset
6589 estimated_growth; call free_growth_caches and initialize_growth_caches.
6590 * ipa-inline.h (struct condition, type clause_t, struct predicate,
6591 struct size_time_entry): New structures.
6592 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
6593 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
6594 and estimated_growth.
6595 (edge_growth_cache_entry): New structure.
6596 (node_growth_cache, edge_growth_cache): New global vars.
6597 (estimate_growth): Turn into inline.
6598 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
6599 initialize_growth_caches, free_growth_caches): Declare.
6600 (estimate_edge_growth): Rewrite.
6601 (estimate_edge_time): Implement as inline cache lookup.
6602 (reset_node_growth_cache, reset_edge_growth_cache): New inline
6604 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
6605 (NUM_CONDITIONS): New constant.
6606 (predicate_conditions): New enum.
6607 (IS_NOT_CONSTANT): New constant.
6608 (edge_removal_hook_holder): New var.
6609 (node_growth_cache, edge_growth_cache): New global vars.
6610 (true_predicate, single_cond_predicate, false_predicate,
6611 not_inlined_predicate, add_condition, add_clause, and_predicates,
6612 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
6613 dump_clause, dump_predicate, account_size_time,
6614 evaulate_conditions_for_edge): New functions.
6615 (inline_summary_alloc): Move to heap.
6616 (inline_node_removal_hook): Clear condition and entry vectors.
6617 (inline_edge_removal_hook): New function.
6618 (initialize_growth_caches, free_growth_caches): New function.
6619 (dump_inline_summary): Update.
6620 (edge_execution_predicate): New function.
6621 (will_be_nonconstant_predicate): New function.
6622 (estimate_function_body_sizes): Compute BB and constantness predicates.
6623 (compute_inline_parameters): Do not clear estimated_growth.
6624 (estimate_edge_size_and_time): New function.
6625 (estimate_calls_size_and_time): New function.
6626 (estimate_callee_size_and_time): New function.
6627 (remap_predicate): New function.
6628 (inline_merge_summary): New function.
6629 (do_estimate_edge_time): New function based on...
6630 (estimate_edge_time): ... this one.
6631 (do_estimate_edge_growth): New function.
6632 (do_estimate_growth): New function based on....
6633 (estimate_growth): ... this one.
6634 (inline_analyze_function): Analyze after deciding on jump functions.
6635 (inline_read_section): New function.
6636 (inline_read_summary): Use it.
6637 (inline_write_summary): Write all the new data.
6638 * ipa-prop.c (ipa_get_param_decl_index): Export.
6639 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
6640 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
6642 (ipa_get_lattice): Move here from ipa-cp.c
6643 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
6644 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
6645 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
6646 cgraph_edge_inlinable_p): Remove.
6647 * cgraphunit.c: Include ipainline.h
6648 (cgraph_process_new_functions): Update call of
6649 compute_inline_parameters.
6651 2011-04-22 Richard Guenther <rguenther@suse.de>
6653 * tree.c (build_int_cst): Properly create canonicalized integer
6655 (build_int_cst_type): Remove scary comments.
6657 2011-04-22 Xinliang David Li <davidxl@google.com>
6659 * toplev.c (process_options): Enable -Werror=coverage-mismatch
6660 by default when -Wno-error is not specified.
6661 * opts-global.c (decode_options): Remove call to
6662 control_warning_options.
6664 2011-04-22 Jakub Jelinek <jakub@redhat.com>
6666 PR tree-optimization/48717
6667 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
6668 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
6670 2011-04-22 Joseph Myers <joseph@codesourcery.com>
6672 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
6673 definition where used.
6675 2011-04-22 Jakub Jelinek <jakub@redhat.com>
6678 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
6679 TREE_STATIC variables declared inside of some OpenMP construct.
6681 2011-04-22 Martin Jambor <mjambor@suse.cz>
6684 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
6686 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
6689 * c-typeck.c (pop_init_level): Do not warn about initializing
6692 2011-04-22 Alan Modra <amodra@gmail.com>
6694 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
6695 when returning call_cookie.
6696 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
6697 pointers, to functions with no more vector args than the current
6698 function, and some non-local calls for ABI_V4.
6699 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
6700 sibcall_nonlocal_aix64): Combine to ..
6701 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
6702 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
6703 (sibcall_value_nonlocal_aix<mode>): ..likewise.
6704 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
6705 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
6707 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
6708 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
6709 sibcall_value_symbolic_64): Delete.
6711 2011-04-21 Xinliang David Li <davidxl@google.com>
6713 * cgraph.h: Remove pid.
6714 * cgraph.c: Remove pid.
6715 * value-prof.c (init_node_map): New function.
6716 (del_node_map): New function.
6717 (find_func_by_funcdef_no): New function.
6718 (gimple_ic_transform): Call new function.
6719 * cgraphunit.c (cgraph_finalize_function): Remove pid.
6720 * function.c (get_last_funcdef_no): New function.
6721 * function.h (get_last_funcdef_no): New function.
6722 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
6723 to libgcov function.
6724 (tree-profiling): Call node map init and delete function.
6726 2011-04-21 Ian Lance Taylor <iant@google.com>
6728 * godump.c (go_format_type): Use exported Go name for anonymous
6731 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
6733 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
6734 Call builtin_function_type_list instead of builtin_function_type.
6735 (UNARY, BINARY, TRINARY, QUAD): Likewise.
6737 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
6739 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
6740 build_function_type_list instead of build_function_type.
6741 Delete variable `endlink'.
6743 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
6745 * config/s390/s390.c (s390_init_builtins): Call
6746 build_function_type_list instead of build_function_type.
6748 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
6750 * config/ia64/ia64.c (ia64_init_builtins): Call
6751 build_function_type_list instead of builtin_function_type.
6753 2011-04-21 Easwaran Raman <eraman@google.com>
6755 * cfgexpand.c (stack_var): Remove OFFSET...
6756 (add_stack_var): ...and its reference here...
6757 (expand_stack_vars): ...and here.
6758 (stack_var_cmp): Sort by descending order of size.
6759 (partition_stack_vars): Change heuristic.
6760 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
6761 (dump_stack_var_partition): Add newline after each partition.
6763 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
6764 Jeff Law <law@redhat.com>
6766 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
6767 * gengtype.c (matching_file_name_substitute): Likewise.
6769 2011-04-21 Richard Guenther <rguenther@suse.de>
6772 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
6774 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
6776 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
6778 2011-04-21 Richard Guenther <rguenther@suse.de>
6780 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
6783 2011-04-21 Richard Guenther <rguenther@suse.de>
6785 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
6786 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
6787 Use DECL_P, not SSA_VAR_P.
6788 (ptr_derefs_may_alias_p): Likewise.
6789 (ptr_deref_may_alias_ref_p_1): Likewise.
6790 (decl_refs_may_alias_p): Likewise.
6791 (refs_may_alias_p_1): Likewise.
6792 (ref_maybe_used_by_call_p_1): Likewise.
6793 (call_may_clobber_ref_p_1): Likewise.
6794 (indirect_ref_may_alias_decl_p): Assume indirect refrences
6795 are either MEM_REF or TARGET_MEM_REF.
6796 (indirect_refs_may_alias_p): Likewise.
6797 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
6798 for MEM_EXPR of indirect calls.
6800 2011-04-21 Tristan Gingold <gingold@adacore.com>
6802 * vmsdbgout.c (write_srccorr): Compute file length from the string.
6803 (dst_file_info_struct): Remove flen field.
6804 (lookup_filename): Remove code that set flen field.
6806 2011-04-21 Tristan Gingold <gingold@adacore.com>
6808 * config/ia64/ia64.c (ia64_start_function): Add a guard.
6810 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
6813 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
6814 vec_extract and vec_concat for non-SSE4_1 targets.
6816 2011-04-21 Richard Guenther <rguenther@suse.de>
6818 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
6821 2011-04-21 Joseph Myers <joseph@codesourcery.com>
6823 * config/i386/cygming.h (union tree_node, TREE): Don't define or
6825 (FILE): Don't undefine.
6827 2011-04-21 Joseph Myers <joseph@codesourcery.com>
6829 * config/alpha/alpha.c (struct machine_function): Use rtx, not
6831 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
6833 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
6834 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
6835 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
6837 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
6838 definitions where used.
6839 * config/microblaze/microblaze.h (struct microblaze_args): Use
6840 rtx, not struct rtx_def *.
6841 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
6843 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
6844 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
6845 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
6846 not struct rtx_def *.
6847 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
6849 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
6851 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
6853 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
6855 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
6856 operand_equal_p to compare DR_BASE_ADDRESSes.
6857 (vect_check_interleaving): Likewise.
6859 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
6862 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
6863 for all Neon struct constants.
6865 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
6867 * target.def (legitimate_constant_p): New hook.
6868 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
6869 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
6870 * doc/tm.texi: Regenerate.
6871 * hooks.h (hook_bool_mode_rtx_true): Declare.
6872 * hooks.c (hook_bool_mode_rtx_true): Define.
6873 * system.h (LEGITIMATE_CONSTANT_P): Poison.
6874 * calls.c (precompute_register_parameters): Replace uses of
6875 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
6876 (emit_library_call_value_1): Likewise.
6877 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
6878 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
6879 * ira-costs.c (scan_one_insn): Likewise.
6880 * recog.c (general_operand, immediate_operand): Likewise.
6881 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
6882 * reload1.c (init_eliminable_invariants): Likewise.
6884 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
6886 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
6887 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
6889 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6890 * config/alpha/predicates.md (input_operand): Update call to
6891 alpha_legitimate_constant_p.
6893 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
6894 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
6895 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
6896 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6897 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
6898 (arm_legitimate_constant_p): New functions.
6899 (arm_cannot_force_const_mem): Make static.
6901 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
6903 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
6904 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
6905 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
6906 instead of bfin_legitimate_constant_p.
6907 (bfin_legitimate_constant_p): Make static. Add a mode argument.
6908 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6910 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
6912 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
6914 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
6915 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
6916 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6917 (frv_legitimate_constant_p): Make static. Add a mode argument.
6919 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
6920 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
6921 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
6923 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
6924 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
6925 * config/i386/i386.c (legitimate_constant_p): Rename to...
6926 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
6928 (ix86_cannot_force_const_mem): Update accordingly.
6929 (ix86_legitimate_address_p): Likewise.
6930 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6931 * config/i386/i386.md: Update commentary.
6933 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
6934 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
6935 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6936 (ia64_legitimate_constant_p): Make static. Add a mode argument.
6938 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
6940 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
6941 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
6942 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6943 (lm32_legitimate_constant_p): Make static. Add a mode argument.
6945 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
6946 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
6947 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
6949 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
6950 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6951 (m32r_legitimate_constant_p): New function.
6953 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
6954 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
6955 LEGITIMATE_CONSTANT_P.
6956 (LEGITIMATE_CONSTANT_P): Delete.
6957 * config/m68k/m68k.c (m68k_expand_prologue): Call
6958 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
6959 (m68k_legitimate_constant_p): New function.
6960 * config/m68k/m68k.md: Update comments.
6962 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
6963 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6964 (mcore_legitimate_constant_p): New function.
6966 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
6967 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
6968 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
6969 Add a mode argument.
6970 (mep_legitimate_address): Update accordingly.
6971 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6973 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
6975 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
6976 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
6977 static. Check OP's mode for VOIDmode.
6978 (microblaze_legitimate_constant_p): New function.
6979 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6981 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
6982 * config/mips/mips.c (mips_legitimate_constant_p): New function.
6983 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
6984 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6985 * config/mips/predicates.md: Update comments.
6987 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
6988 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
6989 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6990 (mmix_legitimate_constant_p): Make static, return a bool, and take
6992 (mmix_print_operand_address): Update accordingly.
6994 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
6996 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
6997 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
6998 static. Add a mode argument.
6999 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7001 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
7003 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
7004 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7005 (pa_legitimate_constant_p): New function.
7007 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
7009 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
7010 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7011 (pdp11_legitimate_constant_p): New function.
7013 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
7014 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7015 (rs6000_legitimate_constant_p): New function.
7017 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
7018 (rx_legitimate_constant_p): ...this.
7019 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
7020 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
7021 (rx_legitimate_constant_p): ...this.
7022 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7023 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
7025 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
7026 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
7027 * config/s390/s390.c (legitimate_constant_p): Rename to...
7028 (s390_legitimate_constant_p): ...this. Make static, return a bool,
7029 and add a mode argument.
7030 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7032 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
7034 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
7035 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7036 (sh_legitimate_constant_p): New function.
7038 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
7039 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
7040 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7041 (legitimate_constant_p): Rename to...
7042 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
7044 (constant_address_p): Update accordingly.
7046 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
7047 argument and return a bool.
7048 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
7049 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7050 (spu_legitimate_constant_p): Add a mode argument and return a bool.
7051 (spu_rtx_costs): Update accordingly.
7052 * config/spu/predicates.md (vec_imm_operand): Likewise.
7054 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
7056 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
7057 * config/v850/v850.c (v850_legitimate_constant_p): New function.
7058 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7060 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
7061 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
7062 * config/vax/vax.c (legitimate_constant_p): Likewise.
7064 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
7065 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7066 (xtensa_legitimate_constant_p): New function.
7068 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
7070 * target.def (cannot_force_const_mem): Add a mode argument.
7071 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
7072 * doc/tm.texi: Regenerate.
7073 * hooks.h (hook_bool_mode_rtx_false): Declare.
7074 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
7075 (hook_bool_mode_const_rtx_true): Likewise.
7076 (hook_bool_mode_rtx_false): New function.
7077 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
7078 to be non-VOID. Update call to cannot_force_const_mem.
7079 (find_reloads): Update accordingly.
7080 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
7081 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
7083 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
7084 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
7085 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
7086 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
7087 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
7088 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
7089 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
7090 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
7091 (m68k_cannot_force_const_mem): ...this new function.
7092 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
7094 (mips_const_insns, mips_legitimize_const_move): Update calls.
7095 (mips_secondary_reload_class): Likewise.
7096 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
7097 (pa_cannot_force_const_mem): ...this new function.
7098 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
7099 (rs6000_cannot_force_const_mem): ...this new function.
7100 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
7102 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
7103 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
7105 (xtensa_cannot_force_const_mem): ...this new function.
7107 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
7109 * config/mips/mips.c (mips16_build_function_stub): Call
7110 build_function_type_list instead of build_function_type.
7111 (mips16_build_call_stub): Likewise.
7113 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
7115 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
7116 instead of build_function_type.
7118 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
7120 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
7121 instead of build_function_type.
7123 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
7126 * config/i386/i386.md (insv): Change operand 0 constraint to
7127 "register_operand". Change operand 1 and 2 constraint to
7128 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
7129 * config/i386/sse.md (sse4_1_pinsrb): Export.
7130 (sse2_pinsrw): Ditto.
7131 (sse4_1_pinsrd): Ditto.
7132 (sse4_1_pinsrq): Ditto.
7133 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
7134 * config/i386/i386.c (ix86_expand_pinsr): New.
7136 2011-04-20 Easwaran Raman <eraman@google.com>
7138 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
7139 containing union type only with -fstrict-aliasing.
7141 2011-04-20 Jim Meyering <meyering@redhat.com>
7143 Remove useless if-before-free tests.
7144 * calls.c (expand_call, save_area): Likewise.
7145 * cfgcleanup.c (try_forward_edges): Likewise.
7146 * collect2.c (collect_execute): Likewise.
7147 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
7148 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
7149 * coverage.c (coverage_checksum_string): Likewise.
7150 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
7151 * cselib.c (cselib_init): Likewise.
7152 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
7153 (df_set_clean_cfg): Likewise.
7154 * function.c (free_after_compilation): Likewise.
7155 * gcc.c (do_spec_1, main): Likewise.
7156 * gcov.c (create_file_names): Likewise.
7157 * gensupport.c (identify_predicable_attribute): Likewise.
7158 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
7159 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
7160 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
7161 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
7162 * ipa-pure-const.c (local_pure_const): Likewise.
7163 * ipa-reference.c (propagate): Likewise.
7164 * ira-costs.c (free_ira_costs): Likewise.
7165 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
7166 * matrix-reorg.c (mat_free): Likewise.
7167 * prefix.c (get_key_value): Likewise.
7168 * profile.c (compute_value_histograms): Likewise.
7169 * reload1.c (free_reg_equiv): Likewise.
7170 * sched-deps.c (free_deps): Likewise.
7171 * sel-sched-ir.c (fence_clear): Likewise.
7172 * sese.c (set_rename, if_region_set_false_region): Likewise.
7173 * tree-data-ref.c (free_rdg): Likewise.
7174 * tree-eh.c (lower_try_finally): Likewise.
7175 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
7176 * tree-ssa-live.c (delete_var_map): Likewise.
7177 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
7178 * tree-ssa-pre.c (phi_trans_add): Likewise.
7180 2011-04-20 Jakub Jelinek <jakub@redhat.com>
7182 PR tree-optimization/48611
7183 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
7184 beyond ERT_MUST_NOT_THROW region.
7186 2011-04-20 Catherine Moore <clm@codesourcery.com>
7188 * config/mips/mips.opt (mfix-24k): New.
7189 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
7190 * config/mips/mips.md (length): Increase by 4 for stores if
7192 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
7193 all noreorder if fixing 24K errata.
7194 * doc/invoke.texi: Document mfix-24k.
7196 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
7198 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
7199 quad-word modes, reduce to 9-bit index range when above 1016 limit.
7201 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
7203 * config/arm/arm.c (arm_gen_constant): Move movw support ....
7204 (const_ok_for_op): ... to here.
7206 2011-04-20 Kai Tietz <ktietz@redhat.com>
7208 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
7209 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
7211 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
7213 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
7215 2011-04-20 Richard Guenther <rguenther@suse.de>
7217 PR tree-optimization/47892
7218 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
7221 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
7223 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
7225 2011-04-20 Tristan Gingold <gingold@adacore.com>
7227 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
7229 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
7233 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
7234 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
7235 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
7236 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
7237 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
7239 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
7242 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
7243 (avr_asm_named_section, avr_asm_output_aligned_common,
7244 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
7245 New functions to update...
7246 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
7247 (avr_asm_init_sections): Overwrite section callbacks for
7248 data_section, bss_section.
7249 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
7251 (avr_file_end): ...here.
7253 2011-04-20 Richard Guenther <rguenther@suse.de>
7256 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
7257 objects and types here. Adjust for their offset before comparing.
7259 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
7261 * tree-vect-stmts.c (vectorizable_store): Only chain one related
7264 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
7266 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
7267 (GIMPLE_H): Include $(INTERNAL_FN_H).
7268 (OBJS-common): Add internal-fn.o.
7269 (internal-fn.o): New rule.
7270 * internal-fn.def: New file.
7271 * internal-fn.h: Likewise.
7272 * internal-fn.c: Likewise.
7273 * gimple.h: Include internal-fn.h.
7274 (GF_CALL_INTERNAL): New gf_mask.
7275 (gimple_statement_call): Put fntype into a union with a new
7277 (gimple_build_call_internal): Declare.
7278 (gimple_build_call_internal_vec): Likewise.
7279 (gimple_call_same_target_p): Likewise.
7280 (gimple_call_internal_p): New function.
7281 (gimple_call_internal_fn): Likewise.
7282 (gimple_call_fntype): Return null for internal calls.
7283 (gimple_call_set_fntype): Assert that the function is not internal.
7284 (gimple_call_set_fn): Likewise.
7285 (gimple_call_set_fndecl): Likewise.
7286 (gimple_call_set_internal_fn): New function.
7287 (gimple_call_addr_fndecl): Handle null functions.
7288 (gimple_call_return_type): Likewise null types.
7289 * gimple.c (gimple_build_call_internal_1): New function.
7290 (gimple_build_call_internal): Likewise.
7291 (gimple_build_call_internal_vec): Likewise.
7292 (gimple_call_same_target_p): Likewise.
7293 (gimple_call_flags): Handle calls to internal functions.
7294 (gimple_call_fnspec): New function.
7295 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
7296 (gimple_has_side_effects): Handle null functions.
7297 (gimple_rhs_has_side_effects): Likewise.
7298 (gimple_call_copy_skip_args): Handle calls to internal functions.
7299 * cfgexpand.c (expand_call_stmt): Likewise.
7300 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
7301 * gimple-fold.c (gimple_fold_call): Handle null functions.
7302 (gimple_fold_stmt_to_constant_1): Don't fold
7303 calls to internal functions.
7304 * gimple-low.c (gimple_check_call_args): Handle calls to internal
7306 * gimple-pretty-print.c (dump_gimple_call): Likewise.
7307 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
7308 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
7309 (do_warn_unused_result): Likewise.
7310 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
7311 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
7312 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
7313 the target of a call.
7314 (initialize_hash_element): Update accordingly.
7315 (hashable_expr_equal_p): Use gimple_call_same_target_p.
7316 (iterative_hash_hashable_expr): Handle calls to internal functions.
7317 (print_expr_hash_elt): Likewise.
7318 * tree-ssa-pre.c (can_value_number_call): Likewise.
7319 (eliminate): Handle null functions.
7320 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
7321 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
7322 (find_func_aliases): Likewise.
7323 * value-prof.c (gimple_ic_transform): Likewise.
7324 (gimple_indirect_call_to_profile): Likewise.
7325 * lto-streamer-in.c (input_gimple_stmt): Likewise.
7326 * lto-streamer-out.c (output_gimple_stmt): Likewise.
7328 2011-04-19 Jan Hubicka <jh@suse.cz>
7330 * ipa-inline-transform.c (save_inline_function_body): Add comments.
7331 * ipa-inline.c (inline_small_functions): Compute summaries first,
7332 populate heap later.
7334 2011-04-19 Jan Hubicka <jh@suse.cz>
7336 * cgraph.h (save_inline_function_body): Remove.
7337 * ipa-inline-transform.c: New file, broke out of...
7338 * ipa-inline.c: ... this one; Update toplevel comment.
7339 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
7341 (update_noncloned_frequencies): Move to ipa-inline-transform.c
7342 (cgraph_mark_inline_edge): Rename to inline_call; move to
7343 ipa-inline-transform.c.
7344 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
7345 move to ipa-inline-transform.c
7346 (recursive_inlining, inline_small_functions, flatten_function,
7347 ipa_inline, inline_always_inline_functions,
7348 early_inline_small_functions): Update.
7349 (inline_transform): Move to ipa-inline-transform.c.
7350 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
7352 * Makefile.in (ipa-inline-transform.o): New file.
7353 * cgraphunit.c (save_inline_function_body): Move to
7354 ipa-inline-transform.c
7356 2011-04-19 DJ Delorie <dj@redhat.com>
7358 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
7359 registers if we already know there aren't any.
7360 (m32c_emit_epilogue): Don't emit a barrier here.
7361 (m32c_emit_eh_epilogue): Likewise.
7362 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
7363 operands at expand time.
7364 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
7366 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
7367 duplicates. Provide aliases instead.
7368 * config/m32c/prologue.md (eh_return): Emit a barrier here.
7369 (eh_epilogue): Add a "(return)" here as a hint to other parts of
7372 2011-04-19 Anatoly Sokolov <aesok@post.ru>
7374 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
7375 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
7376 (general_or_i64_p, sparc_register_move_cost): New function.
7378 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7380 * doc/install.texi (Configuration, --enable-threads): Remove mach.
7381 Add lynx, mipssde. Sort table.
7383 2011-04-19 Xinliang David Li <davidxl@google.com>
7385 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
7388 2011-04-19 Jakub Jelinek <jakub@redhat.com>
7391 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
7392 is a SUBREG with non-MODE_INT mode inside of it.
7394 2011-04-19 Martin Jambor <mjambor@suse.cz>
7396 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
7397 also according to actual contants.
7398 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
7399 (gimple_fold_call): Use it.
7400 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
7402 2011-04-19 Martin Jambor <mjambor@suse.cz>
7404 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
7405 non-pointer assignments.
7407 2011-04-19 Martin Jambor <mjambor@suse.cz>
7409 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
7410 account anc_offset and otr_type from the indirect edge info.
7411 * ipa-prop.c (get_ancestor_addr_info): New function.
7412 (compute_complex_ancestor_jump_func): Assignment analysis moved to
7413 get_ancestor_addr_info, call it.
7414 (ipa_note_param_call): Do not initialize information about polymorphic
7415 calls, return the indirect call graph edge. Remove the last
7416 parameter, adjust all callers.
7417 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
7418 parameters. Initialize polymorphic information in the indirect edge.
7420 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
7423 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
7424 the types if they have different enumeration identifiers.
7426 2011-04-19 Jan Hubicka <jh@suse.cz>
7428 * cgraph.h (cgraph_optimize_for_size_p): Declare.
7429 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
7430 * predict.c (cgraph_optimize_for_size_p): Break out from ...
7431 (optimize_function_for_size_p) ... here.
7433 2011-04-19 Richard Guenther <rguenther@suse.de>
7436 * tree.c (free_lang_data): Do not reset the decl-assembler-name
7439 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
7441 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
7442 if DECL_NO_INLINE_WARNING_P is set on the function.
7444 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
7447 * reload1.c (inc_for_reload): Return void. All callers changed.
7448 (emit_input_reload_insns): Don't try to delete previous output
7449 reloads to a register, or record spill_reg_store for autoincs.
7451 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
7453 * gengtype.h: Updated copyright year.
7454 (struct input_file_st): Add inpisplugin field.
7455 (type_fileloc): New function.
7457 (write_typed_struct_alloc_def): Add gcc_assert.
7458 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
7459 (write_typed_alloc_defns): Don't output for plugin files.
7460 (input_file_by_name): Clear inpisplugin field.
7461 (main): Set inpisplugin field for plugin files.
7463 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
7465 * gengtype-state.c (string_eq): New.
7466 (read_state): Use string_eq instead of strcmp when creating the
7469 2011-04-19 Wei Guozhi <carrot@google.com>
7472 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
7473 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
7475 * config/arm/constraints.md (Uu): New constraint.
7476 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
7478 2011-04-19 Tristan Gingold <gingold@adacore.com>
7480 * config.gcc (-*-*-*vms): Added.
7481 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
7483 * config/vms/vms-ld.c: New file.
7484 * config/vms/vms-ar.c: New file.
7485 * config/vms/t-vmsnative: New file.
7487 2011-04-18 Xinliang David Li <davidxl@google.com>
7489 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
7491 2011-04-18 Jakub Jelinek <jakub@redhat.com>
7494 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
7495 if TREE_TYPE (v) is non-NULL.
7497 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
7498 gimple_get_virt_mehtod_for_binfo.
7499 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
7500 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
7502 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
7504 2011-04-18 Michael Matz <matz@suse.de>
7505 Steve Ellcey <sje@cup.hp.com>
7507 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
7508 use its mode as source mode if it isn't VOIDmode.
7510 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
7512 * doc/passes.texi: Fill crossref nodes.
7514 2011-04-18 Jim Meyering <meyering@redhat.com>
7516 Fix doubled-word typos in comments and strings
7517 * config/alpha/vms-unwind.h: s/for for/for/
7518 * config/arm/unwind-arm.h: Likewise.
7519 * config/microblaze/microblaze.c: Likewise.
7520 * config/sh/constraints.md: s/in in/in/
7521 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
7523 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
7525 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
7526 (AVX_FLOAT_MODE_P): Ditto.
7527 (AVX128_VEC_FLOAT_MODE_P): Ditto.
7528 (AVX256_VEC_FLOAT_MODE_P): Ditto.
7529 (AVX_VEC_FLOAT_MODE_P): Ditto.
7530 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
7531 (UNSPEC_MASKSTORE): Ditto.
7532 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
7533 Merge from <sse>_movmsk<ssemodesuffix> and
7534 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
7535 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
7537 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
7538 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
7539 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
7541 2011-04-18 Jan Hubicka <jh@suse.cz>
7543 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
7545 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
7546 (want_inline_function_called_once_p): Break out the logic from
7548 (edge_badness): Ensure that profile is not misupdated.
7549 (lookup_recursive_calls): Prioritize by call frequencies.
7550 (inline_small_functions): Move program size estimates here;
7551 actually process whole queue even when unit growth has been
7552 met. (to properly compute inline_failed reasons and for the
7553 case unit size decrease.) Revisit comments on recursive inlining.
7554 (ipa_inline): Remove unit summary code; first inline hot calls
7555 of functions called once, cold calls next.
7556 (order, nnodes): Remove unused variables.
7557 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
7558 (GTFILES): Remove ipa-inline.c
7559 * sel-sched.c (fill_insns): Silence uninitialized var warning.
7561 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
7563 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
7565 2011-04-18 Jie Zhang <jie@codesourcery.com>
7566 Richard Earnshaw <rearnsha@arm.com>
7568 * arm.c (neon_builtin_type_bits): Remove.
7569 (typedef enum neon_builtin_mode): New.
7570 (T_MAX): Don't define.
7571 (typedef enum neon_builtin_datum): Remove bits, codes[],
7572 num_vars and base_fcode. Add mode, code and fcode.
7573 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
7574 VAR10): Change accordingly.
7575 (neon_builtin_data[]): Change accordingly
7576 (arm_init_neon_builtins): Change accordingly.
7577 (neon_builtin_compare): Remove.
7578 (locate_neon_builtin_icode): Remove.
7579 (arm_expand_neon_builtin): Change accordingly.
7581 * arm.h (enum arm_builtins): Move to ...
7582 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
7584 * arm.c (arm_builtin_decl): Declare.
7585 (TARGET_BUILTIN_DECL): Define.
7586 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
7587 (arm_builtin_decls[]): New.
7588 (arm_init_neon_builtins): Store builtin declarations in
7589 arm_builtin_decls[].
7590 (arm_init_tls_builtins): Likewise.
7591 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
7592 (arm_builtin_decl): New.
7594 2011-04-18 Richard Guenther <rguenther@suse.de>
7596 * tree.c (upper_bound_in_type): Build properly canonicalized
7598 (lower_bound_in_type): Likewise.
7600 2011-04-18 Richard Guenther <rguenther@suse.de>
7602 * gimple.h (gimple_call_addr_fndecl): New function.
7603 (gimple_call_fndecl): Use it.
7604 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
7606 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
7607 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
7609 2011-04-18 Richard Guenther <rguenther@suse.de>
7612 * tree.c (build_string): STRING_CST is now derived from tree_typed.
7614 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
7617 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
7618 DECL_IN_CONSTANT_POOL without RTL.
7620 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
7621 Ira Rosen <ira.rosen@linaro.org>
7624 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
7625 to match neon_vzip/vuzp/vtrn_internal.
7626 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
7627 outputs explicitly dependent on both inputs.
7628 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
7630 2011-04-18 Jakub Jelinek <jakub@redhat.com>
7632 PR tree-optimization/48616
7633 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
7634 whether the shift is by scalar or vector based on whether all SLP
7635 scalar stmts have the same rhs.
7637 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
7639 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
7642 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
7645 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
7648 2011-04-17 Jan Hubicka <jh@suse.cz>
7650 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
7651 * cgrpahunit.c (cgraph_finalize_function): Do not set
7652 finalized_by_frontend.
7653 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
7654 finalized_by_frontend.
7656 2011-04-17 Jan Hubicka <jh@suse.cz>
7658 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
7659 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
7660 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
7661 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
7663 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
7665 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
7667 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
7670 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
7671 is non-null before accessing it.
7672 (input_cgraph): Remove trailing spaces.
7674 2011-04-17 Revital Eres <revital.eres@linaro.org>
7676 * params.def (sms-min-sc): New param flag.
7677 * modulo-sched.c (sms_schedule): Use it.
7678 * doc/invoke.texi (sms-min-sc): Document it.
7680 2011-04-17 Jan Hubicka <jh@suse.cz>
7682 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
7683 present, also set gimple_call_set_cannot_inline.
7684 * ipa-inline.c: Update toplevel comment.
7686 (cgraph_clone_inlined_nodes): Fix linebreaks.
7687 (cgraph_check_inline_limits): Restructure to ...
7688 (caller_growth_limits): ... this one; be more tolerant
7689 on growth in nested inline chains; add explanatory comment;
7690 fix stack accounting thinko introduced by previous patch.
7691 (cgraph_default_inline_p): Remove.
7692 (report_inline_failed_reason): New function.
7693 (can_inline_edge_p): New function.
7694 (can_early_inline_edge_p): New function.
7695 (leaf_node_p): Move upwards in file.
7696 (want_early_inline_function_p): New function.
7697 (want_inline_small_function_p): New function.
7698 (want_inline_self_recursive_call_p): New function.
7699 (cgraph_edge_badness): Rename to ...
7700 (edge_badness) ... this one; fix linebreaks.
7701 (update_edge_key): Update call of edge_baddness; add
7702 detailed dump about queue updates.
7703 (update_caller_keys): Use can_inline_edge_p and
7704 want_inline_small_function_p.
7705 (cgraph_decide_recursive_inlining): Rename to...
7706 (recursive_inlining): Use can_inline_edge_p and
7707 want_inline_self_recursive_call_p; simplify and remove no longer
7709 (cgraph_set_inline_failed): Remove.
7710 (add_new_edges_to_heap): Use can_inline_edge_p and
7711 want_inline_small_function_p.
7712 (cgraph_decide_inlining_of_small_functions): Rename to ...
7713 (inline_small_functions): ... this one; cleanup; use
7714 can/want predicates; cleanup debug ouput; work edges till fibheap
7715 is exhausted and do not stop once unit growth is reached; remove
7716 later loop processing remaining edges.
7717 (cgraph_flatten): Rename to ...
7718 (flatten_function): ... this one; use can_inline_edge_p
7719 and can_early_inline_edge_p predicates.
7720 (cgraph_decide_inlining): Rename to ...
7721 (ipa_inline): ... this one; remove unreachable nodes before
7722 inlining functions called once; simplify the pass.
7723 (cgraph_perform_always_inlining): Rename to ...
7724 (inline_always_inline_functions): ... this one; use
7725 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
7726 (cgraph_decide_inlining_incrementally): Rename to ...
7727 (early_inline_small_functions): ... this one; simplify
7728 using new predicates; cleanup; make dumps prettier.
7729 (cgraph_early_inlining): Rename to ...
7730 (early_inliner): newer inline regular functions into always-inlines;
7731 fix updating of call stmt summaries.
7732 (pass_early_inline): Update for new names.
7733 (inline_transform): Fix formating.
7734 (gate_cgraph_decide_inlining): Rename to ...
7735 (pass_ipa_inline): ... this one.
7736 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
7737 * ipa-inline-analysis.c (dump_inline_summary): Update.
7738 (compute_inline_parameters): Do not compute disregard_inline_limits;
7739 look for mismatching arguments.
7740 (estimate_growth): Fix handlig of non-trivial self recursion.
7741 (inline_read_summary): Do not read info->disregard_inline_limits.
7742 (inline_write_summary): Do not write info->disregard_inline_limits.
7743 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
7744 and move all checks into can_inline_edge_p predicate; re-enable code
7745 comparing optimization levels.
7746 (expand_call_inline): Do not test inline_forbidden_into_p.
7747 * Makefile.in (ipa-inline.o): Update arguments.
7749 2011-04-17 Revital Eres <revital.eres@linaro.org>
7751 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
7753 2011-04-17 Revital Eres <revital.eres@linaro.org>
7755 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
7757 2011-04-17 Michael Matz <matz@suse.de>
7759 PR tree-optimization/48622
7761 * ipa-inline-analysis.c (inline_read_summary): Read size/time
7762 in same order as they're written.
7764 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7766 * config/pa/predicates.md: Reorganize and simplify predicates.
7767 Eliminate duplicate code checks.
7768 (arith_operand): Rename to arith14_operand
7769 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
7770 * config/pa/pa.md: Use renamed operands.
7771 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
7772 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
7773 arith11_operand, adddi3_operand, indexed_memory_operand,
7774 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
7775 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
7776 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
7777 move_dest_operand, move_src_operand, prefetch_cc_operand,
7778 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
7779 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
7780 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
7781 div_operand, int5_operand, movb_comparison_operator,
7782 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
7783 arith_double_operand, ireg_operand, lhs_lshift_operand,
7784 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
7785 integer_store_memory_operand): Likewise.
7786 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
7787 (integer_store_memory_operand, read_only_operand,
7788 function_label_operand, borx_reg_operand,
7789 non_hard_reg_operand): Likewise.
7790 (eq_neq_comparison_operator): Delete unused operator.
7791 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
7792 function_label_operand.
7793 (emit_move_sequence): Likewise.
7795 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
7797 * config/i386/sse.md (sseunpackmode): New mode attribute.
7798 (ssepackmode): Ditto.
7799 (vec_pack_trunc_<mode>): Macroize expander from
7800 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
7801 (vec_unpacks_lo_<mode>): Macroize expander from
7802 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
7803 (vec_unpacks_hi_<mode>): Macroize expander from
7804 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
7805 (vec_unpacku_lo_<mode>): Macroize expander from
7806 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
7807 (vec_unpacku_hi_<mode>): Macroize expander from
7808 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
7809 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
7810 ix86_expand_sse4_unpack.
7811 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
7813 2011-04-16 Jan Hubicka <jh@suse.cz>
7815 * cgraphbuild.c: Include ipa-inline.h.
7816 (reset_inline_failed): Use initialize_inline_failed.
7817 * cgraph.c: Include ipa-inline.h.
7818 (cgraph_create_node_1): Do not initialize estimated_growth.
7819 (initialize_inline_failed): More to ipa-inline-analysis.c
7820 (dump_cgraph_node): Do not dump inline flags.
7821 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
7822 and disregard_inline_limits flags.
7823 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
7824 time, size, estimated_growth.
7825 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
7827 * cgraphunit.c (cgraph_decide_is_function_needed): Use
7828 DECL_DISREGARD_INLINE_LIMITS.
7829 (cgraph_analyze_function): Do not initialize
7830 node->local.disregard_inline_limits.
7831 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
7832 inlinable, versionable and disregard_inline_limits.
7833 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
7834 cgraph_check_inline_limits, cgraph_default_inline_p,
7835 cgraph_edge_badness, update_caller_keys, update_callee_keys,
7836 add_new_edges_to_heap): Update.
7837 (cgraph_decide_inlining_of_small_function): Update; set
7838 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
7839 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
7840 cgraph_decide_inlining_incrementally): Update.
7841 * ipa-inline.h (inline_summary): Add inlinable, versionable,
7842 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
7843 time, size and estimated_growth parameters.
7844 (estimate_edge_growth): Update.
7845 (initialize_inline_failed): Declare.
7846 * ipa-split.c: Include ipa-inline.h
7847 (execute_split_functions): Update.
7848 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
7849 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
7850 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
7851 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
7852 estimated_growth to INT_MIN.
7853 (inline_node_duplication_hook): Likewise.
7854 (dump_inline_summary): Dump new fields.
7855 (compute_inline_parameters): Update.
7856 (estimate_edge_time, estimate_time_after_inlining,
7857 estimate_size_after_inlining, estimate_growth, inline_read_summary,
7858 inline_write_summary):
7859 (initialize_inline_failed): Move here from cgraph.c.
7860 * tree-sra.c: Include ipa-inline.h.
7861 (ipa_sra_preliminary_function_checks): Update.
7862 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
7865 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
7867 * config/i386/sse.md (V16): New mode iterator.
7869 (AVXMODEQI, AVXMODEDI): Remove.
7870 (sse2, sse3): New mode attribute.
7871 (mov<mode>): Use V16 mode iterator.
7872 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
7873 (push<mode>1): Use V16 mode iterator.
7874 (movmisalign<mode>): Ditto.
7875 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
7876 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
7877 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
7878 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
7879 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
7880 avx_movdqu<avxmodesuffix>.
7881 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
7882 *avx_movdqu<avxmodesuffix>.
7883 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
7884 avx_lddqu<avxmodesuffix>.
7885 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
7886 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
7887 avx_movnt<AVXMODEDI:mode>.
7888 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
7889 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
7891 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
7894 * haifa-sched.c (prune_ready_list, schedule_block): Use
7895 sched_pressure_p rather than flag_sched_pressure.
7897 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
7899 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
7900 cgraph_get_node instead of cgraph_get_create_node.
7902 2011-04-15 Jakub Jelinek <jakub@redhat.com>
7904 * cfgexpand.c (expand_debug_expr): Use
7905 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
7907 2011-04-15 Michael Matz <matz@suse.de>
7909 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
7910 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
7911 * function.c (gimplify_parameters): Ditto.
7912 * gimplify.c (gimplify_vla_decl): Ditto.
7914 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
7915 (gimple_call_set_alloca_for_var): New inline function.
7916 (gimple_call_alloca_for_var_p): Ditto.
7917 * gimple.c (gimple_build_call_from_tree): Remember
7918 CALL_ALLOCA_FOR_VAR_P state.
7919 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
7921 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
7922 calls if they were for VLA objects.
7924 2011-04-15 Martin Jambor <mjambor@suse.cz>
7926 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
7929 2011-04-15 Martin Jambor <mjambor@suse.cz>
7932 * tree-emutls.c (lower_emutls_function_body): Call
7933 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
7936 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
7938 * c-decl.c (detect_field_duplicates): Call
7939 objc_detect_field_duplicates instead of objc_get_interface_ivars.
7941 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
7943 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
7944 * gimple.c (gimple_asm_clobbers_memory_p): Define.
7945 * ipa-pure-const.c (check_stmt): Call it.
7946 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
7948 2011-04-15 Richard Guenther <rguenther@suse.de>
7950 PR tree-optimization/48290
7951 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
7952 Properly decide inhibiting propagation based on the valueized
7953 operand. Do loop-closed SSA form preserving here ...
7954 (init_copy_prop): ... not here.
7956 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
7959 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
7960 (*ieee_smax<mode>3): Likewise.
7962 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7964 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
7965 Replace match_operand with match_dup for the third operand in
7968 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
7970 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
7971 to track processing of conditionals. Update all callers.
7972 (try_combine, simplify_if_then_else): Update.
7974 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
7976 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
7979 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
7981 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
7982 instead of match_operand for operand 3.
7984 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
7986 * recog.h (insn_operand_data): Add an "allows_mem" field.
7987 * genoutput.c (output_operand_data): Initialize it.
7988 * optabs.c (maybe_legitimize_operand_same_code): New function.
7989 (maybe_legitimize_operand): Use it when matching the original
7992 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
7994 * gimplify.c: Fix issues in comments throughout.
7995 (voidify_wrapper_expr): Fix long line.
7996 (build_stack_save_restore): Likewise.
7997 (gimplify_loop_expr): Likewise.
7998 (gimplify_compound_lval): Likewise.
7999 (gimplify_init_ctor_eval): Likewise.
8000 (gimplify_modify_expr_rhs): Likewise.
8001 (omp_notice_threadprivate_variable): Likewise.
8003 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
8005 * cfgexpand.c (expand_call_stmt): Convert the function type to the
8006 original one if this is not a builtin function.
8008 2011-04-14 Jakub Jelinek <jakub@redhat.com>
8011 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
8012 offset it as needed based on top 2 bits in operands[3], change
8013 MEM mode to SFmode and mask those 2 bits away from operands[3].
8015 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
8017 * c-parser.c (c_parser_objc_protocol_definition): Updated for
8018 change from objc_declare_protocols() to objc_declare_protocol().
8020 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
8022 * config/i386/sse.md (sse4_1): New mode attribute.
8023 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
8024 avx_blend<ssemodesuffix><avxmodesuffix> and
8025 sse4_1_blend<ssemodesuffix> using VF mode iterator.
8026 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
8027 avx_blendv<ssemodesuffix><avxmodesuffix> and
8028 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
8029 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
8030 avx_dp<ssemodesuffix><avxmodesuffix> and
8031 sse4_1_dp<ssemodesuffix> using VF mode iterator.
8032 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
8033 (sse4_1_packusdw): Merge with *avx_packusdw.
8034 (sse4_1_pblendvb): Merge with *avx_pblendvb.
8035 (sse4_1_pblendw): Merge with *avx_pblendw.
8036 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
8037 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
8038 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
8040 (sse4_1_round<ssescalarmodesuffix>): Merge with
8041 *avx_round<ssescalarmodesuffix>.
8042 (aesenc): Merge with *avx_aesenc.
8043 (aesenclast): Merge with *avx_aesenclast.
8044 (aesdec): Merge with *avx_aesdec.
8045 (aesdeclast): Merge with *avx_aesdeclast.
8046 (pclmulqdq): Merge with *pclmulqdq.
8047 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
8049 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
8051 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
8054 * cfgexpand.c (get_decl_align_unit): Renamed to ...
8055 (align_local_variable): This. Update DECL_ALIGN.
8056 (add_stack_var): Updated.
8057 (expand_one_stack_var): Likewise.
8059 2011-04-14 Richard Guenther <rguenther@suse.de>
8061 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
8063 (dse_initialize_block_local_data, dse_leave_block,
8064 record_voperand_set, get_stmt_uid): Likewise.
8065 (dse_possible_dead_store_p): Allow any kind of killing stmt.
8066 (dse_optimize_stmt): Remove voperand set handling code.
8067 Simplify and improve to handle any kind of killing stmt.
8068 (dse_record_phi): Remove.
8069 (dse_enter_block): Simplify.
8070 (tree_ssa_dse): Likewise.
8071 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
8073 2011-04-14 Jan Hubicka <jh@suse.cz>
8075 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
8076 * cgraph.h (struct inline_summary): Move to ipa-inline.h
8077 (cgraph_local_info): Remove inline_summary.
8078 * ipa-cp.c: Include ipa-inline.h.
8079 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
8080 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
8082 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
8083 (input_overwrite_node): Do not set inline summary.
8084 (input_node): Do not stream inline summary.
8085 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
8086 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
8087 growth; we do not have inline parameters computed for that anyway.
8088 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
8089 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
8090 (inline_summary_t): New type and VECtor.
8091 (debug_inline_summary, dump_inline_summaries): Declare.
8092 (inline_summary): Use VOCtor.
8093 (estimate_edge_growth): Kill hack computing call stmt size directly.
8094 * lto-section-in.c (lto_section_name): Add inline section.
8095 * ipa-inline-analysis.c: Include lto-streamer.h
8096 (node_removal_hook_holder, node_duplication_hook_holder): New holders
8097 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
8098 (inline_summary_vec): Define.
8099 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
8100 dump_inline_summaries): New functions.
8101 (estimate_function_body_sizes): Properly compute size/time of outgoing
8103 (compute_inline_parameters): Alloc inline_summary; do not compute
8104 size/time of incomming calls.
8105 (estimate_edge_time): Avoid missing time summary hack.
8106 (inline_read_summary): Read inline summary info.
8107 (inline_write_summary): Write inline summary info.
8108 (inline_free_summary): Free all hooks and inline summary vector.
8109 * lto-streamer.h: Add LTO_section_inline_summary section.
8110 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
8111 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
8113 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
8115 * tree-vectorizer.h (vect_strided_store_supported): Add a
8116 HOST_WIDE_INT argument.
8117 (vect_strided_load_supported): Likewise.
8118 (vect_permute_store_chain): Return void.
8119 (vect_transform_strided_load): Likewise.
8120 (vect_permute_load_chain): Delete.
8121 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
8122 count argument. Check that the count is a power of two.
8123 (vect_strided_load_supported): Likewise.
8124 (vect_permute_store_chain): Return void. Update after above changes.
8125 Assert that the access is supported.
8126 (vect_permute_load_chain): Likewise.
8127 (vect_transform_strided_load): Return void.
8128 * tree-vect-stmts.c (vectorizable_store): Update calls after
8129 above interface changes.
8130 (vectorizable_load): Likewise.
8131 (vect_analyze_stmt): Don't check for strided powers of two here.
8133 2011-04-14 Richard Guenther <rguenther@suse.de>
8135 PR tree-optimization/48590
8136 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
8137 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
8138 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
8139 BUILT_IN_STACK_SAVE.
8140 * tree-ssa-dce.c (propagate_necessity): Handle
8141 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
8143 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
8145 * c-parser.c (c_parser_objc_class_declaration): Updated call to
8148 2011-04-14 Richard Guenther <rguenther@suse.de>
8150 * tree.h (get_object_alignment_1): Declare.
8151 * builtins.c (get_object_alignment_1): Split out worker from ...
8152 (get_object_alignment): ... here.
8153 * fold-const.c (get_pointer_modulus_and_residue): Use
8154 get_object_alignment_1.
8156 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
8158 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
8160 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
8161 parameter. Generalise code to handle arrays as well as vectors.
8162 (vect_setup_realignment): Update accordingly.
8163 * tree-vect-stmts.c (vectorizable_store): Likewise.
8164 (vectorizable_load): Likewise.
8166 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
8168 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
8169 within the per-copy loop.
8171 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
8173 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
8176 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
8178 * doc/options.texi (Negative): Explicitly mention that the
8179 Negative chain must be circular.
8181 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
8183 * function.h (block_chainon): Declare.
8184 * function.c (block_chainon): Define.
8186 2011-04-14 Anatoly Sokolov <aesok@post.ru>
8187 Eric Weddington <eric.weddington@atmel.com>
8188 Georg-Johann Lay <avr@gjlay.de>
8190 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
8192 (avr_init_builtins, avr_expand_builtin,
8193 avr_expand_delay_cycles, avr_expand_unop_builtin,
8194 avr_expand_binop_builtin ): New functions.
8195 (avr_builtin_id): New enum
8196 (struct avr_builtin_description): New struct
8197 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
8198 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
8200 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
8201 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
8202 UNSPECV_DELAY_CYCLES): new enumeration values
8203 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
8204 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
8205 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
8206 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
8207 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
8208 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
8209 "fmulsu"): New insns
8211 * config/avr/avr-c.c: fix line endings
8212 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
8213 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
8214 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
8215 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
8216 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
8218 * doc/extend.texi (AVR Built-in Functions): New node
8219 (Target Builtins): Add documentation of AVR
8222 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
8225 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
8226 alone. Error if non-const data has attribute progmem.
8228 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
8230 * tree.h (struct tree_constructor): Include tree_typed instead of
8232 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
8233 TS_TYPED instead of TS_COMMON.
8235 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
8237 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
8238 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
8239 (sse2_psadbw): Merge with *avx_psadbw.
8240 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
8241 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
8242 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
8243 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
8244 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
8245 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
8246 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
8247 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
8248 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
8249 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
8250 (ssse3_palignrti): Merge with *avx_palignrti.
8252 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
8254 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
8255 * tree-ssanames.c (fini_ssanames): VEC_free it.
8256 (make_ssa_name_fn): Update for VECness of free_ssanames.
8257 (release_ssa_name, release_dead_ssa_names): Likewise.
8258 * tree.h (struct tree_ssa_name): Include tree_typed instead of
8260 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
8261 TS_TYPED instead of TS_COMMON.
8263 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
8265 * postreload-gcse.c (gcse_after_reload_main): Add calls to
8266 statistics_counter_event.
8267 * tree-ssa-copyrename.c (stats): Define.
8268 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
8269 statistics_counter_event.
8270 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
8271 (bswap_stats, widen_mul_stats): Define.
8272 (insert_reciprocals): Increment rdivs_inserted.
8273 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
8274 rfuncs_inserted. Add calls to statistics_counter_event.
8275 (execute_cse_sincos_1): Increment inserted.
8276 (execute_cse_sincos): Zeroize sincos_stats. Add call to
8277 statistics_counter_event.
8278 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
8279 of bswap_stats. Add calls to statistics_counter_event.
8280 (convert_mult_to_widen): Increment widen_mults_inserted.
8281 (convert_plusminus_to_widen): Increment maccs_inserted.
8282 (convert_mult_to_fma): Increment fmas_inserted.
8283 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
8284 calls to statistics_counter_event.
8286 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
8288 PR rtl-optimization/48455
8289 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
8290 `temp_costs->mem_cost'.
8292 2011-04-13 Jan Hubicka <jh@suse.cz>
8294 * ipa-inline.h: New file.
8295 * ipa-inline-analysis.c: New file. Broken out of ...
8296 * ipa-inline.c: ... this file; update toplevel comment;
8297 include ipa-inline.h
8298 (inline_summary): Move to ipa-inline.h
8299 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
8300 ipa-inline-analysis.c.
8301 (cgraph_estimate_time_after_inlining): Rename to
8302 estiamte_time_after_inlining; move to ipa-inline-analysis.c
8303 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
8304 to estimate_edge_growth.
8305 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
8306 rename to estimate_size_after_inlining.
8307 (cgraph_mark_inline_edge): Update for new naming convention.
8308 (cgraph_check_inline_limits): Likewise.
8309 (cgraph_edge_badness): Likewise.
8310 (cgraph_decide_recursive_inlining): Likewise.
8311 (cgraph_decide_inlining_of_small_functions): Likewise.
8312 (cgraph_decide_inlining_incrementally): Likewise.
8313 (cgraph_estimate_growth): Rename to estimate_growth; move to
8314 ipa-inline-analysis.c.
8315 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
8316 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
8317 (compute_inline_parameters): Likewise.
8318 (compute_inline_parameters_for_current): Likewise.
8319 (pass_inline_parameters): Likewise.
8320 (inline_indirect_intraprocedural_analysis): Likewise.
8321 (analyze_function): Rename to inline_analyze_function; likewise.
8322 (add_new_function): Move to ipa-inline-analysis.c.
8323 (inline_generate_summary): Likewise.
8324 (inline_read_summary): Likewise.
8325 (inline_write_summary): Likewise.
8326 * Makefile.in (ipa-inline-analysis.c): New file.
8328 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8330 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
8331 * configure: Regenerate.
8333 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
8335 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
8336 instead of tree_common.
8337 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
8339 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
8340 TS_TYPED rather than TS_COMMON.
8341 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
8343 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
8346 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
8347 r20 around calls of __tablejump_elpm__
8349 2011-04-13 Jakub Jelinek <jakub@redhat.com>
8352 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
8354 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
8356 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
8358 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
8359 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
8360 (cfi_vec): New typedef.
8361 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
8362 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
8363 (cie_cfi_vec): New static variable.
8364 (cie_cfi_head): Delete.
8365 (add_cfi): Accept a cfi_vec * as first argument. All callers and
8366 declaration changed. Use vector rather than list operations.
8367 (new_cfi): Don't initialize the dw_cfi_next field.
8368 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
8369 rather than list operations.
8370 (lookup_cfa): Use vector rather than list operations.
8371 (output_cfis): New argument upto. Accept a cfi_vec rather than
8372 a dw_cfi_ref list head as argument. All callers changed.
8373 Iterate over the vector using upto as a maximum index.
8374 (output_all_cfis): New static function.
8375 (output_fde): Use vector rather than list operations. Use the
8376 new upto argument for output_cfis rather than manipulating a
8378 (dwarf2out_begin_prologue): Change initializations to match
8380 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
8381 from the vector length rather than searching for the end of a list.
8382 Use output_all_cfis.
8383 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
8385 2011-04-13 Nick Clifton <nickc@redhat.com>
8387 * config/rx/rx.md (movmemsi): Do not use this pattern when
8388 volatile pointers are involved.
8390 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
8392 * config/i386/sse.md (pinsrbits): Remove.
8393 (sse2_packsswb): Merge with *avx_packsswb.
8394 (sse2_packssdw): Merge with *avx_packssdw.
8395 (sse2_packuswb): Merge with *avx_packuswb.
8396 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
8397 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
8398 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
8399 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
8400 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
8401 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
8402 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
8403 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
8404 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
8405 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
8406 (sse2_loadld): Merge with *avx_loadld.
8407 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
8408 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
8409 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
8410 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
8411 (vec_concatv2di): Merge with *vec_concatv2di_avx.
8413 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
8415 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
8417 * print-tree.c (print_node): Likewise.
8418 * tree-inline.c (copy_tree_r): Likewise.
8419 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
8420 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
8421 instead of TS_COMMON.
8422 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
8423 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
8424 (copy_node_stat): Zero TREE_CHAIN only if necessary.
8425 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
8426 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
8428 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
8430 (TREE_CHAIN): Check for a TS_COMMON structure.
8431 (TREE_TYPE): Check for a TS_TYPED structure.
8433 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
8435 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
8436 cgraph_get_create_node instead of cgraph_node.
8438 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
8440 * c-parser.c (c_parser_initelt): Updated call to
8441 objc_build_message_expr.
8442 (c_parser_postfix_expression): Likewise.
8444 2011-04-12 Kai Tietz <ktietz@redhat.com>
8446 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
8447 MASK_MS_BITFIELD_LAYOUT bit.
8449 2011-04-12 Jakub Jelinek <jakub@redhat.com>
8451 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
8452 assert it is always true.
8453 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
8456 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
8458 * c-parser.c (c_lex_one_token): Rewritten conditional used when
8459 compiling Objective-C to be more efficient.
8461 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
8463 * opts-common.c (decode_cmdline_options_to_array): Remove variable
8466 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
8468 * recog.h, genoutput.c, optabs.c: Revert last patch.
8470 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8473 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
8475 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
8477 * recog.h (insn_operand_data): Add an "allows_mem" field.
8478 * genoutput.c (output_operand_data): Initialize it.
8479 * optabs.c (maybe_legitimize_operand_same_code): New function.
8480 (maybe_legitimize_operand): Use it when matching the original
8483 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
8485 * genpreds.c (process_define_predicate): Move most processing
8486 to gensupport.c. Continue to validate the expression.
8487 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
8488 (process_define_predicate): Move processing to gensupport.c.
8489 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
8490 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
8491 (compute_predicate_codes): Moved from genrecog.c. Add lineno
8493 (valid_predicate_name_p): New function, split out from old
8494 genpreds.c:process_define_predicate.
8495 (process_define_predicate): New function, combining code from
8496 old genpreds.c and genrecog.c functions.
8497 (process_rtx): Call it for DEFINE_PREDICATE and
8498 DEFINE_SPECIAL_PREDICATE.
8500 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
8502 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
8503 size of a '%A' memory reference.
8504 (T_DREG, T_QREG): New neon_builtin_type_bits.
8505 (arm_init_neon_builtins): Assert that the load and store operands
8506 are neon_struct_operands.
8507 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
8508 (NEON_ARG_MEMORY): New builtin_arg.
8509 (neon_dereference_pointer): New function.
8510 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
8511 Handle NEON_ARG_MEMORY.
8512 (arm_expand_neon_builtin): Update after above interface changes.
8513 Use NEON_ARG_MEMORY for loads and stores.
8514 * config/arm/predicates.md (neon_struct_operand): New predicate.
8515 * config/arm/iterators.md (V_two_elem): Tweak formatting.
8516 (V_three_elem): Use BLKmode for accesses that have no associated mode.
8517 (V_four_elem): Tweak formatting.
8518 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
8519 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
8520 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
8521 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
8522 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
8523 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
8524 (neon_vst4<mode>): Replace pointer operand with a memory operand.
8525 Use %A in the output template.
8526 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
8527 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
8528 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
8529 the width of the memory access. Remove post-increment.
8530 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
8532 2011-04-12 Nick Clifton <nickc@redhat.com>
8534 * config/v850/v850.c (expand_prologue): Do not use the CALLT
8535 instruction for interrupt handlers if the target is the basic V850
8537 (expand_epilogue): Likewise.
8539 2011-04-12 Jakub Jelinek <jakub@redhat.com>
8541 PR rtl-optimization/48549
8542 * combine.c (propagate_for_debug): Also stop after BB_END of
8543 this_basic_block. Process LAST and just stop processing after it.
8544 (combine_instructions): If last_combined_insn has been deleted,
8545 set last_combined_insn to its PREV_INSN.
8547 2011-04-12 Richard Guenther <rguenther@suse.de>
8549 PR tree-optimization/46076
8550 * gimple.h (struct gimple_statement_call): Add fntype field.
8551 (gimple_call_fntype): Adjust.
8552 (gimple_call_set_fntype): New function.
8553 * gimple.c (gimple_build_call_1): Set the call function type.
8554 * gimplify.c (gimplify_call_expr): Preserve the function
8555 type the frontend used for the call.
8556 (gimplify_modify_expr): Likewise.
8557 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
8559 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
8561 * tree-ssa.c (useless_type_conversion_p): Function pointer
8562 conversions are useless.
8564 2011-04-12 Martin Jambor <mjambor@suse.cz>
8566 * cgraph.h (cgraph_node): Remove function declaration.
8567 (cgraph_create_node): Declare.
8568 (cgraph_get_create_node): Likewise.
8569 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
8570 Updated all callers.
8571 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
8572 the decl does not already exist. Call cgraph_get_create_node instead
8574 (cgraph_get_create_node): New function.
8575 (cgraph_same_body_alias): Update comment.
8576 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
8577 assert it does not return NULL.
8578 (cgraph_update_edges_for_call_stmt): Likewise.
8579 (cgraph_clone_edge): Likewise.
8580 (cgraph_create_virtual_clone): Likewise.
8581 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
8582 instead of cgraph_node.
8583 (cgraph_add_new_function): Call cgraph_create_node or
8584 cgraph_get_create_node instead of cgraph_node.
8585 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
8586 instead of cgraph_node.
8587 (record_eh_tables): Likewise.
8588 (mark_address): Likewise.
8589 (mark_load): Likewise.
8590 (build_cgraph_edges): Call cgraph_get_create_node instead
8592 (rebuild_cgraph_edges): Likewise.
8593 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
8594 instead of cgraph_node.
8595 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
8597 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
8598 cgraph_create_node instead of cgraph_node.
8599 * c-decl.c (finish_function): Call cgraph_get_create_node instead
8601 * lto-cgraph.c (input_node): Likewise.
8602 * lto-streamer-in.c (input_function): Likewise.
8603 * varasm.c (mark_decl_referenced): Likewise.
8604 (assemble_alias): Likewise.
8606 2011-04-12 Martin Jambor <mjambor@suse.cz>
8608 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
8609 instead of cgraph_node and assert it does not return NULL.
8610 * lto-streamer-in.c (lto_read_body): Likewise.
8611 * omp-low.c (new_omp_context): Likewise.
8612 (create_task_copyfn): Likewise.
8613 * tree-emutls.c (lower_emutls_function_body): Likewise.
8614 * matrix-reorg.c (transform_allocation_sites): Likewise.
8616 2011-04-12 Jakub Jelinek <jakub@redhat.com>
8619 * c-typeck.c (build_asm_expr): Error out on attempts to use
8620 void type outputs or inputs for constraints that allow reg or
8623 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
8624 Richard Earnshaw <rearnsha@arm.com>
8627 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
8628 to use sign-magnitude offsets. Reject unsupported unaligned
8629 cases. Add detailed description in comments.
8630 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
8631 condition from TARGET_32BIT to TARGET_ARM.
8633 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
8635 * tree.h (struct typed_tree): New.
8636 (struct tree_common): Include it instead of tree_base.
8637 (TREE_TYPE): Update for new location of type field.
8638 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
8639 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
8640 (union tree_node): Add typed field.
8641 * treestruct.def (TS_TYPED): New.
8642 * lto-streamer.c (check_handled_ts_structures): Handle it.
8643 * tree.c (MARK_TS_TYPED): New macro.
8644 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
8646 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
8648 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
8649 (force_nonfallthru): Do not alter the loop nest if no basic block
8652 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
8654 * config/i386/sse.md (VI): New mode iterator.
8656 (AVX256MODEI): Ditto.
8657 (AVXMODEF4P): Ditto.
8658 (avxvecpsmode): Ditto.
8659 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
8660 (sse2_andnot<mode>3): New expander.
8661 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
8662 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
8663 (<any_logic:code><mode>3): Use VI mode iterator.
8664 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
8665 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
8666 (*andnottf3): Handle AVX three-operand constraints.
8667 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
8669 2011-04-11 Joseph Myers <joseph@codesourcery.com>
8670 Robert Millan <rmh@gnu.org>
8672 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
8673 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
8674 GNU_USER_DYNAMIC_LINKER64): Define.
8675 (REG_NAME): Don't undefine.
8676 (MD_UNWIND_SUPPORT): Undefine.
8677 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
8678 (REG_NAME): Don't undefine.
8679 (MD_UNWIND_SUPPORT): Undefine.
8680 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
8682 2011-04-11 Joseph Myers <joseph@codesourcery.com>
8684 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
8685 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
8687 2011-04-11 Xinliang David Li <davidxl@google.com>
8689 * value-profile.c (check_ic_target): New function.
8690 (gimple_ic_transform): Sanity check indirect call target.
8691 * gimple-low.c (gimple_check_call_args): Interface change.
8692 (gimple_check_call_matching_types): New function.
8693 * tree-inline.c (tree_can_inline_p): Call new function.
8695 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
8697 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
8698 tree-pretty-print.h & realmpfr.h.
8700 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
8703 * ira.c (setup_pressure_classes): Fix typo in loop condition.
8704 (setup_allocno_and_important_classes): Ditto.
8706 2011-04-11 Joseph Myers <joseph@codesourcery.com>
8708 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
8709 GNU_USER_DYNAMIC_LINKER.
8710 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
8711 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8712 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
8713 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
8714 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
8715 GNU_USER_TARGET_OS_CPP_BUILTINS.
8716 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
8717 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8718 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
8719 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8720 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
8721 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
8722 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
8723 GNU_USER_TARGET_OS_CPP_BUILTINS.
8724 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8725 GNU_USER_DYNAMIC_LINKER.
8726 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
8727 GNU_USER_TARGET_OS_CPP_BUILTINS.
8728 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
8729 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8730 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
8731 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8732 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
8733 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
8734 GNU_USER_DYNAMIC_LINKER64): Remove.
8735 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
8736 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8737 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8738 GNU_USER_DYNAMIC_LINKER.
8739 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
8740 GNU_USER_TARGET_OS_CPP_BUILTINS.
8741 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
8742 GNU_USER_TARGET_OS_CPP_BUILTINS.
8743 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
8744 to GNU_USER_TARGET_OS_CPP_BUILTINS.
8745 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
8746 GNU_USER_TARGET_OS_CPP_BUILTINS.
8747 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
8748 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
8749 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
8750 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
8751 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8752 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8753 GNU_USER_DYNAMIC_LINKER.
8754 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
8755 GNU_USER_TARGET_OS_CPP_BUILTINS.
8756 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
8757 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8758 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8759 GNU_USER_DYNAMIC_LINKER.
8760 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
8761 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8762 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
8763 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8764 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8765 GNU_USER_DYNAMIC_LINKER.
8766 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
8767 GNU_USER_DYNAMIC_LINKERN32.
8768 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
8769 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
8770 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
8771 GNU_USER_DYNAMIC_LINKER32.
8772 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
8773 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8774 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8775 GNU_USER_DYNAMIC_LINKER.
8776 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
8777 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8778 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
8779 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8780 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
8781 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
8782 GNU_USER_DYNAMIC_LINKER32.
8783 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
8784 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
8785 GNU_USER_DYNAMIC_LINKER.
8786 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
8787 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8788 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
8789 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
8790 GNU_USER_DYNAMIC_LINKER64.
8791 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
8792 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8793 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8794 GNU_USER_DYNAMIC_LINKER.
8795 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
8796 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8797 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8798 GNU_USER_DYNAMIC_LINKER.
8799 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
8800 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8801 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
8802 GNU_USER_DYNAMIC_LINKER32.
8803 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
8804 GNU_USER_DYNAMIC_LINKER64.
8805 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
8806 GNU_USER_DYNAMIC_LINKER64.
8807 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
8808 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8809 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
8810 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8811 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
8813 2011-04-11 Joseph Myers <joseph@codesourcery.com>
8815 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
8816 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
8817 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
8818 GNU_USER_DYNAMIC_LINKER.
8819 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
8820 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
8821 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
8822 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
8823 GNU_USER_DYNAMIC_LINKER64.
8824 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
8825 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
8826 GNU_USER_LINK_EMULATION.
8827 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
8828 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
8829 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
8830 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
8831 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
8832 CPP_SPEC, CC1_SPEC): Remove.
8833 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
8834 (GNU_USER_DYNAMIC_LINKER): Define.
8835 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
8836 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
8837 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
8838 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
8839 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
8840 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
8841 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
8842 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
8843 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
8844 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
8845 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
8846 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
8847 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
8848 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
8849 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
8850 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
8851 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
8852 GNU_USER_DYNAMIC_LINKER.
8853 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
8854 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
8855 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
8856 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
8857 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
8858 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
8859 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
8860 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
8861 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
8862 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
8864 2011-04-11 Kai Tietz <ktietz@redhat.com>
8868 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
8869 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
8871 (ix86_is_msabi_thiscall): Removed.
8872 (ix86_is_type_thiscall): Likewise.
8873 (ix86_get_callcvt): New function.
8874 (ix86_comp_type_attributes): Simplify check.
8875 (ix86_function_regparm): Use ix86_get_callcvt for calling
8876 convention attribute checks.
8877 (ix86_return_pops_args): Likewise.
8878 (ix86_static_chain): Likewise.
8879 (x86_this_parameter): Likewise.
8880 (x86_output_mi_thunk): Likewise.
8881 (ix86_function_type_abi): Optimize check for types without attributes.
8882 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
8883 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
8884 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
8886 (IX86_BASE_CALLCVT): Helper macro.
8887 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
8888 Use ix86_get_callcvt for calling convention attribute checks and avoid
8889 symbol-decoration for stdcall in TARGET_RTD case.
8890 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
8892 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
8895 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
8897 * config/i386/sse.md (VI_128): New mode iterator.
8898 (VI12_128): Rename from SSEMODE12.
8899 (VI14_128): Rename from SSEMODE14.
8900 (VI124_128): New mode iterator.
8901 (VI24_128): Rename from SSEMODE248.
8902 (VI248_128): Rename from SSEMODE248.
8903 (SSEMODE124C8): Remove.
8904 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
8905 (*sse2_<plusminus_insn><mode>3): Merge with
8906 *avx_<plusminus_insn><mode>3.
8907 (*mulv8hi3): Merge with *avx_mulv8hi3.
8908 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
8909 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
8910 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
8911 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
8912 (ashr<mode>3): Merge with *avx_ashr<mode>3.
8913 (lshr<mode>3): Merge with *avx_lshr<mode>3.
8914 (ashl<mode>3): Merge with *avx_ashl<mode>3.
8915 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
8916 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
8917 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8918 (*<smaxmin:code>v8hi3): Ditto.
8919 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
8920 (*<smaxmin:code>v16qi3): Ditto.
8921 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
8922 (*sse2_eq<mode>3): Ditto.
8923 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
8924 (*sse2_gt<mode>3): Ditto.
8925 (vcondv2di): Split out of vcond<mode>.
8926 (vconduv2di): Split out of vcondu<mode>.
8928 2011-04-11 Richard Guenther <rguenther@suse.de>
8930 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
8931 before calling tree_low_cst.
8933 2011-04-11 Richard Guenther <rguenther@suse.de>
8935 * stor-layout.c (layout_type): Compute all array index size operations
8936 in the original type.
8937 (initialize_sizetypes): Add comment.
8938 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
8940 2011-04-11 Joseph Myers <joseph@codesourcery.com>
8942 * common.opt (Tbss=, Tdata=, Ttext=): New options.
8944 2011-04-11 Martin Jambor <mjambor@suse.cz>
8946 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
8947 of cgraph_node, handle NULL return value.
8948 (cgraph_global_info): Likewise.
8949 (cgraph_rtl_info): Likewise.
8950 * tree-inline.c (estimate_num_insns): Likewise.
8951 * gimplify.c (unshare_body): Likewise.
8952 (unvisit_body): Likewise.
8953 (gimplify_body): Likewise.
8954 * predict.c (optimize_function_for_size_p): Likewise.
8955 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
8956 (call_may_clobber_ref_p_1): Likewise.
8957 * varasm.c (function_section_1): Likewise.
8958 (assemble_start_function): Likewise.
8960 2011-04-11 Martin Jambor <mjambor@suse.cz>
8962 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
8964 * final.c (rest_of_clean_state): Likewise.
8965 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
8966 * passes.c (pass_init_dump_file): Likewise.
8967 (execute_all_ipa_transforms): Likewise.
8968 (function_called_by_processed_nodes_p): Likewise.
8969 * predict.c (maybe_hot_frequency_p): Likewise.
8970 (probably_never_executed_bb_p): Likewise.
8971 (compute_function_frequency): Likewise.
8972 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
8973 (unnest_nesting_tree_1): Likewise.
8974 (lower_nested_functions): Likewise.
8975 * tree-optimize.c (execute_fixup_cfg): Likewise.
8976 (tree_rest_of_compilation): Likewise.
8977 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
8978 * tree-sra.c (ipa_early_sra): Likewise.
8979 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
8980 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
8981 * ipa.c (record_cdtor_fn): Likewise.
8982 * ipa-inline.c (cgraph_early_inlining): Likewise.
8983 (compute_inline_parameters_for_current): Likewise.
8984 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
8985 * ipa-pure-const.c (local_pure_const): Likewise.
8986 * ipa-split.c (split_function): Likewise.
8987 (execute_split_functions): Likewise.
8988 * cgraphbuild.c (build_cgraph_edges): Likewise.
8989 (rebuild_cgraph_edges): Likewise.
8990 (cgraph_rebuild_references): Likewise.
8991 (remove_cgraph_callee_edges): Likewise.
8992 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
8993 (verify_cgraph_node): Likewise.
8994 (cgraph_analyze_functions): Likewise.
8995 (cgraph_preserve_function_body_p): Likewise.
8996 (save_inline_function_body): Likewise.
8997 (save_inline_function_body): Likewise.
8998 * tree-inline.c (copy_bb): Likewise.
8999 (optimize_inline_calls): Likewise.
9001 2011-04-11 Martin Jambor <mjambor@suse.cz>
9003 PR tree-optimization/48195
9004 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
9005 ipa_check_create_edge_args.
9006 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
9007 ipa_check_create_edge_args.
9008 * ipa-inline.c (inline_generate_summary): Do not call
9009 ipa_check_create_node_params and ipa_check_create_edge_args.
9010 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
9011 ipa_check_create_edge_args.
9013 2011-04-09 Anatoly Sokolov <aesok@post.ru>
9015 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
9017 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
9018 * function.c (record_hard_reg_sets): Likewise.
9019 * ira.c (compute_regs_asm_clobbered): Likewise.
9020 * sched-deps.c (sched_analyze_1): Likewise.
9021 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
9023 2011-04-09 Xinliang David Li <davidxl@google.com>
9025 PR tree-optimization/PR48484
9026 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
9027 has_valid_pred lazily
9029 2011-04-09 Duncan Sands <baldrick@free.fr>
9031 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
9033 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
9035 * combine.c (combine_validate_cost): Adjust comments. Set registered
9036 cost of I0 to zero at the end, if any.
9038 2011-04-08 Xinliang David Li <davidxl@google.com>
9040 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
9041 to insane profile data.
9043 2011-04-08 Xinliang David Li <davidxl@google.com>
9045 * ipa-cp.c (ipcp_update_profiling): Correct
9046 negative scale factor due to insane profile data.
9048 2011-04-08 Xinliang David Li <davidxl@google.com>
9050 * final.c (dump_basic_block_info): New function.
9051 (final): Dump basic block.
9052 (final_scan_insn): Remove old dump.
9054 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
9057 * config.gcc (i386-*-freebsd): Disable unwind table generation for
9060 2011-04-08 Michael Matz <matz@suse.de>
9063 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
9065 (rebuild_jump_labels): Call rebuild_jump_labels_1.
9066 * rtl.h (rebuild_jump_labels_chain): Declare.
9067 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
9068 insns inserted on edges.
9070 2011-04-08 Joseph Myers <joseph@codesourcery.com>
9072 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
9073 * config/arm/arm-arches.def: New.
9074 * config/arm/arm-opts.h: New.
9075 * config/arm/genopt.sh: New.
9076 * config/arm/arm-tables.opt: New (generated).
9077 * config/arm/arm.c (arm_handle_option, arm_target_help,
9078 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
9079 (all_architectures): Get most table contents from arm-arches.def.
9080 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
9081 arm_selected_tune here.
9082 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
9083 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
9084 (march=, mcpu=, mtune=): Use Enum and Var.
9085 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
9086 (arm.o): Update dependencies.
9088 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
9090 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
9092 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
9093 (write_typed_alloc_defns): Likewise.
9094 (main): Calls write_typed_alloc_defns with output_header.
9096 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
9099 * ira-color.c (setup_profitable_hard_regs): Add comments.
9100 Don't take prohibited hard regs into account.
9101 (setup_conflict_profitable_regs): Rename to
9102 get_conflict_profitable_regs.
9103 (check_hard_reg_p): Check prohibited hard regs.
9105 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
9107 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
9108 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
9109 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
9111 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9114 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
9115 move from floating point to shift amount register.
9116 (emit_move_sequence): Remove secondary reload support for floating
9117 point to shift amount amount register copies.
9118 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
9119 amount register copies.
9120 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
9121 register, return false if mode isn't a scalar integer mode.
9122 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
9124 2011-04-08 Richard Guenther <rguenther@suse.de>
9126 * gimple.c (gimple_call_flags): Remove kludge.
9128 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
9130 * sel-sched.c (sel_region_init): Move call to
9131 sel_setup_region_sched_flags after setup_current_loop_nest.
9133 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
9135 PR rtl-optimization/48272
9136 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
9137 init_insn_reg_pressure_info. Adjust a caller.
9138 * sched-int.h (init_insn_reg_pressure_info): Declare.
9139 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
9140 when sched-pressure is enabled.
9142 2011-04-08 Richard Guenther <rguenther@suse.de>
9144 * gimple.c (gimple_set_modified): Do not queue calls to
9145 MODIFIED_NORETURN_CALLS here ...
9146 * tree-ssa-operands.c (update_stmt_operands): ... but here.
9148 2011-04-08 Richard Guenther <rguenther@suse.de>
9151 * toplev.c (lang_dependent_init): Do not open asm_out_file
9152 in WPA mode, nor perform debug machinery initialization.
9153 (finalize): Do not unlink asm_out_file in WPA mode.
9155 2011-04-08 Richard Guenther <rguenther@suse.de>
9157 * gimple.h (gimple_call_fntype): New function.
9158 (gimple_call_return_type): Use it.
9159 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
9160 * gimple-low.c (gimple_check_call_args): Likewise.
9161 * gimple.c (gimple_call_flags): Likewise.
9162 (gimple_call_arg_flags): Likewise.
9163 (gimple_call_return_flags): Likewise.
9164 * tree-cfg.c (verify_gimple_call): Likewise.
9165 (do_warn_unused_result): Likewise.
9166 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
9167 * value-prof.c (gimple_ic_transform): Fix fndecl check.
9169 2011-04-08 Dmitry Melnik <dm@ispras.ru>
9171 PR rtl-optimization/48235
9172 * sel-sched.c (code_motion_process_successors): Recompute the last
9173 insn in basic block if control flow changed.
9174 (code_motion_path_driver): Ditto. Recompute the first insn as well.
9175 Update condition for ilist_remove.
9177 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
9179 PR rtl-optimization/48302
9180 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
9181 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
9182 it to record added preheader blocks.
9183 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
9184 on to sel_add_loop_preheaders.
9185 (sel_region_init): Move call to setup_current_loop_nest after
9188 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
9191 * cfgloop.h (loop_has_exit_edges): New helper.
9192 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
9194 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
9195 that have no exit edges.
9197 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
9199 PR rtl-optimization/48442
9200 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
9201 all callers. Adjust assert.
9203 2011-04-08 Jakub Jelinek <jakub@redhat.com>
9205 PR tree-optimization/48377
9206 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
9207 is_packed to true even for types with smaller TYPE_ALIGN than
9210 2011-04-08 Richard Guenther <rguenther@suse.de>
9213 * doc/tm.texi: Re-generate.
9215 2011-04-08 Wei Guozhi <carrot@google.com>
9218 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
9219 * config/arm/arm.c (arm_attr_length_push_multi): New function.
9220 * config/arm/arm.md (*push_multi): Change the length computation to
9223 2011-04-08 Anatoly Sokolov <aesok@post.ru>
9225 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
9226 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
9227 * doc/tm.texi: Regenerate.
9228 * system.h (ASM_OUTPUT_BSS): Poison.
9229 * varasm.c (asm_output_bss): Remove function.
9230 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
9232 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
9233 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
9234 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
9235 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
9237 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
9239 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
9241 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
9243 2011-04-07 Joseph Myers <joseph@codesourcery.com>
9245 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
9248 2011-04-07 Joseph Myers <joseph@codesourcery.com>
9250 * config/m68k/m68k.c (m68k_handle_option): Don't handle
9251 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
9252 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
9254 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
9255 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
9256 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
9257 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
9258 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
9259 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
9260 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
9261 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
9262 options. Don't map other m68k options manually. Don't handle
9263 old-style options as canonical.
9264 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
9265 * doc/install.texi (m68k-*-*): Document binutils version requirement.
9267 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
9269 * basic-block.h (force_nonfallthru): Move to...
9270 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
9271 (force_nonfallthru): ...here.
9272 * cfghooks.c (force_nonfallthru): New function.
9273 * cfgrtl.c (force_nonfallthru): Rename into...
9274 (rtl_force_nonfallthru): ...this.
9275 (commit_one_edge_insertion): Do not set AUX field.
9276 (commit_edge_insertions): Do not discover new basic blocks.
9277 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
9278 (cfg_layout_rtl_cfg_hooks): Likewise.
9279 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
9280 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
9281 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
9283 2011-04-07 Anatoly Sokolov <aesok@post.ru>
9285 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
9288 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
9290 * config/i386/sse.md: Update copyright year.
9291 (avxcvtvecmode): Remove.
9292 (sse_movhlps): Merge with *avx_movhlps.
9293 (sse_movlhps): Merge with *avx_movlhps.
9294 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
9295 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
9296 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
9297 (sse_loadhps): Merge with *avx_loadhps.
9298 (sse_storelps): Merge with *avx_storelps.
9299 (sse_loadlps): Merge with *avx_loadlps.
9300 (sse_movss): Merge with *avx_movss.
9301 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
9302 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
9303 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
9304 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
9305 (vec_set<mode>_0): Ditto.
9306 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
9307 (sse4_1_insertps): Merge with *avx_insertps.
9308 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
9309 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
9310 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
9311 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
9312 (sse2_storehpd): Merge with *avx_storehpd.
9313 (sse2_loadhpd): Merge with *avx_loadhpd.
9314 (sse2_loadlpd): Merge with *avx_loadlpd.
9315 (sse2_movsd): Merge with *avx_movsd.
9316 (*vec_concatv2df): Merge with *vec_concatv2df.
9318 2011-04-07 Jakub Jelinek <jakub@redhat.com>
9321 * combine.c (combine_instructions): Add last_combined_insn,
9322 update it if insn is after it, pass it to all try_combine calls.
9323 (try_combine): Add last_combined_insn parameter, pass it instead of
9324 i3 to propagate_for_debug.
9326 2011-04-07 Nick Clifton <nickc@redhat.com>
9328 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
9329 to handle MDR <-> data register transfers.
9330 (movhi_internal): Likewise.
9332 2011-04-07 Alan Modra <amodra@gmail.com>
9334 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
9335 previous stack info.
9337 2011-04-07 Tom de Vries <tom@codesourcery.com>
9340 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
9341 flow_find_cross_jump. Swap variables to implement backward replacement.
9342 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
9344 2011-04-07 Tom de Vries <tom@codesourcery.com>
9347 * cfgcleanup.c (walk_to_nondebug_insn): New function.
9348 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
9350 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
9351 src1 or src2. Redirect edges to the last basic block. Update
9352 frequency and count on multiple basic blocks in case of fallthru.
9354 2011-04-07 Tom de Vries <tom@codesourcery.com>
9357 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
9359 (old_insns_match_p): Change return type. Replace return false/true
9360 with return dir_none/dir_both. Use can_replace_by.
9361 (flow_find_cross_jump): Add dir_p parameter. Init replacement
9362 direction from dir_p. Register replacement direction in dir, last_dir
9363 and afterlast_dir. Handle new return type of old_insns_match_p using
9364 merge_dir. Return replacement direction in dir_p.
9365 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
9366 return type of old_insns_match_p.
9367 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
9368 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
9369 flow_find_cross_jump.
9370 * basic-block.h (enum replace_direction): New type.
9371 (flow_find_cross_jump): Add parameter to declaration.
9373 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
9375 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
9376 (AVXMODEDCVTPS2DQ): Ditto.
9377 (VEC_FLOAT_MODE): Ditto.
9378 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
9379 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
9380 (<any_logic:code><mode>3): Use VF mode iterator.
9381 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
9382 Use VF mode iterator.
9383 (copysign<mode>3): Use VF mode iterator.
9384 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
9385 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
9386 (*<any_logic:code><MODEF:mode>3): Merge with
9387 *avx_<any_logic:code><MODEF:mode>3.
9388 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
9389 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
9390 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
9391 (avx_cvtdq2ps<avxmodesuffix>): Remove.
9392 (sse2_cvtdq2ps): Use %v modifier.
9393 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
9394 (avx_cvtps2dq<avxmodesuffix>): Remove.
9395 (sse2_cvtps2dq): Use %v modifier.
9396 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
9397 (avx_cvttps2dq<avxmodesuffix>): Remove.
9398 (sse2_cvttps2dq): Use %v modifier.
9399 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
9400 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
9401 (sse2_cvtsd2siq): Fix insn template.
9402 (sse2_cvtsd2siq_2): Ditto.
9403 (sse2_cvttsd2siq): Ditto.
9404 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
9405 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
9407 2011-04-06 Joseph Myers <joseph@codesourcery.com>
9409 * gcov-io.c: Use GCC Runtime Library Exception.
9411 2011-04-06 Jakub Jelinek <jakub@redhat.com>
9414 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
9415 as base_reg whatever register reg has been eliminated to, instead
9416 of hardcoding STACK_POINTER_REGNUM.
9418 2011-04-06 Joseph Myers <joseph@codesourcery.com>
9420 * doc/tm.texi.in: Document C target hooks as separate from general
9422 * doc/tm.texi: Regenerate.
9423 * genhooks.c (struct hook_desc): Add docname field.
9424 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
9426 (hook_array): Include c-target.def.
9427 (emit_documentation): Use docname field in output.
9428 (emit_init_macros): Take docname argument. Only emit definitions
9429 for hooks matching docname.
9430 (main): Expect additional arguments in all cases. Pass argument
9431 to emit_init_macros.
9432 * target.def: Move initial macro definitions and comments to
9433 target-hooks-macros.h.
9434 (gcc_targetcm): Move to c-family/c-target.def.
9435 * target.h (targetcm): Move declaration to c-family/c-target.h.
9436 * targhooks.c (default_handle_c_option): Move to
9438 * targhooks.h (default_handle_c_option): Move declaration to
9439 c-family/c-common.h.
9440 * target-hooks-macros.h: New file.
9441 * config.gcc (target_has_targetcm): Define and use to add to
9442 c_target_objs and cxx_target_objs.
9443 * config/default-c.c: New file.
9444 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
9445 of target.h and target-def.h.
9446 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
9447 (darwin_objc_construct_string, darwin_cfstring_ref_p,
9448 darwin_check_cfstring_format_arg): Make static.
9449 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
9450 TARGET_STRING_OBJECT_REF_TYPE_P,
9451 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
9452 * config/darwin-protos.h (darwin_objc_construct_string,
9453 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
9455 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
9456 TARGET_STRING_OBJECT_REF_TYPE_P,
9457 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
9458 * config/t-darwin (darwin-c.o): Update dependencies.
9459 * system.h (TARGET_HAS_TARGETCM): Poison.
9460 * Makefile.in (TARGET_H): Update.
9461 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
9462 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
9463 (default-c.o): New target.
9464 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
9465 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
9466 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
9468 (build/genhooks.o): Update dependencies.
9470 2011-04-06 Richard Guenther <rguenther@suse.de>
9472 * ipa-inline.c (enum inlining_mode): Remove.
9473 (cgraph_flatten): Use some other token.
9474 (cgraph_edge_early_inlinable_p): New function, split out from ...
9475 (cgraph_perform_always_inlining): New function, split out from ...
9476 (cgraph_decide_inlining_incrementally): ... here.
9477 (cgraph_mark_inline_edge): Adjust.
9478 (cgraph_early_inlining): Re-structure.
9479 (pass_early_inline): Require SSA form.
9481 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
9482 Julian Brown <julian@codesourcery.com>
9483 Mark Shinwell <shinwell@codesourcery.com>
9485 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
9486 LO_REGS only for Thumb-1.
9487 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
9488 be used in short instructions when optimising for size on Thumb-2.
9490 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
9492 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
9493 associated with user returns to be preserved.
9495 2011-04-06 Tristan Gingold <gingold@adacore.com>
9497 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
9498 symbol_queue_size, DBXOUT_DECR_NESTING,
9499 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
9500 if XCOFF_DEBUGGING_INFO.
9502 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
9504 * config/i386/i386.md (attribute isa): New.
9505 (attribute enabled): New.
9506 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
9507 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
9508 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
9509 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
9510 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
9511 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
9512 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
9513 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
9515 * config/i386/sse.md (VF): New mode iterator.
9519 (SSEMODEF4): Remove.
9520 (attribute sse): Handle V8SF and V4DF modes.
9521 (<absneg:code><mode>2): Use VF mode iterator.
9522 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
9524 (<plusminus_insn><mode>3): Use VF mode iterator.
9525 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
9526 Use VF mode iterator.
9527 (<sse>_vm<plusminus_insn><mode>3): Merge with
9528 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
9529 (mul<mode>3): Use VF mode iterator.
9530 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
9531 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
9533 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
9534 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
9535 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
9536 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
9538 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
9539 Use VF1 mode iterator.
9540 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
9541 (sqrt<VF2:mode>2): New expander.
9542 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
9543 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
9544 and sqrtv2df2. Use VF mode iterator.
9545 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
9547 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
9548 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
9549 Use VF1 mode iterator.
9550 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
9551 (<smaxmin:code><mode>3): Use VF mode iterator.
9552 (*<smaxmin:code><mode>3_finite): Merge with
9553 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
9554 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
9555 (<sse>_vm<smaxmin:code><mode>2): Merge with
9556 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
9557 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
9559 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
9561 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
9562 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
9563 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
9564 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
9565 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
9567 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
9568 Use VF_128 mode iterator.
9569 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
9571 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
9572 VF_128 mode iterator.
9573 (vcond<mode>): Use VF mode iterator.
9574 * config/i386/predicates.md (sse_comparison_operator): Merge with
9575 avx_comparison_float_operator. Do not declare as special_predicate.
9576 * config/i386/i386.c (struct builtin_description): Update for renamed
9578 (ix86_expand_args_builtin): Ditto.
9579 (ix86_expand_sse_compare_mask): Ditto.
9581 2011-04-06 Richard Guenther <rguenther@suse.de>
9583 * tree-inline.c (estimate_num_insns): For calls simply account
9584 for all passed arguments and a used return value.
9586 2011-04-06 Richard Guenther <rguenther@suse.de>
9588 PR tree-optimization/47663
9589 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
9590 call_stmt_time fields.
9591 (cgraph_edge_inlinable_p): Declare.
9592 (cgraph_edge_recursive_p): New inline function.
9593 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
9594 (cgraph_clone_edge): Copy it.
9595 * ipa-inline.c (cgraph_estimate_edge_time): New function.
9596 Account for call stmt time.
9597 (cgraph_estimate_time_after_inlining): Take edge argument.
9598 (cgraph_estimate_edge_growth): Account call stmt size.
9599 (cgraph_estimate_size_after_inlining): Take edge argument.
9600 (cgraph_mark_inline_edge): Adjust.
9601 (cgraph_check_inline_limits): Likewise.
9602 (cgraph_recursive_inlining_p): Remove.
9603 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
9604 (cgraph_decide_recursive_inlining): Take edge argument and
9606 (cgraph_decide_inlining_of_small_functions): Do not avoid
9607 diags for recursive inlining here.
9608 (cgraph_flatten): Adjust.
9609 (cgraph_decide_inlining_incrementally): Likewise.
9610 (estimate_function_body_sizes): Remove call cost handling.
9611 (compute_inline_parameters): Initialize caller edge call costs.
9612 (cgraph_estimate_edge_growth): New function.
9613 (cgraph_estimate_growth): Use it.
9614 (cgraph_edge_badness): Likewise.
9615 (cgraph_check_inline_limits): Take an edge argument.
9616 (cgraph_decide_inlining_of_small_functions): Adjust.
9617 (cgraph_decide_inlining): Likewise.
9618 * tree-inline.c (estimate_num_insns): Only account for call
9619 return value if it is used.
9620 (expand_call_inline): Avoid diagnostics on recursive inline
9622 * lto-cgraph.c (lto_output_edge): Output edge call costs.
9623 (input_edge): Input edge call costs.
9625 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9627 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
9629 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
9631 * doc/invoke.texi (Spec Files): Fix typo.
9633 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
9635 * profile.c (branch_prob): Move declaration of local variable. Remove
9636 obsolete ??? comment. Expand the location explicitly instead of using
9637 the LOCATION_FILE and LOCATION_LINE macros.
9639 2011-04-06 Wei Guozhi <carrot@google.com>
9642 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
9643 (arm_cond_branch): Likewise.
9644 (arm_cond_branch_reversed): Likewise.
9645 (arm_jump): Likewise.
9646 (push_multi): Likewise.
9647 * config/arm/constraints.md (Py): New constraint.
9649 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9652 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
9654 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
9655 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
9656 #ifdef DBX_DEBUGGING_INFO.
9658 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
9661 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
9662 if old and new states differ.
9664 2011-04-05 Joseph Myers <joseph@codesourcery.com>
9666 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
9667 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
9668 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
9669 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
9670 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
9672 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
9673 ColdFire options to -mcpu= options.
9675 2011-04-05 Jeff Law <law@redhat.com>
9677 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
9678 check if BB is a successor of LOOP->header and return
9679 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
9681 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
9683 * cprop.c (struct reg_use): Remove.
9684 (reg_use_table): Make an array of RTX.
9685 (find_used_regs, constprop_register, local_cprop_pass,
9686 bypass_block): Simplify users of reg_use_table.
9687 (cprop_insn): Likewise. Iterate if copy propagation succeeded
9688 on one of the uses found by find_used_regs.
9690 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9693 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
9696 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9698 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
9700 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
9702 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
9705 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
9707 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9709 * combine.c: Include obstack.h.
9710 (struct insn_link): Define.
9711 (uid_log_links): Adjust type.
9712 (FOR_EACH_LOG_LINK): New macro.
9713 (insn_link_obstack): Declare.
9714 (alloc_insn_link): Define.
9715 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
9716 type of link variables.
9717 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
9718 (try_combine, record_promoted_values, distribute_notes): Likewise.
9719 (distribute_links): Likewise. Tweak prototype.
9720 (clear_log_links): Delete.
9721 (adjust_for_new_dest): Call alloc_insn_link.
9722 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
9724 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9726 * gcse.c (modify_mem_list): Convert to an array of VECs.
9727 (canon_modify_mem_list, compute_transp): Tweak formatting.
9728 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
9729 (load_killed_in_block_p): Likewise.
9730 (record_last_mem_set_info): Likewise.
9731 (clear_modify_mem_tables): Likewise.
9733 2011-04-05 Tom de Vries <tom@codesourcery.com>
9736 * function.c (emit_use_return_register_into_block): Only define if
9739 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
9741 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
9743 2011-04-05 Joseph Myers <joseph@codesourcery.com>
9745 * config/rx/rx-opts.h: New.
9746 * config/rx/rx.c (rx_cpu_type): Remove.
9747 (rx_handle_option): Don't assert that global structures are in
9748 use. Access variables via opts pointer. Defer most handling of
9749 OPT_mint_register_. Use error_at.
9750 (rx_option_override): Handle deferred OPT_mint_register_ here.
9751 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
9752 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
9753 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
9754 (rx_cpu_types): New Enum and EnumValue entries.
9755 (mint-register=): Use Defer and use Var accordingly.
9757 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9759 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
9760 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
9761 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
9763 (debug_free_queue, debug_nesting, symbol_queue_index):
9765 * dbxout.c: ...to here. Make static.
9767 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9769 * gcse.c (modify_pair): Define. Define a VEC of it.
9770 (canon_modify_mem_list): Convert to an array of VECs.
9771 (free_insn_expr_list_list): Delete.
9772 (clear_modify_mem_tables): Call VEC_free instead.
9773 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
9774 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
9775 (canon_list_insert, compute_transp): Likewise.
9777 2011-04-05 Tom de Vries <tom@codesourcery.com>
9780 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
9783 2011-04-05 Tom de Vries <tom@codesourcery.com>
9786 * function.c (emit_use_return_register_into_block): New function.
9787 (thread_prologue_and_epilogue_insns): Use
9788 emit_use_return_register_into_block.
9790 2011-04-05 Tom de Vries <tom@codesourcery.com>
9793 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
9796 2011-04-05 Tom de Vries <tom@codesourcery.com>
9798 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
9800 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
9802 * config/arm/arm.md (define_constants for unspec): Replace with
9804 (define_constants for unspecv): Replace with define_c_enum.
9805 * config/arm/neon.md (define_constants for unspec): Replace with
9808 2011-04-04 Richard Henderson <rth@redhat.com>
9811 * dwarf2out.c (output_line_info): Always emit line info from
9812 at least one section.
9813 (dwarf2out_init): Create text_section_line_info here ...
9814 (set_cur_line_info_table): ... not here.
9816 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
9819 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
9822 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
9824 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
9826 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
9827 (expr_equiv_p): Remove.
9828 (insert_set_in_table): Look at <dest, src> pair instead of expr.
9829 (hash_scan_set): Update call to insert_set_in_table.
9830 (dump_hash_table): Dump <dest, src> pair.
9831 (lookup_set): Simplify. Lookup <dest, src> pair.
9832 (compute_transp): Remove, fold heavily simplified code into...
9833 (compute_local_properties): ...here. Expect COMP and TRANSP
9835 (find_avail_set): Take set directly from struct expr.
9836 (find_bypass-set): Likewise.
9837 (bypass_block): Likewise.
9838 (cprop_insn): Likewise. Remove redundant INSN_P test.
9840 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
9841 checks on form of COND from find_implicit_sets to here.
9842 (find_implicit_sets): Cleanup control flow. Split critical edges
9843 if it exposes implicit sets. Allocate/resize implicit_sets as
9845 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
9846 changed something. Run df_analyze after find_implicit_sets if any
9847 edges were split. Do not allocate implicit_sets here.
9849 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
9850 (gcse_obstack): Renamed to cprop_obstack.
9851 (GNEW, GNEWVEC, GNEWVAR): Remove.
9853 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
9854 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
9855 (gcse_alloc): Likewise, and rename to cprop_alloc.
9856 (alloc_gcse_men, free_gcse_mem): Remove.
9857 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
9858 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
9859 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
9861 * cprop.c (oprs_not_set_p): Remove.
9862 (mark_set, mark_clobber): Remove.
9863 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
9864 (reg_not_set_p): New function.
9865 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
9866 (cprop_insn): Likewise.
9867 (cprop_jump): Use FOR_EACH_EDGE.
9869 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
9872 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
9873 (rank_for_schedule): Use scheduled_insns vector instead of
9874 last_scheduled_insn.
9875 (ok_for_early_queue_removal): Likewise.
9876 (queue_to_ready): Search forward in nonscheduled_insns_begin if
9878 (choose_ready): Likewise.
9879 (commit_schedule): Use VEC_iterate.
9880 (schedule_block): Initialize nonscheduled_insns_begin. If we have
9881 a dbg_cnt, use it and ensure the first insn is in the ready list.
9882 (haifa_sched_init): Allocate scheduled_insns.
9883 (sched_extend_ready_list): Don't allocate it; reserve space.
9884 (haifa_sched_finish): Free it.
9886 2011-04-04 Joseph Myers <joseph@codesourcery.com>
9888 * optc-gen.awk: Always remove type from Variable entry before
9889 recording in var_seen.
9891 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
9893 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
9894 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
9895 call to tidy_fallthru_edges.
9897 2011-04-04 Joseph Myers <joseph@codesourcery.com>
9899 * doc/options.texi (ToLower): Document.
9900 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
9901 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
9902 * opts.h (cl_option): Add cl_tolower field.
9903 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
9904 arguments with lowercase strings.
9905 * config/rx/rx.opt (mcpu=): Add ToLower.
9906 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
9909 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
9911 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
9913 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
9915 * config/vax/vax.c: Include reload.h.
9917 2011-04-04 Anatoly Sokolov <aesok@post.ru>
9919 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
9920 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
9921 (sparc_preferred_reload_class): New function.
9923 2011-04-04 Jakub Jelinek <jakub@redhat.com>
9926 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
9927 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
9929 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
9931 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
9932 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
9934 2011-04-03 Anatoly Sokolov <aesok@post.ru>
9936 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
9937 (ASM_OUTPUT_ALIGNED_BSS): Define.
9939 2011-04-03 Michael Matz <matz@suse.de>
9941 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
9942 and next_slot members.
9943 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
9944 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
9945 (lto_streamer_cache_append): Declare.
9946 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
9947 unsigned index, remove offset parameter, ensure that we append
9948 or update existing entries.
9949 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
9950 parameter, update next_slot for append.
9951 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
9953 (lto_streamer_cache_insert_at): Likewise.
9954 (lto_streamer_cache_append): New function.
9955 (lto_streamer_cache_lookup): Use unsigned index.
9956 (lto_streamer_cache_get): Likewise.
9957 (lto_record_common_node): Don't test tree_node_can_be_shared.
9958 (preload_common_node): Adjust call to lto_streamer_cache_insert.
9959 (lto_streamer_cache_delete): Don't free offsets member.
9960 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
9961 (lto_output_string_with_length): Use lto_output_data_stream.
9962 (lto_output_tree_header): Remove ix parameter, don't write it.
9963 (lto_output_builtin_tree): Likewise.
9964 (lto_write_tree): Adjust callers to above, don't track and write
9965 offset, write unsigned index.
9966 (output_unreferenced_globals): Don't emit all global vars.
9967 (write_global_references): Use unsigned indices.
9968 (lto_output_decl_state_refs): Likewise.
9969 (write_symbol): Likewise.
9970 * lto-streamer-in.c (lto_input_chain): Move earlier.
9971 (input_function): Use unsigned index.
9972 (input_alias_pairs): Don't read and then ignore all global vars.
9973 (lto_materialize_tree): Remove ix_p parameter, don't read index,
9974 don't pass it back, use lto_streamer_cache_append.
9975 (lto_register_var_decl_in_symtab): Use unsigned index.
9976 (lto_register_function_decl_in_symtab): Likewise.
9977 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
9979 (lto_get_builtin_tree): Don't read index, use
9980 lto_streamer_cache_append.
9981 (lto_read_tree): Adjust call to lto_materialize_tree.
9983 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
9984 don't use function calls in arguments to MIN.
9986 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
9989 * gimple.c (gimple_type_leader_entry): Mark deletable.
9991 2011-04-03 Alan Modra <amodra@gmail.com>
9993 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
9995 2011-04-03 Michael Matz <matz@suse.de>
9997 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
9999 * tree.h (tree_decl_non_common.vindex): Adjust comment.
10001 2011-04-03 Michael Matz <matz@suse.de>
10003 * cgraphbuild.c (record_reference): Canonicalize constructor values.
10004 * gimple-fold.c (canonicalize_constructor_val): Accept being called
10005 without function context.
10006 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
10007 current_function_decl and cfun.
10009 2011-04-03 Michael Matz <matz@suse.de>
10011 * tree.c (decl_init_priority_insert): Don't create entry for
10013 (decl_fini_priority_insert): Ditto.
10014 (fields_compatible_p, find_compatible_field): Remove.
10015 * tree.h (fields_compatible_p, find_compatible_field): Remove.
10016 * gimple.c (gimple_compare_field_offset): Adjust block comment.
10018 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
10020 * combine.c (try_combine): Remove useless local variable.
10022 2011-04-03 Richard Guenther <rguenther@suse.de>
10023 Ira Rosen <ira.rosen@linaro.org>
10025 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
10026 non-variable offsets and compare the remaining bases of the two
10027 accesses instead of looking for exact same data-ref.
10029 2011-04-02 Kai Tietz <ktietz@redhat.com>
10032 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
10034 * i386.c (ix86_is_msabi_thiscall): New helper function.
10035 (ix86_is_type_thiscall): New helper function.
10036 (ix86_comp_type_attributes): Handle thiscall for method-functions
10038 (init_cumulative_args): Likewise.
10039 (find_drap_reg): Likewise.
10040 (ix86_static_chain): Likewise.
10041 (x86_this_parameter): Likewise.
10042 (x86_output_mi_thunk): Likewise.
10044 2011-04-01 Olivier Hainque <hainque@adacore.com>
10045 Nicolas Setton <setton@adacore.com>
10046 Eric Botcazou <ebotcazou@adacore.com>
10048 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
10049 (add_gnat_descriptive_type_attribute): New function.
10050 (gen_array_type_die): Call it.
10051 (gen_enumeration_type_die): Likewise.
10052 (gen_struct_or_union_type_die): Likewise.
10053 (modified_type_die): Likewise.
10054 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
10055 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
10056 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
10058 2011-04-01 Jakub Jelinek <jakub@redhat.com>
10061 * dwarf2out.c (resolve_addr): Don't call force_decl_die
10062 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
10065 2011-03-17 Richard Guenther <rguenther@suse.de>
10068 * lto-cgraph.c (input_overwrite_node): Clear the abstract
10069 origin for decls in other ltrans units.
10070 (input_varpool_node): Likewise.
10072 2011-04-01 Jakub Jelinek <jakub@redhat.com>
10074 PR middle-end/48335
10075 * expr.c (expand_assignment): Handle all possibilities
10076 if TO_RTX is CONCAT.
10077 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
10078 (store_split_bit_field): If SUBREG_REG (op0) or
10079 op0 itself has smaller mode than word, return it
10080 for offset 0 and const0_rtx for out-of-bounds stores.
10081 If word is const0_rtx, skip it.
10083 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
10085 * config/h8300/h8300.c (print_operand_address): Rename to...
10086 (h8300_print_operand_address): ...this. Make static. Adjust comments.
10087 Call h8300_print_operand and h8300_print_operand_address instead of
10088 print_operand and print_operand_address. Declare.
10089 (print_operand): Renake to...
10090 (h8300_print_operand): ...this. Make static. Adjust comments.
10091 Call h8300_print_operand instead of print_operand. Declare.
10092 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
10093 (h8300_register_move_cost): Likewise.
10094 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
10095 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
10096 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
10097 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
10098 * config/h8300/h8300-protos.h (print_operand): Delete.
10099 (print_operand_address): Delete.
10101 2011-04-01 Richard Henderson <rth@redhat.com>
10104 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
10105 in strict mode before dwarf4. Re-order tests to early out
10106 before switching sections.
10108 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
10110 * config/h8300/constraints.md: New file.
10111 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
10112 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
10113 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
10114 * config/h8300/predicates.md (bit_operand): Likewise.
10115 (incdec_operand): Use satisfies_constraint_M and
10116 satisfies_constraint_O. Don't use C code block.
10117 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
10118 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
10119 (compute_mov_length): Use satisfies_constraint_G.
10120 (fix_bit_operand): Use satisfies_constraint_U.
10121 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
10122 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
10123 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
10124 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
10125 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
10126 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
10127 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10128 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
10129 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
10130 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
10131 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
10132 (EXTRA_MEMORY_CONSTRAINT): Delete.
10134 2011-04-01 Andrew Pinski <pinskia@gmail.com>
10135 Michael Meissner <meissner@linux.vnet.ibm.com>
10138 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
10139 operands, as per the specifications.
10141 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
10142 (vec_extract_evenv4sf): Ditto.
10143 (vec_extract_evenv8hi): Ditto.
10144 (vec_extract_evenv16qi): Ditto.
10145 (vec_extract_oddv4si): Ditto.
10147 2011-03-31 Mark Wielaard <mjw@redhat.com>
10149 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
10150 high_pc attribute if the CU has no associated code. Only output
10151 DW_AT_entry_pc for CU if not generating strict dwarf and
10154 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
10156 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
10157 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
10159 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
10160 * final.c (final_start_function): Call the new function rather
10161 than using a NULL argument for dwarf2out_frame_debug.
10163 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
10164 that contains the prologue.
10166 * haifa-sched.c (queue_insn): New arg REASON. All callers
10167 changed. Print it in debugging output.
10169 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
10171 * sched-ebb.c (begin_schedule_ready): Remove second argument.
10172 Split most of the code into...
10173 (begin_move_insn): ... here. New function.
10174 (ebb_sched_info): Add a pointer to it.
10175 * haifa-sched.c (scheduled_insns): New static variable.
10176 (sched_extend_ready_list): Allocate it.
10177 (schedule_block): Use it to record the order of scheduled insns.
10178 Perform RTL changes to move insns only after all scheduling
10179 decisions have been made.
10180 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
10181 begin_move_insn field.
10182 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
10183 * sched-int.h (struct haifa_sched_info): Remove second argument
10184 from begin_schedule_ready hook. Add new member begin_move_insn.
10185 * sched-rgn.c (begin_schedule_ready): Remove second argument.
10186 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
10188 * haifa-sched.c (prune_ready_list): New function, broken out of
10190 (schedule_block): Use it.
10192 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10194 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
10196 2011-04-01 Kai Tietz <ktietz@redhat.com>
10198 * config.gcc (*-*-mingw*): Allow as option the
10199 posix threading model.
10200 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
10201 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
10203 (CPP_SPEC): Add pthread/no-pthread handling.
10204 (LIB_SPEC): Likewise.
10205 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
10206 (LIB_SPEC): Likewise.
10207 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
10208 flag to pass -pthread option for shared libgcc build.
10209 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
10210 for shared libgcc build.
10211 * config/i386/t-mingw-pthread: New file.
10212 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
10213 New define to enable use of library pthread by default.
10214 * config/i386/mingw.opt (pthread): New driver option.
10215 (no-pthread): New driver option.
10216 * config/i386/cygming.opt: Make sure trailing empty line is retained.
10217 * config/i386/mingw-w64.opt: Likewise.
10219 2011-04-01 Gary Funck <gary@intrepid.com>
10221 * c-decl.c (grokdeclarator): Fix formatting.
10223 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
10225 * expr.c (emit_block_move_via_movmem): Use n_generator_args
10226 instead of n_operands.
10227 (set_storage_via_setmem): Likewise.
10228 * optabs.c (maybe_gen_insn): Likewise.
10229 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
10230 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
10231 (mips_expand_builtin_direct): Likewise.
10232 * config/spu/spu.c (expand_builtin_args): Likewise.
10234 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
10236 * recog.h (insn_data_d): Add n_generator_args.
10237 * genoutput.c (data): Likewise.
10238 (output_insn_data): Print it.
10239 (max_opno, num_dups): Delete.
10240 (scan_operands): Just fill in "d->operand[...]".
10241 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
10243 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
10245 * gensupport.h (pattern_stats): New structure.
10246 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
10247 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
10248 (max_operand_1, max_operand_vec): Delete.
10249 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
10251 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
10253 * emit-rtl.c (emit_pattern_after_setloc): New function.
10254 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
10255 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
10256 (emit_pattern_after): New function.
10257 (emit_insn_after, emit_jump_insn_after): Call it.
10258 (emit_call_insn_after, emit_debug_insn_after): Likewise.
10259 (emit_pattern_before_setloc): New function.
10260 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
10261 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
10263 (emit_pattern_before): New function.
10264 (emit_insn_before, emit_jump_insn_before): Call it.
10265 (emit_call_insn_before, emit_debug_insn_before): Likewise.
10267 2011-03-31 Richard Henderson <rth@redhat.com>
10269 * dwarf2out.c (dw_separate_line_info_ref): Remove.
10270 (dw_separate_line_info_entry): Remove.
10271 (enum dw_line_info_opcode): New.
10272 (dw_line_info_entry): Use it.
10273 (dw_line_info_table, dw_line_info_table_p): New.
10274 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
10275 (line_info_table, line_info_label_num): Remove.
10276 (line_info_table_in_use): Remove.
10277 (separate_line_info_table): Remove.
10278 (separate_line_info_table_allocated): Remove.
10279 (separate_line_info_table_in_use): Remove.
10280 (LINE_INFO_TABLE_INCREMENT): Remove.
10281 (line_info_label_num): New.
10282 (cur_line_info_table): New.
10283 (text_section_line_info, cold_text_section_line_info): New.
10284 (separate_line_info): New.
10285 (SEPARATE_LINE_CODE_LABEL): Remove.
10286 (print_dwarf_line_table): Remove.
10287 (debug_dwarf): Don't dump it.
10288 (output_one_line_info_table): New.
10289 (output_line_info): Use it.
10290 (new_line_info_table): New.
10291 (set_cur_line_info_table): New.
10292 (dwarf2out_switch_text_section): Use it.
10293 (dwarf2out_begin_function): Likewise.
10294 (push_dw_line_info_entry): New.
10295 (dwarf2out_source_line): Rewrite for new line info tables.
10296 (dwarf2out_init): Remove dead initailizations.
10298 2011-03-31 Joseph Myers <joseph@codesourcery.com>
10300 * opts.h (cl_option): Add comments to fields. Add bit-fields for
10302 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
10303 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
10304 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
10305 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
10306 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
10307 * opt-functions.awk (flag_init, switch_bit_fields): New.
10308 (switch_flags): Don't handle flags moved to bit-fields. Don't
10309 generate CL_MISSING_OK or CL_SAVE.
10310 * optc-gen.awk: Update to generate bit-field output as well as
10312 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
10313 bit-field instead of CL_REJECT_DRIVER flag.
10314 * opts-common.c (generate_canonical_option,
10315 decode_cmdline_option): Use bit-fields instead of CL_* flags.
10316 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
10317 instead of CL_REJECT_NEGATIVE flag.
10318 * toplev.c (print_switch_values): Use cl_report bit-field instead
10321 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
10323 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
10324 a zero minimum index only if it is redundant.
10326 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
10328 PR rtl-optimization/48381
10329 * ira-color.c (assign_hard_reg): Use hard reg set intersection
10330 instead of ira_class_hard_reg_index for calculating conflicting
10333 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
10335 * cprop.c: Clean up hash table building.
10336 (reg_avail_info): Remove.
10337 (oprs_available_p): Remove.
10338 (record_last_reg_set_info): Remove.
10339 (record_last_set_info): Remove.
10340 (reg_available_p): New function.
10341 (gcse_constant_p): Do not treat unfolded conditions as constants.
10342 (make_set_regs_unavailable): New function.
10343 (hash_scan_set): Simplify with new reg_available_p.
10344 (compute_hash_table_work): Traverse insns stream only once.
10345 Do not compute reg_avail_info. Traverse insns in reverse order.
10346 Record implicit sets after recording explicit sets from the block.
10348 2011-03-31 Michael Matz <matz@suse.de>
10350 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
10352 2011-03-31 Anatoly Sokolov <aesok@post.ru>
10354 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
10355 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
10356 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10357 (h8300_mode_dependent_address_p): New function.
10358 (h8300_get_index): Make static.
10360 2011-03-31 Jeff Law <law@redhat.com>
10362 * reload1.c (elimination_effects): Fix typo in recent change.
10364 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
10365 typo potentially leading to null pointer dereference.
10367 * caller-save.c (new_saved_hard_reg): Eliminate return value.
10368 (setup_save_areas): Corresponding changes to avoid useless
10371 * jump.c (reversed_comparison_code_parts): Avoid successive return
10372 statements when REVERSE_CONDITION is defined.
10374 * expr.c (expand_assignment): Avoid useless assignments.
10375 (expand_expr_real_1): Likewise.
10376 (expand_expr_real_2): Avoid useless statements.
10378 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
10380 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
10382 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
10385 * stmt.c (expand_expr_stmt): Avoid useless assignment.
10387 2011-03-31 Joseph Myers <joseph@codesourcery.com>
10390 * doc/tm.texi.in (TARGET_VERSION): Remove.
10391 * doc/tm.texi: Regenerate.
10392 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
10393 * collect2.c (main): Don't use TARGET_VERSION.
10394 * mips-tdump.c (main): Don't use TARGET_VERSION.
10395 * mips-tfile.c (main): Don't use TARGET_VERSION.
10396 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
10397 * config/rs6000/vxworksae.h: Remove.
10398 * config/alpha/alpha.h (TARGET_VERSION): Remove.
10399 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
10400 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
10401 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
10402 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
10403 * config/arm/arm.h (TARGET_VERSION): Remove.
10404 * config/arm/coff.h (TARGET_VERSION): Remove.
10405 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
10406 * config/arm/elf.h (TARGET_VERSION): Remove.
10407 * config/arm/freebsd.h (TARGET_VERSION): Remove.
10408 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
10409 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
10410 * config/arm/pe.h (TARGET_VERSION): Remove.
10411 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
10412 * config/arm/semi.h (TARGET_VERSION): Remove.
10413 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
10414 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
10415 * config/arm/vxworks.h (TARGET_VERSION): Remove.
10416 * config/avr/avr.h (TARGET_VERSION): Remove.
10417 * config/bfin/bfin.h (TARGET_VERSION): Remove.
10418 * config/fr30/fr30.h (TARGET_VERSION): Remove.
10419 * config/frv/frv.h (TARGET_VERSION): Remove.
10420 * config/h8300/h8300.h (TARGET_VERSION): Remove.
10421 * config/i386/cygwin.h (TARGET_VERSION): Remove.
10422 * config/i386/darwin.h (TARGET_VERSION): Remove.
10423 * config/i386/darwin64.h (TARGET_VERSION): Remove.
10424 * config/i386/djgpp.h (TARGET_VERSION): Remove.
10425 * config/i386/freebsd.h (TARGET_VERSION): Remove.
10426 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
10427 * config/i386/gnu.h (TARGET_VERSION): Remove.
10428 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
10429 * config/i386/i386elf.h (TARGET_VERSION): Remove.
10430 * config/i386/linux.h (TARGET_VERSION): Remove.
10431 * config/i386/linux64.h (TARGET_VERSION): Remove.
10432 * config/i386/lynx.h (TARGET_VERSION): Remove.
10433 * config/i386/mingw32.h (TARGET_VERSION): Remove.
10434 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
10435 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
10436 * config/i386/netware.h (TARGET_VERSION): Remove.
10437 * config/i386/nto.h (TARGET_VERSION): Remove.
10438 * config/i386/openbsd.h (TARGET_VERSION): Remove.
10439 * config/i386/vxworks.h (TARGET_VERSION): Remove.
10440 * config/ia64/elf.h (TARGET_VERSION): Remove.
10441 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
10442 * config/ia64/hpux.h (TARGET_VERSION): Remove.
10443 * config/ia64/linux.h (TARGET_VERSION): Remove.
10444 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
10445 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
10446 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
10447 * config/lm32/lm32.h (TARGET_VERSION): Remove.
10448 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
10449 * config/m32c/m32c.h (TARGET_VERSION): Remove.
10450 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
10451 * config/m32r/m32r.h (TARGET_VERSION): Remove.
10452 * config/m68k/linux.h (TARGET_VERSION): Remove.
10453 * config/m68k/m68k.h (TARGET_VERSION): Remove.
10454 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
10455 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
10456 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
10457 * config/mep/mep.h (TARGET_VERSION): Remove.
10458 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
10459 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
10460 * config/mips/iris6.h (MACHINE_TYPE): Remove.
10461 * config/mips/linux.h (TARGET_VERSION): Remove.
10462 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
10463 * config/mips/vxworks.h (TARGET_VERSION): Remove.
10464 * config/mmix/mmix.h (TARGET_VERSION): Remove.
10465 * config/mn10300/linux.h (TARGET_VERSION): Remove.
10466 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
10467 * config/pa/pa.h (TARGET_VERSION): Remove.
10468 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
10469 * config/picochip/picochip.h (TARGET_VERSION): Remove.
10470 * config/rs6000/aix.h (TARGET_VERSION): Remove.
10471 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
10472 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
10473 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
10474 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
10475 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
10476 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
10477 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
10478 * config/rs6000/linux.h (TARGET_VERSION): Remove.
10479 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
10480 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
10481 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
10482 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
10483 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
10484 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
10485 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
10486 * config/s390/linux.h (TARGET_VERSION): Remove.
10487 * config/s390/s390.h (TARGET_VERSION): Remove.
10488 * config/s390/tpf.h (TARGET_VERSION): Remove.
10489 * config/score/score.h (TARGET_VERSION): Remove.
10490 * config/sh/linux.h (TARGET_VERSION): Remove.
10491 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
10492 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
10493 * config/sh/sh.h (TARGET_VERSION): Remove.
10494 * config/sh/sh64.h (TARGET_VERSION): Remove.
10495 * config/sh/superh.h (TARGET_VERSION): Remove.
10496 * config/sh/vxworks.h (TARGET_VERSION): Remove.
10497 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
10498 * config/sparc/linux.h (TARGET_VERSION): Remove.
10499 * config/sparc/linux64.h (TARGET_VERSION): Remove.
10500 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
10501 TARGET_NAME32, TARGET_NAME): Remove.
10502 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
10503 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
10504 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
10505 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
10506 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
10507 * config/spu/spu.h (TARGET_VERSION): Remove.
10508 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
10509 * config/v850/v850.h (TARGET_VERSION): Remove.
10510 * config/vax/linux.h (TARGET_VERSION): Remove.
10511 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
10512 * config/xtensa/elf.h (TARGET_VERSION): Remove.
10513 * config/xtensa/linux.h (TARGET_VERSION): Remove.
10515 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
10518 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
10519 frame-related from frame-unrelated adjustments to the stack pointer.
10521 2011-03-31 Jakub Jelinek <jakub@redhat.com>
10523 * common.opt (fdebug-types-section): Move earlier.
10524 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
10526 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
10528 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
10531 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
10533 * tree.h (CASE_CHAIN): Define.
10534 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
10535 (gimple_redirect_edge_and_branch): Likewise.
10537 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
10539 PR middle-end/48367
10540 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
10543 2011-03-30 Jeff Law <law@redhat.com>
10545 * PR bootstrap/48371
10546 * reload1.c (reload): Fix botch in last change.
10548 * reload.h (struct reload): Fix typo introduced in last change.
10550 2011-03-30 Joseph Myers <joseph@codesourcery.com>
10552 * config/arm/arm.opt (mhard-float, msoft-float): Mark
10553 Undocumented. Remove help text.
10554 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
10557 2011-03-30 Joseph Myers <joseph@codesourcery.com>
10559 * doc/options.texi (NegativeAlias): Document.
10560 (Alias): Mention NegativeAlias.
10561 * opt-functions.awk: Handle NegativeAlias.
10562 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
10563 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
10564 * opts.h (CL_NEGATIVE_ALIAS): Define.
10565 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
10566 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
10568 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
10570 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
10571 mno-spe and mno-isel instead of mspe=no and -misel=no.
10573 2011-03-29 Mark Wielaard <mjw@redhat.com>
10575 * common.opt (fdebug-types-section): New flag.
10576 * doc/invoke.texi: Document new -fno-debug-types-section flag.
10577 * dwarf2out.c (use_debug_types): New define.
10578 (struct die_struct): Mark die_id with GTY desc use_debug_types.
10579 (print_die): Guard output of type unit signatures using
10581 (build_abbrev_table): Replace assert of dwarf_version >= 4
10582 with assert on use_debug_types.
10583 (size_of_die): Likewise.
10584 (unmark_dies): Likewise.
10585 (value_format): Decide AT_ref_external form on use_debug_types.
10586 (output_die): Replace dwarf_version version check guard with
10587 use_debug_types where appropriate.
10588 (modified_type_die): Likewise.
10589 (gen_reference_type_die): Likewise.
10590 (dwarf2out_start_source_file): Likewise.
10591 (dwarf2out_end_source_file): Likewise.
10592 (prune_unused_types_walk_attribs): Likewise.
10593 (dwarf2out_finish): Likewise.
10595 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
10597 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
10599 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
10601 PR rtl-optimization/48332
10602 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
10603 mode of input operand N and modeN to its actual mode.
10605 2011-03-30 Jeff Law <law@redhat.com>
10607 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
10608 define accessor macro.
10609 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
10610 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
10611 (reg_equiv_init): Likewise.
10612 (reg_equivs_size): New variable.
10613 (reg_equiv_init_size): Remove.
10614 (allocate_initial_values): Move prototype to here from....
10615 * integrate.h (allocate_initial_values): Remove prototype.
10616 * integrate.c: Include reload.h.
10617 (allocate_initial_values): Corresponding changes.
10618 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
10619 (fix_reg_equiv_init, no_equiv): Corresponding changes.
10620 (update_equiv_regs): Corresponding changes.
10621 (ira): Corresponding changes.
10622 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
10623 (push_secondary_reload): Corresponding changes.
10624 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
10625 (make_memloc, find_reloads_address): Corresponding changes.
10626 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
10627 (find_reloads_address_1): Corresponding changes.
10628 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
10629 (refers_to_regno_for_reload_p): Corresponding changes.
10630 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
10631 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
10632 * reload1.c: Include ggc.h.
10633 (grow_reg_equivs): New function.
10634 (replace_pseudos_in, reload): Corresponding changes.
10635 (calculate_needs_all_insns, alter_regs): Corresponding changes.
10636 (eliminate_regs_1, elimination_effects): Corresponding changes.
10637 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
10638 (delete_output_reload): Likewise.
10639 * caller-save.c (mark_referenced_regs): Corresponding changes.
10640 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
10641 * frv/predicates.md (frv_load_operand): Corresponding changes.
10642 * microblaze/microblaze.c (double_memory_operand): Corresponding
10644 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
10645 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
10646 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
10647 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
10648 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
10650 * pa/pa.c (emit_move_sequence): Corresponding changes.
10651 * vax/vax.c (nonindexed_address_p): Corresponding changes.
10653 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
10656 * config/arm/arm.c (coproc_secondary_reload_class): Handle
10657 structure modes. Don't check neon_vector_mem_operand for
10658 vector or structure modes.
10660 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
10661 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10664 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
10665 operand 1 and reshuffle the operands to match.
10666 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
10668 2011-03-30 Christian Schüler <cschueler@gmx.de>
10671 * config/c.opt (F): Added 'Driver' to -F option.
10674 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
10676 * config/darwin.opt: Added '-arch' option.
10678 2011-03-30 Nick Clifton <nickc@redhat.com>
10680 * config/rx/rx.md: Add peepholes and patterns to combine
10681 extending loads and simple arithmetic instructions.
10682 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
10683 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
10684 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
10685 modes to use pre-decrement and post-increment addressing.
10686 (rx_is_restricted_memory_address): Add range checking of REG+INT
10688 (rx_print_operand): Add support for %Q. Fix handling of %Q.
10689 (rx_memory_move_cost): Adjust cost of stores.
10690 (rx_adjust_insn_length): New function.
10692 2011-03-30 Jakub Jelinek <jakub@redhat.com>
10695 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
10696 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
10697 matching arg00/arg01 types.
10699 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
10701 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
10702 last_location to UNKNOWN_LOCATION.
10704 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
10707 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
10710 2011-03-30 Joseph Myers <joseph@codesourcery.com>
10711 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10714 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
10715 Init(PROCESSOR_V7).
10716 (sparc_cpu): Likewise.
10717 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
10720 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
10723 PR middle-end/48342
10724 PR rtl-optimization/48345
10725 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
10726 hard regs for given mode from profitable regs when doing secondary
10729 2011-03-29 Jeff Law <law@redhat.com>
10732 * tree-ssa-threadupdate.c (struct redirection_data): Remove
10733 do_not_duplicate field.
10734 (lookup_redirection_data): Corresponding changes.
10735 (create_duplicates): Always create a template block.
10736 (redirect_edges): Remove code which reused the original block
10737 when it was going to become unreachable code.
10738 (thread_block): Don't set do_not_duplicate field.
10740 2011-03-29 Joseph Myers <joseph@codesourcery.com>
10742 * lto-opts.c (register_user_option_p, lto_register_user_option):
10743 Make type argument unsigned.
10744 * lto-streamer.h (lto_register_user_option): Make type argument
10746 * opth-gen.awk: Make CL_* macros unsigned.
10747 * opts-common.c (find_opt): Make lang_mask argument unsigned.
10748 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
10749 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
10750 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
10751 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
10752 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
10753 (find_opt): Make lang_mask argument unsigned.
10755 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
10757 PR rtl-optimization/48331
10758 PR rtl-optimization/48334
10759 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
10760 for any used algorithm.
10762 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
10764 * ira-conflicts.c (build_object_conflicts): Add unused attribute
10767 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
10769 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
10770 (alpha_option_override): Don't set alpha_sr_alias_set.
10771 (emit_frame_store_1): Use gen_frame_mem rather than calling
10773 (alpha_expand_epilogue): Ditto.
10775 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
10777 PR tree-optimization/48290
10778 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
10779 vectorization, check that relevant phis in the basic block after
10780 the inner loop are really inner loop's exit phis.
10782 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
10785 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
10786 (cached_dw_loc_list_def): New structure.
10787 (cached_dw_loc_list): New typedef.
10788 (cached_dw_loc_list_table): New variable.
10789 (cached_dw_loc_list_table_hash): New function.
10790 (cached_dw_loc_list_table_eq): Likewise.
10791 (add_location_or_const_value_attribute): Take a bool cache_p.
10792 Cache the list when the parameter is true.
10793 (gen_formal_parameter_die): Update caller.
10794 (gen_variable_die): Likewise.
10795 (dwarf2out_finish): Likewise.
10796 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
10797 while generating debug info for the decl.
10798 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
10799 (dwarf2out_init): Initialize cached_dw_loc_list_table.
10800 (resolve_addr): Cache the result of resolving a chain of
10803 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
10805 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
10806 conflict object hard regset nodes have intersecting hard reg sets.
10808 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
10809 after regstat_init_n_sets_and_refs.
10811 * ira.c: Add more comments at the top.
10812 (setup_stack_reg_pressure_class, setup_pressure_classes):
10813 Add comments how we compute the register pressure classes.
10814 (setup_allocno_and_important_classes): Add more comments.
10815 (setup_class_translate_array, reorder_important_classes)
10816 (setup_reg_class_relations): Add comments.
10818 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
10821 * ira-color.c: Add 2011 to the Copyright line.
10822 (assign_hard_reg): Add more comments.
10823 (improve_allocation): Ditto.
10825 * ira-costs.c: Add 2011 to the Copyright line.
10826 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
10828 (setup_regno_cost_classes_by_mode): Ditto.
10830 Initial patches from ira-improv branch:
10832 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
10834 * ira-build.c (ira_create_object): Remove initialization of
10835 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
10836 (ira_create_allocno): Remove initialization of
10837 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
10838 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
10839 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
10840 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
10841 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
10842 Initialize ALLOCNO_ADD_DATA.
10843 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
10844 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
10846 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
10847 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
10849 * ira.c (ira_reallocate): Remove.
10850 (setup_pressure_classes): Call
10851 ira_init_register_move_cost_if_necessary. Use
10852 ira_register_move_cost instead of ira_get_register_move_cost.
10853 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
10854 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
10856 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
10857 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
10858 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
10859 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
10860 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
10861 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
10863 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
10864 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
10865 (struct allocno_color_data): New.
10866 (allocno_color_data_t): New typedef.
10867 (allocno_color_data): New definition.
10868 (ALLOCNO_COLOR_DATA): New macro.
10869 (struct object_color_data): New.
10870 (object_color_data_t): New typedef.
10871 (object_color_data): New definition.
10872 (OBJECT_COLOR_DATA): New macro.
10873 (update_copy_costs, calculate_allocno_spill_cost): Call
10874 ira_init_register_move_cost_if_necessary. Use
10875 ira_register_move_cost instead of ira_get_register_move_cost.
10876 (move_spill_restore, update_curr_costs): Ditto.
10877 (allocno_spill_priority): Make it inline.
10878 (color_pass): Allocate and free allocno_color_dat and object_color_data.
10879 (struct coalesce_data, coalesce_data_t): New.
10880 (allocno_coalesce_data): New definition.
10881 (ALLOCNO_COALESCE_DATA): New macro.
10882 (merge_allocnos, coalesced_allocno_conflict_p): Use
10883 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
10884 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
10885 (coalesce_allocnos): Ditto.
10886 (setup_coalesced_allocno_costs_and_nums): Ditto.
10887 (collect_spilled_coalesced_allocnos): Ditto.
10888 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
10889 (setup_slot_coalesced_allocno_live_ranges): Ditto.
10890 (coalesce_spill_slots): Ditto.
10891 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
10892 free allocno_coalesce_data.
10894 * ira-conflicts.c: Fix formatting.
10895 (process_regs_for_copy): Call
10896 ira_init_register_move_cost_if_necessary. Use
10897 ira_register_move_cost instead of ira_get_register_move_cost.
10898 (build_object_conflicts): Optimize.
10900 * ira-costs.c (record_reg_classes): Optimize. Call
10901 ira_init_register_move_cost_if_necessary. Use
10902 ira_register_move_cost, ira_may_move_in_cost, and
10903 ira_may_move_out_cost instead of ira_get_register_move_cost and
10904 ira_get_may_move_cost.
10905 (record_address_regs): Ditto.
10906 (scan_one_insn): Optimize.
10907 (find_costs_and_classes): Optimize.
10908 (process_bb_node_for_hard_reg_moves): Call
10909 ira_init_register_move_cost_if_necessary. Use
10910 ira_register_move_cost instead of ira_get_register_move_cost.
10912 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
10913 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
10914 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
10915 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
10917 (ira_initiate_emit_data, ira_finish_emit_data)
10918 (create_new_allocno): New functions.
10919 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
10920 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
10921 Use ira_register_move_cost instead of ira_get_register_move_cost.
10923 * ira-int.h: Fix some comments.
10924 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
10925 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
10926 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
10927 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
10929 (struct ira_allocno): Make mode and aclass a bitfield. Move other
10930 bitfield after mode. Make hard_regno a short int. Make
10931 hard_regno short. Remove first_coalesced_allocno and
10932 next_coalesced_allocno. Move mem_optimized_dest_p,
10933 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
10934 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
10935 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
10936 temp, colorable_p. Add new member add_data.
10937 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
10938 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
10939 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
10940 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
10941 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
10942 (ALLOCNO_ADD_DATA): New macro.
10943 (ira_emit_data_t): New typedef.
10944 (struct ira_emit_data): New. Move mem_optimized_dest_p,
10945 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
10946 from struct ira_allocno.
10947 (ALLOCNO_EMIT_DATA): New macro.
10948 (ira_allocno_emit_data, allocno_emit_reg): New.
10949 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
10950 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
10951 (OBJECT_ADD_DATA): New macro.
10952 (ira_reallocate): Remove.
10953 (ira_initiate_emit_data, ira_finish_emit_data): New.
10954 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
10955 (ira_init_register_move_cost_if_necessary): New.
10956 (ira_object_conflict_iter_next): Merge into
10957 ira_object_conflict_iter_cond.
10958 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
10960 * ira-live.c (process_single_reg_class_operands): Call
10961 ira_init_register_move_cost_if_necessary. Use
10962 ira_register_move_cost instead of ira_get_register_move_cost.
10964 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
10966 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
10968 * ira-costs.c: Fix formatting.
10969 (cost_classes, cost_classes_num): Remove.
10970 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
10971 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
10972 (cost_classes_del, cost_classes_htab): New.
10973 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
10974 (initiate_regno_cost_classes, setup_cost_classes): New.
10975 (setup_regno_cost_classes_by_aclass): New.
10976 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
10977 (record_reg_classes): Use regno_cost_classes instead of
10978 cost_classes. Move checking opposite operand up.
10979 (record_address_regs): Use regno_cost_classes
10980 instead of cost_classes.
10981 (scan_one_insn): Ditto. Use always general register.
10982 (print_allocno_costs): Use regno_cost_classes instead of
10984 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
10985 (find_costs_and_classes): Set up cost classes for each registers.
10986 Use also their mode for this. Use regno_cost_classes instead of
10988 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
10990 (free_ira_costs, ira_init_costs): Don't use cost_classes.
10991 (ira_costs, ira_set_pseudo_classes): Call
10992 initiate_regno_cost_classes and finish_regno_cost_classes.
10994 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
10996 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
10998 * target.def (ira_cover_classes): Remove.
11000 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
11002 * doc/tm.texi.in: Ditto.
11004 * ira-conflicts.c: Remove mentioning cover classes from the file.
11005 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
11006 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
11008 * targhooks.c (default_ira_cover_classes): Remove.
11010 * targhooks.h (default_ira_cover_classes): Ditto.
11012 * haifa-sched.c: Remove mentioning cover classes from the file.
11013 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
11014 ira_pressure_classes and ira_pressure_classes_num instead of
11015 ira_reg_class_cover_size and ira_reg_class_cover. Use
11016 sched_regno_pressure_class instead of sched_regno_cover_class.
11017 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
11018 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
11020 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
11021 classes from the file.
11022 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
11023 (struct object_hard_regs, struct object_hard_regs_node): New.
11024 (struct ira_object): New members profitable_hard_regs,
11025 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
11026 (struct ira_allocno): Rename cover_class to aclass. Rename
11027 cover_class_cost and updated_cover_class_cost to class_cost and
11028 updated_class_cost. Remove splay_removed_p and
11029 left_conflict_size. Add new members colorable_p.
11030 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
11031 (ALLOCNO_COLORABLE_P): New macro.
11032 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
11033 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
11034 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
11035 (OBJECT_...): Rename parameter C to O.
11036 (OBJECT_PROFITABLE_HARD_REGS): New macro.
11037 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
11038 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
11039 (struct target_ira_int): New members x_ira_max_memory_move_cost,
11040 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
11041 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
11042 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
11043 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
11044 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
11045 x_ira_reg_class_subunion.
11046 (ira_max_memory_move_cost, ira_max_register_move_cost)
11047 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
11048 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
11049 (ira_important_class_nums, ira_reg_class_superunion): New macros.
11050 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
11051 (ira_reg_class_union): Rename to ira_reg_class_subunion.
11052 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
11053 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
11054 (ira_tune_allocno_costs_and_cover_classes): Rename to
11055 ira_tune_allocno_costs.
11056 (ira_debug_hard_regs_forest): New.
11057 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
11058 (ira_object_conflict_iter_next): Fix comments.
11059 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
11060 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
11061 cover_class to aclass.
11062 (ira_allocate_and_accumulate_costs): Ditto.
11063 (ira_allocate_and_set_or_copy_costs): Ditto.
11065 * opts.c (decode_options): Remove ira_cover_class check.
11067 * ira-color.c: Remove mentioning cover classes from the file. Use
11068 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
11069 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
11070 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
11071 (splay-tree.h): Remove include.
11072 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
11073 before copy_freq_compare_func.
11074 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
11075 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
11077 (hard_regs_roots, hard_regs_node_vec): Ditto.
11078 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
11079 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
11080 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
11081 (create_new_object_hard_regs_node): Ditto.
11082 (add_new_object_hard_regs_node_to_forest): Ditto.
11083 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
11084 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
11086 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
11087 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
11088 (remove_unused_object_hard_regs_nodes): Ditto.
11089 (enumerate_object_hard_regs_nodes): Ditto.
11090 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
11091 (object_hard_regs_subnode_t): Ditto.
11092 (struct object_hard_regs_subnode): Ditto.
11093 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
11094 (setup_object_hard_regs_subnode_index): Ditto.
11095 (get_object_hard_regs_subnodes_num): Ditto.
11096 (form_object_hard_regs_nodes_forest): Ditto.
11097 (finish_object_hard_regs_nodes_tree): Ditto.
11098 (finish_object_hard_regs_nodes_forest): Ditto.
11099 (allocnos_have_intersected_live_ranges_p): Rename to
11100 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
11101 (pseudos_have_intersected_live_ranges_p): Rename to
11102 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
11103 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
11104 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
11105 (update_copy_costs): Remove assert. Skip cost update if the hard
11106 reg does not belong the class.
11107 (assign_hard_reg): Process only profitable hard regs.
11108 (uncolorable_allocnos_num): Make it scalar.
11109 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
11110 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
11111 and ira_reg_class_max_nregs.
11112 (bucket_allocno_compare_func): Check frequency first.
11113 (sort_bucket): Add compare function as a parameter.
11114 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
11115 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
11116 (push_allocno_to_stack): Rewrite for checking new allocno
11118 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
11119 (push_only_colorable): Pass new parameter to sort_bucket.
11120 (push_allocno_to_spill): Remove.
11121 (allocno_spill_priority_compare): Make it inline and rewrite.
11122 (splay_tree_allocate, splay_tree_free): Remove.
11123 (allocno_spill_sort_compare): New function.
11124 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
11125 build and use splay tree. Choose first allocno in uncolorable
11126 allocno bucket to spill. Remove setting spill cost.
11127 (all_conflicting_hard_regs): Remove.
11128 (setup_allocno_available_regs_num): Check only profitable hard
11129 regs. Print info about hard regs nodes.
11130 (setup_allocno_left_conflicts_size): Remove.
11131 (put_allocno_into_bucket): Don't call
11132 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
11133 (improve_allocation): New.
11134 (color_allocnos): Call setup_profitable_hard_regs,
11135 form_object_hard_regs_nodes_forest, improve_allocation,
11136 finish_object_hard_regs_nodes_forest. Setup spill cost.
11137 (print_loop_title): Use pressure classes.
11138 (color_allocnso): Ditto.
11139 (do_coloring): Remove allocation and freeing splay_tree_node_pool
11140 and allocnos_for_spilling.
11141 (ira_sort_regnos_for_alter_reg): Don't setup members
11142 {first,next}_coalesced_allocno.
11143 (color): Remove allocating and freeing removed_splay_allocno_vec.
11144 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
11145 prohibited_class_mode_regs.
11147 * ira-lives.c: Remove mentioning cover classes from the file. Fix
11149 (update_allocno_pressure_excess_length): Use pressure classes.
11150 (inc_register_pressure, dec_register_pressure): Check for pressure
11152 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
11153 pressure class. Use ira_reg_class_nregs instead of
11154 ira_reg_class_max_nregs.
11155 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
11156 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
11157 (single_reg_class): Use ira_reg_class_nregs instead of
11158 ira_reg_class_max_nregs.
11159 (process_bb_node_lives): Use pressure classes.
11161 * ira-emit.c: Remove mentioning cover classes from the file. Use
11162 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
11163 (change_loop): Use pressure classes.
11164 (modify_move_list): Call ira_set_allocno_class instead of
11165 ira_set_allocno_cover_class.
11167 * ira-build.c: Remove mentioning cover classes from the file. Use
11168 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
11169 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
11170 ALLOCNO_UPDATED_CLASS_COST instead of
11171 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
11172 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
11173 (ira_create_allocno): Remove initialization of
11174 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
11175 ALLOCNO_COLORABLE_P.
11176 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
11177 Update conflict regs for the objects.
11178 (create_cap_allocno): Remove assert. Don't propagate
11179 ALLOCNO_AVAILABLE_REGS_NUM.
11180 (ira_free_allocno_costs): New function.
11181 (finish_allocno): Change a part of code into call of
11182 ira_free_allocno_costs.
11183 (low_pressure_loop_node_p): Use pressure classes.
11184 (object_range_compare_func): Don't compare classes.
11185 (setup_min_max_conflict_allocno_ids): Ditto.
11187 * loop-invariant.c: Remove mentioning cover classes from the file.
11188 Use ira_pressure_classes and ira_pressure_classes_num instead of
11189 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
11190 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
11191 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
11192 Use reg_allocno_class instead of reg_cover_class.
11193 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
11194 STACK_REG_COVER_CLASS.
11195 (get_regno_cover_class): Rename to get_regno_pressure_class.
11196 (move_loop_invariants): Initialize and finalize regstat.
11198 * ira.c: Remove mentioning cover classes from the file. Add
11199 comments about coloring without cover classes. Use ALLOCNO_CLASS
11200 instead of ALLOCNO_COVER_CLASS. Fix formatting.
11201 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
11202 setup_class_subset_and_memory_move_costs.
11203 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
11204 (setup_cover_and_important_classes): Rename to
11205 setup_allocno_and_important_classes.
11206 (setup_class_translate_array): New.
11207 (setup_class_translate): Call it for allocno and pressure classes.
11208 (cover_class_order): Rename to allocno_class_order.
11209 (comp_reg_classes_func): Use ira_allocno_class_translate instead
11210 of ira_class_translate.
11211 (reorder_important_classes): Set up ira_important_class_nums.
11212 (setup_reg_class_relations): Set up ira_reg_class_superunion.
11213 (print_class_cover): Rename to print_classes. Add parameter.
11214 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
11215 Print pressure classes too.
11216 (find_reg_class_closure): Rename to find_reg_classes. Don't call
11217 setup_reg_subclasses.
11218 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
11219 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
11220 (setup_prohibited_class_mode_regs): Use
11221 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
11222 (clarify_prohibited_class_mode_regs): New function.
11223 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
11224 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
11225 (ira_init_once): Initialize them.
11226 (free_register_move_costs): Process them.
11227 (ira_init): Move calls of find_reg_classes and
11228 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
11229 Call clarify_prohibited_class_mode_regs.
11230 (ira_no_alloc_reg): Remove.
11231 (too_high_register_pressure_p): Use pressure classes.
11233 * sched-deps.c: Remove mentioning cover classes from the file.
11234 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
11235 ira_pressure_classes and ira_pressure_classes_num instead of
11236 ira_reg_class_cover_size and ira_reg_class_cover.
11237 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
11238 sched_regno_pressure_class instead of sched_regno_cover_class.
11239 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
11240 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
11242 * ira.h: Add 2010 to Copyright.
11243 (ira_no_alloc_reg): Remove external.
11244 (struct target_ira): Rename x_ira_hard_regno_cover_class,
11245 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
11246 x_ira_class_translate to x_ira_hard_regno_allocno_class,
11247 x_ira_allocno_classes_num, x_ira_allocno_classes, and
11248 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
11249 x_ira_pressure_classes, x_ira_pressure_class_translate, and
11250 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
11251 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
11252 x_ira_no_alloc_regs.
11253 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
11254 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
11255 ira_allocno_classes_num and ira_allocno_classes.
11256 (ira_class_translate): Rename to ira_allocno_class_translate.
11257 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
11258 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
11259 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
11260 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
11261 (ira_no_alloc_regs): New.
11263 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
11264 classes from the file. Use ALLOCNO_CLASS instead of
11265 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
11266 ALLOCNO_COVER_CLASS_COST.
11267 (regno_cover_class): Rename to regno_aclass.
11268 (record_reg_classes): Use ira_reg_class_subunion instead of
11269 ira_reg_class_union.
11270 (record_address_regs): Check overflow.
11271 (scan_one_insn): Ditto.
11272 (print_allocno_costs): Print total mem cost fore regional allocation.
11273 (print_pseudo_costs): Use REG_N_REFS.
11274 (find_costs_and_classes): Use classes intersected with them on the
11275 1st pass. Check overflow. Use ira_reg_class_subunion instead of
11276 ira_reg_class_union. Use ira_allocno_class_translate and
11277 regno_aclass instead of ira_class_translate and regno_cover_class.
11278 Modify code for finding regno_aclass. Setup preferred classes for
11280 (setup_allocno_cover_class_and_costs): Rename to
11281 setup_allocno_class_and_costs. Use regno_aclass instead of
11282 regno_cover_class. Use ira_set_allocno_class instead of
11283 ira_set_allocno_cover_class.
11284 (init_costs, finish_costs): Use regno_aclass instead of
11286 (ira_costs): Use setup_allocno_class_and_costs instead of
11287 setup_allocno_cover_class_and_costs.
11288 (ira_tune_allocno_costs_and_cover_classes): Rename to
11289 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
11290 by processing objects. Use ira_reg_class_max_nregs instead of
11291 ira_reg_class_nregs.
11293 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
11295 * sched-int.h: Remove mentioning cover classes from the file.
11296 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
11298 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
11299 classes from the file.
11300 (struct reg_pref): Rename coverclass into allocnoclass.
11301 (reg_cover_class): Rename to reg_allocno_class.
11303 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
11305 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
11307 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
11309 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
11311 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
11313 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
11315 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
11317 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
11319 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
11321 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
11323 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
11324 (i386_ira_cover_classes): Ditto.
11326 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
11328 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
11330 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
11332 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
11334 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
11336 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
11338 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
11339 (mips_ira_cover_classes): Ditto.
11341 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
11343 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
11345 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
11347 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
11349 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
11351 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
11352 (IRA_COVER_CLASSES_VSX): Ditto.
11354 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
11355 (rs6000_ira_cover_classes): Ditto.
11357 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
11359 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
11361 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
11363 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
11365 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
11367 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
11369 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
11371 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
11373 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
11375 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
11377 2011-03-29 Jakub Jelinek <jakub@redhat.com>
11380 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
11381 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
11382 dw_fde_unlikely_section_end_label, cold_in_std_section,
11383 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
11384 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
11386 (output_fde): Use dw_fde_second_{begin,end} if second is
11387 true, otherwise dw_fde_{begin,end}.
11388 (output_call_frame_info): Test dw_fde_second_begin != NULL
11389 instead of dw_fde_switched_sections.
11390 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
11391 fields, initialize new fields. Initialize in_std_section
11392 unconditionally from the first partition.
11393 (dwarf2out_end_epilogue): Don't override dw_fde_end when
11394 dw_fde_second_begin is non-NULL.
11395 (dwarf2out_switch_text_section): Stop initializing removed
11396 dw_fde_struct fields, initialize new fields, initialize
11397 also dw_fde_end here. Set dw_fde_switch_cfi even when
11398 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
11399 (struct var_loc_list_def): Add last_before_switch field.
11400 (arange_table, arange_table_allocated, arange_table_in_use,
11401 ARANGE_TABLE_INCREMENT, add_arange): Removed.
11402 (size_of_aranges): Count !in_std_section and !second_in_std_section
11403 hunks in fdes, instead of looking at arange_table_in_use.
11404 (output_aranges): Add aranges_length argument, don't call
11405 size_of_aranges here. Instead of using aranges_table*
11406 emit ranges for fdes when !in_std_section resp.
11407 !second_in_std_section.
11408 (dw_loc_list): Break ranges crossing section switch.
11409 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
11410 use dw_fde_second_end instead of dw_fde_end as end of last range.
11411 (gen_subprogram_die): Don't call add_arange. Use
11412 dw_fde_{begin,end} for first partition and if switched
11413 section dw_fde_second_{begin,end} for the second.
11414 (var_location_switch_text_section_1,
11415 var_location_switch_text_section): New functions.
11416 (dwarf2out_begin_function): Initialize cold_text_section even
11417 when function_section () isn't text_section.
11418 (prune_unused_types): Don't walk arange_table.
11419 (dwarf2out_finish): Don't needlessly test
11420 flag_reorder_blocks_and_partition when testing cold_text_section_used.
11421 If info_section_emitted, call size_of_aranges and if it indicates
11422 non-empty .debug_aranges, call output_aranges with the computed
11423 size. Stop using removed dw_fde_struct fields, use
11424 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
11428 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
11429 create ENTRY_VALUE if incoming or address of incoming's MEM
11431 * dwarf2out.c (mem_loc_descriptor): Don't emit
11432 DW_OP_GNU_entry_value of DW_OP_fbreg.
11433 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
11434 on ENTRY_VALUE is able to find the canonical parameter VALUE.
11435 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
11436 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
11438 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
11439 is a REG_P or MEM_P with REG_P address, compute hash directly
11440 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
11441 (preserve_only_constants): Don't clear VALUES forwaring
11442 ENTRY_VALUE to some other VALUE.
11444 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
11446 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
11447 instead of GEN_INT.
11449 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
11451 * cfgexpand.c (expand_gimple_cond): Always set the source location and
11452 block before expanding the statement.
11453 (expand_gimple_stmt_1): Likewise. Set them here...
11454 (expand_gimple_stmt): ...and not here. Tidy.
11455 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
11458 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
11460 * Makefile.in: New rule for cprop.o.
11461 * gcse.c: Move constant/copy propagation to cprop.c.
11462 (compute_local_properties): Only handle expression tables.
11463 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
11464 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
11465 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
11466 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
11467 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
11468 compute_cprop_data, find_used_regs, try_replace_reg,
11469 find_avail_set, cprop_jump, constprop_register, cprop_insn,
11470 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
11471 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
11472 find_bypass_set, reg_killed_on_edge, bypass_block,
11473 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
11474 execute_rtl_cprop, pass_rtl_cprop): Move to...
11475 * cprop.c: ...here. New file, constant/copy propagation for RTL
11476 moved from gcse.c to here with minor cleanups in duplicated code.
11478 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
11480 * config/i386/i386.c (flag_opts): Fix a typo in
11481 -mavx256-split-unaligned-store.
11483 2011-03-28 Anatoly Sokolov <aesok@post.ru>
11485 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
11486 LIBCALL_VALUE): Remove macros.
11487 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11488 TARGET_FUNCTION_VALUE_REGNO_P): Define.
11489 (h8300_function_value, h8300_libcall_value,
11490 h8300_function_value_regno_p): New functions.
11492 2011-03-28 Anatoly Sokolov <aesok@post.ru>
11494 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
11496 2011-03-28 Jeff Law <law@redhat.com>
11498 * tree-ssa-threadupdate.c (redirect_edges): Call
11499 create_edge_and_update_destination_phis as needed.
11500 (create_edge_and_update_destination_phis): Accept new BB argument.
11501 All callers updated.
11502 (thread_block): Do not update the profile when threading around
11503 intermediate blocks.
11504 (thread_single_edge): Likewise.
11505 (determine_bb_domination_status): If BB is not a successor of the
11506 loop header, return NONDOMINATING.
11507 (register_jump_thread): Note when we register a jump thread around
11508 an intermediate block.
11509 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
11510 (thread_across_edge): Use it.
11512 2011-03-28 Tristan Gingold <gingold@adacore.com>
11514 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
11515 when for_return is 2.
11517 2011-03-28 Jeff Law <law@redhat.com>
11519 * var-tracking.c (canonicalize_values_mark): Delete unused
11521 (canonicalize_values_star, set_variable_part): Likewise.
11522 (clobber_variable_part, delete_variable_part): Likewise.
11524 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
11526 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
11528 2011-03-28 Martin Jambor <mjambor@suse.cz>
11530 * tree-inline.c (expand_call_inline): Do not check that destination
11532 (optimize_inline_calls): Assert that destination node is analyzed.
11533 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
11534 not call tree_lowering_passes.
11535 * cgraph.h (cgraph_analyze_function): Declare.
11536 * cgraphunit.c (cgraph_analyze_function): Make public.
11538 2011-03-28 Joseph Myers <joseph@codesourcery.com>
11540 * config/sparc/sparc-opts.h: New.
11541 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
11542 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
11543 (sparc_option_override): Store processor_type enumeration rather
11544 than string in cpu_default. Remove name and enumeration from
11545 cpu_table. Directly default -mcpu then default -mtune from -mcpu
11546 without using sparc_select. Use target_flags_explicit instead of
11548 * config/sparc/sparc.h (enum processor_type): Move to
11550 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
11551 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
11552 HeaderInclude entry.
11553 (mcpu=, mtune=): Use Var and Enum.
11554 (sparc_processor_type): New Enum and EnumValue entries.
11556 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11557 Iain Sandoe <iains@gcc.gnu.org>
11560 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
11562 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
11564 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
11565 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
11566 Insert new statements at it in lieu of STMT.
11567 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
11568 * tree-vect-stmts.c (vectorizable_store): Likewise.
11569 (vectorizable_load): Likewise.
11571 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
11573 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
11578 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
11580 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
11581 unaligned 256bit load/store.
11582 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
11583 (*avx_movdqu<avxmodesuffix>): Likewise.
11585 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11588 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
11589 * config/pa/pa.md (iordi3): Use new predicate in expander.
11590 (iorsi3): Likewise.
11592 2011-03-27 Anatoly Sokolov <aesok@post.ru>
11594 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
11595 FUNCTION_VALUE_REGNO_P): Remove macros.
11596 * config/mips/mips-protos.h (mips_function_value): Remove.
11597 * config/mips/mips.c (mips_function_value): Rename to...
11598 (mips_function_value_1): ... this. Make static. Handle receiving
11599 the function type in 'fn_decl_or_type' argument.
11600 (mips_function_value, mips_libcall_value,
11601 mips_function_value_regno_p): New function.
11602 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11603 TARGET_FUNCTION_VALUE_REGNO_P): Define.
11605 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
11607 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
11608 and -mavx256-split-unaligned-store.
11609 (ix86_option_override_internal): Split 32-byte AVX unaligned
11610 load/store by default.
11611 (ix86_avx256_split_vector_move_misalign): New.
11612 (ix86_expand_vector_move_misalign): Use it.
11614 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
11615 -mavx256-split-unaligned-store.
11617 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
11618 256bit load/store. Generate unaligned store on misaligned memory
11620 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
11622 (*avx_movdqu<avxmodesuffix>): Likewise.
11624 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
11625 -mavx256-split-unaligned-store.
11627 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
11630 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
11633 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
11635 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
11636 opno arguments with an expand_operand. Use create_input_operand.
11637 (mips_prepare_builtin_target): Delete.
11638 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
11640 (mips_expand_builtin_direct): Use create_output_operand and
11641 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
11642 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
11643 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
11645 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
11647 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
11649 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
11651 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
11653 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
11654 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
11655 basic blocks and call commit_edge_insertions directly.
11656 (fixup_abnormal_edges): Move from here to...
11657 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
11658 on the edges and return whether some have actually been inserted.
11659 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
11662 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
11664 PR rtl-optimization/48144
11665 * sel-sched-ir.c (merge_history_vect): Factor out from ...
11666 (merge_expr_data): ... here.
11667 (av_set_intersect): Rename to av_set_code_motion_filter.
11668 Update all callers. Call merge_history_vect when an expression
11669 is found in both sets.
11670 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
11672 2011-03-26 Alan Modra <amodra@gmail.com>
11674 * config/rs6000/predicates.md (word_offset_memref_op): Handle
11675 cmodel medium addresses.
11676 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
11677 64-bit gpr loads and stores.
11678 (rs6000_secondary_reload_ppc64): New function.
11679 * config/rs6000/rs6000-protos.h: Declare it.
11680 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
11682 2011-03-26 Alan Modra <amodra@gmail.com>
11685 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
11686 GNU Go in traceback table.
11688 2011-03-25 Richard Henderson <rth@redhat.com>
11690 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
11691 if there are exactly 6 operands.
11692 (set_storage_via_setmem): Similarly.
11694 2011-03-25 Kai Tietz <ktietz@redhat.com>
11696 * collect2.c (write_c_file_stat): Handle backslash
11697 as right-hand directory separator.
11698 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
11699 checking just for slash.
11700 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
11701 instead of checking for trailing slash.
11702 * gcc.c (record_temp_file): Use filename_cmp instead
11704 (do_spec_1): Likewise.
11705 (replace_outfile_spec_function): Likewise.
11706 (is_directory): Use filename_ncmp instead of strncmp.
11707 (print_multilib_info): Likewise.
11708 * gcov.c (find_source): Use filename_cmp instead
11710 (make_gcov_file_name): Fix order of slash/backslash
11712 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
11713 (add_standard_paths): Likewise.
11714 * mips-tfile.c (saber_stop): Handle backslash.
11715 * prefix.c (update_path): Use filename_ncmp instead of
11717 * profile.c (output_location): Use filename_cmp instead
11719 * read-md.c (handle_toplevel_file): Handle backslash.
11720 * tlink.c (frob_extension): Likewise.
11721 * tree-cfg.c (same_line_p): Use filename_cmp instead of
11723 * tree-dump.c (dequeue_and_dump): Handle backslash.
11724 * tree.c (get_file_function_name): Likewise.
11725 * gengtype.c (read_input_list): Likewise.
11726 (get_file_realbasename): Likewise.
11727 (get_output_file_with_visibility): Use filename_cmp
11730 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
11732 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
11735 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
11737 * fold-const.c (expr_location_or): New function.
11738 (fold_truth_not_expr): Call it.
11740 2011-03-25 Jeff Law <law@redhat.com>
11742 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
11744 * c-family/c-common.c (def_fn_type): Likewise.
11745 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
11746 * emit-rtl.c (gen_rtvec): Likewise.
11747 * lto/lto-lang.c (def_fn_type): Likewise.
11749 2011-03-25 Richard Guenther <rguenther@suse.de>
11751 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
11752 also generate copies.
11753 (fini_copy_prop): Handle constant values properly.
11755 2011-03-25 Jakub Jelinek <jakub@redhat.com>
11757 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
11758 mode size instead of bitsize with DWARF2_ADDR_SIZE.
11759 (hash_loc_operands, compare_loc_operands): Handle
11760 DW_OP_GNU_entry_value.
11762 2011-03-25 Kai Tietz <ktietz@redhat.com>
11764 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
11765 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
11766 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
11767 comment and use macro TARGET_64BIT_MS_ABI instead.
11768 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
11769 and change default behavior for 32-bit MS_ABI.
11770 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
11771 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
11773 (ix86_cfun_abi): Likewise.
11774 (ix86_maybe_switch_abi): Adjust comment.
11775 (init_cumulative_args): Check for bit-ness in MS_ABI case.
11776 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
11777 instead of checking for SYSV_ABI.
11778 (ix86_nsaved_sseregs): Likewise.
11779 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
11781 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
11782 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
11783 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
11784 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
11785 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
11787 2011-03-25 Richard Guenther <rguenther@suse.de>
11789 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
11790 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
11791 (verify_gimple): Remove.
11792 * tree-cfg.c (verify_gimple_call): Merge verification
11794 (verify_gimple_phi): Merge verification from verify_stmts.
11795 (verify_gimple_label): New function.
11796 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
11797 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
11798 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
11799 (verify_stmts): Rename to verify_gimple_in_cfg.
11800 (verify_gimple_in_cfg): New function.
11801 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
11802 * tree-ssa.c (verify_ssa): Likewise.
11803 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
11805 2011-03-25 Richard Guenther <rguenther@suse.de>
11807 * passes.c (init_optimization_passes): Add FRE pass after
11810 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
11811 Andrew Stubbs <ams@codesourcery.com>
11813 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
11815 (arm_movdi_vfp_cortexa8): New pattern.
11816 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
11817 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
11818 instructions when tuning for Cortex-A8. Set attribute "arch".
11819 * config/arm/arm.md: Move include arm-tune.md up a bit.
11820 (define_attr "arch"): Add "onlya8" and "nota8" values.
11821 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
11823 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
11827 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
11829 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
11830 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
11831 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
11832 * passes.c (init_optimization_passes): Move
11833 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
11835 2011-03-25 Kai Tietz <ktietz@redhat.com>
11837 * c-typeck.c (comptypes_internal): Replace target
11838 hook call of comp_type_attributes by version in tree.c file.
11839 * gimple.c (gimple_types_compatible_p_1): Likewise.
11840 * tree-ssa.c (useless_type_conversion_p): Likewise.
11841 * tree.c (build_type_attribute_qual_variant): Likewise.
11842 (attribute_value_equal): New static helper function.
11843 (comp_type_attributes): New function.
11844 (merge_attributes): Use attribute_value_equal for comparison.
11845 (attribute_list_contained): Likewise.
11846 * tree.h (comp_type_attributes): New prototype.
11848 2011-03-25 Richard Guenther <rguenther@suse.de>
11850 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
11851 of complex types at -O0.
11852 (verify_gimple_assign_binary): Likewise.
11853 (verify_gimple_assign_ternary): Likewise.
11855 2011-03-24 Mark Wielaard <mjw@redhat.com>
11857 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
11858 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
11860 2011-03-24 Mark Wielaard <mjw@redhat.com>
11863 * dwarf2out.c (output_abbrev_section): Only write table when
11864 abbrev_die_table_in_use > 1.
11866 2011-02-24 Richard Henderson <rth@redhat.com>
11868 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
11869 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
11870 (alpha_expand_unaligned_load_words): Use extql.
11871 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
11872 (emit_insxl): Handle all modes for consistency.
11874 2011-02-24 Richard Henderson <rth@redhat.com>
11876 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
11877 (alpha_expand_unaligned_load): Likewise.
11878 (alpha_expand_unaligned_store): Likewise.
11879 (alpha_expand_unaligned_load_words): Likewise.
11880 (alpha_expand_unaligned_store_words): Likewise.
11881 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
11882 (alpha_split_lock_test_and_set_12): Likewise.
11883 (print_operand, alpha_fold_builtin_extxx): Likewise.
11884 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
11885 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
11886 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
11887 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
11888 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
11889 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
11890 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
11891 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
11892 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
11893 (extwl, extll, extql): Similarly.
11894 (inswh, inslh, insqh): Similarly.
11895 (mskbl, mskwl, mskll, mskql): Similarly.
11896 (mskwh, msklh, mskqh): Similarly.
11898 2011-02-24 Richard Henderson <rth@redhat.com>
11900 * config/alpha/alpha.md (attribute isa): Add er, ner.
11901 (attribute enabled): Handle them.
11902 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
11904 2011-02-24 Richard Henderson <rth@redhat.com>
11906 * config/alpha/alpha.md (attribute isa): Add vms.
11907 (attribute enabled): Handle it.
11908 (*movsf): Merge *movsf_{nofix,fix,nofp}.
11909 (*movdf): Merge *movdf_{nofix,fix,nofp}.
11910 (*movtf): Rename from *movtf_internal for consistency.
11911 (*movsi): Merge with *movsi_nt_vms.
11912 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
11913 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
11914 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
11915 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
11917 2011-02-24 Richard Henderson <rth@redhat.com>
11919 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
11920 (extendqisi2, extendhisi2): Likewise.
11921 (extendqidi2): Simplify BWX/non-BWX expansions.
11922 (extendhidi2): Similarly.
11924 2011-02-24 Richard Henderson <rth@redhat.com>
11926 * config/alpha/alpha.md (attribute isa): New.
11927 (attribute enabled): New.
11928 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
11929 (zero_extendqisi2, zero_extendqidi2): Similarly.
11930 (zero_extendhisi2, zero_extendhidi2): Similarly.
11931 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
11933 2011-02-24 Richard Henderson <rth@redhat.com>
11935 * config/alpha/predicates.md (input_operand): Revert last change;
11936 update comment to mention 32-bit VMS rather than Windows.
11938 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
11940 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
11941 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
11942 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
11943 * passes.c (init_optimization_passes): Move
11944 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
11946 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
11948 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
11950 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
11952 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
11955 2011-03-24 Jakub Jelinek <jakub@redhat.com>
11958 * simplify-rtx.c (simplify_const_unary_operation): Call
11959 real_convert when changing mode class with FLOAT_EXTEND.
11961 2011-03-24 Nick Clifton <nickc@redhat.com>
11963 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
11964 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
11965 * config/rx/rx.c (rx_option_override): Set align_jumps,
11966 align_loops and align_labels if not set by the user.
11967 (rx_align_for_label): New function.
11968 (rx_max_skip_for_label): New function.
11969 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
11970 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
11971 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
11972 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
11973 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
11975 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
11977 PR rtl-optimization/48263
11978 * optabs.c (expand_binop_directly): Reinstate convert_modes code
11979 and original commutative_p handling. Use maybe_gen_insn.
11981 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11983 * reload.c (find_reloads_subreg_address): Add address_reloaded
11984 parameter and return true there if the full address has been
11986 (find_reloads_toplev): Pass address_reloaded flag.
11987 (find_reloads_address_1): Don't use address_reloaded parameter.
11989 2011-03-24 Jeff Law <law@redhat.com>
11991 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
11992 unused variable "ann".
11993 (remove_unused_locals): Likewise.
11995 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
11998 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
12001 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12003 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
12004 for invalid symbolic addresses.
12005 (s390_secondary_reload): Don't use s390_check_symref_alignment for
12008 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
12010 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
12011 the argument in calls to fold_truth_not_expr.
12013 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
12015 * tree.c (record_node_allocation_statistics): New function.
12016 (make_node_stat, copy_node_stat, build_string): Call it.
12017 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
12018 (build1_stat, build_omp_clause): Likewise.
12020 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
12022 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
12025 2011-03-24 Richard Guenther <rguenther@suse.de>
12027 PR tree-optimization/48271
12028 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
12029 blocks that still exist.
12031 2011-03-24 Richard Guenther <rguenther@suse.de>
12033 PR tree-optimization/48270
12034 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
12035 not free datarefs before ddrs.
12037 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
12039 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
12040 from the address built for a reference with variable offset.
12042 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
12045 * config/i386/i386.md (*movdf_internal_rex64): Do not split
12046 alternatives that can be handled with movq or movabsq insn.
12047 (*movdf_internal): Disable for !TARGET_64BIT.
12048 (*movdf_internal_nointeger): Ditto.
12049 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
12051 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
12053 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
12054 (FUNCTION_ARG_ADVANCE): Likewise.
12055 * tm.texi.in: Change references to them to hook references.
12056 * tm.texi: Regenerate.
12057 * targhooks.c (default_function_arg): Eliminate check for target macro.
12058 (default_function_incoming_arg): Likewise.
12059 (default_function_arg_advance): Likewise.
12060 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
12061 (function_arg_advance): Likewise.
12062 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
12064 2011-03-24 Richard Guenther <rguenther@suse.de>
12066 PR middle-end/48269
12067 * tree-object-size.c (addr_object_size): Do not double-account
12068 for MEM_REF offsets.
12070 2011-03-24 Diego Novillo <dnovillo@google.com>
12072 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
12073 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
12074 (lto_input_data_block): Move from lto-opts.c. Make extern.
12076 (lto_input_string): Rename from input_string. Make extern.
12078 * lto-streamer-out.c (lto_output_string_with_length): Rename from
12079 output_string_with_length.
12080 Output 0 to indicate a non-NULL string. Update all callers to
12082 (lto_output_string): Rename from output_string. Make extern.
12084 (lto_output_decl_state_streams): Make extern.
12085 (lto_output_decl_state_refs): Make extern.
12086 * lto-streamer.h (lto_input_string): Declare.
12087 (lto_input_data_block): Declare.
12088 (lto_output_string): Declare.
12089 (lto_output_string_with_length): Declare.
12090 (lto_output_decl_state_streams): Declare.
12091 (lto_output_decl_state_refs): Declare.
12093 2011-03-24 Richard Guenther <rguenther@suse.de>
12095 PR tree-optimization/46562
12096 * tree.c (build_invariant_address): New function.
12097 * tree.h (build_invariant_address): Declare.
12098 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
12099 a renamed function moved ...
12100 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
12101 Take valueization callback parameter.
12102 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
12103 * gimple-fold.h: New file.
12104 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
12105 (ccp_fold, fold_const_aggregate_ref,
12106 fold_ctor_reference, fold_nonarray_ctor_reference,
12107 fold_array_ctor_reference, fold_string_cst_ctor_reference,
12108 get_base_constructor): Move ...
12109 * gimple-fold.c: ... here.
12110 (gimple_fold_stmt_to_constant_1): New function
12111 split out from ccp_fold. Take a valueization callback parameter.
12112 Valueize all operands.
12113 (gimple_fold_stmt_to_constant): New wrapper function.
12114 (fold_const_aggregate_ref_1): New function split out from
12115 fold_const_aggregate_ref. Take a valueization callback parameter.
12116 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
12117 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
12118 invariant POINTER_PLUS_EXPRs to invariant form.
12119 (vn_valueize): New function.
12120 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
12121 * tree-vrp.c (vrp_valueize): New function.
12122 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
12123 to fold statements to constants.
12124 * tree-ssa-pre.c (eliminate): Properly guard propagation of
12125 function declarations.
12126 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
12127 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
12129 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
12131 * config/h8300/predicates.md (jump_address_operand): Fix register
12134 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
12136 * doc/invoke.texi (max-stores-to-sink): Document.
12137 * params.h (MAX_STORES_TO_SINK): Define.
12138 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
12139 if either vectorization or if-conversion is disabled.
12140 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
12141 tree-vect-data-refs.c vect_equal_offsets.
12142 (dr_equal_offsets_p): New function.
12143 (find_data_references_in_bb): Remove static.
12144 * tree-data-ref.h (find_data_references_in_bb): Declare.
12145 (dr_equal_offsets_p): Likewise.
12146 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
12147 (vect_drs_dependent_in_basic_block): Update calls to
12148 vect_equal_offsets.
12149 (vect_check_interleaving): Likewise.
12150 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
12151 (cond_if_else_store_replacement): Rename to...
12152 (cond_if_else_store_replacement_1): ... this. Change arguments and
12154 (cond_if_else_store_replacement): New function.
12155 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
12156 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
12158 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
12161 * config/arm/arm.md (casesi): Use the gen_int_mode() function
12162 to subtract lower bound instead of GEN_INT().
12164 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
12169 * doc/extend.texi (Alignment): Move section to match order in TOC.
12170 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
12171 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
12173 2011-03-23 Jeff Law <law@redhat.com>
12175 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
12176 before removing the edge.
12178 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
12179 it may have been freed by redirect_branch_edge or
12180 redirect_edge_succ_nodup.
12182 2011-03-23 Richard Guenther <rguenther@suse.de>
12184 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
12185 (check_va_list_escapes): Likewise.
12186 (check_all_va_list_escapes): Likewise.
12188 2011-03-23 Richard Guenther <rguenther@suse.de>
12190 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
12191 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
12192 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
12193 (alias.o): Likewise.
12194 (ipa-type-escape.o): Remove.
12195 (ipa-struct-reorg.o): Likewise.
12196 (GTFILES): Remove ipa-struct-reorg.c.
12197 * alias.c: Do not include ipa-type-escape.h.
12198 * tree-ssa-alias.c: Likewise.
12199 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
12200 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
12201 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
12202 and ipa-type-escape passes.
12203 * tree-pass.h (pass_ipa_type_escape): Remove.
12204 (pass_ipa_struct_reorg): Likewise.
12205 * ipa-struct-reorg.h: Remove.
12206 * ipa-struct-reorg.c: Likewise.
12207 * ipa-type-escape.h: Likewise.
12208 * ipa-type-escape.c: Likewise.
12209 * doc/invoke.texi (-fipa-struct-reorg): Remove.
12210 (--param struct-reorg-cold-struct-ratio): Likewise.
12211 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
12212 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
12213 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
12215 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12217 * config/s390/2084.md: Enable all insn reservations also for z9_ec
12218 cpu attribute value.
12219 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
12220 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
12221 * config/s390/s390.c (processor_flags_table): New constant array.
12222 (s390_handle_arch_option): Remove.
12223 (s390_handle_option): Remove s390_handle_arch_option invocations
12224 and OPT_mwarn_framesize_ handling.
12225 (s390_option_override): Remove s390_handle_arch_option invocation.
12226 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
12228 * config/s390/s390.md (cpu attribute): Add z9_ec value.
12229 * config/s390/s390.opt (s390_tune, s390_arch)
12230 (march=): Replace s390_arch_option enum and values with
12231 processor_type. Set variable name to s390_arch. Set
12232 initialization value.
12233 (mtune=): Replace s390_arch_option with processor_type. Set
12234 variable name to s390_tune. Set initialization value.
12236 2011-03-23 Julian Brown <julian@codesourcery.com>
12238 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
12239 accesses which are not naturally aligned.
12241 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
12244 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
12246 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
12248 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
12249 parameter from "int" to "enum insn_code".
12250 (expand_operand_type): New enum.
12251 (expand_operand): New structure.
12252 (create_expand_operand): New function.
12253 (create_fixed_operand, create_output_operand): Likewise
12254 (create_input_operand, create_convert_operand_to): Likewise.
12255 (create_convert_operand_from, create_address_operand): Likewise.
12256 (create_integer_operand): Likewise.
12257 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
12258 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
12259 (expand_insn, expand_jump_insn): Likewise.
12260 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
12261 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
12262 (expand_movstr, expand_builtin___clear_cache): Likewise.
12263 (expand_builtin_lock_release): Likewise.
12264 * explow.c (allocate_dynamic_stack_space): Likewise.
12265 (probe_stack_range): Likewise. Allow check_stack to FAIL,
12266 and use the default handling in that case.
12267 * expmed.c (check_predicate_volatile_ok): Delete.
12268 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
12269 (emit_cstore): Likewise.
12270 * expr.c (emit_block_move_via_movmem): Likewise.
12271 (set_storage_via_setmem, expand_assignment): Likewise.
12272 (emit_storent_insn, try_casesi): Likewise.
12273 (emit_single_push_insn): Likewise. Allow the expansion to fail.
12274 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
12275 (expand_vec_shift_expr, expand_binop_directly): Likewise.
12276 (expand_twoval_unop, expand_twoval_binop): Likewise.
12277 (expand_unop_direct, emit_indirect_jump): Likewise.
12278 (emit_conditional_move, vector_compare_rtx): Likewise.
12279 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
12280 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
12281 (expand_sync_lock_test_and_set): Likewise.
12282 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
12283 (emit_unop_insn): Likewise.
12284 (expand_copysign_absneg): Change icode to an insn_code.
12285 (create_convert_operand_from_type): New function.
12286 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
12287 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
12288 (expand_insn, expand_jump_insn): Likewise.
12289 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
12290 than const_int_operand for operand 2.
12292 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12294 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
12297 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
12299 * emit-rtl.c (emit_pattern_before_noloc): New function.
12300 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
12301 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
12302 (emit_pattern_after_noloc): New function.
12303 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
12304 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
12306 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
12308 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
12309 (__ffsDI2): Likewise.
12311 2011-03-22 Richard Henderson <rth@redhat.com>
12313 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
12314 of !TARGET_ABI_OPEN_VMS.
12315 (alpha_trampoline_init, alpha_start_function): Likewise.
12316 (alpha_expand_epilogue, alpha_file_start): Likewise.
12317 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
12318 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
12319 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
12320 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
12321 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
12323 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12325 * config/s390/s390-opts.h: New.
12326 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
12327 s390_arch_flags, s390_warn_framesize, s390_stack_size,
12328 s390_stack_guard): Remove.
12329 (s390_handle_arch_option): Return void. Take enum
12330 s390_arch_option value instead of string and searching array.
12331 (s390_handle_option): Don't assert that global structures are in
12332 use. Access variables via opts pointer. Use error_at. Don't use
12333 sscanf for -mstack-guard= or -mstack-size=. Update call to
12334 s390_handle_arch_option.
12335 (s390_option_override): Update call to s390_handle_arch_option.
12336 (s390_emit_prologue): Use %d format for s390_stack_size in
12337 diagnostic. Use %wd for HOST_WIDE_INT.
12338 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
12339 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
12340 * config/s390/s390.opt (config/s390/s390-opts.h): New
12341 HeaderInclude entry.
12342 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
12343 s390_arch_flags, s390_warn_framesize): New Variable entries.
12344 (s390_arch_option): New Enum and EnumValue entries.
12345 (march=): Use Enum instead of Var.
12346 (mstack-guard=, mstack-size=): Use UInteger and Var.
12347 (mtune=): Use Enum.
12349 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12351 * config/score/score.c (score_handle_option): Don't assert that
12352 global structures are in use. Access target_flags via opts
12353 pointer. Use value of -march= option to determine target_flags
12355 * config/score/score.opt (march=): Use Enum.
12356 (score_arch): New Enum and EnumValue entries.
12358 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12360 * config/mep/mep.c (option_mtiny_specified): Remove.
12361 (mep_option_override): Move register handling for -mivc2 from
12362 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
12363 instead of option_mtiny_specified.
12364 (mep_handle_option): Access target_flags via opts pointer. Don't
12365 assert that global structures are in use. Defer part of -mivc2
12366 handling and move it to mep_option_override.
12367 * config/mep/mep.opt (IVC2): New Mask entry.
12368 (mivc2): Use Var and Defer instead of Mask.
12370 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12372 * config/v850/v850-opts.h: New.
12373 * config/v850/v850.c (small_memory): Replace with
12374 small_memory_physical_max array. Make that array static const.
12375 (v850_handle_memory_option): Take integer value of argument. Take
12376 gcc_options pointer, option text and location. Return void.
12377 Update for changes to small memory structures.
12378 (v850_handle_option): Access target_flags via opts pointer. Don't
12379 assert that global structures are in use. Update calls to
12380 v850_handle_memory_option.
12381 (v850_encode_data_area): Update references to small memory settings.
12382 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
12383 (enum small_memory_type): Move to v850-opts.h.
12384 * config/v850/v850.opt (config/v850/v850-opts.h): New
12385 HeaderInclude entry.
12386 (small_memory_max): New Variable entry.
12387 (msda): Replace by pair of options msda= and msda-. Use UInteger.
12388 (mtda, mzda): Likewise.
12390 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12392 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
12393 pointer. Don't assert that global structures are in use.
12395 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12397 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
12398 via opts pointer. Don't assert that global structures are in use.
12400 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12402 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
12403 (munix=93): Use Var.
12404 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
12405 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
12406 * config/pa/pa-opts.h: New.
12407 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
12408 (pa_handle_option): Don't assert that global structures are in
12409 use. Access target_flags via opts pointer. Don't handle
12410 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
12412 (pa_option_override): Handle deferred OPT_mfixed_range_.
12414 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12416 * config/mn10300/mn10300-opts.h: New.
12417 * config/mn10300/mn10300.c (mn10300_processor,
12418 mn10300_tune_string): Remove.
12419 (mn10300_handle_option): Don't assert that global structures are
12420 in use. Access mn10300_processor via opts pointer. Don't handle
12422 * config/mn10300/mn10300.h (enum processor_type): Move to
12424 (mn10300_processor): Remove.
12425 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
12426 HeaderInclude entry.
12427 (mn10300_processor): New Variable entry.
12430 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12432 * config/microblaze/microblaze.c: Don't include opts.h.
12433 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
12434 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
12435 (mno-clearbss): Use Var and Warn.
12437 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12439 * config/m32r/m32r-opts.h: New.
12440 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
12441 (m32r_handle_option): Don't assert that global structures are in
12442 use. Access target_flags and m32r_cache_flush_func via opts
12443 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
12444 OPT_mno_flush_trap here.
12445 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
12446 include of m32r-opts.h.
12447 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
12448 HeaderInclude entry.
12449 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
12450 (mmodel=): Use Enum and Var.
12451 (m32r_model): New Enum and EnumValue entries.
12452 (mno-flush-trap): Use Var.
12453 (msdata=): Use Enum and Var.
12454 (m32r_sdata): New Enum and EnumValue entries.
12456 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12458 * config/m32c/m32c.c: Don't include opts.h.
12459 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
12460 m32c_handle_option): Remove.
12461 (m32c_option_override): Check global_options_set.x_target_memregs
12462 instead of target_memregs_set.
12463 * config/m32c/m32c.h (target_memregs): Remove.
12464 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
12467 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12469 * config/iq2000/iq2000-opts.h: New.
12470 * config/iq2000/iq2000.c: Don't include opts.h.
12471 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
12472 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
12473 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
12474 HeaderInclude entry.
12475 (iq2000_tune): New Variable entry.
12476 (march=): Add comment. Use Enum.
12477 (iq2000_arch): New Enum and EnumValue entries.
12478 (mcpu=): Use Enum and Var.
12479 (iq2000_tune): New Enum and EnumValue entries.
12481 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12483 * config/ia64/ia64-opts.h: New.
12484 * config/ia64/ia64.c (ia64_tune): Remove.
12485 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
12486 here. Use error_at.
12487 (ia64_option_override): Handle deferred OPT_mfixed_range_.
12488 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
12489 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
12490 HeaderInclude entry.
12491 (ia64_tune): New Variable entry.
12492 (mfixed-range=): Use Defer and Var.
12493 (mtune=): Use Enum and Var.
12494 (ia64_tune): New Enum and EnumValue entries.
12496 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12498 * config/frv/frv-opts.h: New.
12499 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
12501 (frv_cpu_type): Remove.
12502 * config/frv/frv.c: Don't include opts.h.
12503 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
12504 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
12505 (frv_cpu_type): New Variable entry.
12506 (frv_cpu): New Enum and EnumValue entries.
12508 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12510 * config/cris/cris.c (cris_handle_option): Access target_flags via
12511 opts pointer. Don't assert that global structures are in use.
12512 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
12513 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
12515 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12517 * config/bfin/bfin-opts.h: New.
12518 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
12519 bfin_si_revision, bfin_workarounds): Remove.
12520 (bfin_cpus): Make static const.
12521 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
12522 not bfin_lib_id_given.
12523 (bfin_handle_option): Don't set bfin_lib_id_given. Access
12524 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
12525 pointer. Use error_at. Don't assert that global structures are in use.
12526 * config/bfin/bfin.h: Include bfin-opts.h.
12527 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
12528 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
12529 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
12530 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
12533 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12535 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
12536 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
12537 or -msoft-float here.
12538 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
12539 -msoft-float and -mhard-float.
12540 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
12541 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
12543 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
12545 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
12546 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
12548 (LIBGCC_SPEC): Don't handle -msoft-float.
12549 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
12551 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
12553 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
12554 -mfloat-abi=*, not -msoft-float and -mhard-float.
12555 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
12557 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
12558 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
12559 mhard-float and msoft-float.
12560 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
12561 mfloat-abi=soft in comments, not mhard-float and msoft-float.
12562 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
12563 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
12565 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
12566 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
12568 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
12570 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
12573 2011-03-22 Richard Henderson <rth@redhat.com>
12575 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
12576 TARGET_ABI_WINDOWS_NT.
12577 (alpha_output_function_end_prologue): Likewise.
12578 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
12579 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
12580 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
12581 (trap, *movsi_nt_vms): Likewise.
12582 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
12583 (*tablejump_osf_nt_internal): Remove.
12584 * config/alpha/predicates.md (input_operand): Only test Pmode.
12586 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12588 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
12589 via opts pointer. Use error_at. Don't assert that global
12590 structures are in use.
12592 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12594 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
12595 (ix86_handle_option): Access ix86_isa_flags and
12596 ix86_isa_flags_explicit via opts pointer. Don't assert that
12597 global structures are in use.
12598 (ix86_function_specific_save, ix86_function_specific_restore):
12599 Update ix86_isa_flags_explicit field name.
12600 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
12601 (ix86_isa_flags_explicit): Rename TargetSave entry to
12602 x_ix86_isa_flags_explicit.
12604 2011-03-22 Richard Henderson <rth@redhat.com>
12606 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
12607 (alpha_option_override, direct_return): Likewise.
12608 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
12609 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
12610 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
12611 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
12612 (alpha_expand_epilogue, alpha_end_function): Likewise.
12613 (alpha_init_libfuncs): Likewise.
12614 (struct machine_function): Remove unicosmk members.
12615 (print_operand) ['t']: Remove.
12616 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
12617 unicosmk_output_module_name, unicosmk_output_common,
12618 current_section_align, unicosmk_output_text_section_asm_op,
12619 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
12620 unicosmk_section_type_flags, unicosmk_unique_section,
12621 unicosmk_asm_named_section, unicosmk_insert_attributes,
12622 unicosmk_output_align, unicosmk_defer_case_vector,
12623 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
12624 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
12625 unicosmk_output_ssib, unicosmk_add_call_info_word,
12626 unicosmk_extern_head, unicosmk_output_default_externs,
12627 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
12628 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
12629 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
12630 * config/alpha/alpha-protos.h: Update.
12631 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
12632 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
12633 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
12634 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
12635 (*mulsi_se, mulvsi3): Likewise.
12636 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
12637 (*divmodsi_internal, call, call_value, realign): Likewise.
12638 (moddi3, umoddi3): Likewise; remove duplicate expander.
12639 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
12640 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
12641 (*movdi_nofix): Remove r/U alternative.
12642 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
12643 * config/alpha/constraints.md ("U"): Remove.
12644 * config/alpha/predicates.md (call_operand"): Don't test
12645 TARGET_ABI_UNICOSMK.
12647 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12649 * target.def (handle_option): Take gcc_options and
12650 cl_decoded_option pointers and location_t.
12651 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
12652 * doc/tm.texi: Regenerate.
12653 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
12654 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
12655 * lto-opts.c (lto_reissue_options): Generate option structure for
12656 targetm.handle_option call.
12657 * opts.c (target_handle_option): Update call to
12658 targetm.handle_option. Remove assertions about values now passed
12660 * targhooks.c (default_target_handle_option): New.
12661 * targhooks.h (default_target_handle_option): Declare.
12662 * config/alpha/alpha.c: Include opts.h.
12663 (alpha_handle_option): Update to new hook interface.
12664 * config/arm/arm.c: Include opts.h.
12665 (arm_handle_option): Update to new hook interface.
12666 * config/arm/t-arm (arm.o): Update dependencies.
12667 * config/bfin/bfin.c: Include opts.h.
12668 (bfin_handle_option): Update to new hook interface.
12669 * config/cris/cris.c: Include opts.h.
12670 (cris_handle_option): Update to new hook interface.
12671 * config/frv/frv.c: Include opts.h.
12672 (frv_handle_option): Update to new hook interface.
12673 * config/i386/i386.c: Include opts.h.
12674 (ix86_handle_option): Update to new hook interface.
12675 (ix86_valid_target_attribute_inner_p): Generate option structure
12676 for call to ix86_handle_option.
12677 * config/i386/t-i386 (i386.o): Update dependencies.
12678 * config/ia64/ia64.c: Include opts.h.
12679 (ia64_handle_option): Update to new hook interface.
12680 * config/ia64/t-ia64 (ia64.o): Update dependencies.
12681 * config/iq2000/iq2000.c: Include opts.h.
12682 (iq2000_handle_option): Update to new hook interface.
12683 * config/m32c/m32c.c: Include opts.h.
12684 (m32c_handle_option): Update to new hook interface.
12685 * config/m32r/m32r.c: Include opts.h.
12686 (m32r_handle_option): Update to new hook interface.
12687 * config/m68k/m68k.c: Include opts.h.
12688 (m68k_handle_option): Update to new hook interface.
12689 * config/mep/mep.c: Include opts.h.
12690 (mep_handle_option): Update to new hook interface.
12691 * config/microblaze/microblaze.c: Include opts.h.
12692 (microblaze_handle_option): Update to new hook interface.
12693 * config/mips/mips.c: Include opts.h.
12694 (mips_handle_option): Update to new hook interface.
12695 * config/mn10300/mn10300.c: Include opts.h.
12696 (mn10300_handle_option): Update to new hook interface.
12697 * config/pa/pa.c: Include opts.h.
12698 (pa_handle_option): Update to new hook interface.
12699 * config/pdp11/pdp11.c: Include opts.h.
12700 (pdp11_handle_option): Update to new hook interface.
12701 * config/rs6000/rs6000.c: Include opts.h.
12702 (rs6000_handle_option): Update to new hook interface.
12703 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
12704 * config/rx/rx.c: Include opts.h.
12705 (rx_handle_option): Update to new hook interface.
12706 * config/s390/s390.c: Include opts.h.
12707 (s390_handle_option): Update to new hook interface.
12708 * config/score/score.c: Include opts.h.
12709 (score_handle_option): Update to new hook interface.
12710 * config/sh/sh.c: Include opts.h.
12711 (sh_handle_option): Update to new hook interface.
12712 * config/sparc/sparc.c: Include opts.h.
12713 (sparc_handle_option): Update to new hook interface.
12714 * config/v850/v850.c: Include opts.h.
12715 (v850_handle_option): Update to new hook interface.
12717 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12719 * gcc.c (driver_unknown_option_callback): Only permit and save
12720 unknown -Wno- options.
12721 (driver_wrong_lang_callback): Save options directly instead of via
12722 driver_unknown_option_callback.
12724 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
12726 * combine.c (simplify_set): Try harder to find the best CC mode when
12727 simplifying a nested COMPARE on the RHS.
12729 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12731 * config/alpha/gnu.h: Remove.
12732 * config/arc: Remove directory.
12733 * config/arm/netbsd.h: Remove.
12734 * config/arm/t-pe: Remove.
12735 * config/crx: Remove directory.
12736 * config/i386/netbsd.h: Remove.
12737 * config/m68hc11: Remove directory.
12738 * config/m68k/uclinux-oldabi.h: Remove.
12739 * config/mcore/mcore-pe.h: Remove.
12740 * config/mcore/t-mcore-pe: Remove.
12741 * config/netbsd-aout.h: Remove.
12742 * config/rs6000/gnu.h: Remove.
12743 * config/sh/sh-symbian.h: Remove.
12744 * config/sh/symbian-base.c: Remove.
12745 * config/sh/symbian-c.c: Remove.
12746 * config/sh/symbian-cxx.c: Remove.
12747 * config/sh/symbian-post.h: Remove.
12748 * config/sh/symbian-pre.h: Remove.
12749 * config/sh/t-symbian: Remove.
12750 * config/svr3.h: Remove.
12751 * config/vax/netbsd.h: Remove.
12752 * config.build: Don't handle i[34567]86-*-pe.
12753 * config.gcc: Remove handling of deprecations for most deprecated
12755 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
12756 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
12757 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
12758 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
12759 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
12760 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
12762 * config.host: Don't handle i[34567]86-*-pe.
12763 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
12764 (ASM_SPEC32): Don't handle -mcall-gnu.
12765 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
12767 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
12768 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
12769 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
12770 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
12771 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
12772 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
12773 conditional on SYMBIAN.
12774 * configure.ac: Don't handle powerpc*-*-gnu*.
12775 * configure: Regenerate.
12776 * doc/extend.texi (interrupt attribute): Don't mention CRX.
12777 * doc/install-old.texi (m6811, m6812): Don't mention.
12778 * doc/install.texi (arc-*-elf*): Don't document multilib option.
12779 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
12780 (m68k-uclinuxoldabi): Don't mention.
12781 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
12783 (-mcall-gnu): Remove.
12784 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
12785 families): Remove constraint documentation.
12787 2011-03-22 Marius Strobl <marius@FreeBSD.org>
12789 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
12790 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
12791 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
12793 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
12796 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
12797 vector when peeking at the next token for vector, don't expand the
12800 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
12802 * config/avr/avr-protos.h (expand_epilogue): Change prototype
12803 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
12804 * config/avr/avr.c (init_cumulative_args)
12805 (avr_function_arg_advance): Use it.
12806 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
12808 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
12809 (avr_function_ok_for_sibcall): ...this new function.
12810 (avr_lookup_function_attribute1): New static Function.
12811 (avr_naked_function_p, interrupt_function_p)
12812 (signal_function_p, avr_OS_task_function_p)
12813 (avr_OS_main_function_p): Use it.
12814 * config/avr/avr.md ("sibcall", "sibcall_value")
12815 ("sibcall_epilogue"): New expander.
12816 ("*call_insn", "*call_value_insn"): New insn.
12817 ("call_insn", "call_value_insn"): Remove
12818 ("call", "call_value", "epilogue"): Change expander to handle
12821 2011-03-21 Nick Clifton <nickc@redhat.com>
12823 * doc/invoke.texi (Overall Options): Move closing brace to end of
12825 (Optimization Options): Add missing @gol.
12826 (Directory Options): Likewise.
12827 (i386 and x86-64 Options): Likewise.
12828 (RS6000 and PowerPC Options): Likewise.
12829 (i386 and x86-64 Windows Options): Likewise.
12830 (V850 Options): Add text missing from descriptions.
12832 2011-03-22 Richard Henderson <rth@redhat.com>
12834 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
12835 (avr_incoming_return_addr_rtx): New.
12836 (emit_push_byte): New.
12837 (expand_prologue): Use it. Remove incorrect dwarf annotation for
12838 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
12839 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
12840 (emit_pop_byte): New.
12841 (expand_epilogue): Use it. Pop frame pointer by bytes.
12842 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
12843 (INCOMING_RETURN_ADDR_RTX): New.
12844 (INCOMING_FRAME_SP_OFFSET): New.
12845 (ARG_POINTER_CFA_OFFSET): New.
12846 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
12847 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
12850 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
12852 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
12854 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
12855 (FUNCTION_ARG_ADVANCE): Likewise.
12856 * tm.texi.in: Change references to them to hook references.
12857 * tm.texi: Regenerate.
12858 * targhooks.c (default_function_arg): Eliminate check for target
12860 (default_function_incoming_arg): Likewise.
12861 (default_function_arg_advance): Likewise.
12862 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
12863 (function_arg_advance): Likewise.
12864 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
12866 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
12868 * tree.c (build_call_1): New function.
12869 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
12871 2011-03-22 Richard Guenther <rguenther@suse.de>
12873 PR tree-optimization/48228
12874 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
12875 for single-arg PHIs.
12877 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
12879 PR rtl-optimization/48143
12880 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
12881 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
12882 sse2_cvtps2pd): Likewise.
12884 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12886 * recog.c (canonicalize_change_group): Use validate_unshare_change.
12888 2011-03-22 Richard Guenther <rguenther@suse.de>
12890 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
12891 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
12892 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
12893 and REALIGN_LOAD_EXPR.
12894 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
12895 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
12896 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
12897 DOT_PROD_EXPR case ...
12898 (expand_expr_real_2): ... here.
12899 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
12900 and REALIGN_LOAD_EXPR.
12901 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
12902 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
12903 (vect_create_epilog_for_reduction): Likewise.
12904 (vectorizable_reduction): Likewise.
12905 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
12906 * tree-vect-stmts.c (vectorizable_load): Likewise.
12908 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
12910 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
12912 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12914 * config/s390/s390.c (s390_delegitimize_address): Fix offset
12915 handling for PLTOFF/GOTOFF.
12917 2011-03-22 Nick Clifton <nickc@redhat.com>
12919 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
12920 trailing backslash from the end of the macro definition.
12922 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12924 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
12927 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
12929 * expr.h (prepare_operand): Move to...
12930 * optabs.h (prepare_operand): ...here and change the insn code
12931 parameter from "int" to "enum insn_code".
12932 (insn_operand_matches): Declare.
12933 * expr.c (init_expr_target): Use insn_operand_matches.
12934 (compress_float_constant): Likewise.
12935 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
12936 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
12937 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
12938 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
12940 (gen_cond_trap): Likewise.
12941 (prepare_operand): Likewise. Change icode to an insn_code.
12942 (insn_operand_matches): New function.
12943 * reload.c (find_reloads_address_1): Use insn_operand_matches.
12944 * reload1.c (gen_reload): Likewise.
12945 * targhooks.c (default_secondary_reload): Likewise.
12947 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
12949 * config/alpha/alpha.md (unspec): New define_c_enum.
12952 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
12955 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
12956 between a call and its CALL_ARG_LOCATION note.
12958 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
12960 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
12962 2011-03-21 Jakub Jelinek <jakub@redhat.com>
12966 * c-common.c (shorten_compare): If primopN is first sign-extended
12967 to opN and then zero-extended to result type, set primopN to opN.
12969 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
12971 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
12972 for barrier handlers.
12974 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
12976 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
12977 UNSPEC constants to be in the unspec enumeration, and redefine
12978 all UNSPECV constants to be in the unspecv enumeration, so that
12979 dumps print which unspec/unspec_volatile this is.
12980 * config/rs6000/vector.md (UNSPEC_*): Ditto.
12981 * config/rs6000/paired.md (UNSPEC_*): Ditto.
12982 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
12983 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
12984 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
12986 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
12987 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
12988 UNSPECV_LWSYNC, since these are used as unspec_volatile.
12989 * config/rs6000/sync.md (isync, lwsync): Ditto.
12991 2011-03-21 Richard Guenther <rguenther@suse.de>
12993 * params.def (lto-min-partition): Fix typo.
12995 2011-03-21 Richard Guenther <rguenther@suse.de>
12998 * c-decl.c (grokdeclarator): Drop to the main variant only
12999 for array types. Drop flag_gen_aux_info check.
13001 2011-03-21 Richard Guenther <rguenther@suse.de>
13003 PR translation/47911
13004 * params.def (lto-partitions): Fix typo.
13005 (lto-min-partition): Fix wording.
13007 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
13009 * config/rs6000/t-freebsd: Remove duplication from file.
13011 2011-03-21 Richard Guenther <rguenther@suse.de>
13013 PR middle-end/47661
13014 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
13016 2011-03-21 Richard Guenther <rguenther@suse.de>
13019 * params.def (lto-partitions): Require at least 1 partition.
13021 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13023 * gthr-solaris.h: Remove.
13024 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
13025 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
13026 (LIB_SPEC): Likewise.
13027 * config/sol2.opt (threads): Remove.
13028 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
13029 (sparc*-*-solaris2*): Likewise.
13030 * configure.ac (enable_threads): Enable solaris support.
13031 * configure: Regenerate.
13032 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
13033 * doc/install.texi (Configuration, --enable-threads=lib): Remove
13036 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13038 * config.gcc: Obsolete *-*-solaris2.8*.
13039 * doc/install.texi (Specific, *-*-solaris2*): Document it.
13041 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13044 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
13045 reference. Solaris 8 perl works.
13047 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13050 * doc/install.texi (Prerequisites): Move jar etc. up.
13051 Explain support library version requirements.
13053 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13056 * doc/install.texi (Prerequisites): Move Perl to build
13057 requirements. Always necessary on Solaris 2 with Sun ld.
13059 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13061 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
13063 (Specific, i?86-*-solaris2.[89]): Likewise.
13064 (Specific, i?86-*-solaris2.10): Likewise.
13065 (Specific, mips-sgi-irix6): Likewise.
13066 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
13067 Update for binutils 2.21.
13069 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13071 * configure.ac (gcc_cv_lto_plugin): Fix typo.
13072 Allow -fuse-linker-plugin for non-default plugin linker.
13073 * configure: Regenerate.
13075 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
13078 * gengtype.c (files_rules): Added rule for cp/parser.h.
13080 2011-03-21 Jakub Jelinek <jakub@redhat.com>
13083 * config/s390/s390.c (s390_delegitimize_address): Don't call
13084 lowpart_subreg if orig_x has BLKmode.
13086 2011-03-21 Kai Tietz <ktietz@redhat.com>
13089 * doc/plugins.texi: Adjust documentation for plugin register_callback.
13090 * tree.h (attribute_spec): Add new member affects_type_identity.
13091 * attribs.c (empty_attribute_table): Adjust attribute_spec
13093 * config/alpha/alpha.c: Likewise.
13094 * config/arc/arc.c: Likewise.
13095 * config/arm/arm.c: Likewise.
13096 * config/avr/avr.c: Likewise.
13097 * config/bfin/bfin.c: Likewise.
13098 * config/crx/crx.c: Likewise.
13099 * config/darwin.h: Likewise.
13100 * config/h8300/h8300.c: Likewise.
13101 * config/i386/cygming.h: Likewise.
13102 * config/i386/i386.c: Likewise.
13103 * config/ia64/ia64.c: Likewise.
13104 * config/m32c/m32c.c: Likewise.
13105 * config/m32r/m32r.c: Likewise.
13106 * config/m68hc11/m68hc11.c: Likewise.
13107 * config/m68k/m68k.c: Likewise.
13108 * config/mcore/mcore.c: Likewise.
13109 * config/mep/mep.c: Likewise.
13110 * config/microblaze/microblaze.c: Likewise.
13111 * config/mips/mips.c: Likewise.
13112 * config/rs6000/rs6000.c: Likewise.
13113 * config/rx/rx.c: Likewise.
13114 * config/sh/sh.c: Likewise.
13115 * config/sol2.h: Likewise.
13116 * config/sparc/sparc.c: Likewise.
13117 * config/spu/spu.c: Likewise.
13118 * config/stormy16/stormy16.c: Likewise.
13119 * config/v850/v850.c: Likewise.
13121 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
13123 * simplify-rtx.c (simplify_binary_operation_1): Handle
13124 (xor (and A B) C) case when B and C are both constants.
13126 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
13128 * tree-dfa.c (add_referenced_var): Fix typo in comment.
13130 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
13133 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
13135 2011-03-20 Jakub Jelinek <jakub@redhat.com>
13137 PR rtl-optimization/48156
13138 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
13139 assume df and df_lr are not NULL.
13141 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13144 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
13145 between a call and its CALL_ARG_LOCATION note.
13147 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
13150 * config/sh/sh.c (find_barrier): Don't emit a constant pool
13151 between a call and its corresponding CALL_ARG_LOCATION note.
13153 2011-03-19 Anatoly Sokolov <aesok@post.ru>
13155 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
13156 instead of loop. Use HARD_REGISTER_NUM_P predicate.
13157 * haifa-sched.c (setup_ref_regs): Ditto.
13158 * caller-save.c (add_used_regs_1): Ditto.
13159 * dse.c (look_for_hardregs): Ditto.
13160 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
13161 * sched-rgn.c (check_live_1): Ditto.
13163 2011-03-18 Joseph Myers <joseph@codesourcery.com>
13165 * c-decl.c (diagnose_mismatched_decls): Give an error for
13166 redefining a typedef with variably modified type.
13168 2011-03-18 Joseph Myers <joseph@codesourcery.com>
13170 * c-decl.c (grokfield): Don't allow typedefs for structures or
13171 unions with no tag by default.
13172 * doc/extend.texi (Unnamed Fields): Update.
13174 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
13176 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
13177 Rewrite using indirect functions.
13178 (lwp_slwpcb): Ditto.
13179 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
13180 (avx_vinsertf128<mode>): Ditto.
13182 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13184 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
13187 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13189 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
13190 splitting between a call and its corresponding CALL_ARG_LOCATION note.
13192 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
13194 PR rtl-optimization/48170
13195 * gcse.c (hoist_code): Remove bogus asserts.
13197 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
13199 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
13200 computation for prologue/epilogue.
13202 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13204 * Makefile.in (check-consistency): Remove.
13206 2011-03-18 Jakub Jelinek <jakub@redhat.com>
13209 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
13210 arange_table_in_use is 0, but either text_section_used or
13211 cold_text_section_used is true. Don't call it if
13212 !info_section_emitted.
13214 2011-03-18 Anatoly Sokolov <aesok@post.ru>
13216 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
13217 FUNCTION_VALUE_REGNO_P): Remove.
13218 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
13220 * config/avr/avr.c (avr_ret_register): Make static inline.
13221 (avr_function_value_regno_p): New function.
13222 (avr_libcall_value): Make static. Add 'func' argument.
13223 (avr_function_value): Make static. Rename 'func' argument to
13224 'fn_decl_or_type', forward it to avr_libcall_value. Call
13225 avr_ret_register function instead of RET_REGISTER macro.
13226 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
13228 2011-03-18 Jason Merrill <jason@redhat.com>
13231 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
13233 2011-03-18 Richard Guenther <rguenther@suse.de>
13235 * doc/install.texi (--enable-gold): Remove.
13236 (--with-plugin-ld): Document.
13237 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
13239 2011-03-18 Andrew Pinski <pinskia@gmail.com>
13241 PR middle-end/47790
13242 * expr.c (optimize_bitfield_assignment_op): Revamp to work
13243 again after expansion changes.
13245 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
13247 * combine.c (try_combine): Do simplification only call of
13248 subst() on i2 even when i1 is present. Update comments.
13250 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
13252 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
13253 and UNSPEC_PCREL_SYMOFF.
13255 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13257 * config/s390/s390.md: Use define_c_enum for the unspec constant
13260 2011-03-18 Richard Henderson <rth@redhat.com>
13261 Jakub Jelinek <jakub@redhat.com>
13264 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
13265 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
13267 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
13269 PR middle-end/47725
13270 * combine.c (cant_combine_insn_p): Don't check zero/sign
13271 extended hard registers.
13273 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
13275 PR middle-end/47725
13276 * combine.c (cant_combine_insn_p): Check zero/sign extended
13279 2011-03-17 Anatoly Sokolov <aesok@post.ru>
13281 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13282 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
13283 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
13284 Change return type to bool.
13285 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13287 2011-03-17 Jakub Jelinek <jakub@redhat.com>
13290 * var-tracking.c (prepare_call_arguments): If CALL target
13291 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
13292 pc instead of looking it up using cselib_lookup and use
13293 Pmode for it if x has VOIDmode.
13294 * dwarf2out.c (gen_subprogram_die): If also both first and
13295 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
13298 * function.c (assign_parms): For data.passed_pointer parms
13299 use MEM of data.entry_parm instead of data.entry_parm itself
13300 as DECL_INCOMING_RTL.
13301 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
13302 also when passed and declared mode is the same, DECL_RTL
13303 is a MEM with pseudo as address and DECL_INCOMING_RTL is
13306 2011-03-16 Jeff Law <law@redhat.com>
13308 PR rtl-optimization/37273
13309 * ira-costs.c (scan_one_insn): Detect constants living in memory and
13310 handle them like argument loads from stack slots. Do not double
13311 count memory for memory constants and argument loads from stack slots.
13313 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
13316 * var-tracking.c (prepare_call_arguments): Check SUBREG.
13318 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
13321 * config/i386/i386.opt: Add Save to -mavx and -mfma.
13323 2011-03-17 Jakub Jelinek <jakub@redhat.com>
13326 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
13328 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
13329 Clear call_arg_locations and call_arg_loc_last always.
13331 PR middle-end/48152
13332 * var-tracking.c (prepare_call_arguments): If argument needs to be
13333 passed by reference, adjust argtype and mode.
13335 2011-03-17 Richard Guenther <rguenther@suse.de>
13337 PR middle-end/48134
13338 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
13339 a value make sure to fold the statement.
13341 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
13344 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
13345 return condition with !cfun->calls_alloca.
13347 2011-03-17 Richard Guenther <rguenther@suse.de>
13350 * lto-cgraph.c (input_overwrite_node): Clear the abstract
13351 origin for decls in other ltrans units.
13352 (input_varpool_node): Likewise.
13354 2011-03-17 Richard Guenther <rguenther@suse.de>
13356 PR middle-end/48165
13357 * tree-object-size.c (compute_object_offset): Properly return
13358 the offset operand of MEM_REFs as sizetype.
13360 2011-03-17 Jakub Jelinek <jakub@redhat.com>
13362 PR rtl-optimization/48141
13363 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
13364 * dse.c: Include params.h.
13365 (active_local_stores_len): New variable.
13366 (add_wild_read, dse_step1): Clear it when setting active_local_stores
13368 (record_store, check_mem_read_rtx): Decrease it when removing
13370 (scan_insn): Likewise. Increase it when adding to chain, if it
13371 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
13372 set active_local_stores to NULL before the addition.
13373 * Makefile.in (dse.o): Depend on $(PARAMS_H).
13375 PR rtl-optimization/48141
13376 * dse.c (record_store): If no positions are needed in an insn
13377 that cannot be deleted, at least unchain it from active_local_stores.
13379 2011-03-16 Dodji Seketeli <dodji@redhat.com>
13382 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
13383 (lookup_type_die_strip_naming_typedef): ... here.
13384 (get_context_die): Use it.
13385 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
13386 the anonymous struct named by the naming typedef.
13388 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
13391 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
13392 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
13394 2011-03-16 Jeff Law <law@redhat.com>
13396 * tree-vrp.c (identify_jump_threads): Slightly simplify type
13397 check for operands of conditional. Allow type to be a pointer.
13399 2011-03-16 Richard Guenther <rguenther@suse.de>
13401 PR tree-optimization/48149
13402 * fold-const.c (fold_binary_loc): Fold
13403 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
13405 2011-03-16 Richard Guenther <rguenther@suse.de>
13407 PR tree-optimization/26134
13408 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
13409 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
13410 (non_rewritable_mem_ref_base): Handle complex type component
13411 accesses, constrain offsets for vector and complex extracts
13414 2011-03-16 Richard Guenther <rguenther@suse.de>
13416 PR tree-optimization/48146
13417 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
13418 operands avoiding the need for renaming.
13420 2011-03-16 Richard Guenther <rguenther@suse.de>
13422 * gimple-fold.c (maybe_fold_reference): Open-code relevant
13423 constant folding. Move MEM_REF canonicalization first.
13424 Rely on fold_const_aggregate_ref for initializer folding.
13425 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
13427 2011-03-16 Jakub Jelinek <jakub@redhat.com>
13429 PR middle-end/48136
13430 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
13431 arg0/arg1 or their arguments are always fold converted to matching
13434 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
13437 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13440 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
13441 Handle in-tree gold.
13442 (ld_vers): Extract binutils version for gold.
13443 (gcc_cv_ld_hidden): Handle gold here.
13444 (gcc_cv_lto_plugin): Determine level of linker plugin support.
13445 * configure: Regenerate.
13446 * config.in: Regenerate.
13447 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
13448 -fuse-linker-plugin otherwise.
13449 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
13450 (LINK_COMMAND_SPEC): Use it.
13451 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
13453 2011-03-16 Jakub Jelinek <jakub@redhat.com>
13455 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
13456 * calls.c: Remove debug.h include.
13457 (emit_call_1): Don't call virtual_call_token debug hook.
13458 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
13459 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
13460 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
13461 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
13462 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
13463 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
13464 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
13465 dwarf2out_virtual_call): Remove.
13466 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
13467 copy_call_info and virtual_call hooks.
13468 (dwarf2out_init): Don't initialize vcall_insn_table,
13469 debug_dcall_section and debug_vcall_section.
13470 (prune_unused_types): Don't mark nodes from dcall_table.
13471 (dwarf2out_finish): Don't output dcall or vcall tables.
13472 * final.c (final_scan_insn): Don't call direct_call or
13473 virtual_call debug hooks.
13474 * debug.h (struct gcc_debug_hooks): Remove direct_call,
13475 virtual_call_token, copy_call_info and virtual_call hooks.
13476 (debug_nothing_uid): Remove prototype.
13477 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
13478 copy_call_info and virtual_call hooks.
13479 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
13480 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
13481 * debug.c (do_nothing_debug_hooks): Likewise.
13482 (debug_nothing_uid): Remove.
13483 * doc/invoke.texi (-fenable-icf-debug): Remove.
13484 * common.opt (-fenable-icf-debug): Likewise.
13486 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
13487 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
13488 call's MEM. Handle functions returning aggregate through a hidden
13489 first pointer. For virtual calls add clobbered pc to call arguments
13491 * dwarf2out.c (gen_subprogram_die): Emit
13492 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
13496 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
13497 * rtl.h (ENTRY_VALUE_EXP): Define.
13498 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
13499 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
13500 * print-rtl.c (print_rtx): Likewise.
13501 * gengtype.c (adjust_field_rtx_def): Likewise.
13502 * var-tracking.c (vt_add_function_parameter): Adjust
13503 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
13504 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
13505 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
13506 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
13507 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
13509 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
13510 Call var_location debug hook even on CALL_INSNs.
13511 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
13512 * rtl.def (ENTRY_VALUE): New.
13513 * dwarf2out.c: Include cfglayout.h.
13514 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
13515 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
13516 (struct call_arg_loc_node): New type.
13517 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
13518 tail_call_site_count): New variables.
13519 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
13520 DW_TAG_GNU_call_site_parameter.
13521 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
13522 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
13523 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
13524 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
13525 and DW_AT_GNU_all_source_call_sites.
13526 (mem_loc_descriptor): Handle ENTRY_VALUE.
13527 (add_src_coords_attributes): Don't add enything if
13528 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
13529 (dwarf2out_abstract_function): Save and clear call_arg_location,
13530 call_site_count and tail_call_site_count around dwarf2out_decl call.
13531 (gen_call_site_die): New function.
13532 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
13533 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
13534 (dwarf2out_function_decl): Clear call_arg_locations,
13535 call_arg_loc_last, set call_site_count and tail_call_site_count
13536 to -1 and free block_map.
13537 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
13538 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
13539 followed by any real instructions.
13540 (dwarf2out_begin_function): Set call_site_count and
13541 tail_call_site_count to 0.
13542 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
13543 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
13544 attempt to force a DIE for it and worst case remove the attribute.
13545 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
13546 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
13548 * var-tracking.c: Include tm_p.h.
13549 (vt_stack_adjustments): For calls call note_register_arguments.
13550 (argument_reg_set): New variable.
13551 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
13552 ensure the VALUE is resolved.
13553 (call_arguments): New variable.
13554 (prepare_call_arguments): New function.
13555 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
13556 (struct expand_loc_callback_data): Add ignore_cur_loc field.
13557 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
13558 always use the best expression.
13559 (vt_expand_loc): Add ignore_cur_loc argument.
13560 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
13561 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
13562 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
13563 note for all calls.
13564 (vt_add_function_parameter): Use cselib_lookup_from_insn.
13565 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
13566 argument. Don't call cselib_preserve_only_values and
13567 cselib_reset_table.
13568 (note_register_arguments): New function.
13569 (vt_initialize): Compute argument_reg_set. Call
13570 vt_add_function_parameters before processing basic blocks instead of
13571 afterwards. For calls call prepare_call_arguments before calling
13572 cselib_process_insn.
13573 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
13574 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
13575 (var-tracking.o): Depend on $(TM_P_H).
13576 * cfglayout.h (insn_scope): New prototype.
13577 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
13578 * cfglayout.c (insn_scope): No longer static.
13579 * insn-notes.def (CALL_ARG_LOCATION): New.
13580 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
13581 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
13582 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
13583 nothing for DECL_EXTERNAL BLOCK_VARS.
13585 2011-03-16 Alan Modra <amodra@gmail.com>
13588 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
13589 create invalid offset address for vsx splat insn.
13590 * config/rs6000/predicates.md (splat_input_operand): New.
13591 * config/rs6000/vsx.md (vsx_splat_*): Use it.
13593 2011-03-15 Xinliang David Li <davidxl@google.com>
13596 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
13597 (normalize_preds): New function.
13598 (is_use_properly_guarded): Normalize def predicates.
13600 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13603 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
13604 in the output template.
13606 2011-03-15 Richard Guenther <rguenther@suse.de>
13608 PR middle-end/47650
13609 * tree-pretty-print.c (dump_function_declaration): Properly
13610 dump unprototyped and varargs function types.
13612 2011-03-15 Richard Guenther <rguenther@suse.de>
13614 PR tree-optimization/13954
13615 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
13618 2011-03-15 Richard Guenther <rguenther@suse.de>
13620 PR tree-optimization/48037
13621 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
13622 selects into BIT_FIELD_REFs.
13623 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
13626 2011-03-15 Jakub Jelinek <jakub@redhat.com>
13628 PR tree-optimization/48129
13629 * builtins.c (fold_builtin_snprintf): Convert to type of
13630 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
13631 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
13633 2011-03-15 Richard Guenther <rguenther@suse.de>
13635 PR tree-optimization/41490
13636 * tree-ssa-dce.c (propagate_necessity): Handle returns without
13637 value but with VUSE.
13638 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
13640 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
13641 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
13642 * tree-tailcall.c (find_tail_calls): Ignore returns.
13644 2011-03-15 Richard Guenther <rguenther@suse.de>
13646 PR middle-end/48031
13647 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
13648 or variable-indexed array accesses when in gimple form.
13650 2011-03-15 Richard Guenther <rguenther@suse.de>
13652 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
13654 2011-03-15 Alan Modra <amodra@gmail.com>
13657 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
13658 presume symbol_refs without a symbol_ref_decl are suitably
13659 aligned, nor other trees we may see here. Handle anchor symbols.
13660 (legitimate_constant_pool_address_p): Comment. Add mode param.
13661 Check cmodel=medium addresses. Adjust all calls.
13662 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
13663 creating cmodel=medium optimized access to locals.
13664 * config/rs6000/constraints.md (R): Pass QImode to
13665 legitimate_constant_pool_address_p.
13666 * config/rs6000/predicates.md (input_operand): Pass mode to
13667 legitimate_constant_pool_address_p.
13668 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
13671 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
13674 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
13675 64-bit constants being loaded into registers other than GPRs such
13676 as loading 0 into a VSX register.
13678 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13680 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
13682 2011-03-14 Jakub Jelinek <jakub@redhat.com>
13684 PR middle-end/47917
13685 * builtins.c (fold_builtin_snprintf): New function.
13686 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
13687 (fold_builtin_4): Likewise.
13689 PR middle-end/38878
13690 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
13691 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
13692 and C - X == X also strip nops from +/-/p+ operand.
13693 When optimizing -X == C, fold C to arg0's type.
13696 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
13697 emit it as add_AT_int instead of add_AT_unsigned.
13699 2011-03-14 Tom Tromey <tromey@redhat.com>
13701 * unwind-dw2.c: Include sys/sdt.h if it exists.
13702 (_Unwind_DebugHook): Use STAP_PROBE2.
13703 * config.in, configure: Rebuild.
13704 * configure.ac: Check for sys/sdt.h.
13706 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
13708 * config/i386/i386.md (ROUND_FLOOR): New constant.
13709 (ROUND_CEIL): Ditto.
13710 (ROUND_TRUNC): Ditto.
13711 (ROUND_MXCSR): Ditto.
13712 (ROUND_NO_EXC): Ditto.
13713 (rint<mode>2): Use new defines instead of numerical constants.
13714 (floor<mode>2): Ditto.
13715 (ceil<mode>2): Ditto.
13716 (btrunc<mode>2): Ditto.
13717 * config/i386/i386-builtin-types.def: Define ROUND function type
13719 * config/i386/i386.c (enum ix86_builtins): Add
13720 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
13721 (struct builtin_description): Add
13722 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
13723 (ix86_expand_sse_round): New static function.
13724 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
13726 (ix86_builtin_vectorized_function): Handle
13727 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
13729 2011-03-14 Tom Tromey <tromey@redhat.com>
13731 * c-parser.c (c_parser_asm_string_literal): Clear
13732 warn_overlength_strings.
13734 2011-03-14 Tom Tromey <tromey@redhat.com>
13736 * c-parser.c (disable_extension_diagnostics): Save
13737 warn_overlength_strings.
13738 (restore_extension_diagnostics): Restore warn_overlength_strings.
13740 2011-03-14 Jakub Jelinek <jakub@redhat.com>
13742 * BASE-VER: Change to 4.7.0.
13744 2011-03-14 Richard Guenther <rguenther@suse.de>
13746 PR middle-end/48098
13747 * tree.c (build_vector_from_val): Adjust assert to requirements
13750 2011-03-14 Jakub Jelinek <jakub@redhat.com>
13753 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
13755 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
13757 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
13758 terms of target_flags_explicit. Adjust copyright year.
13760 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
13761 * config/rs6000/t-freebsd: New file. Add override for
13764 2011-03-13 Chris Demetriou <cgd@google.com>
13766 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
13767 (-fno-diagnostics-show-option): this, to reflect current default.
13768 (-Werror=): Update text about -fno-diagnostics-show-option.
13770 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
13773 * config/rs6000/predicates.md (easy_vector_constant_add_self,
13774 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
13775 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
13776 mode is not V2DImode or V2DFmode.
13777 (vspltis_constant): Do not handle V2DImode and V2DFmode.
13778 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
13779 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
13781 (movdi_internal64): Likewise.
13783 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
13785 PR tree-optimization/47127
13786 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
13788 (set_cloog_options): Same.
13789 (scop_to_clast): Same.
13790 (print_clast_stmt): Do not call cloog_state_malloc and
13792 (print_generated_program): Same.
13794 * graphite-clast-to-gimple.h (cloog_state): Declared.
13795 (scop_to_clast): Adjust declaration.
13796 * graphite.c (cloog_state): Defined here.
13797 (graphite_initialize): Call cloog_state_malloc.
13798 (graphite_finalize): Call cloog_state_free.
13800 2011-03-11 Jason Merrill <jason@redhat.com>
13802 * attribs.c (lookup_attribute_spec): Take const_tree.
13805 2011-03-11 Joseph Myers <joseph@codesourcery.com>
13807 * config/sparc/sparc.c (sparc_option_override): Use
13808 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
13810 2011-03-11 Richard Guenther <rguenther@suse.de>
13812 PR tree-optimization/48067
13813 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
13814 multiplication result will be only used once on the target
13817 2011-03-11 Richard Guenther <rguenther@suse.de>
13819 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
13821 2011-03-11 Richard Guenther <rguenther@suse.de>
13824 * tree.c (find_decls_types_r): Do not walk types only reachable
13825 from IDENTIFIER_NODEs.
13827 2011-03-11 Jakub Jelinek <jakub@redhat.com>
13829 PR middle-end/48044
13830 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
13831 all vnode->force_output nodes as needed.
13833 2011-03-11 Jason Merrill <jason@redhat.com>
13836 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
13837 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
13839 2011-03-11 Martin Jambor <mjambor@suse.cz>
13841 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
13844 2011-03-11 Jakub Jelinek <jakub@redhat.com>
13846 PR tree-optimization/48063
13847 * ipa-inline.c (cgraph_decide_inlining): Don't try to
13848 inline functions called once if !tree_can_inline_p (node->callers).
13850 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
13852 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
13854 * config/score/score3.c: Delete.
13855 * config/score/score3.h: Delete.
13856 * config/score/mul-div.S: Delete.
13857 * config/score/sfp-machine.h: Add new file.
13858 * config/score/constraints.md: Add new file.
13859 * config/score/t-score-softfp: Add new file.
13860 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
13861 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
13862 (score7_extra_constraint): Delete.
13863 (score7_option_override): Remove unused code.
13864 * config/score/score.c: Remove score3 and score5 define and code.
13865 * config/score/score.h: Remove score3 and score5 define and code.
13866 * config/score/score.md: Remove score3 template and unusual insn.
13867 * config/score/score.opt: Remove score3 and score5 options.
13869 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13871 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
13872 when _HPUX_SOURCE is defined.
13873 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
13875 2011-03-10 Jason Merrill <jason@redhat.com>
13878 * stor-layout.c (layout_type): Don't set structural equality
13879 on arrays of incomplete type.
13880 * tree.c (type_hash_eq): Handle comparing them properly.
13882 2011-03-10 Jakub Jelinek <jakub@redhat.com>
13885 * config/s390/s390.c (s390_delegitimize_address): Make sure the
13886 result mode matches original rtl mode.
13888 2011-03-10 Nick Clifton <nickc@redhat.com>
13890 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
13891 (andsi3, andsi3_flags): Fix timings for three operand alternative.
13893 2011-03-09 Jakub Jelinek <jakub@redhat.com>
13895 PR rtl-optimization/47866
13896 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
13897 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
13898 if target wasn't scalar.
13899 * function.c (assign_stack_temp_for_type): Assert that neither
13900 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
13901 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
13903 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
13905 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13907 * config/s390/s390-protos.h (s390_label_align): New prototype.
13908 * config/s390/s390.c (s390_label_align): New function.
13909 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
13911 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
13914 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
13915 V2DI/V2DF constants. Only all 0's or all 1's are easy.
13916 (output_vec_const_move): Ditto.
13918 2011-03-08 Anatoly Sokolov <aesok@post.ru>
13920 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
13921 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
13922 * config/mips/mips.c (mips_preferred_reload_class): Make static.
13923 Change 'rclass' argument and result type to reg_class_t.
13924 (TARGET_PREFERRED_RELOAD_CLASS): Define.
13926 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
13928 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
13929 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
13930 (TARGET_MEMORY_MOVE_COST): Define.
13931 (avr_register_move_cost, avr_memory_move_cost): New Functions.
13933 2011-03-08 Jakub Jelinek <jakub@redhat.com>
13936 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
13939 PR tree-optimization/48022
13940 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
13943 2011-03-07 Jakub Jelinek <jakub@redhat.com>
13946 * var-tracking.c (find_use_val): Return NULL for
13947 cui->sets && cui->store_p BLKmode MEMs.
13949 2011-03-07 Anatoly Sokolov <aesok@post.ru>
13951 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
13953 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
13954 xstormy16_print_operand_address): Remove.
13955 * config/stormy16/stormy16.c (xstormy16_print_operand,
13956 xstormy16_print_operand_address): Make static.
13957 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
13959 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
13962 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
13963 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
13966 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
13969 * cfgloopmanip.c (fix_bb_placements): Return immediately
13970 if FROM is BASE_LOOP's header.
13972 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
13974 * gimplify.c (gimplify_function_tree): Fix building calls
13975 to __builtin_return_address.
13977 2011-03-07 Alan Modra <amodra@gmail.com>
13979 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
13980 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
13981 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
13982 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
13984 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
13985 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
13986 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
13987 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
13988 * config/rs6000/rs6000.c
13989 (rs6000_elf_end_indicate_exec_stack): Rename to..
13990 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
13991 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
13992 (rs6000_file_start): ..here.
13993 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
13994 file scope variables.
13995 (call_ABI_of_interest): New function.
13996 (init_cumulative_args): Set above vars when function return value
13997 is a float, vector, or small struct.
13998 (rs6000_function_arg_advance_1): Likewise for function args.
13999 (rs6000_va_start): Set rs6000_passes_float if variable arg function
14000 references float args.
14002 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
14004 * doc/cfg.texi: Remove "See" before @ref.
14005 * doc/invoke.texi: Likewise.
14007 2011-03-05 Jason Merrill <jason@redhat.com>
14009 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
14011 2011-03-05 Anthony Green <green@moxielogic.com>
14013 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
14015 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
14017 PR rtl-optimization/47899
14018 * cfgloopmanip.c (fix_bb_placements): Fix first argument
14019 to flow_loop_nested_p when moving the loop upward.
14021 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
14024 * arm.md (movhi_insn_arch4): Accept any immediate constant.
14026 2011-03-05 Jakub Jelinek <jakub@redhat.com>
14028 PR tree-optimization/47967
14029 * ipa-cp.c (build_const_val): Return NULL instead of creating
14030 VIEW_CONVERT_EXPR for mismatching sizes.
14031 (ipcp_create_replace_map): Return NULL if build_const_val failed.
14032 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
14033 give up on versioning.
14035 2011-03-05 Alan Modra <amodra@gmail.com>
14038 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
14039 full cmodel medium/large lo_sum + high addresses.
14041 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14043 * config/s390/s390.c (s390_decompose_address): Reject non-literal
14044 pool references in UNSPEC_LTREL_OFFSET.
14046 2011-03-04 Jan Hubicka <jh@suse.cz>
14049 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
14050 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
14051 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
14053 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
14054 cgraph_add_thunk): Add node pointers.
14055 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
14056 associated to right node.
14057 (input_node): Update use of cgraph_same_body_alias
14058 and cgraph_add_thunk.
14060 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
14062 * config/i386/i386.opt (mprefer-avx128): New flag.
14063 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
14064 modes when the flag -mprefer-avx128 is on.
14066 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
14068 * dwarf2out.c (compare_loc_operands): Fix address handling.
14070 2011-03-04 Alan Modra <amodra@gmail.com>
14072 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
14074 2011-03-04 Richard Guenther <rguenther@suse.de>
14076 PR middle-end/47968
14077 * expmed.c (extract_bit_field_1): Prefer vector modes that
14078 vec_extract patterns can handle.
14080 2011-03-04 Richard Guenther <rguenther@suse.de>
14082 PR middle-end/47975
14083 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
14085 2011-03-04 Richard Henderson <rth@redhat.com>
14087 * explow.c (emit_stack_save): Remove 'after' parameter.
14088 (emit_stack_restore): Likewise.
14089 * expr.h: Update to match.
14090 * builtins.c, calls.c, stmt.c: Likewise.
14091 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
14092 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
14093 * function.c (expand_function_end): Insert the emit_stack_save
14094 sequence before parm_birth_insn instead of after.
14096 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
14098 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
14099 (ssse3_pmaddubsw128): Ditto.
14100 (ssse3_pmaddubsw): Ditto.
14102 2011-03-03 Steve Ellcey <sje@cup.hp.com>
14104 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
14106 2011-03-03 Jakub Jelinek <jakub@redhat.com>
14109 * gimplify.c (omp_add_variable): Only call omp_notice_variable
14110 on TYPE_SIZE_UNIT if it is a DECL.
14113 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
14114 first operand is not is_gimple_mem_ref_addr, try to fold it.
14115 If the operand still isn't is_gimple_mem_ref_addr, clear
14118 2011-03-03 Richard Guenther <rguenther@suse.de>
14120 PR middle-end/47283
14121 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
14123 (refs_may_alias_p_1): For release branches return true if
14124 we are confused by our input.
14126 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14128 * config/s390/s390.c (s390_function_value): Rename to ...
14129 (s390_function_and_libcall_value): ... this.
14130 (s390_function_value): New function.
14131 (s390_libcall_value): New function.
14132 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
14133 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
14134 target macro definitions.
14135 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
14137 2011-03-02 Joseph Myers <joseph@codesourcery.com>
14139 * config/i386/freebsd64.h (CC1_SPEC): Define.
14140 * config/i386/linux64.h (CC1_SPEC): Define.
14141 * config/i386/x86-64.h (CC1_SPEC): Don't define.
14143 2011-03-02 Anatoly Sokolov <aesok@post.ru>
14145 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
14147 * config/stormy16/stormy16.c: Include reload.h.
14148 (xstormy16_memory_move_cost): New function.
14149 (TARGET_MEMORY_MOVE_COST): Define.
14151 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
14153 PR rtl-optimization/47925
14154 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
14155 with side effects. Remove the more-specific check for volatile asms.
14157 2011-03-02 Alan Modra <amodra@gmail.com>
14160 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
14161 toc relative addresses for valid offsets.
14163 2011-03-01 Richard Guenther <rguenther@suse.de>
14165 PR tree-optimization/47890
14166 * tree-vect-loop.c (get_initial_def_for_induction): Set
14167 related stmt properly.
14169 2011-03-01 Richard Guenther <rguenther@suse.de>
14172 * lto-streamer.c (lto_record_common_node): Also register
14173 the canonical type.
14175 2011-03-01 Richard Guenther <rguenther@suse.de>
14178 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
14179 Do not stream DECL_ABSTRACT_ORIGIN.
14180 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
14181 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
14182 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
14183 Do not stream DECL_ABSTRACT_ORIGIN.
14184 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
14185 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
14187 2011-02-28 Anatoly Sokolov <aesok@post.ru>
14189 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
14190 FUNCTION_VALUE_REGNO_P): Remove.
14191 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
14192 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
14193 Add 'outgoing' argument.
14194 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
14196 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
14197 TARGET_FUNCTION_VALUE_REGNO_P): Define.
14199 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
14202 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
14203 (lookup_filename): Likewise.
14204 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
14206 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
14207 Jakub Jelinek <jakub@redhat.com>
14209 PR middle-end/47893
14210 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
14211 (assign_stack_local_1): Change last argument type to int.
14212 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
14213 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
14214 don't record padding space into frame_space_list nor use those areas.
14215 (assign_stack_local): Adjust caller.
14216 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
14217 of assign_stack_local, pass 0 as last argument.
14218 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
14221 2011-02-28 Jakub Jelinek <jakub@redhat.com>
14224 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
14225 Use target address_mode and pointer_mode hooks instead of hardcoded
14226 Pmode and ptr_mode. Handle some simple cases of extending if
14227 POINTERS_EXTEND_UNSIGNED < 0.
14228 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
14229 Call convert_debug_memory_address.
14230 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
14231 convert_debug_memory_address.
14233 PR middle-end/46790
14234 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
14235 * configure: Regenerated.
14236 * config.in: Regenerated.
14237 * varasm.c (default_function_section): Return NULL
14238 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
14240 2011-02-28 Martin Jambor <mjambor@suse.cz>
14242 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
14243 the description to match the printed values.
14245 2011-02-28 Richard Guenther <rguenther@suse.de>
14247 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
14248 of the copied scope tree.
14250 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14252 * doc/extend.texi (Function Attributes): Avoid deeply (and
14253 wrongly) nested tables.
14255 2011-02-27 Jakub Jelinek <jakub@redhat.com>
14257 PR middle-end/47903
14258 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
14259 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
14260 r isn't op0 nor op1.
14262 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
14264 * config/avr/avr.md: Remove magic comment for emacs.
14266 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
14269 * config/avr/avr.c (avr_option_override): Use error on bad options.
14270 (avr_help): New function.
14271 (TARGET_HELP): Define.
14273 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
14276 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
14277 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
14279 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
14281 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
14282 (ARM Options): Ditto.
14283 (i386 and x86-64 Options): Ditto.
14284 (RX Options): Ditto.
14285 (SPARC Options): Ditto.
14287 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
14289 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
14290 FreeBSD 6 and later. Generally use cpu generic.
14292 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
14294 * doc/cpp.texi: Update copyright years.
14296 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
14299 * config/lm32/lm32.md (ashrsi3): Added needed variable.
14301 2011-02-25 Jon Beniston <jon@beniston.com>
14304 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
14305 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
14306 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
14307 (lm32_block_move_inline): Add type cast to remove warning.
14308 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
14309 (gen_int_relational): Move declarations to start of function.
14311 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
14313 PR tree-optimization/45470
14314 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
14315 can throw internally only.
14316 * tree-vect-stmts.c (vectorizable_call): Likewise.
14318 2011-02-24 Anatoly Sokolov <aesok@post.ru>
14320 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
14321 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
14322 * config/stormy16/stormy16-protos.h
14323 (xstormy16_preferred_reload_class): Remove.
14324 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
14325 static. Change 'rclass' argument and return type to reg_class_t.
14326 (TARGET_PREFERRED_RELOAD_CLASS,
14327 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
14329 2011-02-24 Richard Guenther <rguenther@suse.de>
14331 * lto-streamer-in.c (input_bb): Do not find referenced vars
14332 in debug statements.
14334 2011-02-23 Jason Merrill <jason@redhat.com>
14336 * common.opt (fabi-version): Document v5 and v6.
14338 2011-02-23 Richard Guenther <rguenther@suse.de>
14340 PR tree-optimization/47849
14341 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
14343 2011-02-23 Jie Zhang <jie@codesourcery.com>
14345 * opts-common.c (decode_cmdline_option): Print empty string
14346 argument as "" in decoded->orig_option_with_args_text.
14347 * gcc.c (execute): Print empty string argument as ""
14348 in the verbose output.
14349 (do_spec_1): Keep empty string argument.
14351 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
14353 * config.gcc: Declare score-* and crx-* obsolete.
14355 2011-02-23 Jie Zhang <jie@codesourcery.com>
14357 PR rtl-optimization/47763
14358 * web.c (web_main): Ignore naked clobber when replacing register.
14360 2011-02-22 Anatoly Sokolov <aesok@post.ru>
14362 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
14365 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
14368 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
14370 2011-02-22 Mike Stump <mikestump@comcast.net>
14372 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
14374 * configure: Regenerate.
14376 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
14378 PR rtl-optimization/46002
14379 * ira-color.c (update_copy_costs): Change class intersection
14380 test to reg_class_contents[] test of 'hard_regno'.
14382 2011-02-21 Joseph Myers <joseph@codesourcery.com>
14384 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
14385 than Driver option.
14386 * config/hpux11.opt (mt): Likewise.
14387 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
14388 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
14389 * config/vax/elf.opt (mno-asm-pic): Likewise.
14390 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
14392 2011-02-21 Mike Stump <mikestump@comcast.net>
14395 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
14396 tree so we can get save the type.
14397 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
14398 for CFString instead of trying to use past the end of the builtins.
14399 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
14400 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
14401 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
14402 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
14403 Rename to darwin_builtin_cfstring.
14404 (darwin_init_cfstring_builtins): Return the built type.
14406 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
14409 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
14410 (_mm256_insert_epi64): Use _mm_insert_epi64.
14412 2011-02-21 Anatoly Sokolov <aesok@post.ru>
14414 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
14415 * config/stormy16/stormy16-protos.h
14416 (xstormy16_mode_dependent_address_p): Remove.
14417 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
14418 Make static. Change return type to bool. Change argument type to
14419 const_rtx. Remove dead code.
14420 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14422 2011-02-21 Richard Guenther <rguenther@suse.de>
14425 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
14426 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
14427 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
14429 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
14430 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
14432 2011-02-20 Richard Guenther <rguenther@suse.de>
14435 * tree.c (free_lang_data_in_decl): Clean builtins from
14436 the TU decl BLOCK_VARS.
14438 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
14442 * haifa-sched.c (fix_tick_ready): Skip tick computation
14445 2011-02-19 Richard Guenther <rguenther@suse.de>
14448 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
14449 Remove lazy BLOCK_VARS streaming.
14450 (lto_input_ts_block_tree_pointers): Likewise.
14451 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
14453 2011-02-19 Joseph Myers <joseph@codesourcery.com>
14455 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
14457 2011-02-19 Joseph Myers <joseph@codesourcery.com>
14459 * config/i386/biarch32.h, config/i386/mach.h,
14460 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
14462 2011-02-19 Jakub Jelinek <jakub@redhat.com>
14465 * config/i386/i386.md (peephole2 for shift and plus): Use
14466 operands[1] original mode in the first insn.
14468 2011-02-18 Mike Stump <mikestump@comcast.net>
14470 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
14472 2011-02-18 Jan Hubicka <jh@suse.cz>
14474 PR middle-end/47788
14475 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
14476 to zero when the function is not inlinable at all.
14478 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14480 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
14481 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
14482 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
14483 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
14484 * config/pa/t-pa64: Likewise.
14485 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
14487 2011-02-18 Jakub Jelinek <jakub@redhat.com>
14490 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
14492 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14495 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
14497 2011-02-18 Anatoly Sokolov <aesok@post.ru>
14499 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
14500 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
14501 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
14502 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
14503 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
14504 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
14505 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
14506 m32r_load_postinc_p, m32r_store_preinc_predec_p,
14507 m32r_legitimate_address_p): New functions.
14508 * config/m32r/constraints.md (constraint "S"): Don't use
14509 STORE_PREINC_PREDEC_P.
14510 (constraint "U"): Don't use LOAD_POSTINC_P.
14512 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
14514 PR rtl-optimization/46178
14515 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
14516 compute ira_hard_regno_cover_class[].
14518 2011-02-18 Richard Guenther <rguenther@suse.de>
14521 * lto-streamer.h (lto_global_var_decls): Declare.
14522 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
14523 statics for global var processing.
14525 2011-02-18 Richard Guenther <rguenther@suse.de>
14527 PR tree-optimization/47737
14528 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
14529 edge dominance check.
14531 2011-02-18 Jakub Jelinek <jakub@redhat.com>
14534 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
14535 avoid invalid rtx sharing.
14537 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
14539 * doc/cpp.texi (Obsolete Features): Add background on the
14540 origin of assertions.
14542 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
14544 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
14546 * config/darwin.c (output_objc_section_asm_op): Added support for
14548 (is_objc_metadata): New.
14549 (darwin_objc2_section): New.
14550 (darwin_objc1_section): New.
14551 (machopic_select_section): Added support for ABI v1 and v2.
14552 (darwin_emit_objc_zeroed): New.
14553 (darwin_output_aligned_bss): Detect objc metadata and treat it
14555 (darwin_asm_output_aligned_decl_common): Same.
14556 (darwin_asm_output_aligned_decl_local): Same.
14557 * config/darwin-sections.def: Updated for ABI v1 and v2.
14558 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
14559 compiling Objective-C code for the NeXT runtime, default to using
14560 ABI version 0 for 32-bit, and version 2 for 64-bit.
14562 2011-02-17 Joseph Myers <joseph@codesourcery.com>
14564 * common.opt (optimize_fast): New Variable.
14565 * opts.c (default_options_optimization): Use opts->x_optimize_fast
14566 instead of local variable ofast.
14568 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
14570 * doc/invoke.texi (fobjc-abi-version): Documented.
14571 (fobjc-nilcheck): Documented.
14572 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
14575 2011-02-17 Joseph Myers <joseph@codesourcery.com>
14578 * common.opt (export-dynamic): New Driver option.
14579 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
14581 2011-02-17 Joseph Myers <joseph@codesourcery.com>
14583 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
14585 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
14586 Jan Hubicka <jh@suse.cz>
14590 * cfgexpand.c (account_used_vars_for_block): Remove.
14591 (estimated_stack_frame_size): Use referenced vars.
14592 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
14593 that were referenced in the original function. Test src_fn
14594 rather than cfun. Drop redundant get_var_ann.
14595 (setup_one_parameter): Drop redundant get_var_ann.
14596 (declare_return_variable): Likewise.
14597 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
14598 (copy_arguments_for_versioning): Drop redundant get_var_ann.
14599 * ipa-inline.c (compute_inline_parameters): Do not compute
14600 disregard_inline_limits here.
14601 (compute_inlinable_for_current, pass_inlinable): New.
14602 (pass_inline_parameters): Require PROP_referenced_vars.
14603 * cgraphunit.c (cgraph_process_new_functions): Don't run
14604 compute_inline_parameters explicitly unless function is in SSA form.
14605 (cgraph_analyze_function): Set .disregard_inline_limits.
14606 * tree-sra.c (convert_callers): Compute inliner parameters
14607 only for functions already in SSA form.
14609 2011-02-17 Joseph Myers <joseph@codesourcery.com>
14611 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
14612 -mlittle-endian-data.
14614 2011-02-17 Joseph Myers <joseph@codesourcery.com>
14616 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
14617 -mno-fpu, not -fpu and -no-fpu.
14618 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
14619 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
14621 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
14624 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
14625 input reload with PLUS RTX.
14627 2011-02-16 Joseph Myers <joseph@codesourcery.com>
14629 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
14630 of InverseVar(MDMX).
14632 2011-02-16 Joseph Myers <joseph@codesourcery.com>
14634 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
14637 2011-02-16 Joseph Myers <joseph@codesourcery.com>
14639 * config/mn10300/mn10300.opt (mno-crt0): New.
14641 2011-02-16 Joseph Myers <joseph@codesourcery.com>
14643 * config/m68k/uclinux.opt (static-libc): New Driver option.
14645 2011-02-16 Joseph Myers <joseph@codesourcery.com>
14647 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
14649 2011-02-16 Joseph Myers <joseph@codesourcery.com>
14651 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
14652 %{muser-extend-enabled}.
14654 2011-02-16 Richard Guenther <rguenther@suse.de>
14656 PR tree-optimization/47738
14657 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
14658 the TODO from tree_predictive_commoning.
14660 2011-02-15 Jeff Law <law@redhat.com>
14663 2011-01-25 Jeff Law <law@redhat.com>
14665 PR rtl-optimization/37273
14666 * ira-costs.c (scan_one_insn): Detect constants living in memory and
14667 handle them like argument loads from stack slots. Do not double
14668 count memory for memory constants and argument loads from stack slots.
14670 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
14672 PR middle-end/47725
14673 * combine.c (cant_combine_insn_p): Revert the last change.
14675 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
14678 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
14679 mode for vector constants. Remove code that checks for TImode.
14681 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
14685 * cgraph.h (compute_inline_parameters): Return void.
14686 * ipa-inline.c (compute_inline_parameters): Adjust.
14688 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
14692 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
14694 * cfgexpand.c (estimated_stack_frame_size): Likewise.
14695 * ipa-inline.c (compute_inline_parameters): Adjust.
14697 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
14701 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
14702 Adjust all users. Pass FN to...
14703 * tree-flow-inline.h (first_referenced_var): ... this. Add
14705 * ipa-struct-reorg.c: Adjust.
14706 * tree-dfa.c: Adjust.
14707 * tree-into-ssa.c: Adjust.
14708 * tree-sra.c: Adjust.
14709 * tree-ssa-alias.c: Adjust.
14710 * tree-ssa-live.c: Adjust.
14711 * tree-ssa.c: Adjust.
14712 * tree-ssanames.c: Adjust.
14713 * tree-tailcall.c: Adjust.
14715 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
14719 * tree-flow.h (referenced_var_lookup): Add fn parameter.
14720 Adjust all callers.
14721 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
14722 * tree-flow-inline.h: Adjust.
14723 * gimple-pretty-print.c: Adjust.
14724 * tree-into-ssa.c: Adjust.
14725 * tree-ssa.c: Adjust.
14726 * cfgexpand.c: Adjust.
14728 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
14730 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
14731 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14732 (EXTRA_CONSTRAINT): Delete.
14733 * config/iq2000/constraints.md: New file.
14734 * config/iq2000/iq2000.md: Include it.
14735 (define_insn ""): Delete.
14736 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
14737 unsupported constraint letters from patterns.
14738 (call_value, call_value_internal1): Likewise.
14739 (call_value_multiple_internal1): Likewise.
14741 2011-02-15 Nick Clifton <nickc@redhat.com>
14743 * config/mn10300/mn10300.c: Include tm-constrs.h.
14744 (struct liw_data): New data structure describing an LIW candidate
14746 (extract_bundle): Use struct liw_data. Allow small integer
14747 operands for some instructions.
14748 (check_liw_constraints): Use struct liw_data. Remove swapped
14749 parameter. Add comments describing the checks. Fix bug when
14750 assigning the source of liw1 to the source of liw2.
14751 (liw_candidate): Delete. Code moved into extract_bundle.
14752 (mn10300_bundle_liw): Use struct liw_data. Check constraints
14754 * config/mn10300/predicates.md (liw_operand): New predicate.
14755 Allows registers and small integer constants.
14756 * config/mn10300/constraints.md (O): New constraint. Accetps
14757 integers in the range -8 to +7 inclusive.
14758 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
14759 for moving a small integer into a register. Give this alternative
14761 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
14762 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
14763 using the J,K,L and M constraints,
14764 (liw): Remove SI mode on second operands to allow for HI and QI
14766 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
14769 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
14771 PR middle-end/47725
14772 * combine.c (cant_combine_insn_p): Check zero/sign extended
14775 2011-02-15 Richard Guenther <rguenther@suse.de>
14777 PR tree-optimization/47743
14778 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
14779 for a non-type-compatible VN lookup bail out.
14781 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
14783 * config/fr30/constraints.md: New file.
14784 * config/fr30/fr30.md: Include it.
14785 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
14786 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14787 (EXTRA_CONSTRAINT): Delete.
14789 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
14791 * config/frv/constraints.md: New file.
14792 * config/frv/predicates.md: Include it.
14793 * config/frv/frv.c (reg_class_from_letter): Delete.
14794 (frv_option_override): Don't initialize it.
14795 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
14796 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
14797 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
14798 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
14799 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
14800 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14801 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
14802 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
14803 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
14804 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
14805 (REG_CLASS_FROM_CONSTRAINT): Delete.
14807 2011-02-15 Jakub Jelinek <jakub@redhat.com>
14809 PR middle-end/47581
14810 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
14811 if frame size is 0 in a leaf function.
14813 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14816 * config/alpha/host-osf.c: New file.
14817 * config/alpha/x-osf: New file.
14818 * config.host (alpha*-dec-osf*): Use it.
14820 2011-02-14 Anatoly Sokolov <aesok@post.ru>
14822 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
14823 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
14824 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
14825 (rx_mode_dependent_address_p): ...this. Make static. Change argument
14827 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14829 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
14831 * config/stormy16/constraints.md: New file.
14832 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
14833 Use satisfies_constraint_Q and satisfies_constraint_R.
14834 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
14836 (xstormy16_legitiamte_address_p): Declare.
14837 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
14838 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14839 (EXTRA_CONSTRAINT): Delete.
14840 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
14842 (xstormy16_extra_constraint_p): Delete.
14844 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
14846 PR tree-optimization/46494
14847 * loop-unroll.c (split_edge_and_insert): Adjust comment.
14848 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
14849 (pass_rtl_loop_done): Add TODO_verify_flow.
14850 * fwprop.c (pass_rtl_fwprop): Likewise.
14851 * modulo-sched.c (pass_sms): Likewise.
14852 * tree-ssa-dom.c (pass_dominator): Likewise.
14853 * tree-ssa-loop-ch.c (pass_ch): Likewise.
14854 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
14855 (pass_tree_loop_done): Likewise.
14856 * tree-ssa-pre.c (execute_pre): Likewise.
14857 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
14858 * tree-ssa-sink.c (pass_sink_code): Likewise.
14859 * tree-vrp.c (pass_vrp): Likewise.
14861 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
14863 * config/v850/constraints.md: New file.
14864 * config/v850/v850.md: Include it.
14865 * config/v850/predicates.md (reg_or_0_operand): Use
14866 satisfies_constraint_G.
14867 (special_symbolref_operand): Use satisfies_constraint_K.
14868 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
14869 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
14870 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
14871 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
14872 (EXTRA_CONSTRAINT): Delete.
14873 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
14874 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
14875 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
14877 2011-02-14 Anatoly Sokolov <aesok@post.ru>
14880 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
14883 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
14885 * config/mcore/constraints.md: New file.
14886 * config/mcore/mcore.md: Include it.
14887 * config/mcore/mcore.c (reg_class_from_letter): Delete.
14888 * config/mcore/mcore.h (reg_class_from_letter): Delete.
14889 (REG_CLASS_FROM_LETTER): Delete.
14890 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
14891 insn_const_int_ok_for_constraint.
14892 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
14893 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
14894 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14895 (EXTRA_CONSTRAINT): Delete.
14897 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14900 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
14901 (IS_SIGHANDLER): Define.
14902 (sparc64_is_sighandler): New function, split off from
14903 sparc64_fallback_frame_state.
14904 (sparc_is_sighandler): New function, split off from
14905 sparc_fallback_frame_state.
14906 (sparc64_fallback_frame_state): Merge with ...
14907 (sparc_fallback_frame_state): ... this into ...
14908 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
14909 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
14910 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
14911 stack instead of hardcoded offsets.
14913 2011-02-14 Andriy Gapon <avg@freebsd.org>
14916 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
14918 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14920 * configure: Regenerate.
14922 2011-02-12 Joseph Myers <joseph@codesourcery.com>
14925 * gcc.c (asm_options): Correct spec matching --target-help.
14927 2011-02-12 Martin Jambor <mjambor@suse.cz>
14929 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
14930 to gimple call error.
14932 2011-02-12 Mike Stump <mikestump@comcast.net>
14934 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
14935 comments in backslash regions.
14937 2011-02-12 Mike Stump <mikestump@comcast.net>
14938 Jakub Jelinek <jakub@redhat.com>
14939 Iain Sandoe <iains@gcc.gnu.org>
14942 * dwarf2out.c (output_cfa_loc): When required, apply the
14943 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
14944 (output_loc_sequence): Likewise.
14945 (output_loc_operands_raw): Likewise.
14946 (output_loc_sequence_raw): Likewise.
14947 (output_cfa_loc): Likewise.
14948 (output_loc_list): Suppress register number adjustment when
14949 calling output_loc_sequence()
14950 (output_die): Likewise.
14952 2011-02-12 Anatoly Sokolov <aesok@post.ru>
14954 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
14956 * config/xtensa/xtensa.c (xtensa_register_move_cost,
14957 xtensa_memory_move_cost): New functions.
14958 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
14960 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
14963 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
14964 in the current directory.
14965 * configure: Rebuilt.
14967 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
14969 * config/darwin.c (darwin_override_options): Add a hunk missed
14970 from the commit of r168571. Trim comment line lengths and
14971 correct indents of the preceding block.
14973 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
14975 * gcc.c (driver_handle_option): Concatenate the argument to -F with
14978 2011-02-11 Joseph Myers <joseph@codesourcery.com>
14980 * common.opt (nostartfiles): New Driver option.
14982 2011-02-11 Xinliang David Li <davidxl@google.com>
14984 PR tree-optimization/47707
14985 * tree-chrec.c (convert_affine_scev): Keep type precision.
14987 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
14989 PR tree-optimization/47420
14990 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
14992 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
14994 PR rtl-optimization/47614
14995 * rtl.h (check_for_inc_dec): Declare.
14996 * dse.c (check_for_inc_dec): Externalize...
14997 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
14998 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
15000 2011-02-11 Joseph Myers <joseph@codesourcery.com>
15003 * gcc.c (main): Do not compile inputs if there were errors in
15005 * opts-common.c (read_cmdline_option): Check for wrong language
15006 after other error checks.
15008 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
15010 * cgraph.c: Fix comment typos.
15011 * cgraph.h: Likewise.
15012 * cgraphunit.c: Likewise.
15013 * ipa-cp.c: Likewise.
15014 * ipa-inline.c: Likewise.
15015 * ipa-prop.c: Likewise.
15016 * ipa-pure-const.c: Likewise.
15017 * ipa-ref.c: Likewise.
15018 * ipa-reference.c: Likewise.
15020 2011-02-11 Jakub Jelinek <jakub@redhat.com>
15023 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
15025 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15028 * doc/sourcebuild.texi (Require Support): Document
15029 dg-require-ascii-locale.
15031 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
15033 * doc/lto.texi (Write summary): Fix missing parentheses.
15035 2011-02-10 DJ Delorie <dj@redhat.com>
15037 * config/m32c/m32c.c (m32c_option_override): Disable
15038 -fcombine-stack-adjustments until flag value tracking and compare
15039 optimization can be rewritten.
15041 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
15043 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
15045 (PROCESSOR_DEFAULT64): Likewise.
15047 2011-02-10 Richard Henderson <rth@redhat.com>
15049 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
15050 change from 2011-02-03.
15051 * config/rx/rx.c (flags_from_code): Likewise.
15052 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
15053 is valid, n/pz otherwise.
15054 (rx_select_cc_mode): Return CCmode if Y is not zero.
15056 2011-02-10 Richard Guenther <rguenther@suse.de>
15058 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
15060 2011-02-10 Richard Guenther <rguenther@suse.de>
15062 PR tree-optimization/47677
15063 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
15065 2011-02-10 Jakub Jelinek <jakub@redhat.com>
15068 * combine.c (make_compound_operation): Only change shifts into
15069 multiplication for SCALAR_INT_MODE_P.
15071 2011-02-10 Jie Zhang <jie@codesourcery.com>
15075 2011-02-05 Jie Zhang <jie@codesourcery.com>
15077 * web.c (entry_register): Don't clobber the number of the
15078 first uninitialized reference in used[].
15080 2011-02-09 Richard Guenther <rguenther@suse.de>
15082 PR tree-optimization/47664
15083 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
15086 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
15090 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
15092 (PROCESSOR_DEFAULT64): Same.
15093 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
15095 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15097 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
15099 2011-02-09 Martin Jambor <mjambor@suse.cz>
15101 PR middle-end/45505
15102 * tree-sra.c (struct access): New flags grp_scalar_read and
15103 grp_scalar_write. Changed description of assignment read and write
15105 (dump_access): Dump new flags, reorder all of them.
15106 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
15107 to detect multiple scalar reads.
15108 (analyze_access_subtree): Use the new scalar read write flags instead
15109 of the old flags. Adjusted comments.
15111 2011-02-08 DJ Delorie <dj@redhat.com>
15114 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
15117 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15119 * config/m68k/uclinux.opt: New.
15120 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
15122 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15124 * config/cris/elf.opt (sim): New Driver option.
15126 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15128 * config/xtensa/elf.opt: New.
15129 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
15131 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15133 * config/vax/elf.opt: New.
15134 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
15136 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15138 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
15140 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15142 * config/gnu-user.opt: New.
15143 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
15144 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
15145 *-*-uclinux*): Use gnu-user.opt.
15147 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
15149 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
15150 * config/i386/gnu.h (CPP_SPEC): Likewise.
15152 2011-02-08 Ian Lance Taylor <iant@google.com>
15154 * common.opt (fcx-limited-range): Add SetByCombined flag.
15155 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
15156 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
15157 (fassociative-math, freciprocal-math): Likewise.
15158 (funsafe-math-optimizations): Likewise.
15159 * opth-gen.awk: Handle SetByCombined.
15160 * optc-gen.awk: Likewise.
15161 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
15162 (set_unsafe_math_optimizations_flags): Likewise.
15163 * doc/options.texi (Option properties): Document SetByCombined.
15165 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15167 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
15168 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
15169 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
15170 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
15171 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
15173 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
15175 PR tree-optimization/46834
15176 PR tree-optimization/46994
15177 PR tree-optimization/46995
15178 * graphite-sese-to-poly.c (used_outside_reduction): New.
15179 (detect_commutative_reduction): Call used_outside_reduction.
15180 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
15181 translate_scalar_reduction_to_array only when at least one
15182 loop-phi/close-phi tuple has been detected.
15184 2011-02-08 Richard Guenther <rguenther@suse.de>
15186 PR middle-end/47639
15187 * tree-vect-generic.c (expand_vector_operations_1): Update
15189 (expand_vector_operations): ... not here. Cleanup EH info
15190 and the CFG if required.
15192 2011-02-08 Richard Guenther <rguenther@suse.de>
15194 PR tree-optimization/47641
15195 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
15196 require type compatibility.
15198 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15200 * gimple-low.c (lower_function_body): Don't remove the location of
15201 the return statement here.
15202 (lower_gimple_return): Do it here instead but only if the return
15203 statement is actually used twice.
15205 2011-02-08 Richard Guenther <rguenther@suse.de>
15207 PR tree-optimization/47632
15208 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
15209 unused up_to_stmt parameter, return whether cfg-cleanup is
15210 necessary, remove EH info properly.
15211 (forward_propagate_into_gimple_cond): Adjust caller.
15212 (forward_propagate_into_cond): Likewise.
15213 (forward_propagate_comparison): Likewise.
15214 (tree_ssa_forward_propagate_single_use_vars): Make
15215 forward_propagate_comparison case similar to the two others.
15217 2011-02-08 Nick Clifton <nickc@redhat.com>
15219 * config/mn10300/mn10300.opt (mliw): New command line option.
15220 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
15221 (liw_bundling): New automaton.
15222 (liw): New attribute.
15223 (liw_op): New attribute.
15224 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
15225 (movsi_internal): Add LIW attributes.
15226 (andsi3): Likewise.
15227 (iorsi3): Likewise.
15228 (xorsi3): Likewise.
15229 (addsi3): Separate register and immediate alternatives.
15230 Add LIW attributes.
15231 (subsi3): Likewise.
15233 (aslsi3): Likewise.
15234 (lshrsi3): Likewise.
15235 (ashrsi3): Likewise.
15236 (liw): New pattern.
15237 * config/mn10300/mn10300.c (liw_op_names): New
15238 (mn10300_print_operand): Handle 'W' operand descriptor.
15239 (extract_bundle): New function.
15240 (check_liw_constraints): New function.
15241 (liw_candidate): New function.
15242 (mn10300_bundle_liw): New function.
15243 (mn10300_reorg): New function.
15244 (TARGET_MACHINE_DEPENDENT_REORG): Define.
15245 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
15246 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
15247 __LIW__ or __NO_LIW__.
15248 * doc/invoke.texi: Describe the -mliw command line option.
15250 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15252 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
15253 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
15254 pthread_mutex_unlock): Remove.
15255 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
15256 * config/pa/t-pa64: Likewise.
15257 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
15258 shared libc if not linking against libpthread.
15259 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
15261 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
15264 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
15265 on 10.6 and later to ensure that we always use the unwinder from
15266 the system. Only add -no_compact_unwind when tarteting darwin
15269 2011-02-07 Steve Ellcey <sje@cup.hp.com>
15272 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
15273 (vec_interleave_lowv2sf): Ditto.
15274 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
15275 (vec_extract_oddv2sf): Ditto.
15277 2011-02-07 Mike Stump <mikestump@comcast.net>
15280 Add __ieee_divdc3 entry point.
15281 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
15283 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
15284 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
15285 * config/darwin.c (darwin_rename_builtins): Add.
15286 * config/darwin-protos.h (darwin_rename_builtins): Add.
15288 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
15291 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
15294 2011-02-07 Mike Stump <mikestump@comcast.net>
15296 * config/darwin.opt (mmacosx-version-min): Update default OS version.
15298 2011-02-07 Denis Chertykov <chertykov@gmail.com>
15301 * config/avr/libgcc.S (exit): Move .endfunc
15303 2011-02-07 Richard Guenther <rguenther@suse.de>
15305 PR tree-optimization/47615
15306 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
15307 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
15308 (run_scc_vn): Initialize it.
15309 (visit_reference_op_load): Use it.
15310 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
15312 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15314 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
15315 DImode trapping arithmetic libfuncs.
15317 2011-02-07 Richard Guenther <rguenther@suse.de>
15319 PR tree-optimization/47621
15320 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
15322 (execute_update_addresses_taken): ... here. Make it more
15323 conservative in what we accept.
15325 2011-02-06 Joseph Myers <joseph@codesourcery.com>
15327 * config/sparc/freebsd.h (ASM_SPEC): Define.
15328 * config/sparc/vxworks.h (ASM_SPEC): Define.
15330 2011-02-06 Joseph Myers <joseph@codesourcery.com>
15332 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
15334 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
15336 * doc/invoke.texi: Remove reference to compiler internals from
15337 user documentation.
15339 * reg-notes.def: Remove REG_VALUE_PROFILE.
15340 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
15342 2011-02-05 Jakub Jelinek <jakub@redhat.com>
15344 PR middle-end/47610
15345 * varasm.c (default_section_type_flags): If decl is NULL,
15346 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
15348 2011-02-05 Jie Zhang <jie@codesourcery.com>
15351 * web.c (entry_register): Don't clobber the number of the
15352 first uninitialized reference in used[].
15354 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
15356 PR tree-optimization/46194
15357 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
15358 (build_classic_dist_vector_1): Do not represent classic distance
15359 vectors when the access functions are variating in different loops.
15361 2011-02-04 Joseph Myers <joseph@codesourcery.com>
15363 * config/mips/iris6.opt: New.
15364 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
15366 2011-02-04 Richard Henderson <rth@redhat.com>
15367 Steve Ellcey <sje@cup.hp.com>
15370 * config/ia64/predicates.md (mux1_brcst_element): New.
15371 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
15372 * config/ia64/ia64.c (ia64_unpack_assemble): New.
15373 (ia64_unpack_sign): New.
15374 (ia64_expand_unpack): Rewrite using new routines.
15375 (ia64_expand_widen_sum): Ditto.
15376 (ia64_expand_dot_prod_v8qi): Ditto.
15377 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
15378 routines, add endian check.
15379 (pmpy2_even): Rename from pmpy2_r, add endian check.
15380 (pmpy2_odd): Rename from pmpy2_l, add endian check.
15381 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
15382 (vec_widen_smult_hi_v4hi): Ditto.
15383 (vec_widen_umult_lo_v4hi): Ditto.
15384 (vec_widen_umult_hi_v4hi): Ditto.
15385 (mulv2si3): Change endian checks.
15386 (sdot_prodv4hi): Rewrite with new calls.
15387 (udot_prodv4hi): New.
15388 (vec_pack_ssat_v4hi): Add endian check.
15389 (vec_pack_usat_v4hi): Ditto.
15390 (vec_pack_ssat_v2si): Ditto.
15391 (max1_even): Rename from max1_r, add endian check.
15392 (max1_odd): Rename from max1_l, add endian check.
15393 (*mux1_rev): Format change.
15394 (*mux1_mix): Ditto.
15395 (*mux1_shuf): Ditto.
15396 (*mux1_alt): Ditto.
15397 (*mux1_brcst_v8qi): Use new predicate.
15398 (vec_extract_evenv8qi): Remove endian check.
15399 (vec_extract_oddv8qi): Ditto.
15400 (vec_interleave_lowv4hi): Format change.
15401 (vec_interleave_highv4hi): Ditto.
15402 (mix2_even): Rename from mix2_r, add endian check.
15403 (mix2_odd): Rename from mux2_l, add endian check.
15404 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
15405 (vec_extract_evenodd_helper): Format change.
15406 (vec_extract_evenv4hi): Remove endian check.
15407 (vec_extract_oddv4hi): Remove endian check.
15408 (vec_interleave_lowv2si): Format change.
15409 (vec_interleave_highv2si): Format change.
15410 (vec_initv2si): Remove endian check.
15411 (vecinit_v2si): Add endian check.
15412 (reduc_splus_v2sf): Add endian check.
15413 (reduc_smax_v2sf): Ditto.
15414 (reduc_smin_v2sf): Ditto.
15415 (vec_initv2sf): Remove endian check.
15416 (fpack): Add endian check.
15417 (fswap): Add endian check.
15418 (vec_interleave_highv2sf): Add endian check.
15419 (vec_interleave_lowv2sf): Add endian check.
15420 (fmix_lr): Add endian check.
15421 (vec_setv2sf): Format change.
15422 (*vec_extractv2sf_0_be): Use shift to extract operand.
15423 (*vec_extractv2sf_1_be): New.
15424 (vec_pack_trunc_v4hi): Add endian check.
15425 (vec_pack_trunc_v2si): Format change.
15427 2011-02-04 Jakub Jelinek <jakub@redhat.com>
15429 PR inline-asm/23200
15430 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
15431 do bb, locus and block comparison and disallow loads if it is not set.
15432 (stmt_is_replaceable_p): New function.
15433 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
15435 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
15436 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
15438 * tree-flow.h (stmt_is_replaceable_p): New prototype.
15440 2011-02-04 Joseph Myers <joseph@codesourcery.com>
15442 * config/rs6000/xilinx.opt: New.
15443 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
15445 2011-02-04 Joseph Myers <joseph@codesourcery.com>
15447 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
15449 2011-02-03 Anatoly Sokolov <aesok@post.ru>
15451 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
15452 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
15453 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
15454 secondary_reload_info, xtensa_secondary_reload): Remove.
15455 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
15456 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
15457 (xtensa_preferred_reload_class): Make static. Change return and
15458 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
15459 Use CONST_DOUBLE_P predicate.
15460 (xtensa_preferred_output_reload_class): New function.
15461 (xtensa_secondary_reload): Make static.
15463 2011-02-03 Joseph Myers <joseph@codesourcery.com>
15465 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
15466 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
15467 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
15469 2011-02-03 Jakub Jelinek <jakub@redhat.com>
15471 PR middle-end/31490
15472 * output.h (SECTION_RELRO): Define.
15473 (SECTION_MACH_DEP): Adjust.
15474 (get_variable_section): New prototype.
15475 * varpool.c (varpool_finalize_named_section_flags): New function.
15476 (varpool_assemble_pending_decls): Call it.
15477 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
15478 * cgraphunit.c (cgraph_output_in_order): Call
15479 varpool_finalize_named_section_flags.
15480 * varasm.c (get_section): Allow section flags conflicts between
15481 relro and read-only sections if the section hasn't been declared yet.
15482 Set SECTION_OVERRIDE after diagnosing section type conflict.
15483 (get_variable_section): No longer static.
15484 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
15485 readonly sections that need relocations.
15486 (decl_readonly_section_1): New function.
15487 (decl_readonly_section): Use it.
15490 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
15491 Steve Ellcey <sje@cup.hp.com>
15493 PR middle-end/31490
15494 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
15495 if section attribute used.
15497 2011-02-03 Jakub Jelinek <jakub@redhat.com>
15499 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
15500 * config/darwin.c (SECTION_NO_ANCHOR): Define.
15501 (darwin_init_sections): Remove assertion.
15503 2011-02-03 Nick Clifton <nickc@redhat.com>
15505 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
15507 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
15508 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
15509 instead of "n" and "pz".
15510 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
15513 2011-02-03 Jakub Jelinek <jakub@redhat.com>
15516 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
15517 fma, expand FMA_EXPR as fma{,f,l} call.
15520 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
15521 copy them into a unsigned char variable and pass address of it to
15522 lto_output_data_stream.
15525 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
15526 around backend_init_target and lang_dependent_init_target calls.
15527 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
15528 (verify_cgraph_node): Don't call set_cfun here. Use
15529 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
15530 Set error_found for incorrectly represented calls to thunks.
15532 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
15535 PR rtl-optimization/43494
15536 * rtl.h (for_each_inc_dec_fn): New type.
15537 (for_each_inc_dec): Declare.
15538 * rtlanal.c (struct for_each_inc_dec_ops): New type.
15539 (for_each_inc_dec_find_inc_dec): New fn.
15540 (for_each_inc_dec_find_mem): New fn.
15541 (for_each_inc_dec): New fn.
15542 * dse.c (struct insn_size): Remove.
15543 (replace_inc_dec, replace_inc_dec_mem): Remove.
15544 (emit_inc_dec_insn_before): New fn.
15545 (check_for_inc_dec): Use it, along with for_each_inc_dec.
15546 (canon_address): Pass mem modes to cselib_lookup.
15547 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
15548 (cselib_lookup_from_insn): Likewise.
15549 (cselib_subst_to_values): Likewise.
15550 * cselib.c (find_slot_memmode): New var.
15551 (cselib_find_slot): New fn. Use it instead of
15552 htab_find_slot_with_hash everywhere.
15553 (entry_and_rtx_equal_p): Use find_slot_memmode.
15554 (autoinc_split): New fn.
15555 (rtx_equal_for_cselib_p): Rename and implement in terms of...
15556 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
15557 Deal with autoinc. Special-case recursion into MEMs.
15558 (cselib_hash_rtx): Likewise.
15559 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
15560 address and MEM modes.
15561 (cselib_subst_to_values): Add memmode, pass it on.
15563 (cselib_lookup): Add memmode argument, pass it on.
15564 (cselib_lookup_from_insn): Add memmode.
15565 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
15566 (struct cselib_record_autoinc_data): New.
15567 (cselib_record_autoinc_cb): New fn.
15568 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
15569 mode to cselib_lookup. Reset autoinced REGs here instead of...
15570 (cselib_process_insn): ... here.
15571 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
15573 (add_uses): Likewise, also to cselib_subst_to_values.
15574 (add_stores): Likewise.
15575 * sched-deps.c (add_insn_mem_dependence): Pass mode to
15576 cselib_subst_to_values.
15577 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
15578 * gcse.c (do_local_cprop): Adjusted.
15579 * postreload.c (reload_cse_simplify_set): Adjusted.
15580 (reload_cse_simplify_operands): Adjusted.
15581 * sel-sched-dump (debug_mem_addr_value): Pass mode.
15583 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
15585 PR tree-optimization/45122
15586 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
15587 unsafe assumptions when there's more than one loop exit.
15589 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
15592 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
15593 Document using vector double with the load/store builtins, and
15594 that the load/store builtins always use Altivec instructions.
15596 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
15597 to use altivec memory instructions, even on VSX.
15598 (vector_altivec_store_<mode>): Ditto.
15600 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
15603 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
15604 V2DF, V2DI support to load/store overloaded builtins.
15606 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
15607 altivec load/store builtins for V2DF/V2DI types.
15609 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
15610 set avoid indexed addresses on power6 if -maltivec.
15611 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
15612 vector_altivec_load/vector_altivec_store builtins.
15613 (altivec_expand_st_builtin): Ditto.
15614 (altivec_expand_builtin): Add VSX memory builtins.
15615 (rs6000_init_builtins): Add V2DI types to internal types.
15616 (altivec_init_builtins): Add support for V2DF/V2DI altivec
15617 load/store builtins.
15618 (rs6000_address_for_altivec): Insure memory address is appropriate
15621 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
15622 vec_vsx_ld and vec_vsx_st.
15623 (vsx_store_<mode>): Ditto.
15625 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
15626 variables to hold long long types for VSX vector memory builtins.
15627 (RS6000_BTI_unsigned_long_long): Ditto.
15628 (long_long_integer_type_internal_node): Ditti.
15629 (long_long_unsigned_type_internal_node): Ditti.
15631 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
15632 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
15633 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
15635 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
15637 (vec_vsx_st): Ditto.
15639 2011-02-02 Joseph Myers <joseph@codesourcery.com>
15641 * config/pa/pa-hpux10.opt: New.
15642 * config/hpux11.opt (pthread): New Driver option.
15643 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
15644 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
15646 2011-02-02 Joseph Myers <joseph@codesourcery.com>
15648 * config/ia64/vms.opt: New.
15649 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
15651 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
15654 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
15655 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
15656 generator functions.
15657 (vsx_floatuns<VSi><mode>2): Ditto.
15658 (vsx_fix_trunc<mode><VSi>2): Ditto.
15659 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
15661 2011-02-02 Joseph Myers <joseph@codesourcery.com>
15663 * config/i386/djgpp.opt (posix): New Driver option.
15665 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
15667 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
15668 Move to the unsupported targets list.
15670 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
15672 PR rtl-optimization/47525
15673 * df-scan.c: Update copyright years.
15674 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
15675 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
15677 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15679 * config/i386/sysv4.h (TARGET_VERSION): Remove.
15680 (SUBTARGET_RETURN_IN_MEMORY): Remove.
15681 (ASM_OUTPUT_ASCII): Remove.
15682 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
15684 2011-02-02 Jeff Law <law@redhat.com>
15686 PR middle-end/47543
15687 * reload.c (find_reloads_address): Handle reg+d address where both
15688 components are invalid by reloading the entire address.
15690 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
15691 Richard Guenther <rguenther@suse.de>
15693 PR tree-optimization/40979
15695 * passes.c (init_optimization_passes): After LIM call copy_prop
15696 and DCE to clean up.
15697 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
15699 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
15701 PR tree-optimization/47576
15702 PR tree-optimization/47555
15703 * doc/invoke.texi (scev-max-expr-complexity): Documented.
15704 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
15705 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
15706 * tree-scalar-evolution.c (follow_ssa_edge): Use
15707 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
15709 2011-02-02 Richard Guenther <rguenther@suse.de>
15711 PR tree-optimization/47566
15712 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
15714 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
15718 * tree-inline.c (declare_return_variable): Remove unused caller
15723 * tree-flow-inline.h (clear_is_used, is_used_p): New.
15724 * cfgexpand.c (account_used_vars_for_block): Use them.
15725 * tree-nrv.c (tree_nrv): Likewise.
15726 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
15727 (dump_scope_block): Likewise.
15728 (remove_unused_locals): Likewise.
15732 * tree-inline.c (declare_return_variable): Add result decl to
15733 local decls only once.
15734 * gimple-low.c (record_vars_into): Mark newly-created variables
15737 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
15743 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
15745 (no_real_insns_p, schedule_block, set_priorities): Drop special
15746 treatment of boundary debug insns.
15747 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
15748 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
15749 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
15750 (BOUNDARY_DEBUG_INSN_P): Likewise.
15751 (SCHEDULE_DEBUG_INSN_P): Likewise.
15752 * sched-rgn.c (init_ready_list): Drop special treatment of
15753 boundary debug insns.
15754 * final.c (rest_of_clean_state): Clear notes' BB.
15756 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15758 * config/openbsd.opt (assert=): New Driver option.
15760 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15762 * config/i386/nto.opt: New.
15763 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
15765 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15767 * config/i386/netware.opt: New.
15768 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
15770 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15772 * config/interix.opt (posix): New Driver option.
15774 2011-02-01 DJ Delorie <dj@redhat.com>
15776 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
15778 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
15781 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
15783 PR tree-optimization/47561
15784 * toplev.c (process_options): Print the Graphite flags. Add
15785 flag_loop_flatten to the list of options requiring Graphite.
15787 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15789 * config/i386/cygming.opt (posix): New Driver option.
15791 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15793 * config/arm/vxworks.opt: New.
15794 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
15796 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15798 * config/alpha/elf.opt: New.
15799 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
15800 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
15802 2011-02-01 Richard Guenther <rguenther@suse.de>
15804 PR tree-optimization/47559
15805 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
15806 store-motion on references that can throw.
15808 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
15810 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
15811 * tree-pass.h (TDF_CSELIB): New macro.
15812 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
15813 cselib_lookup): Check for it rather than for TDF_DETAILS.
15815 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
15818 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
15819 is HOST_BIT_BUCKET.
15821 * opts.c (finish_options): Don't add x_aux_base_name if it is
15824 2011-02-01 Richard Guenther <rguenther@suse.de>
15826 PR tree-optimization/47555
15828 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
15830 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
15832 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
15835 * config/lm32/t-lm32: Add multilib for all CPU options.
15837 2011-02-01 Richard Guenther <rguenther@suse.de>
15839 PR tree-optimization/47541
15840 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
15841 sure to have a field at offset zero.
15843 2011-01-31 Joseph Myers <joseph@codesourcery.com>
15845 * config/arc/arc.opt (EB, EL): New Driver options.
15847 2011-01-31 Joseph Myers <joseph@codesourcery.com>
15849 * config/alpha/osf5.opt: New.
15850 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
15852 2011-01-31 Joseph Myers <joseph@codesourcery.com>
15854 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
15856 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
15858 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
15859 -floop-interchange.
15860 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
15861 is an alias of -floop-interchange and that it requires the
15862 Graphite infrastructure.
15863 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
15864 flag_loop_interchange based on the value of flag_tree_loop_linear.
15866 2011-01-31 Jakub Jelinek <jakub@redhat.com>
15867 Richard Guenther <rguenther@suse.de>
15869 PR tree-optimization/47538
15870 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
15871 type instead of r1type, except for comparisons. For right
15872 shifts and comparisons punt if there are mismatches in
15873 sizetype vs. non-sizetype types.
15875 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15877 * doc/sourcebuild.texi (Effective-Target Keywords): Document
15880 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15882 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
15884 * configure: Regenerate.
15886 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15888 * configure.ac (gcc_cv_ld_static_option): Define.
15889 (gcc_cv_ld_dynamic_option): Define.
15890 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
15892 (HAVE_LD_STATIC_DYNAMIC): Update message.
15893 (LD_STATIC_OPTION): Define.
15894 (LD_DYNAMIC_OPTION): Define.
15895 * configure: Regenerate.
15896 * config.in: Regenerate.
15897 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
15898 HAVE_LD_STATIC_DYNAMIC]: Use them.
15900 2011-01-31 Nick Clifton <nickc@redhat.com>
15902 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
15903 registers inside interrupt handlers if the handler is not a leaf
15906 2011-01-31 Nick Clifton <nickc@redhat.com>
15908 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
15909 reg_renumber returning an INVALID_REGNUM.
15911 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
15914 * doc/install.texi: Document host options discarded when cross
15915 configuring target libraries.
15917 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
15920 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
15923 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
15925 (no_real_insns_p, schedule_block, set_priorities): Drop special
15926 treatment of boundary debug insns.
15927 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
15928 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
15929 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
15930 (BOUNDARY_DEBUG_INSN_P): Likewise.
15931 (SCHEDULE_DEBUG_INSN_P): Likewise.
15932 * sched-rgn.c (init_ready_list): Drop special treatment of
15933 boundary debug insns.
15934 * final.c (rest_of_clean-state): Clear notes' BB.
15936 2011-01-31 Alan Modra <amodra@gmail.com>
15938 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
15939 toc relative expressions as we do in print_operand_address.
15941 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
15943 * doc/extend.texi: Follow spelling conventions.
15944 * doc/invoke.texi: Fix a typo.
15946 2011-01-30 Joseph Myers <joseph@codesourcery.com>
15948 * config/hpux11.opt: New.
15949 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
15950 ia64*-*-hpux*): Use hpux11.opt.
15952 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
15954 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
15957 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
15959 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
15962 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
15964 * doc/install.texi (Binaries): Remove outdated reference for
15965 Motorola 68HC11/68HC12 downloads.
15967 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
15969 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
15972 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
15975 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
15978 2011-01-28 Ahmad Sharif <asharif@google.com>
15980 * value-prof.c (check_counter): Corrected error message.
15982 2011-01-29 Jie Zhang <jie@codesourcery.com>
15984 * config/arm/arm.c (arm_legitimize_reload_address): New.
15985 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
15986 arm_legitimize_reload_address.
15987 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
15989 2011-01-28 Ian Lance Taylor <iant@google.com>
15991 * godump.c (go_define): Ignore macros whose definitions include
15992 two adjacent operands.
15994 2011-01-28 Jakub Jelinek <jakub@redhat.com>
15997 * varasm.c (force_const_mem): Store copy of x in desc->constant
15998 instead of x itself.
15999 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
16000 itself into REG_EQUAL note.
16002 2011-01-28 Joseph Myers <joseph@codesourcery.com>
16004 * config/freebsd.opt (posix, rdynamic): New Driver options.
16006 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16008 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
16009 -Bstatic/-Bdynamic.
16010 * configure: Regenerate.
16012 2011-01-27 Joseph Myers <joseph@codesourcery.com>
16014 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
16015 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
16017 2011-01-27 Anatoly Sokolov <aesok@post.ru>
16019 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
16020 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
16021 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
16022 (s390_preferred_reload_class): Make static. Change return and
16023 'rclass' argument type to reg_class_t.
16025 2011-01-27 Jan Hubicka <jh@suse.cz>
16027 PR middle-end/46949
16028 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
16029 (process_function_and_variable_attributes): Check defined weakrefs.
16031 2011-01-27 Martin Jambor <mjambor@suse.cz>
16033 PR tree-optimization/47228
16034 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
16035 build_ref_for_offset.
16037 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16039 * config/spu/spu-elf.h (ASM_SPEC): Remove.
16041 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
16043 PR rtl-optimization/46856
16044 * postreload.c (reload_combine_recognize_const_pattern): Do not
16045 separate cc0 setter and user on cc0 targets.
16047 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
16050 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
16051 passed a VOID_TYPE expression, immediately emit an error and
16052 return error_mark_node.
16054 2011-01-26 Jeff Law <law@redhat.com>
16056 PR rtl-optimization/47464
16057 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
16058 rather than may_trap_p as needed.
16060 2011-01-26 DJ Delorie <dj@redhat.com>
16062 PR rtl-optimization/46878
16063 * combine.c (insn_a_feeds_b): Check for the implicit cc0
16064 setter/user dependency as well.
16066 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
16068 PR rtl-optimization/44469
16069 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
16070 after removing trivially dead basic blocks.
16072 2011-01-26 Joseph Myers <joseph@codesourcery.com>
16074 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
16075 * config/frv/frv.h (LINK_SPEC): Likewise.
16076 * config/i386/netware.h (LINK_SPEC): Likewise.
16077 * config/m68k/linux.h (ASM_SPEC): Likewise.
16078 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
16079 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
16080 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
16081 * config/sparc/linux.h (ASM_SPEC): Likewise.
16082 * config/sparc/linux64.h (ASM_SPEC): Likewise.
16083 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
16085 2011-01-26 Joseph Myers <joseph@codesourcery.com>
16087 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
16088 * config/frv/frv.h (ASM_SPEC): Likewise.
16089 * config/m68k/linux.h (ASM_SPEC): Likewise.
16090 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
16091 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
16092 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
16093 * config/sparc/linux.h (ASM_SPEC): Likewise.
16094 * config/sparc/linux64.h (ASM_SPEC): Likewise.
16095 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
16097 2011-01-26 Joseph Myers <joseph@codesourcery.com>
16099 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
16100 * config/frv/frv.h (LINK_SPEC): Likewise.
16101 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
16103 2011-01-26 Joseph Myers <joseph@codesourcery.com>
16105 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
16106 * config/frv/frv.h (ASM_SPEC): Likewise.
16107 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
16108 * config/m68k/linux.h (ASM_SPEC): Likewise.
16109 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
16110 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
16111 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
16112 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
16113 * config/sparc/linux.h (ASM_SPEC): Likewise.
16114 * config/sparc/linux64.h (ASM_SPEC): Likewise.
16115 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
16116 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
16118 2011-01-26 Steve Ellcey <sje@cup.hp.com>
16121 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
16123 (vec_extract_evenodd_help): Ditto.
16124 (vec_extract_evenv4hi): Ditto.
16125 (vec_extract_oddv4hi): Ditto.
16126 (vec_interleave_lowv2si): Ditto.
16127 (vec_interleave_highv2si): Ditto.
16128 (vec_extract_evenv2si): Ditto.
16129 (vec_extract_oddv2si: Ditto.
16130 (vec_pack_trunc_v2si): Ditto.
16132 2011-01-22 Jan Hubicka <jh@suse.cz>
16135 * cgraph.h (cgraph_local_info): New field can_change_signature.
16136 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
16137 signature can change.
16138 (ipcp_estimate_growth): Call sequence simplify only if calle signature
16140 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
16141 (cgraph_function_versioning): We can not change signature of functions
16142 that don't allow that.
16143 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
16144 (lto_input_node): Likewise.
16145 * ipa-inline.c (compute_inline_parameters): Compute
16146 local.can_change_signature.
16147 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
16148 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
16149 functions that can not change signature.
16150 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
16151 init_cumulative_args): Do not use local calling conventions
16152 for functions that can not change signature.
16154 2011-01-22 Jan Hubicka <jh@suse.cz>
16156 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
16158 2011-01-26 Richard Guenther <rguenther@suse.de>
16160 PR tree-optimization/47190
16161 * cgraphunit.c (process_common_attributes): New function.
16162 (process_function_and_variable_attributes): Use it.
16164 2011-01-26 Richard Guenther <rguenther@suse.de>
16167 * cgraphbuild.c (record_eh_tables): Record reference to personality
16170 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
16173 * sel-sched.c (moveup_expr): Don't let debug insns prevent
16174 non-debug insns from moving up.
16176 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
16179 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
16180 t-dlldir{,-x} fragment for build and add it to tmake_file.
16181 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
16182 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
16183 * config/i386/t-dlldir: New file.
16184 (SHLIB_DLLDIR): Define.
16185 * config/i386/t-dlldir-x: New file.
16186 (SHLIB_DLLDIR): Define.
16187 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
16188 (SHLIB_INSTALL): Use it.
16190 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
16193 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
16194 lower bound of the allowed Thumb-2 coprocessor load/store
16195 index range to -256. Add explaining comment.
16197 2011-01-25 Ian Lance Taylor <iant@google.com>
16199 * godump.c (go_define): Improve lexing of macro expansion to only
16200 accept expressions which match Go spec.
16202 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
16205 * tree.c (handle_dll_attribute): Handle it.
16206 * doc/extend.texi (@item dllexport): Mention it.
16207 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
16209 2011-01-25 Ian Lance Taylor <iant@google.com>
16211 PR tree-optimization/26854
16212 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
16213 (decl_jump_unsafe): Move higher in file, with no other change.
16214 (bind): Set has_jump_unsafe_decl if appropriate.
16215 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
16216 (check_earlier_gotos): Likewise.
16217 (c_check_switch_jump_warnings): Likewise.
16219 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
16221 * doc/invoke.texi (Warning Options): Add missing hyphen.
16222 (-fprofile-dir): Minor grammatical fixes.
16223 (-fbranch-probabilities): Likewise.
16225 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
16229 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
16231 (no_real_insns_p, schedule_block, set_priorities): Drop special
16232 treatment of boundary debug insns.
16233 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
16234 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
16235 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
16236 (BOUNDARY_DEBUG_INSN_P): Likewise.
16237 (SCHEDULE_DEBUG_INSN_P): Likewise.
16238 * sched-rgn.c (init_ready_list): Drop special treatment of
16239 boundary debug insns.
16240 * final.c (rest_of_clean-state): Clear notes' BB.
16242 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16244 * Makefile.in (LAMBDA_H): Removed.
16245 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
16246 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
16247 lambda-trans.o, and tree-loop-linear.o.
16248 (lto-symtab.o): Remove dependence on LAMBDA_H.
16249 (tree-loop-linear.o): Remove rule.
16250 (lambda-mat.o): Same.
16251 (lambda-trans.o): Same.
16252 (lambda-code.o): Same.
16253 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
16254 (tree-vect-slp.o): Same.
16255 * hwint.h (gcd): Moved here.
16256 (least_common_multiple): Same.
16257 * lambda-code.c: Removed.
16258 * lambda-mat.c: Removed.
16259 * lambda-trans.c: Removed.
16260 * lambda.h: Removed.
16261 * tree-loop-linear.c: Removed.
16262 * lto-symtab.c: Do not include lambda.h.
16263 * omega.c (gcd): Removed.
16264 * passes.c (init_optimization_passes): Remove pass_linear_transform.
16265 * tree-data-ref.c (print_lambda_vector): Moved here.
16266 (lambda_vector_copy): Same.
16267 (lambda_matrix_copy): Same.
16268 (lambda_matrix_id): Same.
16269 (lambda_vector_first_nz): Same.
16270 (lambda_matrix_row_add): Same.
16271 (lambda_matrix_row_exchange): Same.
16272 (lambda_vector_mult_const): Same.
16273 (lambda_vector_negate): Same.
16274 (lambda_matrix_row_negate): Same.
16275 (lambda_vector_equal): Same.
16276 (lambda_matrix_right_hermite): Same.
16277 * tree-data-ref.h: Do not include lambda.h.
16278 (lambda_vector): Moved here.
16279 (lambda_matrix): Same.
16280 (dependence_level): Same.
16281 (lambda_transform_legal_p): Removed declaration.
16282 (lambda_collect_parameters): Same.
16283 (lambda_compute_access_matrices): Same.
16284 (lambda_vector_gcd): Same.
16285 (lambda_vector_new): Same.
16286 (lambda_vector_clear): Same.
16287 (lambda_vector_lexico_pos): Same.
16288 (lambda_vector_zerop): Same.
16289 (lambda_matrix_new): Same.
16290 * tree-flow.h (least_common_multiple): Removed declaration.
16291 * tree-parloops.c (lambda_trans_matrix): Moved here.
16292 (LTM_MATRIX): Same.
16293 (LTM_ROWSIZE): Same.
16294 (LTM_COLSIZE): Same.
16295 (LTM_DENOMINATOR): Same.
16296 (lambda_trans_matrix_new): Same.
16297 (lambda_matrix_vector_mult): Same.
16298 (lambda_transform_legal_p): Same.
16299 * tree-pass.h (pass_linear_transform): Removed declaration.
16300 * tree-ssa-loop.c (tree_linear_transform): Removed.
16301 (gate_tree_linear_transform): Removed.
16302 (pass_linear_transform): Removed.
16303 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
16304 flag_loop_interchange.
16306 2011-01-25 Jakub Jelinek <jakub@redhat.com>
16308 PR tree-optimization/47265
16309 PR tree-optimization/47443
16310 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
16311 if name still has some uses.
16313 2011-01-25 Martin Jambor <mjambor@suse.cz>
16315 PR tree-optimization/47382
16316 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
16317 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
16319 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
16321 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
16322 sjlj_except_unwind_info.
16324 2011-01-25 Richard Guenther <rguenther@suse.de>
16326 PR tree-optimization/47426
16327 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
16328 visible functions results escape.
16330 2011-01-25 Jakub Jelinek <jakub@redhat.com>
16333 * config/arm/arm.c (any_sibcall_uses_r3): New function.
16334 (arm_get_frame_offsets): Use it.
16336 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16337 Jakub Jelinek <jakub@redhat.com>
16339 PR tree-optimization/47271
16340 * tree-if-conv.c (bb_postdominates_preds): New.
16341 (if_convertible_bb_p): Call bb_postdominates_preds.
16342 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
16343 (predicate_scalar_phi): Call bb_postdominates_preds.
16345 2011-01-25 Nick Clifton <nickc@redhat.com>
16347 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
16348 * config/rx/rx.c (rx_function_value): Likewise.
16349 (rx_promote_function_mode): Likewise.
16350 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
16351 in order to make it legitimate.
16352 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
16353 make sure that the first operand is the same as the result register.
16354 (addsi3_unspec): Delete.
16355 (subdi3): Do not accept immediate operands.
16356 (subdi3_internal): Likewise.
16358 2011-01-25 Jeff Law <law@redhat.com>
16360 PR rtl-optimization/37273
16361 * ira-costs.c (scan_one_insn): Detect constants living in memory and
16362 handle them like argument loads from stack slots. Do not double
16363 count memory for memory constants and argument loads from stack slots.
16365 2011-01-25 Jakub Jelinek <jakub@redhat.com>
16367 PR tree-optimization/47427
16368 PR tree-optimization/47428
16369 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
16370 coalesce if the new root var would be TREE_READONLY.
16372 2011-01-25 Richard Guenther <rguenther@suse.de>
16374 PR middle-end/47414
16375 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
16376 correct type for TBAA.
16378 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16380 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
16381 (close_phi_written_to_memory): Call for_each_index with
16382 dr_indices_valid_in_loop.
16384 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16386 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
16387 when it is initialized.
16389 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16391 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
16392 call to graphite_find_data_references_in_stmt.
16393 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
16394 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
16395 call to graphite_find_data_references_in_stmt.
16396 (analyze_drs_in_stmts): Same.
16397 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
16398 in which the scalar analysis of indices is performed.
16399 (create_data_ref): Same. Update call to dr_analyze_indices.
16400 (find_data_references_in_stmt): Update call to create_data_ref.
16401 (graphite_find_data_references_in_stmt): Same.
16402 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
16404 (create_data_ref): Same.
16405 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
16406 call to create_data_ref.
16408 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16410 * graphite-sese-to-poly.c (build_poly_scop): Move
16411 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
16413 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16415 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
16416 VAR_DECL, PARM_DECL, and RESULT_DECL.
16418 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16420 * graphite-dependences.c (reduction_dr_1): Allow several reductions
16421 in a reduction PBB.
16422 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
16423 that have already been marked as PBB_IS_REDUCTION.
16425 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16427 * graphite-scop-detection.c (same_close_phi_node): New.
16428 (remove_duplicate_close_phi): New.
16429 (make_close_phi_nodes_unique): New.
16430 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
16432 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16434 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
16435 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
16436 of both data references to be the same.
16438 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16440 * graphite-dependences.c (build_lexicographical_constraint): Remove
16441 the gdim parameter.
16442 (build_lexicographical_constraint): Adjust call to
16443 ppl_powerset_is_empty.
16444 (dependence_polyhedron): Same.
16445 (graphite_legal_transform_dr): Same.
16446 (graphite_carried_dependence_level_k): Same.
16447 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
16449 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
16451 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16453 * graphite-sese-to-poly.c
16454 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
16455 (close_phi_written_to_memory): New.
16456 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
16459 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16461 * doc/install.texi: Update the expected version number of PPL to 0.11.
16462 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
16463 #if PPL_VERSION_MINOR < 11.
16465 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16467 * graphite-dependences.c: Include graphite-cloog-util.h.
16468 (new_poly_ddr): Inlined into dependence_polyhedron.
16469 (free_poly_ddr): Moved close by new_poly_ddr.
16470 (dependence_polyhedron_1): Renamed dependence_polyhedron.
16471 Early return NULL when ppl_powerset_is_empty returns true.
16472 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
16473 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
16474 (graphite_legal_transform_dr): Call new_poly_ddr.
16475 (graphite_carried_dependence_level_k): Same.
16476 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
16477 (dot_transformed_deps_stmt_1): Removed.
16478 (dot_deps_stmt_1): Call dot_deps_stmt_2.
16479 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
16480 (dot_deps_1): Call dot_deps_2.
16481 * Makefile.in (graphite-dependences.o): Add missing dependence on
16482 graphite-cloog-util.h.
16484 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16486 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
16487 (build_lexicographical_constraint): Same.
16488 (dependence_polyhedron_1): Same.
16489 (graphite_legal_transform_dr): Same.
16490 (graphite_carried_dependence_level_k): Same.
16491 * graphite-ppl.c (ppl_powerset_is_empty): New.
16492 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
16493 * tree-data-ref.c (dump_data_reference): Print the basic block index.
16495 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16497 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
16498 the "a followed by b" relation and document it.
16500 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16502 * graphite-dependences.c (build_lexicographical_constraint): Stop the
16503 iteration when the bag of constraints is empty.
16505 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16507 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
16509 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16511 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
16512 nest and two loop depths as parameters.
16513 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
16514 lst_perfect_nestify.
16516 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16518 * graphite-dependences.c (print_pddr): Call
16519 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
16521 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16523 * graphite-ppl.c (debug_gmp_value): New.
16524 * graphite-ppl.h (debug_gmp_value): Declared.
16526 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
16528 * doc/install.texi: Document availability of cloog-0.16.
16530 2011-01-25 Vladimir Kargov <kargov@gmail.com>
16532 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
16533 invalid postdominance info.
16535 2011-01-24 Jan Hubicka <jh@suse.cz>
16538 * doc/extend.texi (weak pragma): Drop claim that it must
16539 appear before definition.
16540 * varasm.c (merge_weak, declare_weak): Only sanity check
16541 that DECL is not output at a time it is declared weak.
16543 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
16545 * machmode.def: Fixed comments.
16547 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
16549 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
16551 2011-01-24 Paul Koning <ni1d@arrl.net>
16553 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
16556 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
16559 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
16560 (block_info): Add scanned and prev.
16561 (move_or_delete_vzeroupper_2): Return if the basic block
16562 has been scanned and the upper 128bit state is unchanged
16563 from the last scan.
16564 (move_or_delete_vzeroupper_1): Return true if the exit
16566 (move_or_delete_vzeroupper): Visit basic blocks using the
16567 work-list based algorithm based on vt_find_locations in
16570 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
16572 2011-01-24 Nick Clifton <nickc@redhat.com>
16574 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
16575 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
16576 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
16577 then define __v850e1__.
16578 * doc/invoke.texi: Document -mv850es.
16580 2011-01-24 Richard Henderson <rth@redhat.com>
16582 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
16583 compound unordered comparisons.
16584 * config/rx/rx.c (rx_split_fp_compare): Remove.
16585 * config/rx/rx-protos.h: Update.
16586 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
16587 (cbranchsf4): Don't call rx_split_fp_compare.
16588 (*cbranchsf4): Use rx_split_cbranch.
16589 (*cmpsf): Don't accept "i" constraint.
16590 (*conditional_branch): Only valid after reload.
16591 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
16593 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
16596 * config/rs6000/altivec.md (vector constant splitters): Add
16597 support for creating vector single precision constants if -mvsx is
16598 used and we would create the constant using Altivec primitives.
16600 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
16601 Richard Sandiford <rdsandiford@googlemail.com>
16603 PR rtl-optimization/47166
16604 * reload1.c (emit_reload_insns): Disable the spill_reg_store
16605 mechanism for PRE_MODIFY and POST_MODIFY.
16606 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
16609 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
16611 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
16613 2011-01-22 Jan Hubicka <jh@suse.cz>
16616 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
16618 2011-01-22 Jan Hubicka <jh@suse.cz>
16620 PR tree-optimization/43884
16622 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
16623 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
16625 2011-01-22 Anatoly Sokolov <aesok@post.ru>
16627 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
16628 * config/s390/s390.c (s390_register_move_cost,
16629 s390_memory_move_cost): New.
16630 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
16632 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16634 PR middle-end/47401
16635 * except.c (sjlj_assign_call_site_values): Move setting the
16636 crtl->uses_eh_lsda flag to ...
16637 (sjlj_mark_call_sites): ... here.
16638 (sjlj_emit_function_enter): Support NULL dispatch label.
16639 (sjlj_build_landing_pads): In a function with no landing pads
16640 that still has must-not-throw regions, generate code to register
16641 a personality function with empty LSDA.
16643 2011-01-21 Richard Henderson <rth@redhat.com>
16645 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
16647 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
16649 * compare-elim.c: New file.
16650 * Makefile.in (OBJS-common): Add it.
16651 (compare-elim.o): New.
16652 * common.opt (fcompare-elim): New.
16653 * opts.c (default_options_table): Add OPT_fcompare_elim.
16654 * tree-pass.h (pass_compare_elim_after_reload): New.
16655 * passes.c (init_optimization_passes): Add it.
16656 * recog.h: Protect against re-inclusion.
16657 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
16658 * doc/invoke.texi (-fcompare-elim): Document it.
16659 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
16660 * doc/tm.texi: Rebuild.
16662 2011-01-22 Nick Clifton <nickc@redhat.com>
16664 * config/rx/rx.md (cstoresf4): Pass comparison operator to
16665 rx_split_fp_compare.
16667 2011-01-22 Nick Clifton <nickc@redhat.com>
16669 * config/rx/rx.md (UNSPEC_CONST): New.
16670 (deallocate_and_return): Wrap the amount popped off the stack in
16671 an UNSPEC_CONST in order to stop it being rejected by
16672 -mmax-constant-size.
16673 (pop_and_return): Add a "(return)" rtx.
16674 (call): Drop the immediate operand.
16675 (call_internal): Likewise.
16676 (call_value): Likewise.
16677 (call_value_internal): Likewise.
16678 (sibcall_internal): Likewise.
16679 (sibcall_value_internal): Likewise.
16680 (sibcall): Likewise. Generate an explicit call using
16682 (sibcall_value): Likewise.
16683 (mov<>): FAIL if a constant operand is not legitimate.
16684 (addsi3_unpsec): New pattern.
16686 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
16687 (ok_for_max_constant): New function.
16688 (gen_safe_add): New function.
16689 (rx_expand_prologue): Use gen_safe_add.
16690 (rx_expand_epilogue): Likewise.
16691 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
16694 2011-01-21 Jeff Law <law@redhat.com>
16696 PR tree-optimization/47053
16697 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
16698 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
16699 statements are deleted.
16700 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
16701 is nonempty, then purge dead edges and cleanup the CFG.
16703 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
16706 Temporarily revert:
16707 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
16709 * tree-dfa.c (create_var_ann): Mark variable as used.
16711 2011-01-21 Jakub Jelinek <jakub@redhat.com>
16713 PR middle-end/45566
16714 * except.c (convert_to_eh_region_ranges): Emit queued no-region
16715 notes from other section in hot/cold partitioning even if
16716 last_action is -3. Increment call_site_base.
16718 PR rtl-optimization/47366
16719 * fwprop.c (forward_propagate_into): Return bool. If
16720 any changes are made, -fnon-call-exceptions is used and
16721 REG_EH_REGION note is present, call purge_dead_edges
16722 and return true if it purged anything.
16723 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
16724 any EH edges were purged.
16726 2011-01-21 Jeff Law <law@redhat.com>
16728 PR rtl-optimization/41619
16729 * caller-save.c (setup_save_areas): Break out code to determine
16730 which hard regs are live across calls by examining the reload chains
16731 so that it is always used.
16732 Eliminate code which checked REG_N_CALLS_CROSSED.
16734 2011-01-21 Jakub Jelinek <jakub@redhat.com>
16736 PR tree-optimization/47355
16737 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
16738 NOP has non-debug uses beyond PHIs in new_bb.
16740 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
16743 * cfgexpand.c (account_used_vars_for_block): Only account vars
16744 that are annotated as used.
16745 (estimated_stack_frame_size): Don't set TREE_USED.
16746 * tree-dfa.c (create_var_ann): Mark variable as used.
16748 2011-01-21 Richard Guenther <rguenther@suse.de>
16750 PR middle-end/47395
16751 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
16753 2011-01-21 Richard Guenther <rguenther@suse.de>
16755 PR tree-optimization/47365
16756 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
16757 (vn_reference_lookup_pieces): Adjust.
16758 (vn_reference_lookup): Likewise.
16759 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
16760 (vn_reference_lookup_3): Only look through kills if in
16761 VN_WALKREWRITE mode.
16762 (vn_reference_lookup_pieces): Adjust.
16763 (vn_reference_lookup): Likewise.
16764 (visit_reference_op_load): Likewise.
16765 (visit_reference_op_store): Likewise.
16766 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
16767 (compute_avail): Likewise.
16768 (eliminate): Likewise.
16770 2011-01-21 Jakub Jelinek <jakub@redhat.com>
16772 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
16773 DECL_IGNORED_P non-reg vars if they are used.
16775 PR tree-optimization/47391
16776 * varpool.c (const_value_known_p): Return false if
16779 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
16782 * config/i386/i386.c (ix86_local_alignment): Handle
16783 case for va_list_type_node is nil.
16784 (ix86_canonical_va_list_type): Likewise.
16786 2011-01-21 Alan Modra <amodra@gmail.com>
16788 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
16789 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
16791 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16793 * config/arm/arm.md (define_attr type): Rename f_load
16794 and f_store to f_fpa_load and f_fpa_store. Update.
16795 (write_conflict): Deal with rename fallout.
16796 (*push_fp_multi): Likewise.
16797 * config/arm/fpa.md (f_load): Use f_fpa_load.
16798 (f_store): Use f_fpa_store.
16799 (*movsf_fpa): Likewise.
16800 (*movdf_fpa): Likewise.
16801 (*movxf_fpa): Likewise.
16802 (*thumb2_movsf_fpa): Likewise.
16803 (*thumb2_movdf_fpa): Likewise.
16804 (*thumb2_movxf_fpa): Likewise.
16805 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
16806 f_loadd and f_stored.
16807 (*thumb2_movdi_vfp): Likewise.
16808 (*thumb2_movsf_vfp): Fix attribute to f_loads.
16809 (*thumb2_movsi_vfp): Likewise.
16810 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
16811 Use f_loads instead of f_load.
16812 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
16814 2011-01-20 Anatoly Sokolov <aesok@post.ru>
16816 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
16817 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
16818 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
16819 (xtensa_mode_dependent_address_p): New function.
16820 (constantpool_address_p): Make static. Change return type to bool.
16821 Change argument type to const_rtx. Use CONST_INT_P predicate.
16823 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
16826 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
16828 2011-01-20 Jakub Jelinek <jakub@redhat.com>
16831 * cfgexpand.c (expand_debug_expr): Instead of generating
16832 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
16835 2011-01-20 Richard Guenther <rguenther@suse.de>
16837 PR middle-end/47370
16838 * tree-inline.c (remap_gimple_op_r): Recurse manually for
16839 the pointer operand of MEM_REFs.
16841 2011-01-20 Jakub Jelinek <jakub@redhat.com>
16843 PR tree-optimization/46130
16844 * ipa-split.c (consider_split): If return_bb contains non-virtual
16845 PHIs other than for retval or if split_function would not adjust it,
16848 2011-01-20 Richard Guenther <rguenther@suse.de>
16850 PR tree-optimization/47167
16851 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
16852 Revert previous change, only avoid enumeral type changes.
16854 2011-01-19 Mike Stump <mikestump@comcast.net>
16856 * doc/tm.texi.in (BRANCH_COST): Englishify.
16857 * doc/tm.texi (BRANCH_COST): Likewise.
16859 2011-01-19 Dodji Seketeli <dodji@redhat.com>
16862 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
16863 (gen_scheduled_generic_parms_dies): New functions.
16864 (gen_struct_or_union_type_die): Schedule template parameters DIEs
16865 generation for the end of CU compilation.
16866 (dwarf2out_finish): Generate template parameters DIEs here.
16868 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
16871 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
16872 debug bind stmt on merge edges.
16874 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
16878 * function.c (instantiate_expr): Instantiate incoming rtl of
16879 implicit arguments, and recurse on VALUE_EXPRs.
16880 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
16881 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
16883 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
16885 * c-parser.c (c_parser_for_statement): Initialize
16886 collection_expression.
16888 2011-01-19 Joseph Myers <joseph@codesourcery.com>
16890 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
16892 2011-01-19 Joseph Myers <joseph@codesourcery.com>
16894 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
16895 (LINK_SHLIB_SPEC): Don't use %(link_path).
16896 (SUBTARGET_EXTRA_SPECS): Remove link_path.
16898 2011-01-19 Joseph Myers <joseph@codesourcery.com>
16900 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
16901 (NO_SHARED_LIB_SUPPORT): Remove.
16902 (LINK_SHLIB_SPEC): Remove one conditional definition.
16904 2011-01-19 Joseph Myers <joseph@codesourcery.com>
16906 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
16908 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
16909 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
16910 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
16911 %{call_shared} and conditionals on these options not being passed.
16912 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
16915 2011-01-19 Jakub Jelinek <jakub@redhat.com>
16917 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
16920 * ipa-split.c: Spelling fixes.
16922 2011-01-19 Richard Henderson <rth@redhat.com>
16924 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
16925 (*mulsi3): Likewise.
16927 * longlong.h [__mn10300__] (count_leading_zeros): New.
16928 [__mn10300__] (umul_ppmm, smul_ppmm): New.
16929 [__mn10300__] (add_ssaaaa, subddmmss): New.
16930 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
16931 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
16933 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16935 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
16937 2011-01-19 Richard Henderson <rth@redhat.com>
16939 * config/mn10300/mn10300.md (addsi3_flags): New.
16940 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
16941 (subsi3_flags, subc_internal, subdi3): New.
16942 (subdi3_internal, *subdi3_degenerate): New.
16943 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
16945 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
16946 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
16947 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
16948 * config/mn10300/mn10300-protos.h: Update.
16949 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
16950 (return_ret): Likewise. Rename from return_internal_regs.
16951 (return_internal): Remove.
16953 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
16954 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
16955 (mn10300_legitimate_constant_p): Likewise.
16956 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
16957 (mn10300_frame_size): New.
16958 (mn10300_expand_prologue): Use it.
16959 (mn10300_expand_epilogue): Likewise.
16960 (mn10300_initial_offset): Likewise.
16961 * config/mn10300/mn10300-protos.h: Update.
16962 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
16963 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
16964 (prologue, epilogue, return_internal): Tidy output code.
16965 (mn10300_store_multiple_operation, return): Likewise.
16966 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
16967 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
16968 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
16969 (load_pic, am33_load_pic): New.
16970 (mn10300_load_pic0, mn10300_load_pic1): New.
16972 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
16973 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
16974 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
16975 (cc_flags_for_mode, cc_flags_for_code): New.
16976 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
16977 overflow flag is not valid. Validate that the flags we need
16978 for the comparison are valid.
16979 (mn10300_output_cmp): Remove.
16980 (mn10300_output_add): New.
16981 (mn10300_select_cc_mode): Use cc_flags_for_code.
16982 (mn10300_split_cbranch): New.
16983 (mn10300_match_ccmode): New.
16984 (mn10300_split_and_operand_count): New.
16985 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
16987 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
16988 (addsi3): ... here. Use mn10300_output_add.
16989 (*addsi3_flags): New.
16990 (*am33_subsi3, *mn10300_subsi3): Merge...
16991 (subsi3): ... here. Use attribute isa.
16992 (*subsi3_flags): New.
16993 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
16995 (*am33_andsi3, *mn10300_andsi3): Merge...
16996 (andsi3): ... here.
16997 (*andsi3_flags): New.
16998 (andsi3 splitters): New.
16999 (*am33_iorsi3, *mn10300_iorsi3): Merge...
17000 (iorsi3): ... here.
17001 (*iorsi3_flags): New.
17002 (*am33_xorsi3, *mn10300_xorsi3): Merge...
17003 (xorsi3): ... here.
17004 (*xorsi3_flags): New.
17005 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
17006 (one_cmplsi2): ... here.
17007 (*one_cmplsi2_flags): New.
17008 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
17009 instead of "dax" in constraints. Use mn10300_split_cbranch.
17010 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
17011 use matching constraints to eliminate a self-comparison.
17012 (*integer_conditional_branch): Rename from integer_conditional_branch.
17013 Use int_mode_flags to match CC_REG.
17014 (*cbranchsi4_btst, *btstsi): New.
17015 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
17016 mn10300_split_cbranch.
17017 (*am33_cmpsf): Rename from am33_cmpsf.
17018 (*float_conditional_branch): Rename from float_conditional_branch.
17019 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
17020 (zero_extendqisi2): ... here.
17021 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
17022 (zero_extendhisi2): ... here.
17023 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
17024 (extendqisi2): ... here.
17025 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
17026 (extendhisi2): ... here.
17027 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
17028 (ashlsi3): ... here.
17029 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
17030 (lshrsi3): ... here.
17031 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
17032 (ashrsi3): ... here.
17033 (consecutive add peephole): Remove.
17034 * config/mn10300/predicates.md (label_ref_operand): New.
17035 (int_mode_flags): New.
17036 (CCZN_comparison_operator): New.
17038 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
17039 (throughput_42_latency_43): New reservation.
17040 (mulsidi3, umulsidi3): New expanders.
17041 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
17042 the MDR register to allocation; separately allocate the low and
17043 high parts of the DImode result.
17044 (umulsidi3_internal): Similarly.
17045 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
17046 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
17047 (udivsi3, umodsi3): Remove.
17048 (udivmodsi4, divmodsi4): New expanders.
17049 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
17050 (*divmodsi4): Simiarly.
17051 (ext_internal): New.
17053 * config/mn10300/constraints.md ("z"): New constraint.
17054 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
17055 (FIXED_REGISTERS): Don't fix MDR.
17056 (CALL_USED_REGSITERS): Reformat nicely.
17057 (REG_ALLOC_ORDER): Add MDR.
17058 (enum regclass): Add MDR_REGS.
17059 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
17060 (IRA_COVER_CLASSES): Add MDR_REGS.
17061 (REGNO_REG_CLASS): Handle MDR_REG.
17062 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
17063 (mn10300_register_move_cost): Likewise.
17064 * config/mn10300/mn10300.md (MDR_REG): New.
17065 (*movsi_internal): Handle moves to/from MDR_REGS.
17067 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
17069 (mn10300_secondary_reload): Tidy combination reload classes.
17070 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
17071 addresses for AM33. Allow symbolic offsets for reg+imm.
17072 (mn10300_regno_in_class_p): New.
17073 (mn10300_legitimize_reload_address): New.
17074 * config/mn10300/mn10300.h (enum reg_class): Remove
17075 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
17076 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
17077 SP_OR_GENERAL_REGS.
17078 (REG_CLASS_NAMES): Update to match.
17079 (REG_CLASS_CONTENTS): Likewise.
17080 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
17081 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
17082 (REGNO_IN_RANGE_P): Remove.
17083 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
17084 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
17085 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
17086 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
17087 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
17088 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
17089 (REGNO_GENERAL_P): New.
17090 (HAVE_POST_MODIFY_DISP): New.
17091 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
17092 (LEGITIMIZE_RELOAD_ADDRESS): New.
17093 * config/mn10300/mn10300-protos.h: Update.
17095 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
17096 DATA_REGS for AM33 stack-pointer destination.
17097 (mn10300_preferred_output_reload_class): Likewise.
17098 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
17099 into a form appropriate for ...
17100 (TARGET_SECONDARY_RELOAD): New.
17101 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
17102 * config/mn10300/mn10300-protos.h: Update.
17103 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
17104 reload_insi; use the "A" constraint for the scratch; handle AM33
17105 moves of sp to non-address registers.
17107 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
17108 (*movqi_internal): ... here.
17109 (*am33_movhi, *mn10300_movhi): Merge into...
17110 (*movhi_internal): ... here.
17111 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
17112 as the source/destination of moves from/to SP.
17113 (movsf): Only allow for AM33-2.
17114 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
17115 any integer constant constraint. Only allow for AM33-2. Tidy
17116 all of the alternative outputs.
17117 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
17118 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
17120 (udivsi3, umodsi3): New patterns for MN103 only.
17122 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
17124 * doc/tm.texi.in: Spell out that a lack of register class unions
17126 * doc/tm.texi: Regenerate.
17128 2011-01-19 Jakub Jelinek <jakub@redhat.com>
17130 PR rtl-optimization/47337
17131 * dce.c (check_argument_store): New function.
17132 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
17134 PR tree-optimization/47290
17135 * tree-eh.c (infinite_empty_loop_p): New function.
17136 (cleanup_empty_eh): Use it.
17138 2011-01-18 Steve Ellcey <sje@cup.hp.com>
17141 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
17142 (a64_expand_widen_sum): Ditto.
17143 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
17144 (vec_extract_evenodd_help): Ditto.
17145 (vec_extract_evenv4hi): Ditto.
17146 (vec_extract_oddv4hi): Ditto.
17147 (vec_extract_evenv2si): Ditto.
17148 (vec_extract_oddv2si): Ditto.
17149 (vec_extract_evenv2sf): Ditto.
17150 (vec_extract_oddv2sf): Ditto.
17151 (vec_pack_trunc_v4hi: Ditto.
17152 (vec_pack_trunc_v2si): Ditto.
17153 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
17154 (vec_interleave_highv8qi): Ditto.
17156 (vec_extract_oddv8qi): Ditto.
17157 (vec_interleave_lowv4hi): Ditto.
17158 (vec_interleave_highv4hi): Ditto.
17159 (vec_interleave_lowv2si): Ditto.
17160 (vec_interleave_highv2si): Ditto.
17162 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17164 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
17165 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
17166 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
17167 (pa_c_mode_for_suffix): New.
17168 (TARGET_EXPAND_BUILTIN): Define.
17169 (TARGET_C_MODE_FOR_SUFFIX): Define.
17170 (pa_builtins): Define.
17171 (pa_init_builtins): Register __float128 type and init new support
17173 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
17174 * config/pa/quadlib.c (_U_Qfcopysign): New.
17176 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
17178 PR middle-end/46894
17179 * explow.c (allocate_dynamic_stack_space): Do not assume more than
17180 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
17183 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17185 PR tree-optimization/47179
17186 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
17187 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
17189 2011-01-18 Richard Guenther <rguenther@suse.de>
17191 PR rtl-optimization/47216
17192 * emit-rtl.c: Include tree-flow.h.
17193 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
17194 of replicating it with different semantics.
17195 * Makefile.in (emit-rtl.o): Adjust.
17197 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17199 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
17200 (cortex_a9_dp): Handle neon types correctly.
17202 2011-01-18 Jakub Jelinek <jakub@redhat.com>
17204 PR rtl-optimization/47299
17205 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
17206 subtarget. Use normal multiplication if both operands are constants.
17207 * expmed.c (expand_widening_mult): Don't try to optimize constant
17208 multiplication if op0 has VOIDmode. Convert op1 constant to mode
17211 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17213 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
17214 spacing after 'e.g.', typos, comma, hyphenation.
17216 2011-01-17 Richard Henderson <rth@redhat.com>
17218 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
17219 (rx_restricted_mem_operand): New.
17220 (rx_shift_operand): Use register_operand.
17221 (rx_source_operand, rx_compare_operand): Likewise.
17222 * config/rx/rx.md (addsi3_flags): New expander.
17223 (adddi3): Rewrite as expander.
17224 (adc_internal, *adc_flags, adddi3_internal): New patterns.
17225 (subsi3_flags): New expander.
17226 (subdi3): Rewrite as expander.
17227 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
17229 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
17230 (rx_init_builtins): Remove sat builtin.
17231 (rx_expand_builtin): Likewise.
17232 * config/rx/rx.md (ssaddsi3): New.
17233 (*sat): Rename from sat. Represent the CC_REG input.
17235 * config/rx/predicates.md (rshift_operator): New.
17236 * config/rx/rx.c (rx_expand_insv): Remove.
17237 * config/rx/rx-protos.h: Update.
17238 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
17239 operand to the canonical position.
17240 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
17241 (*bitclr, *bitclr_in_memory): Similarly.
17242 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
17243 (insv): Retain the zero_extract in the expansion.
17245 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
17246 (bswaphi2, bitinvert, revw): Likewise.
17248 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
17249 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
17250 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
17251 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
17252 (bitset, bitset_in_memory): Likewise.
17253 (bitinvert, bitinvert_in_memory): Likewise.
17254 (bitclr, bitclr_in_memory): Likewise.
17255 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
17256 (rx_strend, rx_cmpstrn): Likewise.
17257 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
17258 (bitop peep2 patterns): Remove.
17260 * config/rx/rx.c (rx_match_ccmode): New.
17261 * config/rx/rx-protos.h: Update.
17262 * config/rx/rx.md (abssi2): Clobber, don't set flags.
17263 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
17264 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
17265 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
17266 (fix_truncsfsi2, floatsisf2): Likewise.
17267 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
17268 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
17269 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
17270 (*subsi3_flags, *xorsi3_flags): New.
17272 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
17274 * config/rx/rx.c (rx_print_operand): Remove workaround for
17275 unsplit comparison operations.
17277 * config/rx/rx.md (movsicc): Split after reload.
17278 (*movsicc): Merge *movsieq and *movsine via match_operator.
17279 (*stcc): New pattern.
17281 * config/rx/rx.c (rx_float_compare_mode): Remove.
17282 * config/rx/rx.h (rx_float_compare_mode): Remove.
17283 * config/rx/rx.md (cstoresi4): Split after reload.
17284 (*sccc): New pattern.
17286 * config/rx/predicates.md (label_ref_operand): New.
17287 (rx_z_comparison_operator): New.
17288 (rx_zs_comparison_operator): New.
17289 (rx_fp_comparison_operator): New.
17290 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
17291 Validate that the flags are set properly for the comparison.
17292 (rx_gen_cond_branch_template): Remove.
17293 (rx_cc_modes_compatible): Remove.
17294 (mode_from_flags): New.
17295 (flags_from_code): Rename from flags_needed_for_conditional.
17296 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
17297 (rx_select_cc_mode): Likewise.
17298 (rx_split_fp_compare): New.
17299 (rx_split_cbranch): New.
17300 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
17301 (*cbranchsi4): Use match_operator and rx_split_cbranch.
17302 (*cbranchsf4): Similarly.
17303 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
17304 match_operator and rx_split_cbranch.
17305 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
17306 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
17307 (*cmpsi): Rename from cmpsi.
17308 (*tstsi): Rename from tstsi.
17309 (*cmpsf): Rename from cmpsf; use CC_Fmode.
17310 (*conditional_branch): Rename from conditional_branch.
17311 (*reveresed_conditional_branch): Remove.
17312 (b<code>): Remove expander.
17313 * config/rx/rx-protos.h: Update.
17315 * config/rx/rx.c (rx_compare_redundant): Remove.
17316 * config/rx/rx.md (cmpsi): Don't use it.
17317 * config/rx/rx-protos.h: Update.
17319 * config/rx/rx-modes.def (CC_F): New mode.
17320 * config/rx/rx.c (rx_select_cc_mode): New.
17321 * config/rx/rx.h (SELECT_CC_MODE): Use it.
17322 * config/rx/rx-protos.h: Update.
17324 2011-01-17 Richard Henderson <rth@redhat.com>
17326 * except.c (dump_eh_tree): Fix stray ; after for statement.
17328 2011-01-17 Richard Guenther <rguenther@suse.de>
17330 PR tree-optimization/47313
17331 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
17332 handling before copying the body. Properly deal with
17333 by-reference result in SSA form.
17335 2011-01-17 Ian Lance Taylor <iant@google.com>
17338 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
17339 (struct_value_alias_set): Don't define.
17340 (sparc_option_override): Don't set sparc_sr_alias_set and
17341 struct_value_alias_set.
17342 (save_or_restore_regs): Use gen_frame_mem rather than calling
17344 (sparc_struct_value_rtx): Likewise.
17346 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
17349 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
17350 (_mm_maskstore_pd): Likewise.
17351 (_mm_maskload_ps): Likewise.
17352 (_mm_maskstore_ps): Likewise.
17353 (_mm256_maskload_pd): Change mask to __m256i.
17354 (_mm256_maskstore_pd): Likewise.
17355 (_mm256_maskload_ps): Likewise.
17356 (_mm256_maskstore_ps): Likewise.
17358 * config/i386/i386-builtin-types.def: Updated.
17359 (ix86_expand_special_args_builtin): Likewise.
17361 * config/i386/i386.c (bdesc_special_args): Update
17362 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
17363 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
17364 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
17365 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
17367 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
17368 Use <avxpermvecmode> on mask register.
17369 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
17371 2011-01-17 Olivier Hainque <hainque@adacore.com>
17372 Michael Haubenwallner <michael.haubenwallner@salomon.at>
17373 Eric Botcazou <ebotcazou@adacore.com>
17376 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
17377 if <= USHRT_MAX in 32-bit mode.
17379 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17381 * doc/install.texi (Configuration, Specific): Wrap long
17382 lines in examples. Allow line wrapping in long options
17383 and URLs where beneficial for PDF output.
17385 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
17387 * config/mips/mips.c (mips_classify_symbol): Don't return
17388 SYMBOL_PC_RELATIVE for nonlocal labels.
17390 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
17392 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
17394 2011-01-15 Jan Hubicka <jh@suse.cz>
17396 PR tree-optimization/47276
17397 * ipa.c (function_and_variable_visibility): Do not try to mark alias
17398 declarations as needed.
17400 2011-01-15 Martin Jambor <mjambor@suse.cz>
17402 * common.opt (fdevirtualize): New flag.
17403 * doc/invoke.texi (Option Summary): Document it.
17404 * opts.c (default_options_table): Add devirtualize flag.
17405 * ipa-prop.c (detect_type_change): Return immediately if
17406 devirtualize flag is not set.
17407 (detect_type_change_ssa): Likewise.
17408 (compute_known_type_jump_func): Likewise.
17409 (ipa_analyze_virtual_call_uses): Likewise.
17411 2011-01-14 Martin Jambor <mjambor@suse.cz>
17413 PR tree-optimization/45934
17414 PR tree-optimization/46302
17415 * ipa-prop.c (type_change_info): New type.
17416 (stmt_may_be_vtbl_ptr_store): New function.
17417 (check_stmt_for_type_change): Likewise.
17418 (detect_type_change): Likewise.
17419 (detect_type_change_ssa): Likewise.
17420 (compute_complex_assign_jump_func): Check for dynamic type change.
17421 (compute_complex_ancestor_jump_func): Likewise.
17422 (compute_known_type_jump_func): Likewise.
17423 (compute_scalar_jump_functions): Likewise.
17424 (ipa_analyze_virtual_call_uses): Likewise.
17425 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
17427 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17429 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
17430 * config/i386/i386.opt (msse5): New Alias.
17432 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17434 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
17435 * config/sparc/linux64.h (CC1_SPEC): Likewise.
17436 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
17437 * config/sparc/sparc.h (CC1_SPEC): Likewise.
17439 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17441 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
17443 * config/sparc/linux64.h (CC1_SPEC): Likewise.
17444 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
17445 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
17446 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
17448 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
17450 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17452 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
17454 2011-01-14 Mike Stump <mikestump@comcast.net>
17456 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
17457 * config/fr30/fr30.md: Likweise
17458 (movsi_push): Likewise.
17459 (movsi_pop): Likewise.
17460 (enter_func): Likewise.
17461 * config/moxie/moxie.md (movsi_push): Likewise.
17462 (movsi_pop): Likewise.
17464 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17466 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
17467 %{no_archive} %{exact_version}.
17468 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
17469 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
17470 %{no_archive} %{exact_version}.
17471 * config/mips/openbsd.h (LINK_SPEC): Likewise.
17472 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
17473 * config/mips/vxworks.h: Likewise.
17475 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17477 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
17479 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17481 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
17482 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
17484 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17486 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
17489 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17491 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
17493 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
17494 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
17496 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
17497 Don't handle -shlib.
17499 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17501 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
17502 (CC1_SPEC): Don't handle -profile.
17504 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17506 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
17507 * config/mips/mips.h (CC1_SPEC): Likewise.
17509 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17511 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
17512 * config/mips/mips.h (CC1_SPEC): Likewise.
17514 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17516 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
17517 * config/m32r/linux.h (LINK_SPEC): Likewise.
17518 * config/mips/linux.h (LINK_SPEC): Likewise.
17519 * config/mips/linux64.h (LINK_SPEC): Likewise.
17520 * config/sparc/linux.h (LINK_SPEC): Likewise.
17521 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
17522 LINK_SPEC): Likewise.
17523 * config/xtensa/linux.h (LINK_SPEC): Likewise.
17525 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17527 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
17529 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
17531 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17533 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
17534 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
17536 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17538 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
17540 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17542 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
17543 supports -Bstatic/-Bdynamic.
17544 * configure: Regenerate.
17546 2011-01-14 Jan Hubicka <jh@suse.cz>
17547 Jack Howarth <howarth@bromo.med.uc.edu>
17550 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
17551 when checking debug_info_level. Test write_symbols instead of
17552 debug_hooks->var_location when setting flag_var_tracking_uninit.
17554 2011-01-14 Richard Guenther <rguenther@suse.de>
17556 PR tree-optimization/47179
17557 * target.def (ref_may_alias_errno): New target hook.
17558 * targhooks.h (default_ref_may_alias_errno): Declare.
17559 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
17560 (default_ref_may_alias_errno): New function.
17561 * target.h (struct ao_ref_s): Declare.
17562 * tree-ssa-alias.c: Include target.h.
17563 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
17564 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
17565 (targhooks.o): Likewise.
17566 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
17567 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
17569 2011-01-14 Richard Guenther <rguenther@suse.de>
17571 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
17573 2011-01-14 Richard Guenther <rguenther@suse.de>
17575 PR tree-optimization/47280
17576 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
17577 return CFG changes.
17578 (tree_ssa_forward_propagate_single_use_vars): Deal with
17579 CFG changes from associate_plusminus.
17581 2011-01-14 Richard Guenther <rguenther@suse.de>
17583 PR middle-end/47281
17585 2011-01-11 Richard Guenther <rguenther@suse.de>
17587 PR tree-optimization/46076
17588 * tree-ssa.c (useless_type_conversion_p): Conversions from
17589 unprototyped to empty argument list function types are useless.
17591 2011-01-14 Richard Guenther <rguenther@suse.de>
17593 PR tree-optimization/47286
17594 * tree-ssa-structalias.c (new_var_info): Register variables are global.
17596 2011-01-14 Martin Jambor <mjambor@suse.cz>
17598 PR middle-end/46823
17599 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
17601 2011-01-13 Anatoly Sokolov <aesok@post.ru>
17603 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
17604 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
17605 * config/xtensa/xtensa.c (xtensa_libcall_value,
17606 xtensa_function_value_regno_p): New functions.
17607 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
17609 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
17612 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
17614 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
17615 New function prototype.
17616 * config/i386/winnt.c (i386_pe_assemble_visibility):
17617 Warn only if attribute was specified by user.
17619 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
17622 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
17624 (floatunsdidf2_fcfidu): Ditto.
17626 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17628 * config/s390/s390.c (print_operand_address): Replace 'error' with
17629 'output_operand_lossage'.
17630 (print_operand): Likewise.
17632 2011-01-13 Jeff Law <law@redhat.com>
17634 PR rtl-optimization/39077
17635 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
17636 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
17637 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
17638 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
17639 * gcse.c (prune_insertions_deletions): New function.
17640 (compute_pre_data): Use it.
17642 2011-01-13 Dodji Seketeli <dodji@redhat.com>
17645 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
17647 (prune_unused_types_mark): Use it.
17649 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
17651 PR rtl-optimization/45352
17652 * sel-sched.c: Update copyright years.
17653 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
17654 in the advancing loop when we have issued issue_rate insns.
17656 2011-01-12 Richard Henderson <rth@redhat.com>
17658 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
17659 (TARGET_MD_ASM_CLOBBERS): New.
17661 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
17662 (TARGET_DELEGITIMIZE_ADDRESS): New.
17664 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
17665 (clzsi2, *bsch): New patterns.
17667 * config/mn10300/mn10300.md (INT): New mode iterator.
17668 (*mov<INT>_clr): New pattern, and peep2 to generate it.
17670 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
17671 flag_split_wide_types.
17673 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
17674 (mn10300_trampoline_init): Rewrite without a template, an immediate
17675 load and a direct branch.
17676 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
17678 2011-01-12 Anatoly Sokolov <aesok@post.ru>
17680 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
17681 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
17682 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
17683 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
17685 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
17688 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
17691 2011-01-12 Jan Hubicka <jh@suse.cz>
17694 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
17695 (PLUGIN_COND_CLOSE): New macro.
17696 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
17698 2011-01-12 Richard Guenther <rguenther@suse.de>
17701 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
17702 register variables in a MEM_REF.
17704 2011-01-12 Joseph Myers <joseph@codesourcery.com>
17706 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
17707 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
17708 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
17709 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
17710 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
17711 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
17712 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
17713 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
17714 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
17715 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
17716 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
17717 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
17718 * config/gnu-user.h: New. Copied from linux.h.
17719 (LINUX_TARGET_STARTFILE_SPEC): Rename to
17720 GNU_USER_TARGET_STARTFILE_SPEC.
17721 (LINUX_TARGET_ENDFILE_SPEC): Rename to
17722 GNU_USER_TARGET_ENDFILE_SPEC.
17723 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
17724 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
17725 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
17726 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
17727 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
17728 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
17729 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
17730 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
17731 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
17732 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
17733 * config/arm/linux-eabi.h (CC1_SPEC): Use
17734 GNU_USER_TARGET_CC1_SPEC.
17735 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
17736 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
17737 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
17738 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
17739 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
17740 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
17741 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
17742 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
17744 2011-01-12 Richard Guenther <rguenther@suse.de>
17747 * doc/invoke.texi (ffast-math): Document it is turned on
17750 2011-01-12 Jan Hubicka <jh@suse.cz>
17752 PR tree-optimization/47233
17753 * opts.c (common_handle_option): Disable ipa-reference with profile
17756 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
17758 * c-parser.c (c_parser_objc_at_property_declaration): Improved
17761 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
17763 * c-parser.c (c_lex_one_token): Updated and reindented some
17764 comments. No changes in code.
17766 2011-01-11 Ian Lance Taylor <iant@google.com>
17768 * godump.c (go_output_var): Don't output the variable if there is
17769 already a type with the same name.
17771 2011-01-11 Ian Lance Taylor <iant@google.com>
17773 * godump.c (go_format_type): Don't generate float80.
17775 2011-01-11 Richard Henderson <rth@redhat.com>
17777 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
17778 declaration. Rewrite for both speed and size.
17779 (mn10300_address_cost_1): Remove.
17780 (mn10300_register_move_cost): New.
17781 (mn10300_memory_move_cost): New.
17782 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
17783 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
17784 extensions, shifts, BSWAP, CLZ.
17785 (mn10300_wide_const_load_uses_clr): Remove.
17786 (TARGET_REGISTER_MOVE_COST): New.
17787 (TARGET_MEMORY_MOVE_COST): New.
17788 * config/mn10300/mn10300-protos.h: Update.
17789 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
17791 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
17792 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
17793 * config/mn10300/mn10300-protos.h: Update.
17794 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
17795 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
17796 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
17797 (*test_int_bitfield, *test_byte_bitfield): Remove.
17798 (*bit_test, *subreg_bit_test): Remove.
17799 * config/mn10300/predicates.md (const_8bit_operand): Remove.
17801 * config/mn10300/constraints.md ("c"): Rename from "A".
17802 ("A", "D"): New constraint letters.
17803 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
17804 (fmssf4, fnmasf4, fnmssf4): Likewise.
17806 * config/mn10300/mn10300.md (isa): New attribute.
17807 (enabled): New attribute.
17809 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
17810 (abssf2, negsf2): Define only for hardware fp.
17811 (sqrtsf2): Reformat.
17812 (addsf3, subsf3, mulsf3): Merge expander and insn.
17814 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
17815 (DEBUGGER_AUTO_OFFSET): Remove.
17816 (DEBUGGER_ARG_OFFSET): Remove.
17818 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
17819 Emit register stores with the same offsets as the hardware.
17820 (mn10300_store_multiple_operation): Don't check that the register
17821 save offsets are monotonic.
17822 * config/mn10300/mn10300-protos.h: Update.
17824 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
17826 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
17827 in terms of the value on the stack, not the MDR register.
17829 2011-01-11 Jan Hubicka <jh@suse.cz>
17833 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
17834 (symbol_alias_set_destroy, symbol_alias_set_contains,
17835 propagate_aliases_backward): Declare.
17836 * lto-streamer-out.c (struct sets): New sturcture.
17837 (trivally_defined_alias): New function.
17838 (output_alias_pair_p): Rewrite.
17839 (output_unreferenced_globals): Fix output of alias pairs.
17840 (produce_symtab): Likewise.
17841 * ipa.c (function_and_variable_visibility): Set weak alias destination
17843 * varasm.c (symbol_alias_set_t): Remove.
17844 (symbol_alias_set_destroy): Export.
17845 (propagate_aliases_forward, propagate_aliases_backward): New functions
17847 (compute_visible_aliases): ... this one; remove.
17848 (trivially_visible_alias): New
17849 (trivially_defined_alias): New.
17850 (remove_unreachable_alias_pairs): Rewrite.
17851 (finish_aliases_1): Reorganize code checking if alias is defined.
17852 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
17855 2011-01-11 Richard Guenther <rguenther@suse.de>
17857 PR tree-optimization/46076
17858 * tree-ssa.c (useless_type_conversion_p): Conversions from
17859 unprototyped to empty argument list function types are useless.
17861 2011-01-11 Richard Guenther <rguenther@suse.de>
17863 PR middle-end/45235
17864 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
17865 volatile MEMs as MEM_READONLY_P.
17867 2011-01-11 Richard Guenther <rguenther@suse.de>
17869 PR tree-optimization/47239
17870 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
17872 2011-01-11 Jeff Law <law@redhat.com>
17874 PR tree-optimization/47086
17875 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
17876 IVs from statements that might throw.
17878 2011-01-10 Jan Hubicka <jh@suse.cz>
17881 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
17883 2011-01-10 Jan Hubicka <jh@suse.cz>
17886 * profile.c (read_profile_edge_counts): Ignore profile inconistency
17887 when correcting profile.
17889 2011-01-10 Jan Hubicka <jh@suse.cz>
17892 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
17893 DECL_FINI_PRIORITY.
17894 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
17895 Restore DECL_FINI_PRIORITY.
17897 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17899 * doc/gimple.texi: Fix quoting of multi-word return values in
17900 @deftypefn statements. Ensure presence of return value. Wrap
17901 overlong @deftypefn lines.
17902 (is_gimple_operand, is_gimple_min_invariant_address): Remove
17903 descriptions of removed functions.
17904 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
17905 of multi-word return value in @deftypefn statement.
17907 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17909 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
17910 (Conditional Expressions, Logical Operators)
17911 (Statement and operand traversals): Do not indent smallexample
17912 code. Fix duplicate function argument in example.
17914 2011-01-10 Jeff Law <law@redhat.com>
17916 PR tree-optimization/47141
17917 * ipa-split.c (split_function): Handle case where we are
17918 returning a value and the return block has a virtual operand phi.
17920 2011-01-10 Jan Hubicka <jh@suse.cz>
17922 PR tree-optimization/47234
17923 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
17924 (pass_feedback_split_functions): Declare.
17925 * passes.c (init_optimization_passes): Add ipa-split as subpass of
17927 * ipa-split.c (gate_split_functions): Update comments; disable
17928 split-functions for profile_arc_flag and branch_probabilities.
17929 (gate_feedback_split_functions): New function.
17930 (execute_feedback_split_functions): New function.
17931 (pass_feedback_split_functions): New global var.
17933 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
17936 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
17937 calling gimple_call_set_cannot_inline.
17939 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
17941 * config/darwin-sections.def: Remove unused section.
17943 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
17946 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
17948 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
17951 * c-parser.c (c_parser_declaration_or_fndef): Improved
17954 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
17956 * config/i386/winnt.c (i386_pe_start_function): Make sure
17957 to switch back to function's section.
17959 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
17963 * plugin.c: Move include of dlfcn.h from here...
17964 * system.h: ... to here.
17966 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17968 * doc/cpp.texi (C++ Named Operators): Fix markup for header
17970 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
17971 two extra empty pages in PDF output.
17973 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
17976 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
17977 for error recovery purposes behave as if it was not specified so
17978 that the default type is usd.
17980 2011-01-07 Jan Hubicka <jh@suse.cz>
17982 PR tree-optmization/46469
17983 * ipa.c (function_and_variable_visibility): Clear needed flags on
17984 nodes with external decls; handle weakrefs merging correctly.
17986 2011-01-07 Joseph Myers <joseph@codesourcery.com>
17988 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
17991 2011-01-07 Jan Hubicka <jh@suse.cz>
17993 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
17994 and no longer claim that gold is required for linker plugin.
17995 * configure: Regenerate.
17996 * gcc.c (PLUGIN_COND): New macro.
17997 (LINK_COMMAND_SPEC): Use it.
17998 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
17999 * config.in (HAVE_LTO_PLUGIN): New.
18000 * configure.ac (--with-lto-plugin): New parameter; autodetect
18003 2011-01-07 Jan Hubicka <jh@suse.cz>
18005 PR tree-optimization/46367
18006 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
18007 when we can update original.
18008 (cgraph_mark_inline_edge): Sanity check.
18009 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
18011 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18013 * config/spu/spu.h (ASM_COMMENT_START): Define.
18015 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
18018 * gcc.c (%>S): New.
18019 (SWITCH_KEEP_FOR_GCC): Likewise.
18020 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
18021 (do_spec_1): Handle "%>".
18023 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
18025 2011-01-07 Jakub Jelinek <jakub@redhat.com>
18028 * config/i386/i386.c (ix86_delegitimize_address): If
18029 simplify_gen_subreg fails, return orig_x.
18032 * value-prof.c (gimple_stringop_fixed_value): Handle
18033 lhs of the call properly.
18035 2011-01-07 Jan Hubicka <jh@suse.cz>
18038 * lto-opt.c (lto_reissue_options): Set flag_shlib.
18040 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
18042 * target.def (function_switched_text_sections): New hook.
18043 * doc/tm.texi: Regenerated.
18044 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
18045 * final.c (default_function_switched_text_sections): New.
18046 (final_scan_insn): Call function_switched_text_sections when a
18047 mid-function section change occurs.
18048 * output.h (default_function_switched_text_sections): Declare.
18049 * config/darwin-protos.h (darwin_function_switched_text_sections):
18051 * config/darwin.c (darwin_function_switched_text_sections): New.
18052 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
18054 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
18056 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
18057 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
18058 the secondary code fragment when outputting for DWARF == 2.
18060 2011-01-07 Anatoly Sokolov <aesok@post.ru>
18062 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
18063 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
18065 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
18066 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
18068 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
18071 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
18072 when it is not empty.
18074 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
18077 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
18078 (case ${target}): Add btver1.
18079 * config/i386/driver-i386.c (host_detect_local_cpu): Let
18080 -march=native recognize btver1 processors.
18081 * config/i386/i386-c.c (ix86_target_macros_internal): Add
18082 btver1 def_and_undef
18083 * config/i386/i386.c (struct processor_costs btver1_cost): New
18085 (m_BTVER1): New definition.
18086 (m_AMD_MULTIPLE): Includes m_BTVER1.
18087 (initial_ix86_tune_features): Add btver1 tune.
18088 (processor_target_table): Add btver1 entry.
18089 (static const char *const cpu_names): Add btver1 entry.
18090 (software_prefetching_beneficial_p): Add btver1.
18091 (ix86_option_override_internal): Add btver1 instruction sets.
18092 (ix86_issue_rate): Add btver1.
18093 (ix86_adjust_cost): Add btver1.
18094 * config/i386/i386.h (TARGET_BTVER1): New definition.
18095 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
18096 (enum processor_type): Add PROCESSOR_BTVER1.
18097 * config/i386/i386.md (define_attr "cpu"): Add btver1.
18099 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18102 * config/i386/i386.c (legitimize_tls_address)
18103 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
18104 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
18105 (tls_initial_exec_64_sun): New pattern.
18107 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
18109 * doc/invoke.texi (Overall Options): Improve wording and markup
18110 of the description of -wrapper.
18112 2011-01-06 Joseph Myers <joseph@codesourcery.com>
18114 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
18115 rdynamic, threads): New Driver options.
18117 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18120 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
18121 if coming from .tdata.
18122 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
18124 2011-01-06 Jan Hubicka <jh@suse.cz>
18127 * collect2.c (main): Do not enable LTOmode when plugin is active.
18129 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18132 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
18133 --version output if supported.
18134 * configure: Regenerate.
18136 2011-01-06 Joseph Myers <joseph@codesourcery.com>
18138 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
18141 2011-01-06 Jakub Jelinek <jakub@redhat.com>
18144 * c-convert.c (convert): When converting a complex expression
18145 other than COMPLEX_EXPR to a different complex type, ensure
18146 c_save_expr is called instead of save_expr, unless in_late_binary_op.
18147 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
18148 when converting COMPLEX_TYPE.
18150 2011-01-06 Ira Rosen <irar@il.ibm.com>
18152 PR tree-optimization/47139
18153 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
18154 only the last reduction value is used outside the loop. Update
18157 2011-01-05 Joseph Myers <joseph@codesourcery.com>
18159 * config/rtems.opt: New.
18160 * config.gcc (*-*-rtems*): Use rtems.opt.
18162 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
18164 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
18165 processors do not support 3DNow instructions.
18167 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18169 * config/spu/spu.c (spu_option_override): Set parameter
18170 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
18172 2011-01-05 Jan Hubicka <jh@suse.cz>
18174 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
18175 at the command line.
18177 2011-01-05 Martin Jambor <mjambor@suse.cz>
18180 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
18181 deltas on streamed outgoing edges.
18182 (output_node_opt_summary): Output info for outgoing edges only when
18183 the node is in new parameter set.
18184 (output_cgraph_opt_summary): New parameter set, passed to the two
18185 aforementioned functions. Update its forward declaration and its
18188 2011-01-05 Tom Tromey <tromey@redhat.com>
18190 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
18191 operator to c_finish_omp_atomic.
18192 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
18193 (build_unary_op): Update.
18194 (build_modify_expr): Update.
18195 (build_asm_expr): Update.
18197 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18199 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
18200 newly inserted insns.
18201 (pad_bb): Likewise.
18202 (spu_emit_branch_hint): Likewise.
18203 (insert_hbrp_for_ilb_runout): Likewise.
18204 (spu_machine_dependent_reorg): Call df_finish_pass after
18205 schedule_insns returns.
18207 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18209 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
18211 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
18213 PR tree-optimization/47005
18214 * tree-sra.c (struct access): Add 'non_addressable' bit.
18215 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
18216 (decide_one_param_reduction): Return 0 if the parameter is passed by
18217 reference and one of the accesses in the group is non_addressable.
18219 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
18221 PR tree-optimization/47056
18222 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
18223 (mark_load): Likewise. Handle FUNCTION_DECL specially.
18224 (mark_store): Likewise. Pass STMT to ipa_record_reference.
18226 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
18228 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
18229 initializer. Skip view conversions from aggregate types.
18231 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
18234 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
18236 2011-01-04 Philipp Thomas <pth@suse.de>
18238 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
18241 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18243 * function.c (thread_prologue_and_epilogue_insns): Do not crash
18244 on empty epilogue sequences.
18246 2011-01-04 Joseph Myers <joseph@codesourcery.com>
18248 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
18249 non-static): New Driver options.
18251 2011-01-04 Jie Zhang <jie@codesourcery.com>
18254 * gcc.c (default_compilers[]): Set combinable field to 0
18255 for all assembly languages.
18257 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
18259 * config/mips/loongson3a.md: New file.
18260 * config/mips/mips.md: Include loongson3a.md.
18261 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
18264 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
18266 PR middle-end/47017
18267 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
18268 instead of convert_memory_address_addr_space on the base expression.
18270 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18272 * config/spu/spu.c (spu_option_override): Update error text
18273 for bad -march= / -mtune= values.
18275 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18277 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
18278 if branch-hint optimization will be performed.
18280 2011-01-03 Jakub Jelinek <jakub@redhat.com>
18282 PR tree-optimization/47148
18283 * ipa-split.c (split_function): Convert arguments to
18284 DECL_ARG_TYPE if possible.
18286 PR tree-optimization/47155
18287 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
18288 when computing uns.
18290 PR rtl-optimization/47157
18291 * combine.c (try_combine): If undobuf.other_insn becomes
18292 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
18293 and set *new_direct_jump_p too.
18295 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
18297 PR tree-optimization/47021
18298 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
18300 2011-01-03 Jakub Jelinek <jakub@redhat.com>
18302 * gcc.c (process_command): Update copyright notice dates.
18303 * gcov.c (print_version): Likewise.
18304 * gcov-dump.c (print_version): Likewise.
18305 * mips-tfile.c (main): Likewise.
18306 * mips-tdump.c (main): Likewise.
18308 2011-01-03 Martin Jambor <mjambor@suse.cz>
18310 PR tree-optimization/46801
18311 * tree-sra.c (type_internals_preclude_sra_p): Check whether
18312 aggregate fields start at byte boundary instead of the bit-field flag.
18314 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
18317 * gcc.c (main): Revert revision 168407.
18319 2011-01-03 Martin Jambor <mjambor@suse.cz>
18321 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
18323 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18325 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
18326 vector optab to expand vector/scalar shift, update gimple to vector.
18328 2011-01-03 Martin Jambor <mjambor@suse.cz>
18330 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
18333 2011-01-03 Martin Jambor <mjambor@suse.cz>
18335 PR tree-optimization/46984
18336 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
18338 (cgraph_create_indirect_edge): Fixed line length.
18339 (cgraph_indirect_call_info): Declare.
18340 (cgraph_make_edge_direct) Update declaration.
18341 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
18342 (cgraph_create_indirect_edge): Use it.
18343 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
18345 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
18346 the new thunk_delta representation.
18347 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
18349 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
18350 (ipa_read_indirect_edge_info): Likewise.
18351 * lto-cgraph.c (output_edge_opt_summary): New function.
18352 (output_node_opt_summary): Call it on all outgoing edges.
18353 (input_edge_opt_summary): New function.
18354 (input_node_opt_summary): Call it on all outgoing edges.
18356 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
18359 * gcc.c (main): Don't check have_o when settting combine_inputs.
18361 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
18363 * regrename.c: Add general comment describing the pass.
18364 (struct du_head): Remove 'length' field.
18365 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
18366 (regrename_optimize): Do not sort chains. Rework comments, add others.
18367 Force renaming to the preferred class (if any) in the first pass and do
18368 not consider registers that belong to it in the second pass.
18369 (create_new_chain): Do not set 'length' field.
18370 (scan_rtx_reg): Likewise.
18372 2011-01-02 Jakub Jelinek <jakub@redhat.com>
18374 PR tree-optimization/47140
18375 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
18376 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
18377 to bit_value_binop.
18379 PR rtl-optimization/47028
18380 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
18381 parm_birth_insn instead of at the beginning of first bb.
18383 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
18385 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
18386 Remove the word "see" before "@pxref".
18387 * doc/rtl.texi: Remove the word "see" before "@pxref".
18389 2011-01-01 Jan Hubicka <jh@suse.cz>
18391 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
18394 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
18397 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
18400 Copyright (C) 2011 Free Software Foundation, Inc.
18402 Copying and distribution of this file, with or without modification,
18403 are permitted in any medium without royalty provided the copyright
18404 notice and this notice are preserved.